SAP Function Modules

RM_PLANNING_SCREEN SAP Function module







RM_PLANNING_SCREEN is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RM_PLANNING_SCREEN into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: PTRM
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RM_PLANNING_SCREEN - RM PLANNING SCREEN





CALL FUNCTION 'RM_PLANNING_SCREEN' "
  EXPORTING
    erm61r =                    " rm61r
    ecm61x =                    " cm61x
    et450n =                    " t450n
*   eplsc =                     " plsc
*   esfilt =                    " sfilt
  IMPORTING
    ifcode =                    " rm61m-fcode
* TABLES
*   it_mdkex =                  " mdke
*   it_mdlix =                  " mdli
*   it_mdmlx =                  " mdml
*   it_pgbaux =                 " pgbau
    .  "  RM_PLANNING_SCREEN

ABAP code example for Function Module RM_PLANNING_SCREEN





The ABAP code below is a full code listing to execute function module RM_PLANNING_SCREEN including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_ifcode  TYPE RM61M-FCODE ,
it_it_mdkex  TYPE STANDARD TABLE OF MDKE,"TABLES PARAM
wa_it_mdkex  LIKE LINE OF it_it_mdkex ,
it_it_mdlix  TYPE STANDARD TABLE OF MDLI,"TABLES PARAM
wa_it_mdlix  LIKE LINE OF it_it_mdlix ,
it_it_mdmlx  TYPE STANDARD TABLE OF MDML,"TABLES PARAM
wa_it_mdmlx  LIKE LINE OF it_it_mdmlx ,
it_it_pgbaux  TYPE STANDARD TABLE OF PGBAU,"TABLES PARAM
wa_it_pgbaux  LIKE LINE OF it_it_pgbaux .

DATA(ld_erm61r) = 'Check type of data required'.
DATA(ld_ecm61x) = 'Check type of data required'.
DATA(ld_et450n) = 'Check type of data required'.
DATA(ld_eplsc) = 'Check type of data required'.
DATA(ld_esfilt) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_mdkex to it_it_mdkex.

"populate fields of struture and append to itab
append wa_it_mdlix to it_it_mdlix.

"populate fields of struture and append to itab
append wa_it_mdmlx to it_it_mdmlx.

"populate fields of struture and append to itab
append wa_it_pgbaux to it_it_pgbaux. . CALL FUNCTION 'RM_PLANNING_SCREEN' EXPORTING erm61r = ld_erm61r ecm61x = ld_ecm61x et450n = ld_et450n * eplsc = ld_eplsc * esfilt = ld_esfilt IMPORTING ifcode = ld_ifcode * TABLES * it_mdkex = it_it_mdkex * it_mdlix = it_it_mdlix * it_mdmlx = it_it_mdmlx * it_pgbaux = it_it_pgbaux . " RM_PLANNING_SCREEN
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ifcode  TYPE RM61M-FCODE ,
ld_erm61r  TYPE RM61R ,
it_it_mdkex  TYPE STANDARD TABLE OF MDKE ,
wa_it_mdkex  LIKE LINE OF it_it_mdkex,
ld_ecm61x  TYPE CM61X ,
it_it_mdlix  TYPE STANDARD TABLE OF MDLI ,
wa_it_mdlix  LIKE LINE OF it_it_mdlix,
ld_et450n  TYPE T450N ,
it_it_mdmlx  TYPE STANDARD TABLE OF MDML ,
wa_it_mdmlx  LIKE LINE OF it_it_mdmlx,
ld_eplsc  TYPE PLSC ,
it_it_pgbaux  TYPE STANDARD TABLE OF PGBAU ,
wa_it_pgbaux  LIKE LINE OF it_it_pgbaux,
ld_esfilt  TYPE SFILT .

ld_erm61r = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_mdkex to it_it_mdkex.
ld_ecm61x = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_mdlix to it_it_mdlix.
ld_et450n = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_mdmlx to it_it_mdmlx.
ld_eplsc = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_pgbaux to it_it_pgbaux.
ld_esfilt = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RM_PLANNING_SCREEN or its description.