Application Development 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: 

Error in Update Component item level Long text in IW32

0 Kudos

Hi,

I have a requirement where I need to update the unloading point at the component level in tcode IW32. Since the text to be updated is more than the length of the unloading point (more than 25 characters) so it needs to be updated both at the unloading point field (truncated text) and as a long text at the component line item level. For this in the program I need to check if there is already a long text existing for the component line item. If there is no long text existing I have to create a new long text and if there is already a text then I have to append the new text.

For creating new as well as appending text I used SAVE_TEXT and did a commit work (FM 'COMMIT_TEXT') after calling the FM SAVE_TEXT with the savemode_direct = 'X' parameter checked. The text gets updated in table STXH but does not display in front end. So I tried using the BAPI 'BAPI_ALM_ORDER_MAINTAIN' but with no success. I went through some of the blogs. Some had mentioned updating LTXSP in RESB table with 'E' as well as updating LTEXT in AUFK with 'X' but it doesn't help.

Please let me know what I can do. This is a urgent production issue. Any help soon will be highly appreciated.

Best regards,

Ashok

7 REPLIES 7

FredericGirod
Active Contributor
0 Kudos

I think you have a specific field, maybe this one AUFK-LTEXT

if you create a text without a flag in this field, it ywon't work

And there is a specific FM/BAPI that will do this modification, but ... I have mot anymore access to the system with the example

0 Kudos

apparently you have to SAVE_TEXT & used CO_IH_SET_HEADER

but the last one is not release by SAP, so ....

0 Kudos

Hi,

Thanks for the reply. Using the FM "MB_CHANGE_RESERVATION" i am able to change the value in the unloading point but when I try SAVE_TEXT to save the same text in the long text it does not display in the front end although I can see the text entry updated in STXH. Please let me know if there is a field/flag in any table that needs to be set in order to link STXH with frontend.

Thanks,

Ashok

0 Kudos

Also as said before I have updated the field LTXSP in RESB with 'E' and LTEXT field in AUFK with 'E'. But still the text does not show up in the long text. Kindly assist.

Thanks,

Ashok

FredericGirod
Active Contributor
0 Kudos

Do you have tried to do the invert? do it with standard trans & check the field/value used by SAP ?

ST05 is also your friend to check what SAP is udapting

here the value of LTEXT is F

0 Kudos

Hi Frederic,

Thanks for the reply. That was the last approach i was thinking of as its more of debugging the standard SAP code but thanks for letting me know the approach. If anyone else has faced a similar situation please do let me know the solution.

Thanks,

Ashok

0 Kudos

Hi,

I found that there is a field POTX1 in RESB table which needs to be updated with the text. Also the field LTXSP should be set as language key in which the text was maintained. I tried using the FM 'MB_RESERVATION_CHANGE' to update these values in the RESB table but it does not update. Is there a way to update these fields in RESB. The client doesn't allow a direct update of dbase tables. Please suggest.

Thanks,

Ashok