cancel
Showing results for 
Search instead for 
Did you mean: 

PO Text in custom PO SAPScript

Former Member
0 Kudos

Hi All

I want to add "Purchase Order Text" in PO Sapscript (ZMEDRUCK) in material line item.

I'm using this code-


INCLUDE &T166A-TXNAM& OBJECT &T166A-TDOBJECT& ID 'F03' LANGUAGE &EKKO-SPRAS&

where I have to add this code

&, is there anything else I have to declare?

Regards.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

Goto Windows by pressing on the Windows Button on the application toolbar...you get the list of all windows....now select the window inwhich you want to display the text by double clincking onit. Now select the Text Element or Press F9. You get the script editor. Here you paste the write the include..

/E text

/: INCLUDE &T166A-TXNAM& OBJECT &T166A-TDOBJECT& ID 'F03' LANGUAGE &EKKO-SPRAS&

Former Member
0 Kudos

Hi Avinash

Thanks for Reply.

But in Print Output, its not picking up the Text??

Regards.

Former Member
0 Kudos

hi,

Goto SE37 open read_text FM and test it with same set of values that u r passing here and see if its giving the text or not.

Former Member
0 Kudos

which window do you want this text you can pass this include

otherwise you can use FM READ_TEXT

Former Member
0 Kudos

hi

I'm using this in Main Window.

Regards.

Former Member
0 Kudos

hi,

in your script put the following code in the window where you want to print text :

/E text

/: INCLUDE &T166A-TXNAM& OBJECT &T166A-TDOBJECT& ID 'F03' LANGUAGE &EKKO-SPRAS&

/E - is the element.

and text is element name.

thanks,

anupama.

Former Member
0 Kudos

I have posted this in my question..

Regards.