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

When logging, Start a t-code...

Former Member
0 Likes
1,004

Hi.

Let me know how to set a starting t-code when user logging.

No using set start transaction.

I did it through updating a table related with an User. (not agr_dateu table)

But so sadly, there is no in my memory about the table.

What is the table?

Best regards.

Kil Nam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
919

Hi,

This will also done bya User exit.

Activate the use exit <b>SUSR0001</b>, and write the code in side of the Exit. just write a line Call Transaction 'T_CODE'.

Regards

Sudheer

6 REPLIES 6
Read only

Former Member
0 Likes
919

goto Se11 and search for USR* in table name..

u wil find lot of tables related to USer data

Read only

Former Member
0 Likes
919

Hi,

You find it in AGR_DATEU.

I Update it with the FM:

CALL FUNCTION 'NAVIGATION_SET_START_TCODE'

EXPORTING

UNAME = P_UNAME

START_TCODE = P_TCODE.

Hope it helps:

regards, Dieter

Read only

Former Member
0 Likes
919

Hi,

Problem solved?

Regards, Dieter

Read only

Clemenss
Active Contributor
0 Likes
919

why (not agr_dateu table)?

Read only

Former Member
0 Likes
919

HI,

When I debugged the standard SAP program, I found a call to a FM:

call function 'NAVIGATION_GET_START_TCODE'

exporting

uname = sy-uname

importing

start_tcode = start_tcode.

Inside that FM the stmt is as follows:

SELECT SINGLE * FROM AGR_DATEU WHERE ID = 'START_TCD' AND

UNAME = UNAME .

IF SY-SUBRC <> 0 .

start_Tcode = SPACE.

else.

start_Tcode = AGR_DATEU-reports.

ENDIF .

or use FM:

call function 'NAVIGATION_SET_START_TCODE'

exporting

uname = sy-uname

start_tcode = start_tcode.

to set the start tcode.

Does this help?

Regards

Subramanian

Message was edited by:

Subramanian PL

Message was edited by:

Subramanian PL

Read only

Former Member
0 Likes
920

Hi,

This will also done bya User exit.

Activate the use exit <b>SUSR0001</b>, and write the code in side of the Exit. just write a line Call Transaction 'T_CODE'.

Regards

Sudheer