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

BAPI : Table type within a structure ( nested )

Former Member
0 Kudos
474

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
Read only

former_member776318
Participant
0 Kudos
363

That is possible.

Is that your custom BAPI?

9 REPLIES 9
Read only

former_member776318
Participant
0 Kudos
364

That is possible.

Is that your custom BAPI?

Read only

0 Kudos
363

Yes, it is custom BAPI. thanks.

Can you please tell me how to achieve this?

Read only

0 Kudos
363

Hi James Bond,

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

regards

REA

Read only

0 Kudos
363

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

Read only

0 Kudos
363

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

Read only

0 Kudos
363

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

Regards

JB

Read only

0 Kudos
363

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

Read only

0 Kudos
363

For example, if you look at the BAPISDORDER_GETDETAILEDLIST BAPI.

Regards,

Rich Heilman

Read only

0 Kudos
363

Thanks Rich. Thatz what I initially thought.

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

Regards

JB