Hello,
Using transaction <b>LSMW</b>, I'm trying to post documents by:
1/ Reading a flat textfile (with record end indicator),
2/ Converting data,
3/ Then processing data via FB01 in direct input method.
The input file is not a fixed record length file (headers: 57 characters in length, details: 255 characters in length).
When I try to read this file, I get the following exception:
ASSIGN_OFFSET+LENGTH_TOOLARGE
The problem is that the instruction
read dataset L_FILENAME into G_MAX_BUFFER length L_BUFFER_LENGTH
in the SAP_LSMW_READ_00000001 program always returns 2000 for the variable L_BUFFER_LENGTH when it should return 57 or 255.
Any clue for solving that problem?
Thanks for helping.
--
Daniel