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

regarding call transaction problem

Former Member
0 Likes
1,220

Dear ABAPRS,

I am using call transaction function for SU01 transaction code, and use skip first screen but the first screen will not spiked.

i attached program code please check it and give me solution.



 DATA: F_SUBRC LIKE SY-SUBRC,
        S_DATA LIKE IT_DATA.

  READ TABLE IT_DATA INDEX P_SELFIELD-TABINDEX INTO S_DATA.


  CASE P_UCOMM.
    WHEN '&IC1'.
      CASE P_SELFIELD-SEL_TAB_FIELD.

        WHEN 'IT_DATA-BNAME'.
          IF S_DATA-BNAME NE ''.
            SET PARAMETER ID 'XUS' FIELD S_DATA-BNAME.


            DATA: IBDCTAB TYPE TABLE OF BDCDATA WITH HEADER LINE.
            DATA OPT TYPE CTU_PARAMS.

            IBDCTAB-PROGRAM = 'SAPLSUU5'.
            IBDCTAB-DYNPRO = '050'.
            IBDCTAB-DYNBEGIN = 'X'.
            IBDCTAB-FNAM =  'BDC_OKCODE'.
*            IBDCTAB-FVAL = '=SHOW'.
            APPEND IBDCTAB.

            IBDCTAB-PROGRAM = 'SAPLSUU5'.
            IBDCTAB-DYNPRO = '0100'.
            IBDCTAB-DYNBEGIN = 'X'.
            IBDCTAB-FNAM = 'BDC_OKCODE'.
*            IBDCTAB-FVAL = '=BACK'.
            APPEND IBDCTAB.

            OPT-DISMODE = 'E'.
            OPT-DEFSIZE = 'X'.

            CALL TRANSACTION 'SU01D' USING IBDCTAB OPTIONS FROM OPT. 

          ENDIF.
      ENDCASE.
  ENDCASE.

Thanks,

Abhilash

10 REPLIES 10
Read only

Former Member
0 Likes
1,067

hi,

USe and skip first screen.in call transaction method

call transaction 'MM03' and skip first screen.

thanks

Read only

0 Likes
1,067

Hi,

In BDC method i think we can not use skip first screen option.

if is it possible then please give me a code.

Thanks,

Abhilash

Read only

0 Likes
1,067

Hi,

Use this code,

CALL TRANSACTION 'SU01' USING BTAB

MODE 'A' MESSAGES INTO MTAB.

Regrds,

Nikhil.

Read only

0 Likes
1,067

hi,

check this link

thanks

Read only

0 Likes
1,067

Hi Abhilash,

Please do a search before You post Your Thread.

[check this link|https://forums.sdn.sap.com/search.jspa?threadID=&q=CALLTRANSACTIONSKIPFIRSTSCREEN&objID=f50&dateRange=all&numResults=15]

Regards,

Suneel G

Read only

0 Likes
1,067

hi

its not working.

Read only

0 Likes
1,067

Hi abhilash.......

when you are using

call Transaction 'tcode' using bdcdata mode <>.

it is not possible to skip the first screen.

but to skip the first screen we can use in these way

if <condition>

call transaction 'VA02' and skip first screen.

Thanks.

Read only

0 Likes
1,067

Hi, Abhilash

Test the following Sample Code Hope will work for you.

DATA: it_bdcdata TYPE TABLE OF bdcdata,
      wa_it_bdcdata LIKE LINE OF it_bdcdata.

DATA opt TYPE ctu_params.

CLEAR wa_it_bdcdata.
wa_it_bdcdata-program  = 'SAPLSUU5'.
wa_it_bdcdata-dynpro   = '050'.
wa_it_bdcdata-dynbegin = 'X'.
APPEND wa_it_bdcdata TO it_bdcdata.

CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'BDC_CURSOR'.
wa_it_bdcdata-fval = 'USR02-BNAME'.
APPEND wa_it_bdcdata TO it_bdcdata.

CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'USR02-BNAME'.
wa_it_bdcdata-fval = 'ADMIN'. " Give USER Here
APPEND wa_it_bdcdata TO it_bdcdata.

CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'BDC_OKCODE'.
wa_it_bdcdata-fval = '=SHOW'.
APPEND wa_it_bdcdata TO it_bdcdata.

opt-dismode = 'E'.

CALL TRANSACTION 'SU01D' USING it_bdcdata OPTIONS FROM opt.

Please Reply if any Issue,

Best Regards,

Faisal

Read only

Former Member
0 Likes
1,067

Hi,

Set parameter ID of the fields present on selection screen and then call Transaction for example,

SET PARAMETER ID 'AUN' FIELD w_vbak-vbeln.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

Please refer following link,

https://wiki.sdn.sap.com/wiki/display/ABAP/ProcesstocreateALVwith+OOPS

Thanks & regards,

ShreeMohan

Edited by: ShreeMohan Pugalia on Jul 30, 2009 6:37 AM

Read only

Former Member
0 Likes
1,067

hi, Faisal Altaf

thanks buddy solve it.