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

Clarification regarding calling BAPI

Former Member
0 Likes
543

Hi Experts,

I am looking for some information as to how to use a bapi like BAPI_PO_RELEASE. This bapi is supposed to release based on Release code and user id. When we make an RFC call to this BAPI for example like call function BAPI_PO_RELEASE destination 'XXX', will not always take the same user id that was configured when creating the RFC destination 'XXX'? If we need to pass the user  name to this BAPI from whichever system we are calling it through RFC, what can be done?

Thanks.

Ajith C

3 REPLIES 3
Read only

former_member282968
Contributor
0 Likes
499

Hi Ajith,

Please check the Function module documentation in BAPI_PO_RELEASE.

With regards,

Read only

Former Member
0 Likes
499

Hi Ajith,

I dont think you can pass User name to the BAPI.

It takes the user name which has logged in the RFC destination.

Thanks,

Shambu

Read only

RaymondGiuseppi
Active Contributor
0 Likes
499

- If a user id is defined in the RFC destination (1) , this defined user will execute the BAPI in target system.

- If target system considers source system as a trusted system (2), no logon pop-up will be triggered and the same user that called in source system will executes the BAPI in target system.

- If no user id  is defined in the RFC destination, and source system is not trusted, a pop-up logon window will be triggered, user which connects will execute the BAPI in target system.

Regards,

Raymond

(1) Displaying, Maintaining and Testing Destinations

(2) Trusted Systems: Trust Relationships Between SAP Systems