‎2015 Mar 26 6:37 AM
I am trying to save long text in transaction iW32 using SAVE_TEXT but i am unable to see the text in the transaction.
I am able to see the entries in STXH but not on screen. I am passing the correct values to the FM paramters with leading zeros.
lwa_thead-tdobject = AUFK.
lwa_thead-tdname = concatenating sy-mandt + aufnr with leading zeros.
lwa_thead-tdid = KOPF
lwa_thead-tdspras = sy-langu.
‎2015 Mar 26 6:54 AM
Hi,
what is the value of c_object ? It should be 'AUFK'.
Regards,
Klaus
‎2015 Mar 26 7:15 AM
‎2015 Mar 26 7:23 AM
Hi Ami,
Fill all below header fields, and also pass 'X" value for INSERT parameters,.
| HEADER-TDOBJECT | = |
| HEADER-TDNAME | = |
| HEADER-TDID | = ''. |
| HEADER-TDSPRAS | = ''. |
| HEADER-TDFORM | = ''. |
| HEADER-TDLINESIZE | = ''. |
HEADER-TDTRANSTAT = '0'.
| HEADER-MANDT | = ''. |
| INSERT | = 'X'. |
And call only Commit_TEXT function module without any parameters.
It will work.
I did the same for one of my requirement, and data is storing in respective text.
Regards,
Praveer.
‎2015 Mar 26 7:58 AM
I have tried this but when i give insert = X save_text gives me sysubrc 5
‎2015 Mar 26 8:04 AM
‎2015 Mar 26 8:08 AM
‎2015 Mar 26 8:15 AM
You can do one thing,
CALL READ_TEXT Function 1st, get HEADER information.
Update LINES Information, and then call SAVE_TEXT function module to update with new information.
pass SAVEMODE_DIRECT = SPACE while calling SAVE_TEXT.
note: Insert : Indicator: Text is new
Regards,
Praveer.
‎2015 Mar 26 8:43 AM
‎2015 Mar 26 8:44 AM
It works fine if i have an existing text and i am trying to append some text to the existing text.. but if there is no text then it is not working
‎2015 Mar 26 9:21 AM
If there is no text, means you are creating the new one.
Then you no need to call READ_TEXT FM and have to user INSERT parameter, in SAVE_TEXT FM with new header inforamtion.
Regards,
Praveer.
‎2015 Mar 26 7:26 AM
There is a flag in the order for long text (now used for long text language) and SAVE_TEXT won't set this text. (Reference also in 1982719 - Texts cannot be displayed - Usage of function module SAVE_TEXT for PM/CS modules, there are other notes/KBA for other modules)
So either use BAPI_ALM_ORDER_MAINTAIN to create long text or update the flag from your report (a simple UPDATE SET is "allowable")
Regards,
Raymond
‎2015 Mar 26 8:02 AM
‎2015 Mar 26 9:18 AM
Hi,
if the text is new, you have to set parameter
INSERT = 'X'
for fm SAVE_TEXT.
Regards,
Klaus