Application Development 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: 

Inbound Idoc processing

Former Member
0 Kudos

Hi all,

i define a new idoc type where several segments:

+Seg_header (custumer number)

++++Seg_item1(material information)

++++Seg_item 2(material information)

When calling function FM

IDOC_INBOUND_ASYNCHRONOUS with the following data, the IDOC is created sucessfully:

Customer A, and material information MAT1 and MAT2

+A

++++MAT1

++++MAT2

When trying to double the lines inside segment Header the error code 60 is raised.

example:

+A

++++MAT1

++++MAT2

++++MAT1(for a diferente material)

++++MAT2(for a diferent material)

Does anyone knows what's wrong?

It works if i put the following (but i don't want this scenario, because if i have 30 materials for the same customer i will repeat 30 times the header data):

+A

++++MAT1

++++MAT2

+A

++++MAT1(for a diferente material)

++++MAT2(for a diferent material)

Can anyone help me please?

Thanks,

Pedro

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Pedro,

If it's necessary to have MAT1 and MAT2 segments in this order you should add a dummy segment in between:

+Seg_header (custumer number)

+++Dummy segment (occurs 0-n)

++++Seg_item1(material information)

++++Seg_item 2(material information)

If you want to keep the structure as it is you should first add all the MAT1 segments and then the MAT2 segments.

Regards,

John.

1 REPLY 1

Former Member
0 Kudos

Hi Pedro,

If it's necessary to have MAT1 and MAT2 segments in this order you should add a dummy segment in between:

+Seg_header (custumer number)

+++Dummy segment (occurs 0-n)

++++Seg_item1(material information)

++++Seg_item 2(material information)

If you want to keep the structure as it is you should first add all the MAT1 segments and then the MAT2 segments.

Regards,

John.