on 02-25-2008 3:18 PM
Hi,
We have a scenario, where we need to convert XML idoc into native idoc and write to a file. I am doing this based on
How To Convert an IDoc-XML structure to a flat file and vice versa in XI 3.0.
When I first executed the scenario, I was getting the following error
Z_ABAP_MAPPING_IDOC_TO_FLAT (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.
After including the try-catch block, now i am just getting a blank file without any conversion.
Can anyone help me on this?
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As per the second link i set the breakpoint and tested the scenario.
i am getting the following errror
ID>APPLICATION_PROGRAM_ERROR</ID>
<P1>Z_ABAP_MAPPING_IDOC_TO_FLAT</P1>
<P2>SAP-ABAP</P2>
<P3>UNCAUGHT_EXCEPTION</P3>
<P4>Program Z_ABAP_MAPPING_IDOC_TO_FLAT===CP Include Z_ABAP_MAPPING_IDOC_TO_FLAT===CM001 Line 1</P4>
<INFO />
<CATEGORY>Application</CATEGORY>
<AREA>MAPPING</AREA>
<RETRY>M</RETRY>
</CX_XMS_SYSTEM_ERROR>
<CX_XMS_SYSERR_MAPPING />
</cls:CX_XMS_SYSERR_MAPPING>
- <cls:CX_SY_NO_HANDLER id="o104">
- <CX_ROOT>
<TEXTID>1F09B73915F6B645E10000000A11447B</TEXTID>
<PREVIOUS href="#o103" />
<KERNEL_ERRID>UNCAUGHT_EXCEPTION</KERNEL_ERRID>
Hi,
It looks to be error in ABAP mapping
To test ABAP mapping in XI use the transaction SXI_MAPPING_TEST after creating a little scenario in the directory.
Or even you could do this with below sample code
Lets create one ABAP mapping class with the method IF_MAPPING~EXECUTE
data: obj type ref to zcl_abap_mapping_test.
data: source type xstring,
result type xstring.
data: param type ref to IF_MAPPING_PARAM,
trace type ref to IF_MAPPING_trace.
create object obj.
try.
CALL METHOD obj->IF_MAPPING~EXECUTE
EXPORTING
SOURCE = source
PARAM = param
TRACE = trace
IMPORTING
RESULT = result.
CATCH CX_MAPPING_FAULT .
ENDTRY.
This is a link very useful for ABAP Mapping :
http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/frameset.htm
Or may be think this exception you need to catch it in the ABAP..
This may help u- http://help.sap.com/saphelp_47x200/helpdata/en/55/bff20efe8c11d4b54a006094b9456f/content.htm
just cross verify with this guide-
Thanks
swarup
Hi,
It looks like mapping is not visible :(. Please check your configuration in exchange profile.
/wg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi !
Please check your code in case you are attempting to access a component using 'NULL' object reference (points to nothing).
Regards,
Matias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.