Application Development and Automation 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: 
Read only

BDBG IDoc from BAPI - what triggers Header Segment creation?

afordham
Participant
0 Likes
1,610

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

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
1,460

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.

Read only

chaouki_akir
Contributor
0 Likes
1,460

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

Read only

afordham
Participant
0 Likes
1,460

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.