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

Write element in sap script.

Former Member
0 Likes
1,385

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
774

If you are calling this element inside main window then also pass

window as 'MAIN' to FM 'WRITE_FORM'.

Neha

4 REPLIES 4
Read only

Former Member
0 Likes
775

If you are calling this element inside main window then also pass

window as 'MAIN' to FM 'WRITE_FORM'.

Neha

Read only

Former Member
0 Likes
774

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?

Read only

nkr1shna
Contributor
0 Likes
774

Hi Avi,

Please use & ITEM_LINE_PRICE_QUANTITY& in your sap-script to resolve your issue.

Best Regards,

Krishna

Read only

Former Member
0 Likes
774

You have to pass window name in the WRITE FORM.

Example,

call function 'WRITE_FORM'

exporting

element = 'SHIPTO'

type = 'BODY'

window = 'SHIPTO'.

Regards,

Joan