cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI before sending PO to R3 and Vendor

Former Member
0 Kudos

Hi all,

I want to integrate "Card Service System" with SRM just before posting the PO to R3 and to Vendor.

I think I need to achieve this through BAPI. Can anybody tell me how to achieve this.

I need to

1) send some data to Card service system

2) after processing it will send me desired data

3) I need to modify the PO with this data

4) post the PO.

Thanks,

Smita

Accepted Solutions (0)

Answers (1)

Answers (1)

yann_bouillut
Active Contributor
0 Kudos

Hi Smita,

I guess your are using classic or extended classic scenario.

Why not using a BADI ?

1- BBP_CREATE_PO_BACK or BBP_CREATE_BE_PO_NEW depending on your SRM release.

You could call your external system and change PO data to be created in your backend.

2- For ECS scenario, you can use BBP_ECS_PO_OUT_BADI

Kind regards,

Yann

Former Member
0 Kudos

hi Yann,

thanks for such a quick response.

But I need to

1) call the external system

2) get the data

3) update PO

4) send it to vendor & R3 (which is already in place)

Is it possible to achieve by BBP_ECS_PO_OUT_BADI. I understood that it is called before sending data to backend. Is it called even before sending data to Vendor.

In the BADI how will i call the external system, RFC call or a BAPI. Pls suggest

Former Member
0 Kudos

just to add --- I am using Extended Classic scenario.

yann_bouillut
Active Contributor
0 Kudos

Hi Smita,

For ECS and PO change, you should therefore use BBP_DOC_CHANGE_BADI.

This way, you should be able to call your external system (through RFC for example) and modify PO data before PO output to vendor and PO transfer to R/3.

Regards,

Yann

Former Member
0 Kudos

Hi Yann,

During change of PO I could able to go to this BADI Great!!

I have only one concern-

Is there any BADI which is getting triggered only when we are saying "ORDER" from the buyers login.

Will this same BADI will be called when we are doing catalog buy and PO is getting created automatically. As this BADI is on Doc change ( so i have doubt whether it will be called in catalog buy scenario).

Please suggest me some single point where i can call the Interface. I want to use the same development for the catalog buy and non catalog buy.

Any Idea anybody....

Thanks

yann_bouillut
Active Contributor
0 Kudos

Hi Smita,

This BADI can be used for catalog and non catalog process.

What do you mean with "Order from the buyer login" ?

You want the badi to be triggered only for user with role equal to purchaser and that click on order button ?

-> Please check BADI BBP_DOC_SAVE.

Hope this help

Regards,

Yann

PS : please do not forget to reward )