cancel
Showing results for 
Search instead for 
Did you mean: 

Data passing from abap to SAP Scripts

Former Member
0 Kudos

Hi all,

I am facing a problem while passing the data from abap progrm to sap scripts.

I have designed asap script which contains the main window and the text elements.

I have to print the line item in the text element 'LINE_ITEM'

the following :

&wa_bseg-belnr& ,, &wa_bseg-wrbtr&.

In the abap code :

I have data in my internal table,

I have used the write_form

ELEMENT = 'ITEM_LINE'

FUNCTION = 'APPEND'

TYPE = 'BODY'

WINDOW = 'MAIN'

But When i execute the pgm my data is not disaplyed in the print.

What could be the reason,.

Please help me soon

Regards,

Priya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Now, I am getting the data ,but only the last record of the itab is getting printed.

For ex : My itab has 20 records,.

The last record is getting printed 20 times.

Now to print all the data

Former Member
0 Kudos

hi can u check once the text element name in abap code and script main window 's text element name.it must be same

in script u have to give like this

\E LINE_ITEM

..........

in program

u have to pass the parameters

ELEMENT = 'LINE_ITEM'

FUNCTION = 'APPEND'

TYPE = 'BODY'

WINDOW = 'MAIN'

reward points if useful.

Thanks,

Usha