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

Sapscript issue

Former Member
0 Likes
324

Hi all,

I have aprob in sap script

Prog is standard,

I get the header data in a text element which comes from std prg.

now i need the item data of it which doesnt come from standard.

so i included a subroutime just after the header data display,

in this i fetched the item data,

but the thing is how i print the item data...

the code is below:

ITEM_LINE_PRICE_QUANTITY

&VBDPA-MATNR(C)' '&,,&VBDPA-ARKTX(30)' '&,,&VBDPA-KWMENG(I12)' '&,,

&VBDPA-VRKME(C)' '&,,&KOMVD-KBETR(<I12)' '&,,&KOMVD-KWERT(<I16)' '&

PERFORM CONDITIONS IN PROGRAM ZSD_ADV

USING &VBDKA-VBELN&

USING &VBDPA-POSNR&

USING &VBDKA-ZTERM&

CHANGING &VBDPA-NAME1_WE&

CHANGING &VBDPA-NAME3_WE&

CHANGING &KOMVD-VTEXT&

CHANGING &KOMVD-KPEIN&

CHANGING &KOMVD-KPEIN&

CHANGING &KOMVD-KMEIN&

ENDPERFORM

&VBDPA-NAME1_WE&,, &VBDPA-NAME3_WE&

but this prints only one item of each haeader

kindly send the soln as asap.

poits wud b rewarded

1 REPLY 1
Read only

Former Member
0 Likes
299

hi,

In the Standard Program check which element is called for each item and under that element write the code for printing the item list.

This should solve the problem.

Warm Regards

R Adarsh