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: 

Where can I find the save_text for saving the item details text in ME21N?

walkerist
Participant
0 Kudos
378

Hi, I would like to see where is the save_text of these texts? Info record PO, Materisl PO text. Which program can I see where the texts were saved? I know it is saved on STXH/STXL table.

3 REPLIES 3

FredericGirod
Active Contributor
325

Use transaction ST05 to make a trace on the ME21n transaction (don't forget to change a text and press SAVE).

Search for tables STXH STXL, in ST05 you could see the line of code corresponding to the SQL statement (UPDATE or INSERT). And you could set a break point to stop at the next call of the ME21n

325

There is also an option in ST05 to trace the call stack of programs doing every SQL operation, which can help understanding the context in which the program is called (normal, RFC, update task, HTTP, etc.)

In order to make the break point work, people must also activate their "update debug" option (in the debug settings after /H), because the SQL operation is usually done inside an update task.

raymond_giuseppi
Active Contributor
325

Also double-click the text area to display text in full page mode,

  • In the menu navigate to Goto, Header.
  • Look at the text object, is this a PO table (EKKO, EKPO) or another table (e.g. contract, material, vendor, info record)
  • In the last case, those texts are displayed from another object, check your Customizing (*) and may not be actually adopted by the PO (e.g. material, PIR, etc.)

(*) Purchasing > Purchase Order > Texts for Purchase Orders > Define Copying Rules for Item/header Texts

Look at the fixed indicator which has three characteristics with the following meanings:

  • ' ': The texts are copied to the target document directly.
  • '*': The texts are displayed in the target document and can be transferred. If you change the texts manually, they are transferred automatically.
  • 'N': The texts are displayed in the target document, but they cannot be transferred.

For the last 2 cases you will not detect a save_text in your tests.