cancel
Showing results for 
Search instead for 
Did you mean: 

User ID handling when a user connected from an external application to SAP via CPI Middleware

0 Kudos
432

hi Team,

we are using some external application(3rd party) to do some MM and FI documents posting into SAP by using CPI as middle ware.CPI using technical user to connect with SAP system.

there are some custom SOAP web services we are using to do postings. inside those services using standard BAPI's postings are happening.

now the problem is when ever the posting's triggered from external application in SAP BKPF-USNAM and RBKP-USNAM fields are updating with the technical user name used by CPI.

we have original user ID field in the payload who triggered from ext.App.

i searched BADI'S Customer exits, BTE'S ... to change the USNAM field but unfortunately i couldn't fine any info.

so i am planning to pass this user ID to SY-UNAM field but, it's not good idea to change the system variables. i am wondering how can i use original user ID from payload to influence BKPF-USNAM, RBKP-USNAM... does any one have any idea

regards,

Venky.

Accepted Solutions (0)

Answers (1)

Answers (1)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Venky ,

I would sufgest you to put * Allowed headers in runtime configuration of iflow and then enable the trace and see which headers field you are getting who is griggering from external application.In usual case we use client id and secret from btp to authenticate our cpi endpoints due to which actual user who triggered the endpoint will not be known.So I would auggest you to work with 3rd party application to pass the user principle as header and then whitelist the same in cpi(in allowed headers) to get the user who triggered it.

Regards,

Sriprasad Shivaram Bhat