‎2008 Dec 29 4:45 PM
Hello experts ,
I have problem when i was print in sap script text element , i call to FM write_form with text element
And within the form this element was not printed and not display in my form .
This is my code :
In call program :
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'ITEM_LINE_PRICE_QUANTITY'.
In sap script form :
/E ITEM_LINE_PRICE_QUANTITY
What is the problem ?
Thanks for the help.
AVI.
‎2008 Dec 29 4:52 PM
If you are calling this element inside main window then also pass
window as 'MAIN' to FM 'WRITE_FORM'.
Neha
‎2008 Dec 29 4:52 PM
If you are calling this element inside main window then also pass
window as 'MAIN' to FM 'WRITE_FORM'.
Neha
‎2008 Dec 29 5:27 PM
There could be few possibility are,
As this text element is often i see in standard Invoice program (RVADIN01), if you copy this program into custom print program, than might be you must've a loop over the internal table to let all line item print to form.
And make sure in script any Condition/Command right before Text element 'ITEM_LINE_PRICE_QUANTITY' which getting failed?
‎2008 Dec 29 7:47 PM
Hi Avi,
Please use & ITEM_LINE_PRICE_QUANTITY& in your sap-script to resolve your issue.
Best Regards,
Krishna
‎2008 Dec 30 12:13 PM
You have to pass window name in the WRITE FORM.
Example,
call function 'WRITE_FORM'
exporting
element = 'SHIPTO'
type = 'BODY'
window = 'SHIPTO'.
Regards,
Joan