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

Include Text

Former Member
0 Likes
2,869

Hi all,

In ME21n, P.O-Header, Text Strip whatever the user enters should be displayed in the output(SAP Script).

For that i am using Include Text instead of calling Read_text. But i am not finding transparant table to use standard text. I need Text-name, Text-object, Text-id to include the text. But in header of the text editor i am able to find Structure.

Expecting reply....

ravikumar.

18 REPLIES 18
Read only

Former Member
0 Likes
2,141

Hi,

You can use include text, still you can pass the values that are found in the header info, even if it is the structure, it gets populated at run time and that will be retrieved by the Include text statment,

The table where you find these values are STXH,

Rgds,

Read only

0 Likes
2,141

I found the Trans.table STXH, but the i'm unable to populate the datas into the output.

Ravi.

Read only

0 Likes
2,141

hi,

Thankd for ur response,

I am able to find the values and fields, but when i call into my script its not displaying the TEXT.

Read only

Former Member
0 Likes
2,141

When you open the editor in the full screen mode, in the menu Go To--> Header you will see the paramter values for the OBJECT, ID AND NAME.

Its important you open the text in full screen mode

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
2,141

Ravi,

Goto ME22==> Get into PO Screen==> F8 ==> Double click on the text(it will take you to editior) ==> Goto==> header==> There you can find id, name etc...

rgds,

TM

Read only

Former Member
0 Likes
2,141

Hi Ravi kumar,

if you want the PO header text then Go to Table STXH , give the PO number in TDNAME with padded Zeroes. then Look for the Entries in the table,there you can see the TDID,TDOBJECT,etc..

Regards

Vijay

Read only

Former Member
0 Likes
2,141

Hi Ravi,

for a PO header Text,

Text-name = PO number

Text-object = EKKO

Text-id . this is also fixed depending on which text u want to display. u can c this from the sapscript editor of the text>goto>header-->

eg, for HEader text --> F01

for Header Note --> F02..

hope this helps..

Read only

Former Member
0 Likes
2,141

Hi Ravi

I can see that you are using the include statement in your SAPscript.

Check that your statement has the addition 'LANGUAGE <language>' at the end. That might be the reason. If the user logged on to a different language the text will be saved with that language.

The complete statement should be: include <PO-number> object EKKO.......language <language>

Hope it will help you

Best regards

Arne

Read only

0 Likes
2,141

Hi Arne,

I understood, but in the script editor how to extend the text(Width of the editor is limited), suppose if i want to keyin LANGUAGE its not allowing to type...

What to do? & which table should be selected STXH or Structure?

Read only

0 Likes
2,141

Hi again Ravi

When you are in the relevant window you should change editor (back to the old): Goto -> Change editor and afterwards you can use the Shift F8 buttons to move the page left or right.

Arne

Read only

0 Likes
2,141

HI arain Arne,

I tried but i can't get this, Where to use Shift-F8.

Thing is i want to extend the text editor while writing, i cah view in display mode.

Read only

0 Likes
2,141

Hi Ravi,

Put the cursor on the line that you want to extend and press shift+F8.It will show you the extended portion then you can write the text here.

Read only

0 Likes
2,141

goto ur text editor in change mode...then Edit-->Page right/left ( or Shift + F8 )

Read only

0 Likes
2,141

Hi Ravi

The shift+F8 moves the whole page left or right, and when you have move the page to the right you can set the cursor on the relevant line (as stated in the other reply) and write the extension.

Arne

Read only

0 Likes
2,141

Hi,

I tried all the possibilities and table, structures also, pls check and recommend the table which should be used.

ravi.

Read only

0 Likes
2,141

Hi again again Ravi

I assume the question about table or structure is where to find the language?

If so you could look it up in the table STXH with TDOBJECT = EKKO, TDNAME = PO no, TDID = F01 or F02:

TDSPRAS contains the language.

Regards

Arne

Read only

0 Likes
2,141

NO Arne, the input what we are giving while creating P.O in MM21 in the text column(as Remarks column) should be displayed in the output( Script), for this i need to include a text.

NOw i want to know from which table i should get the fields to write Include...

Just goto ME22n, check the Texts available in Header.

Read only

0 Likes
2,141

Hi there

Mark the relevant text in TEXTS tab and change the 'Continuous text editor' to 'SAPscript editor'. When the editor pops up go to 'Goto' -> 'Header'.

Here you find:

Textname -> STXH-TDNAME (PO no)

Language -> STXH-SPRAS

Text ID -> STXH-TDID (F01)

Text object -> STXH-TDOBJECT (EKKO)

When you print the PO the program will contain these values in a structure or you will have to get the values yourself from the table STXH. You'll have to ensure that the values are in the structure when the program writes the relevant window in SAPscript - I don't know if you are printing via SAP std or own developed program.

I hope this'll get you on the way.

Regards

Arne