Application Development 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: 

Long text for Operation in Tranasction IW32

former_member317731
Participant
0 Kudos

Hello Experts,

I nned to display the short text and the Long text of Operations on a print out.For short text, I am importing data from memory using table AFVGD but i am not able to find out the data which is there in the long text.Kindly suggest how can i get the data like from which table or memory ID.

Thanks ,

Sahil

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

SAPscript long texts header are stored in STXH and lines are stored in non-transparent table ([Storing Text Components|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db668494511d182b70000e829fbfe/frameset.htm]), The FM [READ_TEXT|http://help.sap.com/saphelp_40b/helpdata/pt/d6/0db8c8494511d182b70000e829fbfe/content.htm] is called to get those texts in an internal table.

To get the long texts id (OBJECT, NAME, ID, and LANGUAGE), call transaction IW33 (or 32) and display the text of an operation, then in the menu : goto, header data, you will get the constants "AUFK" and "AVOT", and the current language code and the "key" that you will have to interpret. When the text is not displayed in the sap script editor, you will need to debug the program to find the key, or use the search tool at sdn of course

Some samples for IW32/33 are :

- Order header: "AUFK", MANDT+AUFNR, "KOPF", "E"

- Operation: "AUFK", MANDTAUFPLAPLZL, "AVOT", "E"

- Material: "AUFK", MANDTRSNUMRSPOS, "MATK", "E"

- Utilities: "AUFK", MANDTAUFPLPZLFH, "FHMT", "E"

Regards,

Raymond

2 REPLIES 2

Former Member
0 Kudos

Hello

You need to use FM READ_TEXT for this.

Also check this Link: for find text name for operation text.

raymond_giuseppi
Active Contributor
0 Kudos

SAPscript long texts header are stored in STXH and lines are stored in non-transparent table ([Storing Text Components|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db668494511d182b70000e829fbfe/frameset.htm]), The FM [READ_TEXT|http://help.sap.com/saphelp_40b/helpdata/pt/d6/0db8c8494511d182b70000e829fbfe/content.htm] is called to get those texts in an internal table.

To get the long texts id (OBJECT, NAME, ID, and LANGUAGE), call transaction IW33 (or 32) and display the text of an operation, then in the menu : goto, header data, you will get the constants "AUFK" and "AVOT", and the current language code and the "key" that you will have to interpret. When the text is not displayed in the sap script editor, you will need to debug the program to find the key, or use the search tool at sdn of course

Some samples for IW32/33 are :

- Order header: "AUFK", MANDT+AUFNR, "KOPF", "E"

- Operation: "AUFK", MANDTAUFPLAPLZL, "AVOT", "E"

- Material: "AUFK", MANDTRSNUMRSPOS, "MATK", "E"

- Utilities: "AUFK", MANDTAUFPLPZLFH, "FHMT", "E"

Regards,

Raymond