‎2008 Jun 25 9:32 AM
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
‎2008 Jun 25 9:52 AM
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