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

Extend BAPI-ALE-Interface-IDOCs

Former Member
0 Likes
933

Hi all,

i want to create and integrate a new segment to an iDoc:

1. Copy the FM affiliated to the original BAPI. Extending the interface by creating a new table(for the new segment)

2. Creating a sub-objecttype in BOR. CHanging the concerned method. Delegating the new FM. Customizing the programm.

3. Generating BAPI-ALE-Interface from the changed BAPI.

The new interface can be created but without the new segment...

I also can't find the additional parameter of the changed method in the created object-type.

Where am i going wrong?

2 REPLIES 2
Read only

PeterJonker
Active Contributor
0 Likes
663

which IDoc you want to extend ? Inbound / Outbound ?

Normally you create the segment and release it with TC we31

Create an extension with WE30 and use the previous created segment and release the extended IDoc.

In the Custom (Z) Function module you perform the logic with your custom fields from the extension and call the right bapi or other program/function module to process your data.

Outbound you use the (z) function module to fill the IDoc segments

Read only

0 Likes
663

Thanks for your answer, but its an IDOC generated by an BAPI.

So the segment would not be generated by WE31, but intern.