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

FM read_text parameter 'NAME'

former_member397166
Participant
0 Likes
538

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

3 REPLIES 3
Read only

Former Member
0 Likes
500

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.

Read only

0 Likes
500

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

Read only

0 Likes
500

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.