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

HOW TO USE READ_TEXT FM FOR TCODE VB22

Former Member
0 Likes
703

HI,

I AM USING TCODE VB22. I WANT READ THE TEXT FROM HERE. THESE ARE THE PARAMETERS I WANT TO PASS IN READ_TEXT.

PLZ HELP ME HOW TO WRITE CODE AND GET THE OUT PUT....

Text Name : TESTJP1

Language : EN

Text ID : 0001

Text object : KONA

tHANKS,

ANKITHA

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
594

Hi,

Check this code:

I have never worked on "sales deal ( rebate agreement) " before. So i do not know if you want to read header or line item text.

In example below, i assum that l_knumv is the sales deal number and you are reading header text.

DATA: l_knuma LIKE kona-knuma.
DATA: l_objname     LIKE thead-tdname.            "Object Name
DATA: lit_textline  LIKE tline OCCURS 0 WITH HEADER LINE. "Text lines
DATA: lst_header    LIKE thead.                   "Text Header

* move sales deal no
  l_knuma = "Assign sales deal no here"

* form the object no.
  l_objname = l_knuma

*     Read text from sales order
      CALL FUNCTION 'READ_TEXT'
           EXPORTING
                client   = sy-mandt
                id       = '0001'
                language = 'EN'
                name     = l_objname  
                object   = 'KONA'
           TABLES
                lines    = lit_textline.

Let me know if you have any question.

Regards,

RS

2 REPLIES 2
Read only

Former Member
0 Likes
595

Hi,

Check this code:

I have never worked on "sales deal ( rebate agreement) " before. So i do not know if you want to read header or line item text.

In example below, i assum that l_knumv is the sales deal number and you are reading header text.

DATA: l_knuma LIKE kona-knuma.
DATA: l_objname     LIKE thead-tdname.            "Object Name
DATA: lit_textline  LIKE tline OCCURS 0 WITH HEADER LINE. "Text lines
DATA: lst_header    LIKE thead.                   "Text Header

* move sales deal no
  l_knuma = "Assign sales deal no here"

* form the object no.
  l_objname = l_knuma

*     Read text from sales order
      CALL FUNCTION 'READ_TEXT'
           EXPORTING
                client   = sy-mandt
                id       = '0001'
                language = 'EN'
                name     = l_objname  
                object   = 'KONA'
           TABLES
                lines    = lit_textline.

Let me know if you have any question.

Regards,

RS

Read only

0 Likes
594

thanks alot my friend.

regards,

ankitha.