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 first screen that is not selection screen.

0 Kudos

Hi Experts

I am working on a module pool program where in I am required to call a transaction with skip first screen. the first screen of this transaction is self made screen with screen painter with input boxes and a submit button with an OK_CODE. now I am able to get all the input boxes filled during the call, however as the ok_code is missing it is not skipping first screen, neither does the PAI of first screen of called transaction is getting fired, is there any way to fire it?

1 REPLY 1

0 Kudos

I discovered that once I set the parameter of sy-ucomm and then called the transaction it worked. check the code if you need the help on same


 ACTION = 'VW'.
  value = 'V01'.
  SET PARAMETER ID 'SPM' FIELD SPMON.
  SET PARAMETER ID 'VRS' FIELD VRSIO.
  SET PARAMETER ID 'VKB' FIELD WA_INDEX-L_VKBUR.
  SET PARAMETER ID 'DFM' FIELD ZSDTPLANVRSIO-DAT_FRM.
  SET PARAMETER ID 'DFT' FIELD ZSDTPLANVRSIO-DAT_TO.
  set PARAMETER ID 'ACT' field action.
  set PARAMETER ID 'OKC' field value.

 call TRANSACTION 'ZPLAN_INT' AND SKIP FIRST SCREEN.{/code}
this OKC parameter id holds the value for sy-ucomm and the screen 100 of the called transaction has been skiped and ALV was displayed direct away.

MODULE STATUS_0100 OUTPUT.

SET PF-STATUS 'ZAO_MAIN'.

SET TITLEBAR 'ZAO'.

if pass <> 1.

get PARAMETER ID 'ACT' FIELD action.

get PARAMETER ID 'SPM' FIELD SPMON.

get PARAMETER ID 'VRS' FIELD VRSIO.

get PARAMETER ID 'VKB' FIELD knvv-VKBUR.

get PARAMETER ID 'DFM' FIELD ZSDTPLANVRSIO-DAT_FRM.

get PARAMETER ID 'DFT' FIELD ZSDTPLANVRSIO-DAT_TO.

get PARAMETER ID 'OKC' field sy-ucomm.

  • set PARAMETER ID 'ACT' field action.

endif. {/code}