cancel
Showing results for 
Search instead for 
Did you mean: 

How to identify user log in with desktop browser or iPad apps?

0 Kudos

Hi guys,

       Does anyone know how to identify the user log in with desktop browser or iPad apps?

Any suggestion are welcome.

Thanks.

Chris

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Chris,

I assume my suggestion is not the best approach, but you can use an UI Script with a dummy logic to check it, since it is not compatible with iPad, e.g. populate an indicator field... if the script runs it means that the user triggered the script from a laptop

Best regards,

Fernando

0 Kudos

Hi Fernando,

     

    Good proposal since we already know ruby script is not working in iPad.

Thanks a lot.

Chris

Jens-Limbach
Advisor
Advisor
0 Kudos

I did exactly that today myself, I should have checked here first

Answers (1)

Answers (1)

0 Kudos

Please using code as below

  m_user_agent-useragentcode = wdr_task=>request->get_header_field(
if_http_header_fields=>user_agent ).


   DATA: value TYPE abap_bool.

   clur_nw7_server=>detect_user_agent(
     EXPORTING
       useragentcode   = m_user_agent-useragentcode
     IMPORTING
       supported         = value
       platform          = m_user_agent-platform
       useragentversion  = m_user_agent-useragentversion
       useragentname     = m_user_agent-useragentname
       device            = m_user_agent-device
   ).