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: 

Issue in updating the long text for Routings

Former Member
0 Kudos

Hello,

I am developing an onject to update Long text(which are already created but need to be overwritten).

Can this be done using /SAPDMC/SAP_LSMW_IMPORT_TEXTS via LSMW.

I developed an LSMW witht this, I am able to retrieve the required field for name which are needed as key from tables.But how can I dynamically update this field for the correct value relating the operation.One issue regarding this I am facing is that in conversion, I have operation number in the source field and have maintained source field according to source file but use values just to retrieve correct value for name field in mapping,it is taking only the last operation number into account from the source file itself and not earlier values.please guide.

Regards

5 REPLIES 5

JL23
Active Contributor
0 Kudos

yes you can use /SAPDMC/SAP_LSMW_IMPORT_TEXTS via LSMW

In the SAP system, there is no uniform rule for the structure of the actual text key Textname. However, in order to be able to maintain the structures and fields, you have to know what the structure of text name as well as the values for text object and text ID are.

Procedure

...

1. Display a text of the required text type.

2. Branch to the editor.

3. Choose Goto > Header.

The Text header dialog box appears.

Result

In the Text header dialog box, you gather the required information.

Former Member
0 Kudos

Hello,

Thanks for replying.Actually , I have already done neccessary thing for extracting the valid values needed for key , and concatenated them.I am using neccessary information from my source file to create logic for extract them and input in the text name field for mapping purpose.But the issue is I am not able to loop it properly. As I explained in my question, for example I have 3 operation in my routing, in the source structure ,the source field is automatically going for the last operation for updation i.e. 3rd and not taking in account 1st and second.

Also I am not able to overwrite but only update.

Please guide.

Regards,

Jass

former_member214131
Active Contributor
0 Kudos

Hi,

Hope this helps you. Please note that this is very specific to Routings and Quality plan.

Best Regards, Murugesh

Former Member
0 Kudos

Hello,

Thanks for your valuable inputs... I am able to run the object now... but the issue comes as it is updating only the last operation text given for updaation.. and for other so no long text exist in CA03 with the check mark ticked.

Please guide.

Regards

JL23
Active Contributor
0 Kudos

did you do any coding in your LSMW, like exchanging global definitions?

e.g. from transfer_record to on_change_transfer_record

Can you post how your source file looks like

with an example of the key fields - (I am not intrested on the text itself)