SAP Function Modules

CNV_10020_ITR_PROPOSAL SAP Function module - Proposals for evaluation rule and parameter assignm. to non-transp. fiel







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

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


Pattern for FM CNV_10020_ITR_PROPOSAL - CNV 10020 ITR PROPOSAL





CALL FUNCTION 'CNV_10020_ITR_PROPOSAL' "Proposals for evaluation rule and parameter assignm. to non-transp. fields
  EXPORTING
*   i_mandt = SY-MANDT          " cnv_10020_rcomp-mandt  Client
    i_packid =                  " cnv_10020_rcomp-packid  Package number
*   i_tabname =                 " cnv_10020_rcomp-tabname  Table name
*   i_fieldname =               " cnv_10020_rcomp-fieldname  Field name
*   i_compname =                " cnv_10020_rcomp-compname  Component name
*   i_relid = SY-SAPRL          " cnv_10020_rcomp-relid  Release
*   i_packid_src = '10020'      " cnv_10020_refobj-pkg_src
*   i_use_distance = 'X'        " cnv_10020_refobj-xfeld
*   i_mass = SPACE              " cnv_10020_refobj-xfeld  Indicator for multiple proposals
*   i_only_rules = SPACE        " cnv_10020_refobj-xfeld  Indicator to only get all suitable rules
*   i_rule_prop_mode = 'S'      " cnv_10020_refobj-rule_prop_mode  Rule suggestion mode
*   i_rulename =                " cnv_10020_rcomp-rulename  Required rule name
  IMPORTING
    e_packid_src =              " cnv_10020_refobj-pkg_src  Source package number
    e_rule_hit =                " cnv_10020_refobj-xfeld  Indicator for RDTOBJ record available for rule I_RULENAME
* TABLES
*   et_rcomp =                  " cnv_10020_rcomp  Assignment of rules to non-transp. field components
*   et_rcparm =                 " cnv_10020_rcparm  Parameters of rules assigned to components
*   et_rules =                  " cnv_10020_rules_f4  Rules for F4-help
*   it_dd03l =                  " dd03l         internal use: for checkman checks
    .  "  CNV_10020_ITR_PROPOSAL

ABAP code example for Function Module CNV_10020_ITR_PROPOSAL





The ABAP code below is a full code listing to execute function module CNV_10020_ITR_PROPOSAL 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_e_packid_src  TYPE CNV_10020_REFOBJ-PKG_SRC ,
ld_e_rule_hit  TYPE CNV_10020_REFOBJ-XFELD ,
it_et_rcomp  TYPE STANDARD TABLE OF CNV_10020_RCOMP,"TABLES PARAM
wa_et_rcomp  LIKE LINE OF it_et_rcomp ,
it_et_rcparm  TYPE STANDARD TABLE OF CNV_10020_RCPARM,"TABLES PARAM
wa_et_rcparm  LIKE LINE OF it_et_rcparm ,
it_et_rules  TYPE STANDARD TABLE OF CNV_10020_RULES_F4,"TABLES PARAM
wa_et_rules  LIKE LINE OF it_et_rules ,
it_it_dd03l  TYPE STANDARD TABLE OF DD03L,"TABLES PARAM
wa_it_dd03l  LIKE LINE OF it_it_dd03l .


SELECT single MANDT
FROM CNV_10020_RCOMP
INTO @DATA(ld_i_mandt).


SELECT single PACKID
FROM CNV_10020_RCOMP
INTO @DATA(ld_i_packid).


SELECT single TABNAME
FROM CNV_10020_RCOMP
INTO @DATA(ld_i_tabname).


SELECT single FIELDNAME
FROM CNV_10020_RCOMP
INTO @DATA(ld_i_fieldname).


SELECT single COMPNAME
FROM CNV_10020_RCOMP
INTO @DATA(ld_i_compname).


SELECT single RELID
FROM CNV_10020_RCOMP
INTO @DATA(ld_i_relid).


DATA(ld_i_packid_src) = some text here

DATA(ld_i_use_distance) = some text here

DATA(ld_i_mass) = some text here

DATA(ld_i_only_rules) = some text here

DATA(ld_i_rule_prop_mode) = some text here

SELECT single RULENAME
FROM CNV_10020_RCOMP
INTO @DATA(ld_i_rulename).


"populate fields of struture and append to itab
append wa_et_rcomp to it_et_rcomp.

"populate fields of struture and append to itab
append wa_et_rcparm to it_et_rcparm.

"populate fields of struture and append to itab
append wa_et_rules to it_et_rules.

"populate fields of struture and append to itab
append wa_it_dd03l to it_it_dd03l. . CALL FUNCTION 'CNV_10020_ITR_PROPOSAL' EXPORTING * i_mandt = ld_i_mandt i_packid = ld_i_packid * i_tabname = ld_i_tabname * i_fieldname = ld_i_fieldname * i_compname = ld_i_compname * i_relid = ld_i_relid * i_packid_src = ld_i_packid_src * i_use_distance = ld_i_use_distance * i_mass = ld_i_mass * i_only_rules = ld_i_only_rules * i_rule_prop_mode = ld_i_rule_prop_mode * i_rulename = ld_i_rulename IMPORTING e_packid_src = ld_e_packid_src e_rule_hit = ld_e_rule_hit * TABLES * et_rcomp = it_et_rcomp * et_rcparm = it_et_rcparm * et_rules = it_et_rules * it_dd03l = it_it_dd03l . " CNV_10020_ITR_PROPOSAL
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_e_packid_src  TYPE CNV_10020_REFOBJ-PKG_SRC ,
ld_i_mandt  TYPE CNV_10020_RCOMP-MANDT ,
it_et_rcomp  TYPE STANDARD TABLE OF CNV_10020_RCOMP ,
wa_et_rcomp  LIKE LINE OF it_et_rcomp,
ld_e_rule_hit  TYPE CNV_10020_REFOBJ-XFELD ,
ld_i_packid  TYPE CNV_10020_RCOMP-PACKID ,
it_et_rcparm  TYPE STANDARD TABLE OF CNV_10020_RCPARM ,
wa_et_rcparm  LIKE LINE OF it_et_rcparm,
ld_i_tabname  TYPE CNV_10020_RCOMP-TABNAME ,
it_et_rules  TYPE STANDARD TABLE OF CNV_10020_RULES_F4 ,
wa_et_rules  LIKE LINE OF it_et_rules,
ld_i_fieldname  TYPE CNV_10020_RCOMP-FIELDNAME ,
it_it_dd03l  TYPE STANDARD TABLE OF DD03L ,
wa_it_dd03l  LIKE LINE OF it_it_dd03l,
ld_i_compname  TYPE CNV_10020_RCOMP-COMPNAME ,
ld_i_relid  TYPE CNV_10020_RCOMP-RELID ,
ld_i_packid_src  TYPE CNV_10020_REFOBJ-PKG_SRC ,
ld_i_use_distance  TYPE CNV_10020_REFOBJ-XFELD ,
ld_i_mass  TYPE CNV_10020_REFOBJ-XFELD ,
ld_i_only_rules  TYPE CNV_10020_REFOBJ-XFELD ,
ld_i_rule_prop_mode  TYPE CNV_10020_REFOBJ-RULE_PROP_MODE ,
ld_i_rulename  TYPE CNV_10020_RCOMP-RULENAME .


SELECT single MANDT
FROM CNV_10020_RCOMP
INTO ld_i_mandt.


"populate fields of struture and append to itab
append wa_et_rcomp to it_et_rcomp.

SELECT single PACKID
FROM CNV_10020_RCOMP
INTO ld_i_packid.


"populate fields of struture and append to itab
append wa_et_rcparm to it_et_rcparm.

SELECT single TABNAME
FROM CNV_10020_RCOMP
INTO ld_i_tabname.


"populate fields of struture and append to itab
append wa_et_rules to it_et_rules.

SELECT single FIELDNAME
FROM CNV_10020_RCOMP
INTO ld_i_fieldname.


"populate fields of struture and append to itab
append wa_it_dd03l to it_it_dd03l.

SELECT single COMPNAME
FROM CNV_10020_RCOMP
INTO ld_i_compname.


SELECT single RELID
FROM CNV_10020_RCOMP
INTO ld_i_relid.


ld_i_packid_src = some text here

ld_i_use_distance = some text here

ld_i_mass = some text here

ld_i_only_rules = some text here

ld_i_rule_prop_mode = some text here

SELECT single RULENAME
FROM CNV_10020_RCOMP
INTO ld_i_rulename.

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