cancel
Showing results for 
Search instead for 
Did you mean: 

loggin intp BSP applications using SAP Dialog user

Former Member
0 Kudos

Hi,

I used SAP - service type user to log into my BSP applications in the following way:

========================================

data: usr type bapialias,

pwd type bapipwd.

data: return type table of bapiret2,

wa_return type bapiret2,

bname type USUSERNAME.

usr = request->get_form_field( 'username' ).

pwd = request->get_form_field( 'password' ).

CALL FUNCTION 'SUSR_INTERNET_USERSWITCH'

EXPORTING

ALIAS = usr

PASSWORD = pwd

IMPORTING

BNAME_AFTER_SWITCH = bname

TABLES

RETURN = return.

loop at return into wa_return.

err_msg = wa_return-message.

endloop.

if bname is not initial.

navigation->goto_page( 'main.htm' ).

endif.

===========================================

From the above, i am able to log in successfully. INow i need to log in as SAP Dialog user. Is there any way where i can log into BSP where the sap users are dialog types..

Thx,

Rajesh

Accepted Solutions (0)

Answers (1)

Answers (1)

raja_thangamani
Active Contributor
0 Kudos

Change the User Type in Tcode SU01 as "Dialog" .

Raja T

Former Member
0 Kudos

Hi Raja,

Thx for the info, but i already have dialog users to whom i need to give the access. I am wondering how to log them in my BSP.

raja_thangamani
Active Contributor
0 Kudos

mm.. Just execute your BSP application. In the popup, enter the dialog username & pwd.

Raja T

Former Member
0 Kudos

Hey Raja,

Thanks for ur timely suggestions.

Now its working fine.

I am closing this issue.