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

BAPI_PRODORDCONF_CREATE_TT (Comment / Long Text)

rudy_schmitz
Active Participant
0 Likes
1,094

Hello everybody,

I have 2 questions concerning the bapi BAPI_PRODORDCONF_CREATE_TT.

For the moment, we are using this bapi to create our confirmations. And it works fine.

Now, there is a need from the business to record a comment associated to the confirmations.

If we look into the transaction CO11, there is a possibility to enter a 40 chars comment, and, if needed, a Long Text.

(1) Having a look to the possibilities of this bapi, it seems that it can just record the 40 chars comment, but not the Long Text.

Am I right?

(2) I saw there is a function SAVE_TEXT that can record a Long Text in the database.

I made a test, and it's ok.

So my idea is to call the function SAVE_TEXT after the call to the bapi.

But in this case, what about the flag (check box) "Long Text" which is displayed in transaction CO11 / CO14?

Normally it shows that there is a Long Text defined for the confirmation.

After my test, the 40 chars comment is ok, the Long Text is ok, but the check box corresponding to the Long Text flag is still empty (not checked as 'x').

Please can you help? or give me advice if my way to proceed is not right?

Thank you in advance.

Regards,

Rudy.

1 ACCEPTED SOLUTION
Read only

michaelmerny
Participant
0 Likes
801

Dear Rudy,

I think that the only possibility to solve this issue would be to update the field TXTSP in table AFRU in order to set the right language; In this case the flag will be set in the transaction.

Best regards,

Michaël.

Hello everybody,

I have 2 questions concerning the bapi BAPI_PRODORDCONF_CREATE_TT.

For the moment, we are using this bapi to create our confirmations. And it works fine.

Now, there is a need from the business to record a comment associated to the confirmations.

If we look into the transaction CO11, there is a possibility to enter a 40 chars comment, and, if needed, a Long Text.

(1) Having a look to the possibilities of this bapi, it seems that it can just record the 40 chars comment, but not the Long Text.

Am I right?

(2) I saw there is a function SAVE_TEXT that can record a Long Text in the database.

I made a test, and it's ok.

So my idea is to call the function SAVE_TEXT after the call to the bapi.

But in this case, what about the flag (check box) "Long Text" which is displayed in transaction CO11 / CO14?

Normally it shows that there is a Long Text defined for the confirmation.

After my test, the 40 chars comment is ok, the Long Text is ok, but the check box corresponding to the Long Text flag is still empty (not checked as 'x').

Please can you help? or give me advice if my way to proceed is not right?

Thank you in advance.

Regards,

Rudy.

3 REPLIES 3
Read only

rudy_schmitz
Active Participant
0 Likes
801

No idea about this?

Or maybe should I post this message in another section of the forum?

Thanks!

Rudy

Read only

michaelmerny
Participant
0 Likes
802

Dear Rudy,

I think that the only possibility to solve this issue would be to update the field TXTSP in table AFRU in order to set the right language; In this case the flag will be set in the transaction.

Best regards,

Michaël.

Read only

rudy_schmitz
Active Participant
0 Likes
801

Thank you Michael.

Unfortunately, even if I don't think it's a right way to work, I think it is the only way...

I'll try to do it in this way.

Thanks.

Regards,

Rudy