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

Enhancement during BAPI Call

Former Member
0 Likes
2,292

Hi All,

I have created an enhancement in VL01N while creating Delivery.

Now when I do manual Delivery the code is working fine . Enhancement gets triggred and the desired output is achived.

But the problem comes when the I uase BAPI to create the Delivery, whenevr I use BAPI 'BAPI_OUTB_DELIVERY_CREATE_SLS' to create the delivery the enhancement does not get triggered & that logic is not performed so the final result is wrong .

This is not olny in case of delivery, this is in all cases like Creating Invoice, Sales Order etc. We have written some checks in these creation after which these documents should be created. But now when I use BAPI's instead of manual creation these checks dont work and the document get created even when they had not to be created.

Can you please help me in this ASAP.

Thanks,

Sameer

Hi All,

I have created an enhancement in VL01N while creating Delivery.

Now when I do manual Delivery the code is working fine . Enhancement gets triggred and the desired output is achived.

But the problem comes when the I uase BAPI to create the Delivery, whenevr I use BAPI 'BAPI_OUTB_DELIVERY_CREATE_SLS' to create the delivery the enhancement does not get triggered & that logic is not performed so the final result is wrong .

This is not olny in case of delivery, this is in all cases like Creating Invoice, Sales Order etc. We have written some checks in these creation after which these documents should be created. But now when I use BAPI's instead of manual creation these checks dont work and the document get created even when they had not to be created.

Can you please help me in this ASAP.

Thanks,

Sameer

6 REPLIES 6
Read only

Former Member
0 Likes
1,697

Hi,

Are you using SAP standard enhancement / BADI?

Regards

Vinod

Read only

0 Likes
1,697

Hi,

I am using Implicit Enhancement Implementation which normally appears at the begin ang End of Form routines.

Do you have any idea about this.

Thanks,

Sameer

Read only

0 Likes
1,697

Hi Sameer,

I assume that that current bapi is not hitting(Calling ) the piece of code written by you. So you need to put the same piece of code in the corresponding bapi also.

Thanks

Kamath

Read only

Former Member
0 Likes
1,697

Hi Sameer,

Most of the BAPI's internally use CALL TRANSACTION for posting the documents.

So let us know what kind of checks you providing for your code while implementing implicit enhancement option in VL01N.

May be importing parameters are not filled while calling the BAPI for which your code triggers

OR if u have used any tcode checks for your code.

Regards,

Dwarakanath.S

Read only

Former Member
0 Likes
1,697

Hi Sameer,

You have to implement the same piece of code in BAPIs also, even BAPI : BAPI_OUTB_DELIVERY_CREATE_SLS enahncement points.

Please check the feasibility of the same. This BAPi is also calling two BADis badi_dlv_create_sls_extin and badi_dlv_create_extout, probably the implementation of the same will help you to solve your problem.

Please check feasiblity, best wishes,

regards,

Antony Thomas

Read only

Former Member
0 Likes
1,697

You should use the BAPI_TRANSACTION_COMMIT to do the commit work. I think there is no commit work exist in standard bapi.