07-29-2015 1:17 PM
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
07-29-2015 1:50 PM
Please read through:
SAVE_TEXT
READ_TEXT
COMMIT_TEXT
etc.
Thanks,
Juwin
07-29-2015 1:50 PM
Please read through:
SAVE_TEXT
READ_TEXT
COMMIT_TEXT
etc.
Thanks,
Juwin
07-29-2015 2:14 PM
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
07-30-2015 8:02 AM
Hello Juwin,
Can you please help me on this?
Thanks and Regards,
Muralikrishna Peravali
07-31-2015 2:05 PM
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
08-06-2015 12:46 PM
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
08-06-2015 1:36 PM
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
08-06-2015 1:48 PM
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
08-06-2015 1:53 PM
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
08-06-2015 2:20 PM
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
08-06-2015 2:24 PM
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
08-06-2015 2:29 PM
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
08-06-2015 2:32 PM
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
08-06-2015 2:35 PM
Hi Juwin,
Thanks a lot for your reply. I am done my requirement.
Thanks and Regards,
Muralikrishna Peravali
08-12-2015 4:51 PM
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