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

call function read_text problem

former_member211992
Active Participant
0 Likes
3,021

Dear all

I have used read text fm thro se37,

i have to read header text in va01.

i have passed following parameters

id 001

language EN

NAME 0000000366

OBJECT VBBK

0000000366 IS A ORDER NO

but after executing im getting error :  " Text 0000000366 ID 001 language EN not found"

msg id TD no 600

but i have text in header.

How to rectify this

Regards

12 REPLIES 12
Read only

ThomasZloch
Active Contributor
0 Likes
2,437

Text IDs have usually length 4, so try "0001" instead of "001", or double-check the contents of table STXH for TDOBJECT = "VBBK" via SE16.

Thomas

Read only

0 Likes
2,437

Thanks for ur reply

i have cross checked stxh , data's are ther.

Read only

0 Likes
2,437

Obviously something doesn't match, so please provide a screenshot of the contents for TDNAME = "0000000366".

Thomas

Read only

0 Likes
2,437

Hi Karthk,

Thoms is right. At first Correct your text ID.

Here is sample code that help you better.

Declare variable:-

DATA: GS_MOD TYPE TDLINE.

Declare Internal table :-

DATA : BEGIN OF IT_TID OCCURS 0,
        ID(4),
        END OF IT_TID.


DATA : TLINES LIKE TLINE OCCURS 0 WITH HEADER LINE.


LOOP AT IT_TID.
           CALL FUNCTION 'READ_TEXT'
             EXPORTING
               CLIENT                  = SY-MANDT
               ID                      = IT_TID-ID
               LANGUAGE                = SY-LANGU
               NAME                    = ITAB-LV_NAME
               OBJECT                  = 'VBBK'
             TABLES
               LINES                   = TLINES
             EXCEPTIONS
               ID                      = 1
               LANGUAGE                = 2
               NAME                    = 3
               NOT_FOUND               = 4
               OBJECT                  = 5
               REFERENCE_CHECK         = 6
               WRONG_ACCESS_TO_ARCHIVE = 7
               OTHERS                  = 8.
           IF SY-SUBRC = 0.

             READ TABLE TLINES INDEX 1.

             IF SY-SUBRC EQ 0.
               CASE IT_TID-ID.
                 WHEN 'ZH01'.
                   GS_MOD = TLINES-TDLINE.

          ENDCASE.

         ENDIF.


Regards,

Ranjit Kumar.

Read only

VijayaKrishnaG
Active Contributor
0 Likes
2,437

Hi Karthik,

First open the Editor where user enters the long text. Click on GOTO in menu bar and select TEXT HEADER or HEADER.

Then a pop-up window will display the parameters that you have to pass to READ_TEXT function module.

Once cross check the parameter you passed from there. I think Parameter Name should contain some Client number or something along with ORDER NUMBER.

Regards,

Vijay

Read only

Former Member
0 Likes
2,437

Hello karthik,

Go to va03, header ---> texts ----> click on the details in the text as shown below.

Then menubar ---> goto ---> Header

Then pass the correct text id and order number and text object.

Read only

0 Likes
2,437

Hi Madhu,

Thanks to share helpful information.

Regards,

Ranjit

Read only

Former Member
0 Likes
2,437

Hi Karthk,

Go to VA02 enter Sales order number


Double click on the header text of your sales order and then on menu bar=>goto => Header


It will give you all parameters which need to pass in FM 'Read Text'.


Thanks

Read only

former_member211992
Active Participant
0 Likes
2,437

Dear all'

Thanks for ur replies , i got sol

Regards

Read only

0 Likes
2,437

Hi Peter,

That's cool and please close this thread.

Cheers,

Vijay

Read only

0 Likes
2,437

I got soul, too. Did you solve your issue?

Read only

Former Member
0 Likes
2,437

Hi Peter..

Great..

Please close the thread..