SAP Function Modules

INHERITANCE_FRAME_PROGRAM SAP Function module - Outline program for execution of data transfer for technical objects







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

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


Pattern for FM INHERITANCE_FRAME_PROGRAM - INHERITANCE FRAME PROGRAM





CALL FUNCTION 'INHERITANCE_FRAME_PROGRAM' "Outline program for execution of data transfer for technical objects
  EXPORTING
    ddic_name_source_object =   " inhb-tobjn    DDIC name of ini. autho. obj.(IRLO/IFLO/EQUI)
*   source_equi = SPACE         " v_equi        Source WA if initial authorization obj.= EQUI
*   source_iflo = SPACE         " iflo          Source WA if initial authorization obj.= IFLO
*   source_irlo = SPACE         " irlo          Source WA if initial authorization obj.= IRLO
*   i_do_equi_inher = 'X'       " iref-iind
*   i_switch_inher = SPACE      " iref-iind
*   ind_no_rmp_inh_possible =   " iref-iind
  IMPORTING
    data_transmitted =          " iref-iind     X = Data transfer carried out
    inheritance_breaks =        " iref-iind     X =Cancellation occurred in data transmission
    ind_address_change =        " iref-iind
    e_inh_break_del =           " xfeld
  EXCEPTIONS
    HISTORY_CHANGE_NOT_ALLOWED = 1  "
    .  "  INHERITANCE_FRAME_PROGRAM

ABAP code example for Function Module INHERITANCE_FRAME_PROGRAM





The ABAP code below is a full code listing to execute function module INHERITANCE_FRAME_PROGRAM 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_data_transmitted  TYPE IREF-IIND ,
ld_inheritance_breaks  TYPE IREF-IIND ,
ld_ind_address_change  TYPE IREF-IIND ,
ld_e_inh_break_del  TYPE XFELD .


SELECT single TOBJN
FROM INHB
INTO @DATA(ld_ddic_name_source_object).

DATA(ld_source_equi) = 'Check type of data required'.
DATA(ld_source_iflo) = 'Check type of data required'.
DATA(ld_source_irlo) = 'Check type of data required'.

DATA(ld_i_do_equi_inher) = some text here

DATA(ld_i_switch_inher) = some text here

DATA(ld_ind_no_rmp_inh_possible) = some text here . CALL FUNCTION 'INHERITANCE_FRAME_PROGRAM' EXPORTING ddic_name_source_object = ld_ddic_name_source_object * source_equi = ld_source_equi * source_iflo = ld_source_iflo * source_irlo = ld_source_irlo * i_do_equi_inher = ld_i_do_equi_inher * i_switch_inher = ld_i_switch_inher * ind_no_rmp_inh_possible = ld_ind_no_rmp_inh_possible IMPORTING data_transmitted = ld_data_transmitted inheritance_breaks = ld_inheritance_breaks ind_address_change = ld_ind_address_change e_inh_break_del = ld_e_inh_break_del EXCEPTIONS HISTORY_CHANGE_NOT_ALLOWED = 1 . " INHERITANCE_FRAME_PROGRAM
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_data_transmitted  TYPE IREF-IIND ,
ld_ddic_name_source_object  TYPE INHB-TOBJN ,
ld_inheritance_breaks  TYPE IREF-IIND ,
ld_source_equi  TYPE V_EQUI ,
ld_ind_address_change  TYPE IREF-IIND ,
ld_source_iflo  TYPE IFLO ,
ld_e_inh_break_del  TYPE XFELD ,
ld_source_irlo  TYPE IRLO ,
ld_i_do_equi_inher  TYPE IREF-IIND ,
ld_i_switch_inher  TYPE IREF-IIND ,
ld_ind_no_rmp_inh_possible  TYPE IREF-IIND .


SELECT single TOBJN
FROM INHB
INTO ld_ddic_name_source_object.

ld_source_equi = 'Check type of data required'.
ld_source_iflo = 'Check type of data required'.
ld_source_irlo = 'Check type of data required'.

ld_i_do_equi_inher = some text here

ld_i_switch_inher = some text here

ld_ind_no_rmp_inh_possible = some text here

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