Skip to Content
0
Nov 19, 2015 at 05:47 AM

How to update the production order long text through ABAP while creating Production order?

3400 Views

Hello All,


At time of creation of the production order, the Project long text need to be appended to the production order long text (even if we not enter any long text for production order, the text from Project need to copied to Production order long text ).

For this I have written the following code in the customer exit “EXIT_SAPLCOBT_001”.

First I am reading the Project long text using READ_TEXT.

And then reading the Production order long text using READ_TEXT.

Appending the Project long text to Production order long text and saving using SAVE_TEXT.

Committing using COMMIT_TEXT.

The above logic is working in One case.

Case 1: Production order long text is not blank.

It is working fine if we enter something in Production order long text.


Case 2: Production order long text is blank.

it is not working when we not entering any text under production order long text.

After saving the text I can see STXH table is updated with corresponding entries, but the long text is not updating in Production order. And AUFK-LTEXT field is also not updated with language field. I have also tried with CREATE_TEXT instead of SAVE_TEXT for second case but it is also not working.


Can you please help on this requirement?


Thank you



Regards,

Ramesh