cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC-XI-FILE Scenario: Error in ABAP Mapping

Former Member
0 Kudos

Dear All,

I am working on IDOC-XI-Flat FIle scenario in which I am using ABAP Mapping as per document "How To Convert an IDoc-XML

structure to a flat file and vice versa in XI 3.0".

I created one customized Idoc for this. The Idoc is reacing XI but its flat file is not getting created. Its giving me following error:

<SAP:Stack>Error in mapping program Z_ABAP_MAPPING_PACKING_LIST (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION) An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference.</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

I have also gone thru threads posted for the same topic earlier but still I am not been to resolve this error.

Please help me out in resolving this error.

Regards,

N.Jain

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member859847
Active Contributor
0 Kudos

HI,

Log saying that, u have problem in the mapping program.

i.e Z_ABAP_MAPPING_PACKING_LIST

the problem is due declaration of data.

i hope that, you have some methods.

those are declared under intialization section in mapping program.

please use start of selection before the method.

other wise, it will come under intilization section.

warm regards

mahesh.

agasthuri_doss
Active Contributor
0 Kudos

Hi,

The exception was not handled. Look at the code and fix the Exception

Regards

Sangeetha