Skip to Content
avatar image
Former Member

SMP3.0 GW get data based on the user logged in?

Hi Experts,

I setup application with SMP3.0 backend SSO profile as Basic & Security profile as HTTP.

I tried 2 sessions with 2 different users using rest client and updated order details in the SAP system.

But both changes are successful but shows the 1 user id as changed by.

SMP shows 2 sessions with  2 users.

Is it because of RFC destination user credentials on GW? gwdemo_bgrfc_dest? I tested with gwdemo_bgrfc_dest destination logon credentials as Current User. Still the same issue.

How do we program in GW to know who the user logged in?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 11, 2015 at 11:09 AM

    Hi Seenu,

    If you want to check the logged in username, you can put an external breakpoint in the create_entity method and check the sy-uname in the debugger. Advance with one step forward and when you are inside the FM of backend, you can check the sy-uname in backend system. If SSO is correctly established between gateway and backend system and there is no user hard coded in the RFC destination, both sy-uname should be same.

    Please check this link Trusted RFC creation between Gateway (Front End) and ECC (Back end) servers



    Add comment
    10|10000 characters needed characters exceeded

    • Hi Seenu,

      As you said, you have gateway installed on the same system that means it is en embedded scenario. Please make sure that in corresponding methods of your DPC/DPC_EXT class, you are calling the RFC/BAPIs without any destination of 'NONE' as destination.

      Also please put an external breakpoint in the respective method and share the screenshots which shows sy-uname value.