a month ago
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.
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
19 | |
10 | |
9 | |
9 | |
7 | |
6 | |
6 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.