Application Development and Automation 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:Ā 
Read only

Long texts problem

Former Member
0 Likes
820

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
651

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

4 REPLIES 4
Read only

Former Member
0 Likes
651

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Ć”

Read only

Former Member
0 Likes
651

Are you using FM CREATE_TEXT to create the text?

Rob

Read only

Former Member
0 Likes
652

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

Read only

sridhar_k1
Active Contributor
0 Likes
651

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