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: 

I have made a ztabale 'zres_approval-pernr' and selection screen which is working fine . Now i want to call transection MB22 on parameter s_rsnum ..

Former Member
0 Kudos

MR Authorization Process Steps:

REPORT  zsat_project.

TABLES : zres_approval .

DATA: v_ecode LIKE zres_approval-pernr_d.

DATA: v_posid1 LIKE zres_approval-posid1,

       v_posid2 LIKE zres_approval-posid2,

       v_posid3 LIKE zres_approval-posid3,

       v_posid4 LIKE zres_approval-posid4,

       v_posid5 LIKE zres_approval-posid5,

       v_posid6 LIKE zres_approval-posid6,

       lv_kostl LIKE rkpf-kostl.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .

SELECTION-SCREEN BEGIN OF LINE .

SELECTION-SCREEN COMMENT 1(15) text-007  .

PARAMETERS : s_rsnum TYPE rsnum OBLIGATORY " TABLE NAME - RESB

SELECTION-SCREEN END OF LINE .

SELECTION-SCREEN BEGIN OF LINE .

SELECTION-SCREEN COMMENT 1(15) text-002 .

PARAMETERSs_ecode TYPE pernr_d OBLIGATORY . " TABLE NAME -

SELECTION-SCREEN COMMENT 65(15) text-003 .

PARAMETERS: s_pwrd TYPE password OBLIGATORY .

SELECTION-SCREEN END OF LINE .

SELECTION-SCREEN END OF BLOCK b1 .

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-004 .

SELECTION-SCREEN BEGIN OF LINE .

SELECTION-SCREEN COMMENT 1(15) text-005 .

PARAMETERS:s_opwrd TYPE password .

SELECTION-SCREEN COMMENT 65(15) text-006 .

PARAMETERS: s_npwrd TYPE password .

SELECTION-SCREEN END OF LINE .

SELECTION-SCREEN END OF BLOCK b2 .


2 REPLIES 2

PeterJonker
Active Contributor
0 Kudos

set parameter id 'RES' field s_rsnum.

call transaction MB22 and skip first screen.

raymond_giuseppi
Active Contributor
0 Kudos

Call transaction MB22, put the cursor on reservation field and press F1, then press either F9 or click on technical information, there you should find the Parameter ID to fill. Here you are lucky there is one so just SET PARAMETER ID and CALL TRANSACTION ... AND SKIP FIRST SCREEN.

Just some remarks.

  • Were you unlucky (next time ?) you may be required to look at PBO modules (or report event like INITIALIZATION) to find if and where the transaction looks for the initial values.
  • Remember that the SKIP may not be performed if the dynpro number of the transaction initial screen is statically specified as its next dynpro
  • If no solution found, you may be required to build a small BDC.

Regards,

Raymond