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

Error IMPORT_LOGFILE_KEY_TOO_SHORT

Former Member
0 Likes
825

Hello,

I am getting a strange error 'IMPORT_LOGFILE_KEY_TOO_SHORT' when i execute a program in background mode. however, if i run the program in foreground mode, there is no error and the program is executed correctly.

The dump analysis is as below:

Error analysis

-


IMPORT ... FROM LOGFILE ID <ID> expects a structure that consists of

the update key and a counter.

How to correct the error

-


Field for <ID> wrongly defined in IMPORT FROM LOGFILE ID <ID>.

This must be an internal structure that contains the update key

followed by an integer counter.

Information on where termination occurred

-


The termination occurred in the ABAP program "SAPLSTXI" in

"REFER_TEXT_AFTER_COMMIT".

The main program was "SAPMSSY4 ".

The termination occurred in line 14 of the source code of the (Include)

program "LSTXIV05"

of the source code of program "LSTXIV05" (when calling the editor 140).

The program "SAPLSTXI" was started as a background job.

Source code extract

-


000010 *******************************************************************

000020 * THIS FILE IS GENERATED BY THE FUNCTION LIBRARY. *

000030 * NEVER CHANGE IT MANUALLY, PLEASE! *

000040 *******************************************************************

000050 FORM REFER_TEXT_AFTER_COMMIT USING %_KEY.

000060

000070 DATA: INSERT LIKE ITCIN-INSERT .

000080 DATA: BEGIN OF TEXTREFERENCES OCCURS 100.

000090 INCLUDE STRUCTURE THEAD .

000100 DATA: END OF TEXTREFERENCES .

000110

000120 INSERT = ' ' .

000130

> IMPORT

000150 INSERT

000160 TEXTREFERENCES

000170 FROM LOGFILE ID %_KEY.

000180

000190 CALL FUNCTION 'REFER_TEXT_AFTER_COMMIT'

000200 EXPORTING

000210 INSERT = INSERT

000220 TABLES

000230 TEXTREFERENCES = TEXTREFERENCES

000240 .

000250

000260 ENDFORM.

I am not able to understand why is the error occuring only in background mode and not in foreground one? any pointers will be extremely helpful and appreciated.

Thanks,

Raghav.

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
771

IMPORT ... FROM LOGFILE ID <ID>

the structure deceleration should be the problem...

The structure of the table used in Import and Export need to be same....

Read only

0 Likes
771

Hi J@y,

I know that, but the place where the declaration is there is standard SAP code. I cannot change it. Also i fail to understand how it runs successfully in the foreground but fails in background mode.

Any idea on this? Please do let me know.

Cheers,

Raghav.

Read only

0 Likes
771

there might have some condition where the data being sent to memory... if its a std. code... either you have to look for a Note or check why the structures are diff... and some how try to make the structures similar...

Read only

0 Likes
771

Closing thread.