SAP Function Modules

BAPI_IPAK_CREATE SAP Function module - Creates InfoPackage







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

Associated Function Group: RSAB
Released Date: 04.01.2000
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_IPAK_CREATE - BAPI IPAK CREATE





CALL FUNCTION 'BAPI_IPAK_CREATE' "Creates InfoPackage
  EXPORTING
    details =                   " bapi6109      Scheduler: General Data
    scheduling_params =         " bapi6109btch  Scheduler: Scheduling Selections
    destinations =              " bapi6109dest  Scheduler: Target for the data
*   file_params =               " bapi6109file  Scheduler: File Selections
*   hie_params =                " bapi6109hie   Scheduler: Hierarchy Transfer Structure
  IMPORTING
    infopackage =               " bapi6109-infopackage  Logical InfoPackage variant (ID)
  TABLES
*   selections =                " bapi6109sel   Scheduler: Selection Structure
*   infocubes =                 " bapi6109ic    Scheduler: InfoCube Table
*   third_party_params =        " bapi6109tcp   Scheduler: TCPIP External Data Selections
    return =                    " bapiret2      Return parameter
    .  "  BAPI_IPAK_CREATE

ABAP code example for Function Module BAPI_IPAK_CREATE





The ABAP code below is a full code listing to execute function module BAPI_IPAK_CREATE 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_infopackage  TYPE BAPI6109-INFOPACKAGE ,
it_selections  TYPE STANDARD TABLE OF BAPI6109SEL,"TABLES PARAM
wa_selections  LIKE LINE OF it_selections ,
it_infocubes  TYPE STANDARD TABLE OF BAPI6109IC,"TABLES PARAM
wa_infocubes  LIKE LINE OF it_infocubes ,
it_third_party_params  TYPE STANDARD TABLE OF BAPI6109TCP,"TABLES PARAM
wa_third_party_params  LIKE LINE OF it_third_party_params ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_details) = 'Check type of data required'.
DATA(ld_scheduling_params) = 'Check type of data required'.
DATA(ld_destinations) = 'Check type of data required'.
DATA(ld_file_params) = 'Check type of data required'.
DATA(ld_hie_params) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_selections to it_selections.

"populate fields of struture and append to itab
append wa_infocubes to it_infocubes.

"populate fields of struture and append to itab
append wa_third_party_params to it_third_party_params.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_IPAK_CREATE' EXPORTING details = ld_details scheduling_params = ld_scheduling_params destinations = ld_destinations * file_params = ld_file_params * hie_params = ld_hie_params IMPORTING infopackage = ld_infopackage TABLES * selections = it_selections * infocubes = it_infocubes * third_party_params = it_third_party_params return = it_return . " BAPI_IPAK_CREATE
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_infopackage  TYPE BAPI6109-INFOPACKAGE ,
ld_details  TYPE BAPI6109 ,
it_selections  TYPE STANDARD TABLE OF BAPI6109SEL ,
wa_selections  LIKE LINE OF it_selections,
ld_scheduling_params  TYPE BAPI6109BTCH ,
it_infocubes  TYPE STANDARD TABLE OF BAPI6109IC ,
wa_infocubes  LIKE LINE OF it_infocubes,
ld_destinations  TYPE BAPI6109DEST ,
it_third_party_params  TYPE STANDARD TABLE OF BAPI6109TCP ,
wa_third_party_params  LIKE LINE OF it_third_party_params,
ld_file_params  TYPE BAPI6109FILE ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_hie_params  TYPE BAPI6109HIE .

ld_details = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_selections to it_selections.
ld_scheduling_params = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_infocubes to it_infocubes.
ld_destinations = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_third_party_params to it_third_party_params.
ld_file_params = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return.
ld_hie_params = 'Check type of data required'.

SAP Documentation for FM BAPI_IPAK_CREATE


This method creates a new InfoPackage.
The exporting parameter INFOPACKAGE delivers the technical name of the ...See here for full SAP fm documentation

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