2008 Jan 07 1:54 PM
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
2008 Jan 07 2:04 PM
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.
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.
2008 Jan 07 2:04 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |