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

CALL BAPI Function with SuperUser ID

colin_cheong
Contributor
0 Likes
984

I need to call a BAPI function 'BAPI_MATERIAL_MAINTAINDATA_RT' using a Super User ID.

Can someone guide me on the syntax?

Call 'BAPI_MATERIAL_MAINTAINDATA_RT'

Desitination ....

I need to know how to put in the superuser-ID.

Thanks

4 REPLIES 4
Read only

Former Member
0 Likes
828

Hi Colin ,

Is your program going to be scheduled in a background mode ? if so create your program in a normal way and Request your BASIS team to Schedule your program with Super user ID.

In forground when you execute the program current user ID will be taken automatically.

Read only

0 Likes
828

Hi,

I really need to run it online.

I really need to know how to add in the SuperUser ID.

This is in accordance with OSS note. However, the note stopped short of how to add the syntax.

Can you help?

Thanks

Read only

0 Likes
828

Hi Colin,

Please Create a Custome Report and call your BAPI inside that. then you can use

SUBMIT statement to call the custom report in addition to user ID. THis way you can adopt the same.

SUBMIT zprogram
     VIA JOB     jobname
         NUMBER jobcount
         USER    Super_user_ID
     WITH SELECTION-TABLE lt_par_tab   "<-- selection table of custom program.
                AND RETURN.

For example Please refer the thread

[;

Read only

colin_cheong
Contributor
0 Likes
828

I had managed to set the destination "XXXX" as per SM59 using a superuser-id to get out and get in as a SuperUser to overcome the authorization check