Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Mapping data from internal table to SAPSCRIPT Box.

Former Member
0 Likes
656

Hi Gurus,

I have to create a sapscript where in I should get data from standard tables and display the data in box (table format) in sapscript. I know how to get a field (perform in zprogram) into sapscript form zprogram. I dont know how I can get data (internal table) from my zprogram into sapscript and display in a box.

Your help is highly appreciated.

1 REPLY 1
Read only

Former Member
0 Likes
403

Hi David,

consider the below example say if your zprogram having the internal table table loop and you want to print the contents line by line or in a box,

LOOP AT tj_1irg23d.

  • header line

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'ITEM_HEADER1'

EXCEPTIONS

OTHERS = 1.

endloop.

then in your sap script main window or where ever you want to print just straight away give your internal table fileds as follows(just for example)

I2 ,,&J_1IRG23D-ZEILE(Z)&,,&J_1IRG23D-MATNR&,,&J_1IRG23D-CHAPID&,,

= &J_1IRG23D-MENGE(Z)&,,&J_1IRG23D-MEINS&,,0.0,,

then it will bring the values of your internal table in the form.