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: 

BAPI : Table type within a structure ( nested )

Former Member
0 Kudos

Hi Friends,

I have an outbound BAPI through which i am extracting BOM details.

My question : I want to include a table type(for BOM items) within the same structure that contains BOM header. So, for one BOM header I will have multiple BOM items. Is this possible to achieve it in BAPI? If not, what is the alternative.

Regards

Sunil

Edited by: Rob Burbank on May 25, 2010 11:30 AM

1 ACCEPTED SOLUTION

former_member776318
Participant
0 Kudos

That is possible.

Is that your custom BAPI?

9 REPLIES 9

former_member776318
Participant
0 Kudos

That is possible.

Is that your custom BAPI?

0 Kudos

Yes, it is custom BAPI. thanks.

Can you please tell me how to achieve this?

0 Kudos

Hi James Bond,

just add a component to your structure with your table type as component type.

regards

REA

0 Kudos

Thanks guys. But I am not sure if BAPI allows you to go with a nested table structure. does it?

Do you have any standard BAPI that is handling this kind of requirement? or if you can send me some sample, that would be great.

Thanks a bunch!!

Regards

JB

0 Kudos

Since BAPIs are inheritly an RFC function module, I don't think you can have complex structures. Basically RFC functions are callable from outside of the sytem, and complex structures may not be understood by the caller. I think you may get a syntax error when trying to apply a complex structure as a parameter of the BAPI.

Regards,

Rich Heilman

0 Kudos

Thanks Rich. But then, what is the alternative to this? Can you please suggest what your experience says?

Regards

JB

0 Kudos

From what I've seen in the past, basically you would have two table parameters, one for header and one for detail. Each table contains a common key, where you can use this to match up the records after the call.

Regards,

Rich Heilman

0 Kudos

For example, if you look at the BAPISDORDER_GETDETAILEDLIST BAPI.

Regards,

Rich Heilman

0 Kudos

Thanks Rich. Thatz what I initially thought.

Anyway, thanks for your time. I have rewarded points to everyone who replied.

Regards

JB