Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata
Error rendering macro 'code': Invalid value specified for parameter 'lang'
TABLES: USR02.
DATA: WA TYPE USR02,
      ITAB TYPE TABLE OF USR02,
      GFLAG TYPE BAPIFLAG,
      LFLAG TYPE BAPIFLAG,
      RET TYPE BAPIRET2,
      RETURN TYPE TABLE OF BAPIRET2.
DATA : S_BNAME TYPE XUBNAME ,
       S_UFLAG TYPE XUUFLAG ,
       S_MODDA TYPE XUMODDATE ,
       S_MODTI TYPE XUMODTIME .
SELECT SINGLE  A~BNAME A~UFLAG A~MODDA A~MODTI  INTO (S_BNAME,S_UFLAG,S_MODDA,S_MODTI)
     FROM USH02 AS A WHERE A~BNAME = 'SMRUTI'         " User Name
                     AND A~MODDA = ( SELECT MAX( B~MODDA )  FROM USH02 AS B WHERE B~BNAME = 'SMRUTI') " User Name
                     AND A~MODTI = ( SELECT MAX( C~MODTI )  FROM USH02 AS C WHERE C~BNAME = 'SMRUTI' AND C~MODDA  = A~MODDA ).  " User Name
WRITE: /1  'User Name :'            ,S_BNAME,
           'User Current Status : ' ,S_UFLAG .

Output :

 

 

 

Regard's

Smruti