Text Objects And IDs Creation and Using It by FMs ‘CREATE_TEXT’ & ‘READ_TEXT’


 Scenario: SAP Script uses Text Object and Text Ids concept to store some information in the standard table ‘STXH’ and ‘STXL’. Also these Text Object and text Ids can be used in some different application to store some information in the same standard table. The below post describes how to create the Text Objects and Text Ids and using the same to store some messages by some standard function modules.

Step1. Go to Tcode- SE75.

Step2. Select the first radio button and click on Change button.

Step3. Click on Continue button.

Step4. Now Click on Create button to Create Text Object.

Step5. Provide TEXT Object Name, Description and other details and at last click on Continue button.

Step6. Click on Back button and from the Popup screen click on YES button.


Step7. Click on Continue button.


Step8. The Text Object is created. To create Text Ids under Text Object, Select the Text Object and Click on the Text Ids button.

Step9. Click on Create button.

Step10. Provide the TEXT ID details and at last click on the Continue button.

Step11. Save it.

Step12. The text Object is available in the table ‘TTXOB’.

Step13.  The text ID is available in the table ‘TTXID’.

Step14. Create a report and use FM ‘CREATE_TEXT’ and use the above created Text Object and Text ID to store some message in the standard table ‘STXH’ & ‘STXL’.

Step15. Output.

Step16. Check the details in STXH table.

Step17. Check the details in STXL table.

Step18. Use the FM ‘READ_TEXT’ to read the above created text from the standard sap script table.


Step19. Output.


 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s