SAP Function Modules

PM_MPLAN_SET_DELETE_FLAG SAP Function module







PM_MPLAN_SET_DELETE_FLAG 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 PM_MPLAN_SET_DELETE_FLAG into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM PM_MPLAN_SET_DELETE_FLAG - PM MPLAN SET DELETE FLAG





CALL FUNCTION 'PM_MPLAN_SET_DELETE_FLAG' "
* EXPORTING
*   i_package_size = 10         " sy-tabix
*   i_test = 'X'                "
*   i_check_plan_in_equi =      "
  IMPORTING
    no_selection_given =        "
    more_documents_to_archive =   "
    count_mplan =               " sy-tabix
    count_warpl_in_equi =       " sy-tabix
    count_call_non_confirmed =   " sy-tabix
    count_no_enqueue =          " sy-tabix
    count_no_authority =        " sy-tabix
    count_status_changed =      " sy-tabix
  TABLES
    i_warpl =                   " ipml_rwarpl
    i_mptyp =                   " ipml_rmptyp
    i_strat =                   " ipml_rstrat
    i_equnr =                   " ipml_requnr
    i_tplnr =                   " ipml_rtplnr
    i_kdauf =                   " ipml_rkdauf
    i_kdpos =                   " ipml_rkdpos
    .  "  PM_MPLAN_SET_DELETE_FLAG

ABAP code example for Function Module PM_MPLAN_SET_DELETE_FLAG





The ABAP code below is a full code listing to execute function module PM_MPLAN_SET_DELETE_FLAG 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_no_selection_given  TYPE STRING ,
ld_more_documents_to_archive  TYPE STRING ,
ld_count_mplan  TYPE SY-TABIX ,
ld_count_warpl_in_equi  TYPE SY-TABIX ,
ld_count_call_non_confirmed  TYPE SY-TABIX ,
ld_count_no_enqueue  TYPE SY-TABIX ,
ld_count_no_authority  TYPE SY-TABIX ,
ld_count_status_changed  TYPE SY-TABIX ,
it_i_warpl  TYPE STANDARD TABLE OF IPML_RWARPL,"TABLES PARAM
wa_i_warpl  LIKE LINE OF it_i_warpl ,
it_i_mptyp  TYPE STANDARD TABLE OF IPML_RMPTYP,"TABLES PARAM
wa_i_mptyp  LIKE LINE OF it_i_mptyp ,
it_i_strat  TYPE STANDARD TABLE OF IPML_RSTRAT,"TABLES PARAM
wa_i_strat  LIKE LINE OF it_i_strat ,
it_i_equnr  TYPE STANDARD TABLE OF IPML_REQUNR,"TABLES PARAM
wa_i_equnr  LIKE LINE OF it_i_equnr ,
it_i_tplnr  TYPE STANDARD TABLE OF IPML_RTPLNR,"TABLES PARAM
wa_i_tplnr  LIKE LINE OF it_i_tplnr ,
it_i_kdauf  TYPE STANDARD TABLE OF IPML_RKDAUF,"TABLES PARAM
wa_i_kdauf  LIKE LINE OF it_i_kdauf ,
it_i_kdpos  TYPE STANDARD TABLE OF IPML_RKDPOS,"TABLES PARAM
wa_i_kdpos  LIKE LINE OF it_i_kdpos .

DATA(ld_i_package_size) = '123 '.
DATA(ld_i_test) = 'some text here'.
DATA(ld_i_check_plan_in_equi) = 'some text here'.

"populate fields of struture and append to itab
append wa_i_warpl to it_i_warpl.

"populate fields of struture and append to itab
append wa_i_mptyp to it_i_mptyp.

"populate fields of struture and append to itab
append wa_i_strat to it_i_strat.

"populate fields of struture and append to itab
append wa_i_equnr to it_i_equnr.

"populate fields of struture and append to itab
append wa_i_tplnr to it_i_tplnr.

"populate fields of struture and append to itab
append wa_i_kdauf to it_i_kdauf.

"populate fields of struture and append to itab
append wa_i_kdpos to it_i_kdpos. . CALL FUNCTION 'PM_MPLAN_SET_DELETE_FLAG' * EXPORTING * i_package_size = ld_i_package_size * i_test = ld_i_test * i_check_plan_in_equi = ld_i_check_plan_in_equi IMPORTING no_selection_given = ld_no_selection_given more_documents_to_archive = ld_more_documents_to_archive count_mplan = ld_count_mplan count_warpl_in_equi = ld_count_warpl_in_equi count_call_non_confirmed = ld_count_call_non_confirmed count_no_enqueue = ld_count_no_enqueue count_no_authority = ld_count_no_authority count_status_changed = ld_count_status_changed TABLES i_warpl = it_i_warpl i_mptyp = it_i_mptyp i_strat = it_i_strat i_equnr = it_i_equnr i_tplnr = it_i_tplnr i_kdauf = it_i_kdauf i_kdpos = it_i_kdpos . " PM_MPLAN_SET_DELETE_FLAG
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_no_selection_given  TYPE STRING ,
ld_i_package_size  TYPE SY-TABIX ,
it_i_warpl  TYPE STANDARD TABLE OF IPML_RWARPL ,
wa_i_warpl  LIKE LINE OF it_i_warpl,
ld_more_documents_to_archive  TYPE STRING ,
ld_i_test  TYPE STRING ,
it_i_mptyp  TYPE STANDARD TABLE OF IPML_RMPTYP ,
wa_i_mptyp  LIKE LINE OF it_i_mptyp,
ld_count_mplan  TYPE SY-TABIX ,
ld_i_check_plan_in_equi  TYPE STRING ,
it_i_strat  TYPE STANDARD TABLE OF IPML_RSTRAT ,
wa_i_strat  LIKE LINE OF it_i_strat,
ld_count_warpl_in_equi  TYPE SY-TABIX ,
it_i_equnr  TYPE STANDARD TABLE OF IPML_REQUNR ,
wa_i_equnr  LIKE LINE OF it_i_equnr,
ld_count_call_non_confirmed  TYPE SY-TABIX ,
it_i_tplnr  TYPE STANDARD TABLE OF IPML_RTPLNR ,
wa_i_tplnr  LIKE LINE OF it_i_tplnr,
ld_count_no_enqueue  TYPE SY-TABIX ,
it_i_kdauf  TYPE STANDARD TABLE OF IPML_RKDAUF ,
wa_i_kdauf  LIKE LINE OF it_i_kdauf,
ld_count_no_authority  TYPE SY-TABIX ,
it_i_kdpos  TYPE STANDARD TABLE OF IPML_RKDPOS ,
wa_i_kdpos  LIKE LINE OF it_i_kdpos,
ld_count_status_changed  TYPE SY-TABIX .

ld_i_package_size = '123 '.

"populate fields of struture and append to itab
append wa_i_warpl to it_i_warpl.
ld_i_test = 'some text here'.

"populate fields of struture and append to itab
append wa_i_mptyp to it_i_mptyp.
ld_i_check_plan_in_equi = 'some text here'.

"populate fields of struture and append to itab
append wa_i_strat to it_i_strat.

"populate fields of struture and append to itab
append wa_i_equnr to it_i_equnr.

"populate fields of struture and append to itab
append wa_i_tplnr to it_i_tplnr.

"populate fields of struture and append to itab
append wa_i_kdauf to it_i_kdauf.

"populate fields of struture and append to itab
append wa_i_kdpos to it_i_kdpos.

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 PM_MPLAN_SET_DELETE_FLAG or its description.