‎2009 Nov 19 7:15 AM
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
‎2009 Nov 19 7:18 AM
Hi,
Pass these two filelds in a Local variable and then use that loacl variable in your FM.
Regards,
Rahul
‎2009 Nov 19 7:20 AM
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.
‎2009 Nov 19 8:03 AM
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.
‎2009 Nov 19 7:33 AM
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
‎2009 Nov 19 8:19 AM
Hi,
Declare the table as hown below.
data begin of lrno occurs 1.
include structure tline .
data end of lrno.
Regards,
Ginu Litta Raj
‎2009 Nov 19 8:21 AM
Hi,
In the Exporting parameters, pass the Client also.
Regards,
Ginu Litta Raj