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 for WBS elements - Function Module?

kkram
Contributor
0 Likes
657

Hello

I am using BAPI_PROJECT_MAINTAIN to create project/WBS elements. This BAPI doesn't have any segment for long text of WBS elements.

So, I am trying to use CREATE_TEXT to create long texts for WBS elements. I am using this function module after successfully creating the WBS element using the above BAPI. CREATE_TEXT doesn't seem to be creating any text for WBS element.

If I manually enter long text in the WBS element, save it and then use CREATE_TEXT, it is able to create additional texts. The problem seems to be only when I am using CREATE_TEXT for the first time when there is no long text in the WBS element.

Has anybody faced this? If yes, any possible solutions?

Thanks

KK

1 REPLY 1
Read only

sridhar_k1
Active Contributor
0 Likes
433

When you create text using standard transaction, PRPS-TXTSP is populated with SY-LANGU.

CREATE_TEXT is not working first time because above mentioned field is not populated, and it works second time because the field is populated by sap transaction.

You can populate the field with language key in an user exit. If there's no user exit, consider direct table update.

Regards

Sridhar

Message was edited by: Sridhar K