2014 Aug 01 3:49 AM
Hi all
I do not know how to set the parameter 'NAME' when calling FM 'READ_TEXT'.
In a system ,it is CONCATENATE 'matnr' 'werks' 'charg' . And in another system, it is concatenate 'matnr' 'werks' 'charg', but werks is always initial.
I think it is related to the Basis.Is it? How to check and set?
Thanks
Kical
2014 Aug 01 4:13 AM
Hi Kical,
What I will suggest is in which ever system you want to get the text, first you do the following to understand the values you should pass to the FM READ_TEXT
For whatever transaction you want the text go to that transaction & text edit screen. click on Menu > Goto > Header there you will get all required details for that long text. as below.
Text Name xxxxxxxxx
Language EN
Text ID xxxx xxxxxxx xxxxx
Text object XXXXX XXXXXXXXXXX
Normally text id/name you need to build concatenating object id & item no etc.
Hope this helps If not share the program so that it can be analyzed in more detail.
2014 Aug 01 6:30 AM
hI Abhijit
for example:matnr = '10000001', werks = '8001', charg = '12345678'. * represent space
in a system ,the textname of batch long-text in MSC3N is '10000001**********800112345678'.
And in anther system, the textname is '10000001**************12345678'.
Can I get the textname by FM according matnr werks charg?
Thanks
Kical
2014 Aug 01 10:11 AM
Hi Kical,
I am assuming you are getting the correct text in the first system when you populate MATNR, WERKS and CHARG. However in the 2nd system you don't have the WERKS field hence you are indicating * in the textname.for that.
I would suggest you check in the 2nd system using the mechanism I have suggested in my earlier post and see what is the key that is displayed, and use it in FM. My guess is your key and the system key is not matching hence the issue.