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: 

Vendor Master enhancement

former_member267445
Participant
0 Kudos

Hello Gurus,

I have a requirement to add 2 new tabs in the vendor master and I have done everything. In one of the tab, there is a long text field and user enters the long text and I need to store the text into R/3 table(STXH) instead of LFA1.

I have searched for this and I got normal Module pool program and text updating into Z tables.

Please light me on this.

Thanks and Regards,

Muralikrishna Peravali

1 ACCEPTED SOLUTION

Juwin
Active Contributor
0 Kudos

Please read through:

SAVE_TEXT

READ_TEXT

COMMIT_TEXT

etc.

Thanks,

Juwin

14 REPLIES 14

Juwin
Active Contributor
0 Kudos

Please read through:

SAVE_TEXT

READ_TEXT

COMMIT_TEXT

etc.

Thanks,

Juwin

0 Kudos


Hello Thomas,

Thank you for the quick response. These should be implmented in Badi which I have created or in screens.

Thanks and Regards,

Muralikrishna Peravali

0 Kudos

Hello Juwin,

Can you please help me on this?

Thanks and Regards,

Muralikrishna Peravali

Juwin
Active Contributor
0 Kudos

What would you like the help on? For function modules, they are well documented here: SAVE_TEXT - BC - SAPscript Printing with Forms - SAP Library

Thanks,

Juwin

0 Kudos

Hello Juwan,

I have implemented the long text using FM's and initially the text is storing in STXH and am able to retrieve the text using READ_TEXT. But after some time when I test using READ_TEXT, text is not showing and I went to table, in the table also the entry didn't exist.

is there anything do I need to do?

Thanks and Regards,

Muralikrishna Peravali

Juwin
Active Contributor
0 Kudos

Hi Murali, That sounds weird. Table entries cannot delete on its own. If once you are able to see the entries in STXH and later it is not visible, someone somewhere has to be doing DELETE_TEXT to delete the text from the system. Are you sure you able to see it in STXH initially, through SE16N?

Thanks,

Juwin

0 Kudos

Hi Juwan,

Yes I was looking through SE16N only. This is the new requirement so there is no DELETE_TEXT.

Thanks and Regards,

Muralikrishna Peravali

Juwin
Active Contributor
0 Kudos

Wow, I haven't faced that before. Is everything alright in the system? Table entries cannot delete on its own. May be raise this issue with your Basis team as well.

Thanks,

Juwin

0 Kudos

Hi Juwan,

Now I am able to see the entry in STXH table and am able to retrieve the text from READ_TEXT. The issue was leading zeros for the vendor, I was not considering leading zeros when I check in STXH table. Apologies for the inconvenience.

Can we see the text in STXH table itself?

Thanks and Regards,

Muralikrishna Peravali

Juwin
Active Contributor
0 Kudos

No you cannot, STXH is only header. Text is stored in STXL in RAW format. You have to always use READ_TEXT to get the text contents.

Thanks,

Juwin

0 Kudos

Hello Juwin,

Thank you for the reply. So we need to display the text in display mode of transaction, am I correct?

Thanks and Regards,

Muralikrishna Peravali

Juwin
Active Contributor
0 Kudos

Yes, that's correct. You need to check the transaction type before allowing the edit mode of the text. Default should be - display mode.

Thanks,

Juwin

0 Kudos

Hi Juwin,

Thanks a lot for your reply. I am done my requirement.

Thanks and Regards,

Muralikrishna Peravali

0 Kudos

Hello Juwin,

I have done everything for long text, it is working for change and display mode. But while creating a new vendor the text is not updating in STXH table because for SAVE_TEXT FM I have passed vendor number.

So, could you please help me on this.

Thanks and Regards,

Muralikrishna Peravali