Skip to Content
Jan 03, 2019 at 12:57 AM

Create Sales Order (SO) - BAPI_SALESORDER_CREATEFROMDAT2 - Authority Check

479 Views Last edit Jan 03, 2019 at 01:27 AM 2 rev

Hi, I've created a program that is creating a SO with BAPI_SALESORDER_CREATEFROMDAT2, it is ok. But the user doesn't have authorization to VA01, so, the BAPI returns an error. By compliance, the authorization can't be allowed to the user, but the program has to create the SO.

1.) Is there in the BAPI_SALESORDER_CREATEFROMDAT2 any field to by pass this authority check? I haven't found it. Or;

2.) Do I have to create a program in which it will create a JOB with another user and call the BAPI_SALESORDER_CREATEFROMDAT2? Or;

3.) Call the BAPI_SALESORDER_CREATEFROMDAT2 as a RFC using destination extension?