Skip to Content
0

Auto navigation to SPRO using BDC call transaction method.

Dec 12, 2016 at 06:12 PM

14

avatar image

Dear Abapers,

I have a small custom requirement. As soon as I log into sap, I should have the SPRO tree opened with the 'Enterprise Structure' sub menu opened.

For this I've developed a sample code shown below. The problem is, the program navigates only till the first screen of SPRO. Further drill down is not possible. Could anyone please help me on this?

Code Snippet:

CLEAR LS_BDCDATA.
REFRESH: LT_BDCDATA[].
LS_BDCDATA-program = 'SAPLS_IMG_TOOL_5'.
LS_BDCDATA-dynpro = '0100'.
LS_BDCDATA-dynbegin = 'X'.
APPEND LS_BDCDATA TO LT_BDCDATA.

LS_BDCDATA-fnam = 'BDC_CURSOR'.
LS_BDCDATA-fval = 'D0100_FAVORITES_1-PROJECT_ID(01)'.
APPEND LS_BDCDATA TO LT_BDCDATA.
*
LS_BDCDATA-fnam = 'BDC_OKCODE'.
LS_BDCDATA-fval = '=REF_IMG'.
APPEND LS_BDCDATA TO LT_BDCDATA.

CALL TRANSACTION 'SPRO' USING LT_BDCDATA MODE 'A'.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers