Skip to Content
0
Former Member
Jul 14, 2008 at 12:32 PM

Issue in populating and internal table's data into a SAP-Script Form

18 Views

Dear Guru

here i have encountered an issue in populating and internal table's data into a SAP-Script Form.

char1_val_tab_1 is an internal table and i am trying to populate its

char1_val_tab_1-atnam -->> characteristics names

char1_val_tab_1-atflv --->> characteristics value

into a sap-script form.

so in sapscript's from i have passed this two variable

like below

&char1_val_tab_1-atnam&

&char1_val_tab_1-atflv&

and in driver prog of that sap-script form i have written code like below in order to populate all the lines of these internal table char1_val_tab_1

LOOP at char1_val_tab_1.
   
   PERFORM write_form USING 'ITEM' ' ' ' ' 'MAIN'.


ENDLOOP.

But the issue i am facing this looping only printing the last line of that internal table but i want from 1st line to last line.

so guru i want to know what are the necessary changes i should make in to above looping in order to print 1st line to last line of that internal table char1_val_tab_1.

Pls help

Thanx & Regards

Saifur Rahaman