SAP Function Modules

ALE_EXP_VATRMD_ALL_IDOC_CREATE SAP Function module - BAPI -> IDoc: ALE_JBD_VATR_ALL_GET_MULT







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

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


Pattern for FM ALE_EXP_VATRMD_ALL_IDOC_CREATE - ALE EXP VATRMD ALL IDOC CREATE





CALL FUNCTION 'ALE_EXP_VATRMD_ALL_IDOC_CREATE' "BAPI -> IDoc: ALE_JBD_VATR_ALL_GET_MULT
  EXPORTING
*   valuemaintenanceatdate =    " bapi_jbd_str_vt_vm_at_date
*   processextension =          " bapiflag      Einstelliges Kennzeichen
*   serial_id = '0'             " serial-chnum
    msg_type =                  " edi_mestyp    Nachrichtentyp
  TABLES
    transactionkeys =           " bapi_jbd_str_vt_key
*   attributes =                " bapi_jbd_str_vt_at  Attribute
*   valuemaintenances =         " bapi_jbd_str_vt_vm
*   conditionheaders =          " bapi_jbd_str_vt_ch
*   conditionpositions =        " bapi_jbd_str_vt_cp
*   ledgers =                   " bapi_jbd_str_vt_ld  Variables Geschäft: Ledger Zuordnung
*   ledgerpositions =           " bapi_jbd_str_vt_lp
*   selectiondimensions =       " bapi_jbd_str_vt_sd
*   selectioncharacteristics =   " bapi_jbd_str_vt_sc
*   headerattributes =          " bapi_jbd_str_vt_fo_header
*   profitanalyscharacteristics =   " bapi_jbd_str_vt_fo_pa_chars
*   profitanalysattributes =    " bapi_jbd_str_vt_fo_pa_attr
*   profitanalysattraddit =     " bapi_jbd_str_vt_fo_pa_addit
*   profitanalysoppcondhdr =    " bapi_jbd_str_vt_fo_pa_och
*   profitanalysoppcondpos =    " bapi_jbd_str_vt_fo_pa_ocp
*   marketriskcharacteristics =   " bapi_jbd_str_vt_fo_mr_cha
*   marketriskattributes =      " bapi_jbd_str_vt_fo_mr_at
*   creditlimitattributes =     " bapi_jbd_str_vt_fo_cl
*   extkeyfigures =             " bapi_jbd_str_vt_fo_ext
*   extensionin =               " bapiparex     Bezugsstruktur für BAPI-Parameter ExtensionIn / ExtensionOut
    receivers =                 " bdi_logsys
*   communication_documents =   " swotobjid
*   application_objects =       " swotobjid
  EXCEPTIONS
    ERROR_CREATING_IDOCS = 1    "
    .  "  ALE_EXP_VATRMD_ALL_IDOC_CREATE

ABAP code example for Function Module ALE_EXP_VATRMD_ALL_IDOC_CREATE





The ABAP code below is a full code listing to execute function module ALE_EXP_VATRMD_ALL_IDOC_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:
it_transactionkeys  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_KEY,"TABLES PARAM
wa_transactionkeys  LIKE LINE OF it_transactionkeys ,
it_attributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_AT,"TABLES PARAM
wa_attributes  LIKE LINE OF it_attributes ,
it_valuemaintenances  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_VM,"TABLES PARAM
wa_valuemaintenances  LIKE LINE OF it_valuemaintenances ,
it_conditionheaders  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_CH,"TABLES PARAM
wa_conditionheaders  LIKE LINE OF it_conditionheaders ,
it_conditionpositions  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_CP,"TABLES PARAM
wa_conditionpositions  LIKE LINE OF it_conditionpositions ,
it_ledgers  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_LD,"TABLES PARAM
wa_ledgers  LIKE LINE OF it_ledgers ,
it_ledgerpositions  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_LP,"TABLES PARAM
wa_ledgerpositions  LIKE LINE OF it_ledgerpositions ,
it_selectiondimensions  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_SD,"TABLES PARAM
wa_selectiondimensions  LIKE LINE OF it_selectiondimensions ,
it_selectioncharacteristics  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_SC,"TABLES PARAM
wa_selectioncharacteristics  LIKE LINE OF it_selectioncharacteristics ,
it_headerattributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_HEADER,"TABLES PARAM
wa_headerattributes  LIKE LINE OF it_headerattributes ,
it_profitanalyscharacteristics  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_CHARS,"TABLES PARAM
wa_profitanalyscharacteristics  LIKE LINE OF it_profitanalyscharacteristics ,
it_profitanalysattributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_ATTR,"TABLES PARAM
wa_profitanalysattributes  LIKE LINE OF it_profitanalysattributes ,
it_profitanalysattraddit  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_ADDIT,"TABLES PARAM
wa_profitanalysattraddit  LIKE LINE OF it_profitanalysattraddit ,
it_profitanalysoppcondhdr  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_OCH,"TABLES PARAM
wa_profitanalysoppcondhdr  LIKE LINE OF it_profitanalysoppcondhdr ,
it_profitanalysoppcondpos  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_OCP,"TABLES PARAM
wa_profitanalysoppcondpos  LIKE LINE OF it_profitanalysoppcondpos ,
it_marketriskcharacteristics  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_MR_CHA,"TABLES PARAM
wa_marketriskcharacteristics  LIKE LINE OF it_marketriskcharacteristics ,
it_marketriskattributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_MR_AT,"TABLES PARAM
wa_marketriskattributes  LIKE LINE OF it_marketriskattributes ,
it_creditlimitattributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_CL,"TABLES PARAM
wa_creditlimitattributes  LIKE LINE OF it_creditlimitattributes ,
it_extkeyfigures  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_EXT,"TABLES PARAM
wa_extkeyfigures  LIKE LINE OF it_extkeyfigures ,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionin  LIKE LINE OF it_extensionin ,
it_receivers  TYPE STANDARD TABLE OF BDI_LOGSYS,"TABLES PARAM
wa_receivers  LIKE LINE OF it_receivers ,
it_communication_documents  TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM
wa_communication_documents  LIKE LINE OF it_communication_documents ,
it_application_objects  TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM
wa_application_objects  LIKE LINE OF it_application_objects .

DATA(ld_valuemaintenanceatdate) = 'Check type of data required'.
DATA(ld_processextension) = 'Check type of data required'.

DATA(ld_serial_id) = Check type of data required
DATA(ld_msg_type) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_transactionkeys to it_transactionkeys.

"populate fields of struture and append to itab
append wa_attributes to it_attributes.

"populate fields of struture and append to itab
append wa_valuemaintenances to it_valuemaintenances.

"populate fields of struture and append to itab
append wa_conditionheaders to it_conditionheaders.

"populate fields of struture and append to itab
append wa_conditionpositions to it_conditionpositions.

"populate fields of struture and append to itab
append wa_ledgers to it_ledgers.

"populate fields of struture and append to itab
append wa_ledgerpositions to it_ledgerpositions.

"populate fields of struture and append to itab
append wa_selectiondimensions to it_selectiondimensions.

"populate fields of struture and append to itab
append wa_selectioncharacteristics to it_selectioncharacteristics.

"populate fields of struture and append to itab
append wa_headerattributes to it_headerattributes.

"populate fields of struture and append to itab
append wa_profitanalyscharacteristics to it_profitanalyscharacteristics.

"populate fields of struture and append to itab
append wa_profitanalysattributes to it_profitanalysattributes.

"populate fields of struture and append to itab
append wa_profitanalysattraddit to it_profitanalysattraddit.

"populate fields of struture and append to itab
append wa_profitanalysoppcondhdr to it_profitanalysoppcondhdr.

"populate fields of struture and append to itab
append wa_profitanalysoppcondpos to it_profitanalysoppcondpos.

"populate fields of struture and append to itab
append wa_marketriskcharacteristics to it_marketriskcharacteristics.

"populate fields of struture and append to itab
append wa_marketriskattributes to it_marketriskattributes.

"populate fields of struture and append to itab
append wa_creditlimitattributes to it_creditlimitattributes.

"populate fields of struture and append to itab
append wa_extkeyfigures to it_extkeyfigures.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

"populate fields of struture and append to itab
append wa_receivers to it_receivers.

"populate fields of struture and append to itab
append wa_communication_documents to it_communication_documents.

"populate fields of struture and append to itab
append wa_application_objects to it_application_objects. . CALL FUNCTION 'ALE_EXP_VATRMD_ALL_IDOC_CREATE' EXPORTING * valuemaintenanceatdate = ld_valuemaintenanceatdate * processextension = ld_processextension * serial_id = ld_serial_id msg_type = ld_msg_type TABLES transactionkeys = it_transactionkeys * attributes = it_attributes * valuemaintenances = it_valuemaintenances * conditionheaders = it_conditionheaders * conditionpositions = it_conditionpositions * ledgers = it_ledgers * ledgerpositions = it_ledgerpositions * selectiondimensions = it_selectiondimensions * selectioncharacteristics = it_selectioncharacteristics * headerattributes = it_headerattributes * profitanalyscharacteristics = it_profitanalyscharacteristics * profitanalysattributes = it_profitanalysattributes * profitanalysattraddit = it_profitanalysattraddit * profitanalysoppcondhdr = it_profitanalysoppcondhdr * profitanalysoppcondpos = it_profitanalysoppcondpos * marketriskcharacteristics = it_marketriskcharacteristics * marketriskattributes = it_marketriskattributes * creditlimitattributes = it_creditlimitattributes * extkeyfigures = it_extkeyfigures * extensionin = it_extensionin receivers = it_receivers * communication_documents = it_communication_documents * application_objects = it_application_objects EXCEPTIONS ERROR_CREATING_IDOCS = 1 . " ALE_EXP_VATRMD_ALL_IDOC_CREATE
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_valuemaintenanceatdate  TYPE BAPI_JBD_STR_VT_VM_AT_DATE ,
it_transactionkeys  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_KEY ,
wa_transactionkeys  LIKE LINE OF it_transactionkeys,
ld_processextension  TYPE BAPIFLAG ,
it_attributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_AT ,
wa_attributes  LIKE LINE OF it_attributes,
ld_serial_id  TYPE SERIAL-CHNUM ,
it_valuemaintenances  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_VM ,
wa_valuemaintenances  LIKE LINE OF it_valuemaintenances,
ld_msg_type  TYPE EDI_MESTYP ,
it_conditionheaders  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_CH ,
wa_conditionheaders  LIKE LINE OF it_conditionheaders,
it_conditionpositions  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_CP ,
wa_conditionpositions  LIKE LINE OF it_conditionpositions,
it_ledgers  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_LD ,
wa_ledgers  LIKE LINE OF it_ledgers,
it_ledgerpositions  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_LP ,
wa_ledgerpositions  LIKE LINE OF it_ledgerpositions,
it_selectiondimensions  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_SD ,
wa_selectiondimensions  LIKE LINE OF it_selectiondimensions,
it_selectioncharacteristics  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_SC ,
wa_selectioncharacteristics  LIKE LINE OF it_selectioncharacteristics,
it_headerattributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_HEADER ,
wa_headerattributes  LIKE LINE OF it_headerattributes,
it_profitanalyscharacteristics  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_CHARS ,
wa_profitanalyscharacteristics  LIKE LINE OF it_profitanalyscharacteristics,
it_profitanalysattributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_ATTR ,
wa_profitanalysattributes  LIKE LINE OF it_profitanalysattributes,
it_profitanalysattraddit  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_ADDIT ,
wa_profitanalysattraddit  LIKE LINE OF it_profitanalysattraddit,
it_profitanalysoppcondhdr  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_OCH ,
wa_profitanalysoppcondhdr  LIKE LINE OF it_profitanalysoppcondhdr,
it_profitanalysoppcondpos  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_PA_OCP ,
wa_profitanalysoppcondpos  LIKE LINE OF it_profitanalysoppcondpos,
it_marketriskcharacteristics  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_MR_CHA ,
wa_marketriskcharacteristics  LIKE LINE OF it_marketriskcharacteristics,
it_marketriskattributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_MR_AT ,
wa_marketriskattributes  LIKE LINE OF it_marketriskattributes,
it_creditlimitattributes  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_CL ,
wa_creditlimitattributes  LIKE LINE OF it_creditlimitattributes,
it_extkeyfigures  TYPE STANDARD TABLE OF BAPI_JBD_STR_VT_FO_EXT ,
wa_extkeyfigures  LIKE LINE OF it_extkeyfigures,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionin  LIKE LINE OF it_extensionin,
it_receivers  TYPE STANDARD TABLE OF BDI_LOGSYS ,
wa_receivers  LIKE LINE OF it_receivers,
it_communication_documents  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_communication_documents  LIKE LINE OF it_communication_documents,
it_application_objects  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_application_objects  LIKE LINE OF it_application_objects.

ld_valuemaintenanceatdate = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_transactionkeys to it_transactionkeys.
ld_processextension = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_attributes to it_attributes.

ld_serial_id = Check type of data required

"populate fields of struture and append to itab
append wa_valuemaintenances to it_valuemaintenances.
ld_msg_type = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_conditionheaders to it_conditionheaders.

"populate fields of struture and append to itab
append wa_conditionpositions to it_conditionpositions.

"populate fields of struture and append to itab
append wa_ledgers to it_ledgers.

"populate fields of struture and append to itab
append wa_ledgerpositions to it_ledgerpositions.

"populate fields of struture and append to itab
append wa_selectiondimensions to it_selectiondimensions.

"populate fields of struture and append to itab
append wa_selectioncharacteristics to it_selectioncharacteristics.

"populate fields of struture and append to itab
append wa_headerattributes to it_headerattributes.

"populate fields of struture and append to itab
append wa_profitanalyscharacteristics to it_profitanalyscharacteristics.

"populate fields of struture and append to itab
append wa_profitanalysattributes to it_profitanalysattributes.

"populate fields of struture and append to itab
append wa_profitanalysattraddit to it_profitanalysattraddit.

"populate fields of struture and append to itab
append wa_profitanalysoppcondhdr to it_profitanalysoppcondhdr.

"populate fields of struture and append to itab
append wa_profitanalysoppcondpos to it_profitanalysoppcondpos.

"populate fields of struture and append to itab
append wa_marketriskcharacteristics to it_marketriskcharacteristics.

"populate fields of struture and append to itab
append wa_marketriskattributes to it_marketriskattributes.

"populate fields of struture and append to itab
append wa_creditlimitattributes to it_creditlimitattributes.

"populate fields of struture and append to itab
append wa_extkeyfigures to it_extkeyfigures.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

"populate fields of struture and append to itab
append wa_receivers to it_receivers.

"populate fields of struture and append to itab
append wa_communication_documents to it_communication_documents.

"populate fields of struture and append to itab
append wa_application_objects to it_application_objects.

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