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 enhancement.

Former Member
0 Kudos

Hi all,

I am using BAPI_ACC_DOCUMENT_POST in my development. This Bapi needs to enchanced to include XREF1_HD field from BKPF table. And later few parameters needs to passed to be it.

Can someone tell me the steps which needs to be followed to enchance the above mentioned BAPI .

Regards

Balu

3 REPLIES 3

former_member642890
Participant
0 Kudos

Hi,

First try to check whether is that an

1. Implicit Enhancement

2. Explicit enhancement

We can create/change the enhancement implementation at the enhancement points provided in the bapi.

Simple procedure.

1.Goto se37, mention your bapi name.

2. click on spiral (enhance source code) Shift+f4.

3. in the menu bar, Edit-enhancement operations->show implicit enhancement.

Then you can place your code in the desired enhancements located in the code with yellow color.

Check this link for more information:

http://help.sap.com/saphelp_nw70/helpdata/en/91/f1e540f8648431e10000000a1550b0/frameset.htm

Former Member
0 Kudos

Hi,

for your requirement you have to use Implicit Enhanement and append the extra field which you want using Append structure.

Try the below steps in this BAPI for impliment the implicit enhancement.

1. In SE37 give your BAPI name. and click 'Enhance[SHIFT+F4].

2. go to the menu Edit->Enhancement Operation->Show Implicit Enhancement

3. it will show the implicit enhancemnt spots. and place the cursor at the end of the FM.

4. Edit->Enhancement Operation->Create.

5. Give the implicit enhancement and write the code and activate the enhancement.

Regards,

Boobalan S.

Former Member
0 Kudos

Thanks