Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User Credentials in BDC session

Former Member
0 Likes
667

When I record and replay a BDC transaction, even as a background process, the screen that asks for userid and password before taking me to a certain transaction always pops up. This is evident from the recorded code too because the userid and password info are missing.

Is there a way I can send the userid and password forcibly in the code and avoid the prompt ?

Any help would be appreciated.

Thanks,

Yogi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
579

Somewhere in the code, there is an RFC destination used in SM59. Instead of the destination that is there, use one that has a userid and password included. (You may have to create one specific to the transaction you are executing.)

Rob

3 REPLIES 3
Read only

Former Member
0 Likes
580

Somewhere in the code, there is an RFC destination used in SM59. Instead of the destination that is there, use one that has a userid and password included. (You may have to create one specific to the transaction you are executing.)

Rob

Read only

0 Likes
579

Rob,

I think you are thinking in the right direction, except I am not able to find the RFC destination that you were talking about. The following is a sample recording

for my STMS transaction through BDC. Any pointers would be greatly appreciated.


	0000	T	STMS	BS
SAPLTMSU	0100	X		
	0000		BDC_CURSOR	WTMSU-SYSNAM
	0000		BDC_OKCODE	=IMPO
SAPMSSY0	0120	X		
	0000		BDC_CURSOR	08/06
	0000		BDC_OKCODE	=PICK
SAPMSSY0	0120	X		
	0000		BDC_CURSOR	02/03
	0000		BDC_OKCODE	=REFR
SAPMSSY0	0120	X		
	0000		BDC_CURSOR	05/16
	0000		BDC_OKCODE	=FILT
SAPLTMSU_IQ	0504	X		
	0000		BDC_CURSOR	SO_TRKOR-LOW
	0000		BDC_OKCODE	=OKAY
	0000		SO_TRKOR-LOW	C9AK900024
SAPMSSY0	0120	X		
	0000		BDC_CURSOR	09/13
	0000		BDC_OKCODE	=FTPQ
SAPLSPO1	0600	X		
	0000		BDC_OKCODE	=OPT1
SAPMSSY0	0120	X		
	0000		BDC_CURSOR	09/13
	0000		BDC_OKCODE	=IMPS
SAPLTMSU	0220	X		
	0000		BDC_CURSOR	WTMSU-CLIENT
	0000		BDC_OKCODE	=OKAY
	0000		BDC_SUBSCR	SAPLTMSU                                0221SCREEN_HEADER
	0000		GS_DYN220-DIALOG	X
SAPLSPO1	0600	X		
	0000		BDC_OKCODE	=OPT1
SAPMSSY0	0120	X		
	0000		BDC_CURSOR	09/13
	0000		BDC_OKCODE	=REFR
SAPMSSY0	0120	X		
	0000		BDC_CURSOR	09/13
	0000		BDC_OKCODE	=%EX
SAPLTMSU	0100	X		
	0000		BDC_CURSOR	WTMSU-SYSNAM
	0000		BDC_OKCODE	=EXIT

Thanks,

Yogi

Read only

0 Likes
579

I didn't realize you were using STMS. I guess the connection is made by the transaction somehow. You may want to ask a basis person to walk you through the manual process. This may give you some ideas.

Rob