SAP Function Modules

FIP_EXT_RP_MAP_TAB_2_RANGE_TAB SAP Function module - Convert Tables to Range Tables







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

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


Pattern for FM FIP_EXT_RP_MAP_TAB_2_RANGE_TAB - FIP EXT RP MAP TAB 2 RANGE TAB





CALL FUNCTION 'FIP_EXT_RP_MAP_TAB_2_RANGE_TAB' "Convert Tables to Range Tables
* EXPORTING
*   it_doc_number_gr =          " fip_t_rp_doc_number_gr  Table Type: Document Number Goods Receipt
*   it_doc_year =               " fip_t_rp_doc_year  Table Type: Document Year
*   it_doc_item_gr =            " fip_t_rp_doc_item_gr  Table Type: Document Item Number Goods Receipt
*   it_item_counter =           " fip_t_rp_item_counter  Table Type: Sequence Number
*   it_doc_number_proc =        " fip_t_rp_doc_number_proc  Table Type: Document Number Procurement
*   it_doc_item_proc =          " fip_t_rp_doc_item_proc  Table Type: Document Item Number Procurement
*   it_matnr_proc =             " fip_t_rp_matnr_proc  Table Type: Product Number Procurement
*   it_quantity_proc =          " fip_t_rp_quantity_proc  Table Type: Quantity Procurement
*   it_uom_proc =               " fip_t_rp_uom_proc  Table Type: Unit of Measure Procurement
*   it_quantity_gr =            " fip_t_rp_quantity_gr  Table Type: Quantity Goods Receipt
*   it_uom_gr =                 " fip_t_rp_uom_gr  Table Type: Unit of Measure Goods Receipt
*   it_matnr_alt =              " fip_t_rp_matnr_alt  Table Type: Alternative Product Number
*   it_quantity_alt =           " fip_t_rp_quantity_alt  Table Type: Quantity alternative Product
*   it_uom_alt =                " fip_t_rp_uom_alt  Table Type: Unit of Measure alternative Product
*   it_item_type =              " fip_t_rp_item_type  Table Type: Item Type
*   it_ernam =                  " fip_t_rp_ernam  Table Type: Name of the Person who created the Object
  IMPORTING
    et_doc_number_gr =          " fip_rt_rp_doc_number_gr  Range Table Type: Document Number Goods Receipt
    et_doc_year =               " fip_rt_rp_doc_year  Range Table Type: Document Year
    et_doc_item_gr =            " fip_rt_rp_doc_item_gr  Range Table Type: Document Item Number Goods Receipt
    et_item_counter =           " fip_rt_rp_item_counter  Range Table Type: Sequence Number
    et_doc_number_proc =        " fip_rt_rp_doc_number_proc  Range Table Type: Document Number Procurement
    et_doc_item_proc =          " fip_rt_rp_doc_item_proc  Range Table Type: Document Item Number Procurement
    et_matnr_proc =             " fip_rt_rp_matnr_proc  Range Table Type: Product Number Procurement
    et_quantity_proc =          " fip_rt_rp_quantity_proc  Range Table Type: Quantity Procurement
    et_uom_proc =               " fip_rt_rp_uom_proc  Range Table Type: Unit of Measure Procurement
    et_quantity_gr =            " fip_rt_rp_quantity_gr  Range Table Type: Quantity Goods Receipt
    et_uom_gr =                 " fip_rt_rp_uom_gr  Range Table Type: Unit of Measure Goods Receipt
    et_matnr_alt =              " fip_rt_rp_matnr_alt  Range Table Type: Alternative Product Number
    et_quantity_alt =           " fip_rt_rp_quantity_alt  Range Table Type: Quantity alternative Product
    et_uom_alt =                " fip_rt_rp_uom_alt  Range Table T ype: Unit of Measure Alternative Product
    et_item_type =              " fip_rt_rp_item_type  Range Table Type: Item Type
    et_ernam =                  " fip_rt_rp_ernam  Range Table Type: Name of  the Person who Created the Object
    .  "  FIP_EXT_RP_MAP_TAB_2_RANGE_TAB

ABAP code example for Function Module FIP_EXT_RP_MAP_TAB_2_RANGE_TAB





The ABAP code below is a full code listing to execute function module FIP_EXT_RP_MAP_TAB_2_RANGE_TAB 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_et_doc_number_gr  TYPE FIP_RT_RP_DOC_NUMBER_GR ,
ld_et_doc_year  TYPE FIP_RT_RP_DOC_YEAR ,
ld_et_doc_item_gr  TYPE FIP_RT_RP_DOC_ITEM_GR ,
ld_et_item_counter  TYPE FIP_RT_RP_ITEM_COUNTER ,
ld_et_doc_number_proc  TYPE FIP_RT_RP_DOC_NUMBER_PROC ,
ld_et_doc_item_proc  TYPE FIP_RT_RP_DOC_ITEM_PROC ,
ld_et_matnr_proc  TYPE FIP_RT_RP_MATNR_PROC ,
ld_et_quantity_proc  TYPE FIP_RT_RP_QUANTITY_PROC ,
ld_et_uom_proc  TYPE FIP_RT_RP_UOM_PROC ,
ld_et_quantity_gr  TYPE FIP_RT_RP_QUANTITY_GR ,
ld_et_uom_gr  TYPE FIP_RT_RP_UOM_GR ,
ld_et_matnr_alt  TYPE FIP_RT_RP_MATNR_ALT ,
ld_et_quantity_alt  TYPE FIP_RT_RP_QUANTITY_ALT ,
ld_et_uom_alt  TYPE FIP_RT_RP_UOM_ALT ,
ld_et_item_type  TYPE FIP_RT_RP_ITEM_TYPE ,
ld_et_ernam  TYPE FIP_RT_RP_ERNAM .

DATA(ld_it_doc_number_gr) = 'Check type of data required'.
DATA(ld_it_doc_year) = 'Check type of data required'.
DATA(ld_it_doc_item_gr) = 'Check type of data required'.
DATA(ld_it_item_counter) = 'Check type of data required'.
DATA(ld_it_doc_number_proc) = 'Check type of data required'.
DATA(ld_it_doc_item_proc) = 'Check type of data required'.
DATA(ld_it_matnr_proc) = 'Check type of data required'.
DATA(ld_it_quantity_proc) = 'Check type of data required'.
DATA(ld_it_uom_proc) = 'Check type of data required'.
DATA(ld_it_quantity_gr) = 'Check type of data required'.
DATA(ld_it_uom_gr) = 'Check type of data required'.
DATA(ld_it_matnr_alt) = 'Check type of data required'.
DATA(ld_it_quantity_alt) = 'Check type of data required'.
DATA(ld_it_uom_alt) = 'Check type of data required'.
DATA(ld_it_item_type) = 'Check type of data required'.
DATA(ld_it_ernam) = 'Check type of data required'. . CALL FUNCTION 'FIP_EXT_RP_MAP_TAB_2_RANGE_TAB' * EXPORTING * it_doc_number_gr = ld_it_doc_number_gr * it_doc_year = ld_it_doc_year * it_doc_item_gr = ld_it_doc_item_gr * it_item_counter = ld_it_item_counter * it_doc_number_proc = ld_it_doc_number_proc * it_doc_item_proc = ld_it_doc_item_proc * it_matnr_proc = ld_it_matnr_proc * it_quantity_proc = ld_it_quantity_proc * it_uom_proc = ld_it_uom_proc * it_quantity_gr = ld_it_quantity_gr * it_uom_gr = ld_it_uom_gr * it_matnr_alt = ld_it_matnr_alt * it_quantity_alt = ld_it_quantity_alt * it_uom_alt = ld_it_uom_alt * it_item_type = ld_it_item_type * it_ernam = ld_it_ernam IMPORTING et_doc_number_gr = ld_et_doc_number_gr et_doc_year = ld_et_doc_year et_doc_item_gr = ld_et_doc_item_gr et_item_counter = ld_et_item_counter et_doc_number_proc = ld_et_doc_number_proc et_doc_item_proc = ld_et_doc_item_proc et_matnr_proc = ld_et_matnr_proc et_quantity_proc = ld_et_quantity_proc et_uom_proc = ld_et_uom_proc et_quantity_gr = ld_et_quantity_gr et_uom_gr = ld_et_uom_gr et_matnr_alt = ld_et_matnr_alt et_quantity_alt = ld_et_quantity_alt et_uom_alt = ld_et_uom_alt et_item_type = ld_et_item_type et_ernam = ld_et_ernam . " FIP_EXT_RP_MAP_TAB_2_RANGE_TAB
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_et_doc_number_gr  TYPE FIP_RT_RP_DOC_NUMBER_GR ,
ld_it_doc_number_gr  TYPE FIP_T_RP_DOC_NUMBER_GR ,
ld_et_doc_year  TYPE FIP_RT_RP_DOC_YEAR ,
ld_it_doc_year  TYPE FIP_T_RP_DOC_YEAR ,
ld_et_doc_item_gr  TYPE FIP_RT_RP_DOC_ITEM_GR ,
ld_it_doc_item_gr  TYPE FIP_T_RP_DOC_ITEM_GR ,
ld_et_item_counter  TYPE FIP_RT_RP_ITEM_COUNTER ,
ld_it_item_counter  TYPE FIP_T_RP_ITEM_COUNTER ,
ld_et_doc_number_proc  TYPE FIP_RT_RP_DOC_NUMBER_PROC ,
ld_it_doc_number_proc  TYPE FIP_T_RP_DOC_NUMBER_PROC ,
ld_et_doc_item_proc  TYPE FIP_RT_RP_DOC_ITEM_PROC ,
ld_it_doc_item_proc  TYPE FIP_T_RP_DOC_ITEM_PROC ,
ld_et_matnr_proc  TYPE FIP_RT_RP_MATNR_PROC ,
ld_it_matnr_proc  TYPE FIP_T_RP_MATNR_PROC ,
ld_et_quantity_proc  TYPE FIP_RT_RP_QUANTITY_PROC ,
ld_it_quantity_proc  TYPE FIP_T_RP_QUANTITY_PROC ,
ld_et_uom_proc  TYPE FIP_RT_RP_UOM_PROC ,
ld_it_uom_proc  TYPE FIP_T_RP_UOM_PROC ,
ld_et_quantity_gr  TYPE FIP_RT_RP_QUANTITY_GR ,
ld_it_quantity_gr  TYPE FIP_T_RP_QUANTITY_GR ,
ld_it_uom_gr  TYPE FIP_T_RP_UOM_GR ,
ld_et_uom_gr  TYPE FIP_RT_RP_UOM_GR ,
ld_it_matnr_alt  TYPE FIP_T_RP_MATNR_ALT ,
ld_et_matnr_alt  TYPE FIP_RT_RP_MATNR_ALT ,
ld_it_quantity_alt  TYPE FIP_T_RP_QUANTITY_ALT ,
ld_et_quantity_alt  TYPE FIP_RT_RP_QUANTITY_ALT ,
ld_it_uom_alt  TYPE FIP_T_RP_UOM_ALT ,
ld_et_uom_alt  TYPE FIP_RT_RP_UOM_ALT ,
ld_it_item_type  TYPE FIP_T_RP_ITEM_TYPE ,
ld_et_item_type  TYPE FIP_RT_RP_ITEM_TYPE ,
ld_it_ernam  TYPE FIP_T_RP_ERNAM ,
ld_et_ernam  TYPE FIP_RT_RP_ERNAM .

ld_it_doc_number_gr = 'Check type of data required'.
ld_it_doc_year = 'Check type of data required'.
ld_it_doc_item_gr = 'Check type of data required'.
ld_it_item_counter = 'Check type of data required'.
ld_it_doc_number_proc = 'Check type of data required'.
ld_it_doc_item_proc = 'Check type of data required'.
ld_it_matnr_proc = 'Check type of data required'.
ld_it_quantity_proc = 'Check type of data required'.
ld_it_uom_proc = 'Check type of data required'.
ld_it_quantity_gr = 'Check type of data required'.
ld_it_uom_gr = 'Check type of data required'.
ld_it_matnr_alt = 'Check type of data required'.
ld_it_quantity_alt = 'Check type of data required'.
ld_it_uom_alt = 'Check type of data required'.
ld_it_item_type = 'Check type of data required'.
ld_it_ernam = '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 FIP_EXT_RP_MAP_TAB_2_RANGE_TAB or its description.