Application Development 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: 

how to skip two first screens

Former Member
0 Kudos

hi

I want to go to 3rd screen by skipping first two screens?

is it possible by call transaction.....?

if so why?

points willbe awarded for first replay to skip two screens:)

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

If you observe the Most of the SAP transactions, in the first screen we enter the Basic parameters like Document Number and other related parameters like Plant,year etc

then when you press enter the detailed information of the Transaction is displayed.

From here agaion based on our user interaction we navigate to different screens .

So 2nd screen is the most important screen, and depending on user selectiong a particular button/action we navigate to other screens.

In the program generally we pass the first screen compulsory paramters using ther Parameter ID;'s and use the command

Call Transaction <tcode> and skip first screen.

so accordingly we come to the actual 2nd screen where the data will be there.

From here itself we navigate to other screens.

So you are asking to go to third screen,But which button you are going to press in 2nd/data screen is unknown? So how you will tell/know?

Because depending on the button selected/pressed on second screen we navigate to some different screen.

So I hope you under stood the problem/transaction flow of each document how it happens..

<b>Reward points for useful Answers</b>

Regards

Anji

6 REPLIES 6

Former Member
0 Kudos

Hi

If you observe the Most of the SAP transactions, in the first screen we enter the Basic parameters like Document Number and other related parameters like Plant,year etc

then when you press enter the detailed information of the Transaction is displayed.

From here agaion based on our user interaction we navigate to different screens .

So 2nd screen is the most important screen, and depending on user selectiong a particular button/action we navigate to other screens.

In the program generally we pass the first screen compulsory paramters using ther Parameter ID;'s and use the command

Call Transaction <tcode> and skip first screen.

so accordingly we come to the actual 2nd screen where the data will be there.

From here itself we navigate to other screens.

So you are asking to go to third screen,But which button you are going to press in 2nd/data screen is unknown? So how you will tell/know?

Because depending on the button selected/pressed on second screen we navigate to some different screen.

So I hope you under stood the problem/transaction flow of each document how it happens..

<b>Reward points for useful Answers</b>

Regards

Anji

0 Kudos

hi, thanks ps awarded.

i told the same, when somebody asked in an interview long back.

uwe_schieferstein
Active Contributor
0 Kudos

Hello

The following sample report shows how to skip the 2nd screen of transaction SE16. However, one problem remains that when the user goes back (e.g. F3) the skipped screens will be displayed. An alternative would be to use <i>transaction variants</i> (transaction <b>SHD0</b>).

*&---------------------------------------------------------------------*
*& Report  ZUS_SDN_CALL_TCODE_SKIP_SCREEN
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  zus_sdn_call_tcode_skip_screen.


DATA:
  gs_options    TYPE ctu_params,
  gs_bdcdata    TYPE bdcdata,
  gt_bdcdata    TYPE bdcdata_tab.


PARAMETERS:
  p_bukrs    TYPE bukrs  DEFAULT '1000'.





START-OF-SELECTION.

  gs_bdcdata-dynbegin = 'T'.
  gs_bdcdata-fnam     = 'SE16'.
  APPEND gs_bdcdata TO gt_bdcdata.
*
  CLEAR: gs_bdcdata.
  gs_bdcdata-program  = 'SAPLSETB'.
  gs_bdcdata-dynpro   = '0230'.
  gs_bdcdata-dynbegin = 'X'.
  APPEND gs_bdcdata TO gt_bdcdata.
*
  CLEAR: gs_bdcdata.
  gs_bdcdata-fnam     = 'DATABROWSE-TABLENAME'.
  gs_bdcdata-fval     = 'KNB1'.
  APPEND gs_bdcdata TO gt_bdcdata.
  CLEAR: gs_bdcdata.
  gs_bdcdata-fnam     = 'BDC_OKCODE'.
  gs_bdcdata-fval     = '=ANZE'.
  APPEND gs_bdcdata TO gt_bdcdata.
*
  CLEAR: gs_bdcdata.
  gs_bdcdata-program  = '/1BCDWB/DBKNB1'.
  gs_bdcdata-dynpro   = '1000'.
  gs_bdcdata-dynbegin = 'X'.
  APPEND gs_bdcdata TO gt_bdcdata.
*
  CLEAR: gs_bdcdata.
  gs_bdcdata-fnam     = 'I2-LOW'.
  gs_bdcdata-fval     = p_bukrs.
  APPEND gs_bdcdata TO gt_bdcdata.
  CLEAR: gs_bdcdata.
  gs_bdcdata-fnam     = 'BDC_OKCODE'.
  gs_bdcdata-fval     = '=ONLI'.
  APPEND gs_bdcdata TO gt_bdcdata.


  gs_options-dismode = 'E'.
  gs_options-updmode = 'S'.

  CALL TRANSACTION 'SE16' USING gt_bdcdata
                          OPTIONS FROM gs_options.

END-OF-SELECTION.

*  PROGRAM
*  DYNPRO
*  DYNBEGIN
*  FNAM
*  FVAL

Regards

Uwe

Former Member
0 Kudos

Hi

It is NOT possible.

The addition AND SKIP FIRST SCREEN allows you to prevent the initial screen of the new transaction from being displayed. The first screen to be displayed is then the specified Next screen in the screen attributes of the initial screen. If the first screen calls itself as the next screen, you cannot skip it.

Furthermore, the AND SKIP FIRST SCREEN option works only if all mandatory fields on the initial screen of the new transaction are filled completely and correctly with input values from SPA/GPA parameters.

Regards

Raj

Former Member
0 Kudos

Hi,

First screen can be skiped using call transaction AND SKIP FIRST SCREEN CLAUSE.

there is no alternative from SAP for this to skip to 3rd screeen.

instead u can do one thing, call a BDC recordingn routine feel all parameter in 1st and second screen with ok code and it will show 3rd screen.... i hv not tried this .

Jogdand M B

Former Member
0 Kudos

confirmed:)