cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a service order in a BAPI

Former Member
0 Kudos

Hi all,

I'm trying working on a BAPI to create a service order using FM crm_service_order_create and crm_order_maintain. When I call the BAPI outside CRM the SO gets created but with a created_by user "RFC_DIAL" although the call was originally made with a different user. Is there a way to force the creation with a different user than the "RFC_DIAL"?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

When you call the BAPI outside the CRM system (eg from R/3) the system will use the RFCs connection user to execute the FM call. You can prevent this behaviour by making the systems "trusted systems", in that case your username will be used when calling the FM from outside CRM.

Take a look at SM59 and look for the RFC connection that is used when calling the FM from outside CRM. In the details of that RFC connection you'll probably see that the RFC connection uses the "RFC_DIAL" user. In order to change this you must select "Current user" and (optionally) create a trusted connection between both systems.

Hope this helps,

Kind regards,

Joost