Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: Header / Line Item in Printing Forms

$
0
0

Hello Justin,

   It would be much easier If you use a Z driver program. But know issue, you can also achieve your requirement by using java script. Do as below:

 

1.  Suppose you internal table "Item_table" (On body page) has below fields:

      ITEM_TABLE

          VBELN

          POSNR

          MATNR

          WERKS

          LGORT

 

2. GV_ALGORT is a text field on master page.

 

3. in script, path for ITEM_TABLE-LGORT would be like below:

      xfa.record.IT_TABLE.DATA[*].LGORT

 

4. Now, Select GV_LGORT text field on master page.

5. Go and select "Ready:Layout" event, "JavaSceipt" as language and "Client" as Run At.

6. Write below code (you can change path like mentioned in point 3 if item_table is nested in other

    structure or internal table  ):

 

   var v_lgort = xfa.resolveNode("xfa.record.IT_TABLE.DATA[*].LGORT").value;

   this.rawValue = v_lgort;

 

 

Note: If above is not working.then select above code and delete, press save button. And write same code under "Form:ready" event.

 

   I hope it will solve your problem. Reward point if it solve your problem.

 

Regards

Piyush


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>