Application Development 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: 

Shipping text

Former Member
0 Kudos

Hi All,

I am trying to get the shipping text for order number.

To make it more clear, if we go to VA02 tcode, give an order number and once you are in the order, there will be an icon for header...just above the tabs.once you hit that icon, it takes us into headerdata. go to texts tab and on the left you can find shipping instructions. My question is......Which table contains this shipping instructions? or is there any function module to get this text. This is urgent, please reply. Thank you. Regards. Prathima.

5 REPLIES 5

naimesh_patel
Active Contributor
0 Kudos

You can read the text by "READ_TEXT" funciton module.

But to use this FM, you will need the object, name and id for that text.

To get these information..

Select the shipping text and click on the "magnifying" button on the screen where you want to enter the text...

in the subsequent screen ... Go to > Header.. here you will find out the information like Text Name

Language

Text ID

Text object.

You can use the FM like this:


DATA:       v_id   LIKE thead-tdid,
      v_lang LIKE thead-tdspras,
      v_name LIKE thead-tdname,
      v_obj  LIKE thead-tdobject,
      int_lines LIKE tline OCCURS 0 WITH HEADER LINE.


  CALL FUNCTION 'READ_TEXT'
    EXPORTING
      id                      = v_id
      language                = v_lang
      name                    = v_name
      object                  = v_obj
    TABLES
      lines                   = int_lines
    EXCEPTIONS
      id                      = 1
      language                = 2
      name                    = 3
      not_found               = 4
      object                  = 5
      reference_check         = 6
      wrong_access_to_archive = 7
      OTHERS                  = 8.

Regards,

Naimesh Patel

former_member194669
Active Contributor
0 Kudos

Hi,

In the same screen of text there will be toolbar button the bottom "Call Log" click on that and search for your text id . Then using fm READ_TEXT you can get the values

Former Member
0 Kudos

HI

Check this

l_f_id41 = 'ZX41'.

l_f_name = p_vbeln.

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = l_f_id41

language = g_f_langu

name = l_f_name

object = 'VBBK'

TABLES

lines = g_t_lines41

EXCEPTIONS

id = 1

language = 2

Also check table tvsbt if it helps you .

Hope it helps .

Praveen

Former Member
0 Kudos

Thank you all for the inputs. It helped me a lot.

Regards,

Prathima.

Former Member
0 Kudos

test