cancel
Showing results for 
Search instead for 
Did you mean: 

Username in standard RFA FI-GL postings

0 Kudos
812

Hi Experts.

Need your advice on populating user name while posting from PAPM via standard RFA.

We are trying to post data from standard RFA FI -GL Items to S/4 . The field Username is mapped to a formula = CURRENT_USER in Input to RFA function.

In S/4 documents are getting posted with username = 'NXI_USER' and not with user id of person who is executing the standard RFA function. We tried formula SESSION_USER also It is giving same results.

username.jpg

Could you please help with this .Our requirement is to post the SAP user ID of person who is executing the activity/function.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

Kindly set the field value to SY-UNAME for the component header-username. This will assign the current user to the USNAM in ACDOCA Table when you use RFA FI-GLI.

Thanks and best regards,

Neil

0 Kudos

Thanks .It is working directly with RFA.

0 Kudos

Hi Neil

When we use SY-UNAME in RFA formulae editor it works fine .

We have a requirement to capture logged in user id in one of the environment model table .

When we use SY-UNAME in any other functions (Join/View/Writer etc) it gives error during activation-

' Invalid Column name SY'.

Is there any way to derive user id (logged in user) in PAPM functions without depending on RFA.

CURRENT_USER and SESSION_USER both papm formulaes are returning connection user id which is generic ='NXI_USER'


Regards

Padma

Answers (1)

Answers (1)

0 Kudos

Hi,

You can use SESSION_CONTEXT('APPLICATIONUSER') which will derive the user id maintained in PAPM for that user in all the function but for RFA posting, SY-UNAME has to be used as the function will be processed in ABAP layer.

Thanks,

Arbaz.