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

Getting Text from vt02n

Former Member
0 Likes
1,355

Hi Friends ,

I have a shipment no with all the text like the Booking Number , Parcel Tracking Number , Vessel Name and Number under the TEXT tab in VT02N or VT03N .

I need to capture the text and put it on a report .I am not sure which table contains that field .

Please advise.

Hi Friends ,

I have a shipment no with all the text like the Booking Number , Parcel Tracking Number , Vessel Name and Number under the TEXT tab in VT02N or VT03N .

I need to capture the text and put it on a report .I am not sure which table contains that field .

Please advise.

2 REPLIES 2
Read only

Former Member
0 Likes
795

Hi,

You will need to use function module READ_TEXT.

Thanks and Best Regards,

Vikas Bittera.

Read only

Former Member
0 Likes
795

There is table - STXH,STXL

But do not use above tables .

use READ_TEXT FM to get the text.

goto VT02N Transaction -> enter shippment number -> goto text tab ->double click on text -> goto ->header

here you will see text object,text name,text id,langauge,pass these information to READ_TEXT FM

Check the sample program :

data: l_status.

clear: l_status, new_text.

clear theader-tdname.

theader-tdid = 'KOPF'.

theader-tdobject = 'AUFK'.

theader-tdlinesize = 132.

theader-tdspras = 'EN'.

concatenate sy-mandt t_success-aufnr into theader-tdname.

*

call function 'READ_TEXT'

exporting

client = sy-mandt

id = theader-tdid

language = theader-tdspras

name = theader-tdname

object = theader-tdobject

importing

header = theader

tables

lines = tlinetabin

exceptions

id = 01

language = 02

name = 03

not_found = 04

object = 05

reference_check = 06

wrong_access_to_archive = 07.

Thanks

Seshu