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

problem with text

Former Member
0 Likes
525

hi budys,

plz solve my issue and gain full points imm,we are working on an interface, where the Purchase order will send to other system as Sales order.every thing is fine.but the text(header and item) is not moving from PO to SO,i'm not able to look the text even in the sending system idoc.actually we are writng the text in text type which was created by my functional guy.thanks to all for spending ur time.plz help me out.

3 REPLIES 3
Read only

Former Member
0 Likes
503

Dear danny,

Well you have to use the function module 'Read_text' to get the text in the Header and item of a particular PO. In this function module you have pass the PO number along with object type 'EKKO'.

Regards,

Vikas

Read only

Former Member
0 Likes
503

EKKO is only for the header text--you will also need to call READ_TEXT for the item texts as well using object type EKPO and object id of the PO# concatenated with the item#.

Unfortunately, you also need to know the text id, or TDID for the text you want to read. You can get this by searching table TTXID using either EKKO or EKPO to match the text description and obtain it's relevant ID that way.

Read only

Former Member
0 Likes
503

hi, Joel Falk is right.

You can call the function like this:

    
       CALL FUNCTION 'READ_TEXT'
         EXPORTING
            ID                      = 'XXX'
            LANGUAGE                = SY-LANGU
            NAME                    = FNAME
            OBJECT                  = 'EKPO'
       TABLES
            LINES                   = IT_TLINE.

ID is the text id in TTXID, every ID associated with a TEXT.

OBJECT: if header, OBJECT is EKKO, NAME is PO number

if item, OBJECT is EKPO, NAME is PO concatenate Item number.

thanks a lot