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

Using function READ_TXT

Former Member
0 Likes
764

Hi,

I am using function read_txt for fetching lorrey no. and the dispatch date based on below criteria:

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

ID = 'Z001'

LANGUAGE = SY-LANGU

NAME = WA_VBRP-VGBEL

OBJECT = 'VBBK'

TABLES

LINES = lrno

EXCEPTIONS

OTHERS = 8

The function I am using is inside a custom BAPI and the lorrey no. and date are of char and dats type. Kindly suggest how should I declare the table " lrno" for fetching the data or do I need to change the types in the structure of the BAPI .

Regards,

Ashutosh

6 REPLIES 6
Read only

Former Member
0 Likes
725

Hi,

Pass these two filelds in a Local variable and then use that loacl variable in your FM.

Regards,

Rahul

Read only

Former Member
0 Likes
725

Hi,

Create a stucture of TLINE type ( Interface of FM Read text ),then move your data( lrno ) to this and pass tline structure to FM.

Read only

0 Likes
725

The reply given by you is very useful. But I am still not able to get the output. Can you please elaborate with the code.

Read only

Madhurivs23
Participant
0 Likes
725

Hi

U need to create a table line type from se11.

The table line type will have structure assigned to it which will be like work area once u take values in the internal table.

Declare the internal table as follows:

data: it_tline type tline, wa_tline type tline_structure.

rgds,

Madhuri

Read only

Former Member
0 Likes
725

Hi,

Declare the table as hown below.

data begin of lrno occurs 1.

include structure tline .

data end of lrno.

Regards,

Ginu Litta Raj

Read only

Former Member
0 Likes
725

Hi,

In the Exporting parameters, pass the Client also.

Regards,

Ginu Litta Raj