cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI Displays user name as "COGI"

Aditya6
Explorer
0 Kudos
146

HI All,

We are using BAPI to perform process order confirmation instead of using COR6N, but we noticed that user name is displayed as "COGI", does any one faced this issue, how to change the user name from "COGI"  to any other user name desired.

Please suggest.

Thanks for ur help.

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Ndubuisi_PALMER
Participant

Dear Aditya

 

To change the user name that appears in the confirmation log, you must ensure that the BAPI is called explicitly within a dialog user session or via an RFC connection that uses a specific technical user. If you're calling the BAPI from middleware such as PI/PO or a background job, verify which user the RFC destination is using. Change the configuration to use the desired user ID, and that name will then appear in the confirmation record.

If you're executing the BAPI from a custom ABAP program, the user executing the program should be a dialog user. In this case, the system will log the SY-UNAME of the session, and it will appear in the confirmation details. Make sure your program is not calling any background job or queue-managed reprocessing logic, which may again default to "COGI".

If you're dealing with mass data processing and still want each posting to reflect the identity of a specific user, consider logging the original user in a custom field or using a custom enhancement to pass the original user name into a user-exit or BADI during confirmation. However, standard BAPI structures do not allow you to override SY-UNAME directly.

Best regards

Aditya6
Explorer
0 Kudos
Hi Ndubuisi_PALMER, Thanks a lot for sharing this information. We will update you if this works once it got implemented. Thanks again for your help. Have a great day.