11-07-2007 5:33 PM
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.
11-07-2007 5:41 PM
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
11-07-2007 5:44 PM
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
a®
11-08-2007 2:08 AM
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
11-08-2007 10:14 AM
Thank you all for the inputs. It helped me a lot.
Regards,
Prathima.
11-08-2007 10:49 AM