cancel
Showing results for 
Search instead for 
Did you mean: 

Convert IDOC XML structure to flat file - and now?

Former Member
0 Kudos

Hi,

we are working with input message ORDERS05 and want to convert it to flat file.

So we used the implementation description from "how to convert an IDOC-XML structure to a flat file....".

Looks like this is a standard procedure described here fitting for all IDOCs.

We followed the guide, making XI ready for Abap-Mapping, implemented the Abap class like described, added an interface mapping with source ORDERS05 to a mess.type dummy destination, added with type Abap-class the class implemented from the guide and completed the Int.Dir. implementation.

For comparism purpose we have two systems as receiver, one with a standard flat file with regular graph.mapping in XI, one with the Abap mapping.

Result:

Error description in SXMB_MONI:

Didn´t expect something like that! The IDOC was delivered successfully to the other simple flat file receiver.

Any idea what we made wrong (we are on SP17) or if there is a standard mistake you can do when following the guide?

Best regards

Dirk

Accepted Solutions (1)

Accepted Solutions (1)

former_member192798
Active Contributor
0 Kudos

Hi Dirk,

Have a look at these. The topic has been already discussed:-

Regards.

Praveen

Answers (2)

Answers (2)

dieter_glau
Explorer
0 Kudos

Hi,

I've got the same problem. He the solution in my case:

The problem is:

My IDOC has no element <STDMES>, but the method IF_MAPPING~EXECUTE from the 'HOW-TO Guide' does not check this situation:

.....
el_element = idocument->find_from_name('STDMES').
ls_edidc-stdmes = el_element->get_value().
....

thows the exception.

Solution:

make shure that the field STDMESis set or change the method to:

.....
el_element = idocument->find_from_name('STDMES').
if not el_element is initial.
    ls_edidc-stdmes = el_element->get_value().
endif.
....

Best regards

Dieter

Former Member
0 Kudos

Hm,

not sure how this should help.

For me it looks like the implementation in the guide described is not a complete one!

regards

Dirk

moorthy
Active Contributor
0 Kudos

HI,

Have just look into this SAP note- 907730

May be useful.

Regards,

Moorthy