Skip to Content
0
Former Member
Jun 28, 2016 at 11:05 AM

CALL TRANSACTION 'SU01' USING bdcdata

933 Views

Dear experts,


I have implemented a method for a 2xclick event of an alv grid, which shows the user (CALL TA 'SU01'), please see code below.

Everything works fine, but when I click the back button, I don't get back to the ALV Grid screen, but to the User Maintenance Screen of SU01. Then I have to click back again to navigate back to the ALV grid.

Is there any way to avoid the back button to jump to the User Maintenance Screen through the batch input?

Is there any parameter id for display? I have not found that yet... If there would be any, I could CALL TRANSACTION 'SU01' AND SKIP FIRST SCREEN.

Please advise me how to proceed.

Also, could you please be so kind and explain how can I find certain parameters like 'MXX' for MM03? I know I can look into TPARA, or furher characteristics of a data element, but how can I find which hidden parameters like 'MXX' for TA MM03 or 'KDY' for TA MK03 I have to use for each transaction?


IF e_column = 'USERNAME' OR e_column = 'FULLNAME'.

READ TABLE gt_cdresults INDEX e_row INTO gs_cdresults.

SET PARAMETER ID 'XUS' FIELD gs_cdresults-username.

CLEAR bdcdata_tab.

CLEAR opt.

CLEAR bdcdata_wa.

bdcdata_wa-program = 'SAPLSUU5'.

bdcdata_wa-dynpro = '0050'.

bdcdata_wa-dynbegin = 'X'.

APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.

bdcdata_wa-fnam = 'USR02-BNAME'.

bdcdata_wa-fval = gs_cdresults-username.

APPEND bdcdata_wa TO bdcdata_tab.

CLEAR bdcdata_wa.

bdcdata_wa-fnam = 'BDC_OKCODE'.

bdcdata_wa-fval = '=SHOW'.

APPEND bdcdata_wa TO bdcdata_tab.

opt-DISMODE = 'E'.

CALL TRANSACTION 'SU01' USING bdcdata_tab

OPTIONS FROM opt.

ENDIF.

Thank you for your help!

BR,

Matei