SAP Function Modules

BBP_IV_ASSIGNMENT_LEAN SAP Function module - Rechnung aus lean POs vorschlagen







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

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


Pattern for FM BBP_IV_ASSIGNMENT_LEAN - BBP IV ASSIGNMENT LEAN





CALL FUNCTION 'BBP_IV_ASSIGNMENT_LEAN' "Rechnung aus lean POs vorschlagen
  EXPORTING
    is_parameter =              " bbp_iv_parameter  allgemeine IV Parameter
*   iv_subtype =                " bbp_h_subtype  Ausprägung eines BuisinessDocuments
*   iv_subdcind =               " bbp_subdcind  Nachbelastung-/ Nachentlastungs-Kennzeichen
*   iv_inp_type =               " bbp_inp_type  Erstellungs-Kennzeichen (Dialog, XML etc.)
*   iv_user_guid =              " crmt_partner_no  Partnernummer
*   iv_user_name =              " sy-uname      Benutzername
*   iv_user_type =              " bbp_iv_user_type
*   iv_currency =               " waers         Währung des Rechnungsvorschlags
*   iv_with_unassigned_items =   " xfeld        Feld zum Ankreuzen
  IMPORTING
    es_iv_header =              " bbp_iv_header  Schnittstelle Kopf-Daten Rechnung GetDetail-Fall
  TABLES
    it_po_selection =           " bbps_object_key  Schlüsselfelder für Lean- oder Backend-Dokument
*   it_doc_values_db =          " bbp_cfiv_doc_values_db  Struktur zum Merken der Dokumentwerte auf der Datenbank
*   et_iv_item =                " bbp_pds_inv_item_d  Schnittstelle Positions-Daten Rechnung GetDetail-Fall
*   et_account =                " bbp_pds_acc   Kontierung
*   et_partner =                " bbp_pds_partner  Geschäftspartner
*   et_limit =                  " bbp_pds_limit  Wertlimit
*   et_messages =               " bbp_pds_messages  Fehlermeldungen zu einer PD-Methode
*   et_hcf =                    " bbp_pds_hcf_inv  Tab. Kunden- und Solutionfelder an der Rechnungs-Pos.
*   et_icf =                    " bbp_pds_icf_inv  Tab. Kunden- und Solutionfelder an der Rechnungs-Pos.
*   et_exchrate =               " bbp_pds_exr   Umrechnungskurs-Daten
*   et_longtext =               " bbp_pds_longtext  Langtexte zum Procurement Document
    .  "  BBP_IV_ASSIGNMENT_LEAN

ABAP code example for Function Module BBP_IV_ASSIGNMENT_LEAN





The ABAP code below is a full code listing to execute function module BBP_IV_ASSIGNMENT_LEAN 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_es_iv_header  TYPE BBP_IV_HEADER ,
it_it_po_selection  TYPE STANDARD TABLE OF BBPS_OBJECT_KEY,"TABLES PARAM
wa_it_po_selection  LIKE LINE OF it_it_po_selection ,
it_it_doc_values_db  TYPE STANDARD TABLE OF BBP_CFIV_DOC_VALUES_DB,"TABLES PARAM
wa_it_doc_values_db  LIKE LINE OF it_it_doc_values_db ,
it_et_iv_item  TYPE STANDARD TABLE OF BBP_PDS_INV_ITEM_D,"TABLES PARAM
wa_et_iv_item  LIKE LINE OF it_et_iv_item ,
it_et_account  TYPE STANDARD TABLE OF BBP_PDS_ACC,"TABLES PARAM
wa_et_account  LIKE LINE OF it_et_account ,
it_et_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_et_partner  LIKE LINE OF it_et_partner ,
it_et_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT,"TABLES PARAM
wa_et_limit  LIKE LINE OF it_et_limit ,
it_et_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_et_messages  LIKE LINE OF it_et_messages ,
it_et_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_INV,"TABLES PARAM
wa_et_hcf  LIKE LINE OF it_et_hcf ,
it_et_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_INV,"TABLES PARAM
wa_et_icf  LIKE LINE OF it_et_icf ,
it_et_exchrate  TYPE STANDARD TABLE OF BBP_PDS_EXR,"TABLES PARAM
wa_et_exchrate  LIKE LINE OF it_et_exchrate ,
it_et_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT,"TABLES PARAM
wa_et_longtext  LIKE LINE OF it_et_longtext .

DATA(ld_is_parameter) = 'Check type of data required'.
DATA(ld_iv_subtype) = 'Check type of data required'.
DATA(ld_iv_subdcind) = 'Check type of data required'.
DATA(ld_iv_inp_type) = 'Check type of data required'.
DATA(ld_iv_user_guid) = 'Check type of data required'.
DATA(ld_iv_user_name) = 'some text here'.
DATA(ld_iv_user_type) = 'some text here'.
DATA(ld_iv_currency) = 'some text here'.
DATA(ld_iv_with_unassigned_items) = 'some text here'.

"populate fields of struture and append to itab
append wa_it_po_selection to it_it_po_selection.

"populate fields of struture and append to itab
append wa_it_doc_values_db to it_it_doc_values_db.

"populate fields of struture and append to itab
append wa_et_iv_item to it_et_iv_item.

"populate fields of struture and append to itab
append wa_et_account to it_et_account.

"populate fields of struture and append to itab
append wa_et_partner to it_et_partner.

"populate fields of struture and append to itab
append wa_et_limit to it_et_limit.

"populate fields of struture and append to itab
append wa_et_messages to it_et_messages.

"populate fields of struture and append to itab
append wa_et_hcf to it_et_hcf.

"populate fields of struture and append to itab
append wa_et_icf to it_et_icf.

"populate fields of struture and append to itab
append wa_et_exchrate to it_et_exchrate.

"populate fields of struture and append to itab
append wa_et_longtext to it_et_longtext. . CALL FUNCTION 'BBP_IV_ASSIGNMENT_LEAN' EXPORTING is_parameter = ld_is_parameter * iv_subtype = ld_iv_subtype * iv_subdcind = ld_iv_subdcind * iv_inp_type = ld_iv_inp_type * iv_user_guid = ld_iv_user_guid * iv_user_name = ld_iv_user_name * iv_user_type = ld_iv_user_type * iv_currency = ld_iv_currency * iv_with_unassigned_items = ld_iv_with_unassigned_items IMPORTING es_iv_header = ld_es_iv_header TABLES it_po_selection = it_it_po_selection * it_doc_values_db = it_it_doc_values_db * et_iv_item = it_et_iv_item * et_account = it_et_account * et_partner = it_et_partner * et_limit = it_et_limit * et_messages = it_et_messages * et_hcf = it_et_hcf * et_icf = it_et_icf * et_exchrate = it_et_exchrate * et_longtext = it_et_longtext . " BBP_IV_ASSIGNMENT_LEAN
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_es_iv_header  TYPE BBP_IV_HEADER ,
ld_is_parameter  TYPE BBP_IV_PARAMETER ,
it_it_po_selection  TYPE STANDARD TABLE OF BBPS_OBJECT_KEY ,
wa_it_po_selection  LIKE LINE OF it_it_po_selection,
ld_iv_subtype  TYPE BBP_H_SUBTYPE ,
it_it_doc_values_db  TYPE STANDARD TABLE OF BBP_CFIV_DOC_VALUES_DB ,
wa_it_doc_values_db  LIKE LINE OF it_it_doc_values_db,
ld_iv_subdcind  TYPE BBP_SUBDCIND ,
it_et_iv_item  TYPE STANDARD TABLE OF BBP_PDS_INV_ITEM_D ,
wa_et_iv_item  LIKE LINE OF it_et_iv_item,
ld_iv_inp_type  TYPE BBP_INP_TYPE ,
it_et_account  TYPE STANDARD TABLE OF BBP_PDS_ACC ,
wa_et_account  LIKE LINE OF it_et_account,
ld_iv_user_guid  TYPE CRMT_PARTNER_NO ,
it_et_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_et_partner  LIKE LINE OF it_et_partner,
ld_iv_user_name  TYPE SY-UNAME ,
it_et_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT ,
wa_et_limit  LIKE LINE OF it_et_limit,
ld_iv_user_type  TYPE BBP_IV_USER_TYPE ,
it_et_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_et_messages  LIKE LINE OF it_et_messages,
ld_iv_currency  TYPE WAERS ,
it_et_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_INV ,
wa_et_hcf  LIKE LINE OF it_et_hcf,
ld_iv_with_unassigned_items  TYPE XFELD ,
it_et_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_INV ,
wa_et_icf  LIKE LINE OF it_et_icf,
it_et_exchrate  TYPE STANDARD TABLE OF BBP_PDS_EXR ,
wa_et_exchrate  LIKE LINE OF it_et_exchrate,
it_et_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT ,
wa_et_longtext  LIKE LINE OF it_et_longtext.

ld_is_parameter = 'some text here'.

"populate fields of struture and append to itab
append wa_it_po_selection to it_it_po_selection.
ld_iv_subtype = 'some text here'.

"populate fields of struture and append to itab
append wa_it_doc_values_db to it_it_doc_values_db.
ld_iv_subdcind = 'some text here'.

"populate fields of struture and append to itab
append wa_et_iv_item to it_et_iv_item.
ld_iv_inp_type = 'some text here'.

"populate fields of struture and append to itab
append wa_et_account to it_et_account.
ld_iv_user_guid = 'some text here'.

"populate fields of struture and append to itab
append wa_et_partner to it_et_partner.
ld_iv_user_name = 'some text here'.

"populate fields of struture and append to itab
append wa_et_limit to it_et_limit.
ld_iv_user_type = 'some text here'.

"populate fields of struture and append to itab
append wa_et_messages to it_et_messages.
ld_iv_currency = 'some text here'.

"populate fields of struture and append to itab
append wa_et_hcf to it_et_hcf.
ld_iv_with_unassigned_items = 'some text here'.

"populate fields of struture and append to itab
append wa_et_icf to it_et_icf.

"populate fields of struture and append to itab
append wa_et_exchrate to it_et_exchrate.

"populate fields of struture and append to itab
append wa_et_longtext to it_et_longtext.

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