ā2006 Dec 13 3:50 PM
I am creating texts for wbs element, i launch the 'read text' function with the name, language , id and object, and it gives me sy-subrc = 0, i launch bapi_transaction_commit after that, and when i launch read_text it returns me my lines but when i go to cj20n to see them, i can“t see my lines, has anybody had this problem?
Thanks in advance.
regards
ā2006 Dec 13 4:06 PM
The reason is that SAVE_TEXT will create text object but will not update the same in the PRPS table. I had the same problem with long text of project (PROJ table).
After the BAPI commit do this, this is the only option as far as I have known.
* Update the Language Key
UPDATE prps SET txtsp = sy-langu WHERE PSPNR= wa_project-PSPNR.
This you can verify by just creating a long text in CJ20N and check the value of txtsp in PRPS table and creating text using SAVE_TEXT and checking the value of txtsp in PRPS table.
Regards
Kathirvel
ā2006 Dec 13 3:59 PM
Hi!
I've found similar problem in another transactions. The text was always there but mostly in an other LANGUAGE. This mostly happens in systems with more languages.
Check the language code also, try to log into the system on the other language and the text will appear in CJ20N.
Regards
TamĆ”
ā2006 Dec 13 3:59 PM
ā2006 Dec 13 4:06 PM
The reason is that SAVE_TEXT will create text object but will not update the same in the PRPS table. I had the same problem with long text of project (PROJ table).
After the BAPI commit do this, this is the only option as far as I have known.
* Update the Language Key
UPDATE prps SET txtsp = sy-langu WHERE PSPNR= wa_project-PSPNR.
This you can verify by just creating a long text in CJ20N and check the value of txtsp in PRPS table and creating text using SAVE_TEXT and checking the value of txtsp in PRPS table.
Regards
Kathirvel
ā2006 Dec 13 4:07 PM
Are you refering to SAVE_TEXT or CREATE_TEXT?
If long text added to WBS element using above fm's, it's not going to show up in CJ20n because they don't update field PRPS-TXTSP with language key.
You need to do the table update for the text to show up.
Regards
Sridhar