2022 Feb 04 1:13 PM
Hi,
I've been following a blog for creating an IDoc from a BAPI. I've got to the end and have successfully generated my IDoc. However, it only has one level of segments - the top level. In standard IDocs (and the one in the blog, where the SWO1 Business Object used is a copy of a standard one), a Header Segment is created, which all the other segments hang from. I had to create a custom Business Object because of my particular requirements.
What aspect of the BAPI or the Business Object leads to the generation of a Header Segment in the BDBG process? Should I be worried that I don't have one?
Thanks,
Andrew
Hi,
I've been following a blog for creating an IDoc from a BAPI. I've got to the end and have successfully generated my IDoc. However, it only has one level of segments - the top level. In standard IDocs (and the one in the blog, where the SWO1 Business Object used is a copy of a standard one), a Header Segment is created, which all the other segments hang from. I had to create a custom Business Object because of my particular requirements.
What aspect of the BAPI or the Business Object leads to the generation of a Header Segment in the BDBG process? Should I be worried that I don't have one?
Thanks,
Andrew
2022 Feb 04 3:46 PM
The IDoc is exactly the same hierarchy as the BAPI parameters (so, it's quite flat). I don't get your point, could you clarify please? Thanks.
2022 Feb 05 9:25 PM
I think you should not be worried. Can you share with us the full signature of your BAPI ?
It is related to the number and the type of the importing parameters of your BAPI : for example multiple individual fields (iv_p1, iv_p2) and structures (is_struct1) and tables t_imp
2022 Feb 07 9:54 AM
I'm happy that the segments which have been generated match the parameters of the BAPI. What I was wondering is why the IDoc generated in the blog I was following gets an extra, header segment, which is not part of the BAPI signature.
i presume it is because there is some attribute in the SWO1 Business Object which triggers the heaader segment generation, but I can't work out what. My IDoc works, but I would just like to know why I'm missing the usual IDoc header segment.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |