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: 

Extending a BAPI generated IDoc

Former Member
0 Kudos

Hi All,

I have a standard SAP IDoc FIXEDASSET_CREATEINCLVALUES02, this IDoc is used to load fixed assets. We have 2 new fields we are adding to this IDoc so we need to extend the IDoc and create a new Segment for the 2 fields.

This IDoc is created by a BAPI "BAPI_FIXEDASSET_OVRTAKE_CREATE". So it is not possible to extend this IDoc like you would in any Basic IDocs.

This 2 new Z fields are already appended in the Database table we are using "ANLU".

Please I need a step by step process to extend this IDoc/Bapi.

Help will be grately appreciated.

Thanks a lot.

Edited by: Basil Balogun on Jan 28, 2011 3:27 PM

1 REPLY 1

Former Member
0 Kudos

Hi Basil,

You don't have to extend the IDOC/BAPI

Usually BAPI's are provided with EXTENSIONIN tables to make changes to custom table... play around with this BAPI and Extensionin tables in SE37 and see if you can update your custom fields ... Please see the documentation for how to update custom fields via BAPI for more information (in BAPI FM document and also in SDN )

Once you have successfully updated your custom fields directly via BAPI,fill the similar segment E1BPPAREX like the EXTENSIONIN parameter and your custom fields should be updated.

there are some examples in SDN for using the extensionin parameter for other BAPI; you can search for examples using "extensionin"

http://help.sap.com/saphelp_45b/helpdata/en/3e/0e1089c24611d1ad09080009b0fb56/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/6b/3f6d2b6d0711d396a50004ac96334b/content.htm