SAP BBP_IV_ASSIGNMENT_INVD Function Module for Rechnung zu INVD vorschlagen
BBP_IV_ASSIGNMENT_INVD is a standard bbp iv assignment invd SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Rechnung zu INVD vorschlagen processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bbp iv assignment invd FM, simply by entering the name BBP_IV_ASSIGNMENT_INVD into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_IV2
Program Name: SAPLBBP_IV2
Main Program: SAPLBBP_IV2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BBP_IV_ASSIGNMENT_INVD pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BBP_IV_ASSIGNMENT_INVD'"Rechnung zu INVD vorschlagen.
EXPORTING
* IV_SUBTYPE = "Ausprägung eines Einkaufsbelegs (z.B. Gutschrift/Rechnung)
* IV_INP_TYPE = "Erstellungs-Kennzeichen (Dialog, XML etc.)
IS_PARAMETER = "allgemeine IV Parameter
* IV_USER_GUID = "Partnernummer
* IV_USER_NAME = "Benutzername
* IV_USER_TYPE = "
* IV_CURRENCY = "Währung des Rechnungsvorschlags
IMPORTING
ES_IV_HEADER = "BBP IV header structure
TABLES
IT_INVD_SELECTION = "Schlüsselfelder für Lean- oder Backend-Dokument
* ET_IV_ITEM = "Positionsstruktur für BBP IV
* ET_ACCOUNT = "Kontierung
* ET_PARTNER = "Geschäftspartner
* ET_HUB_HREL = "Kopfverknüpfungen Typ Invoice Hub
* ET_HUB_IREL = "Positions-Relationen mit Item-Guid
* ET_MESSAGES = "Fehlermeldungen zu einer PD-Methode
* ET_EXCHRATE = "Umrechnungskurs-Daten
IMPORTING Parameters details for BBP_IV_ASSIGNMENT_INVD
IV_SUBTYPE - Ausprägung eines Einkaufsbelegs (z.B. Gutschrift/Rechnung)
Data type: BBP_H_SUBTYPEOptional: Yes
Call by Reference: Yes
IV_INP_TYPE - Erstellungs-Kennzeichen (Dialog, XML etc.)
Data type: BBP_INP_TYPEOptional: Yes
Call by Reference: Yes
IS_PARAMETER - allgemeine IV Parameter
Data type: BBP_IV_PARAMETEROptional: No
Call by Reference: Yes
IV_USER_GUID - Partnernummer
Data type: CRMT_PARTNER_NOOptional: Yes
Call by Reference: Yes
IV_USER_NAME - Benutzername
Data type: SY-UNAMEOptional: Yes
Call by Reference: Yes
IV_USER_TYPE -
Data type: BBP_IV_USER_TYPEOptional: Yes
Call by Reference: Yes
IV_CURRENCY - Währung des Rechnungsvorschlags
Data type: WAERSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BBP_IV_ASSIGNMENT_INVD
ES_IV_HEADER - BBP IV header structure
Data type: BBP_IV_HEADEROptional: No
Call by Reference: Yes
TABLES Parameters details for BBP_IV_ASSIGNMENT_INVD
IT_INVD_SELECTION - Schlüsselfelder für Lean- oder Backend-Dokument
Data type: BBPS_OBJECT_KEYOptional: No
Call by Reference: Yes
ET_IV_ITEM - Positionsstruktur für BBP IV
Data type: BBP_PDS_INV_ITEM_DOptional: Yes
Call by Reference: Yes
ET_ACCOUNT - Kontierung
Data type: BBP_PDS_ACCOptional: Yes
Call by Reference: Yes
ET_PARTNER - Geschäftspartner
Data type: BBP_PDS_PARTNEROptional: Yes
Call by Reference: Yes
ET_HUB_HREL - Kopfverknüpfungen Typ Invoice Hub
Data type: BBP_PDS_IVHUB_HRELOptional: Yes
Call by Reference: Yes
ET_HUB_IREL - Positions-Relationen mit Item-Guid
Data type: BBP_IV_ITEM_RELOptional: Yes
Call by Reference: Yes
ET_MESSAGES - Fehlermeldungen zu einer PD-Methode
Data type: BBP_PDS_MESSAGESOptional: Yes
Call by Reference: Yes
ET_EXCHRATE - Umrechnungskurs-Daten
Data type: BBP_PDS_EXROptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BBP_IV_ASSIGNMENT_INVD Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_iv_subtype | TYPE BBP_H_SUBTYPE, " | |||
| lv_es_iv_header | TYPE BBP_IV_HEADER, " | |||
| lt_it_invd_selection | TYPE STANDARD TABLE OF BBPS_OBJECT_KEY, " | |||
| lt_et_iv_item | TYPE STANDARD TABLE OF BBP_PDS_INV_ITEM_D, " | |||
| lv_iv_inp_type | TYPE BBP_INP_TYPE, " | |||
| lt_et_account | TYPE STANDARD TABLE OF BBP_PDS_ACC, " | |||
| lv_is_parameter | TYPE BBP_IV_PARAMETER, " | |||
| lt_et_partner | TYPE STANDARD TABLE OF BBP_PDS_PARTNER, " | |||
| lv_iv_user_guid | TYPE CRMT_PARTNER_NO, " | |||
| lt_et_hub_hrel | TYPE STANDARD TABLE OF BBP_PDS_IVHUB_HREL, " | |||
| lv_iv_user_name | TYPE SY-UNAME, " | |||
| lt_et_hub_irel | TYPE STANDARD TABLE OF BBP_IV_ITEM_REL, " | |||
| lv_iv_user_type | TYPE BBP_IV_USER_TYPE, " | |||
| lt_et_messages | TYPE STANDARD TABLE OF BBP_PDS_MESSAGES, " | |||
| lv_iv_currency | TYPE WAERS, " | |||
| lt_et_exchrate | TYPE STANDARD TABLE OF BBP_PDS_EXR. " |
|   CALL FUNCTION 'BBP_IV_ASSIGNMENT_INVD' "Rechnung zu INVD vorschlagen |
| EXPORTING | ||
| IV_SUBTYPE | = lv_iv_subtype | |
| IV_INP_TYPE | = lv_iv_inp_type | |
| IS_PARAMETER | = lv_is_parameter | |
| IV_USER_GUID | = lv_iv_user_guid | |
| IV_USER_NAME | = lv_iv_user_name | |
| IV_USER_TYPE | = lv_iv_user_type | |
| IV_CURRENCY | = lv_iv_currency | |
| IMPORTING | ||
| ES_IV_HEADER | = lv_es_iv_header | |
| TABLES | ||
| IT_INVD_SELECTION | = lt_it_invd_selection | |
| ET_IV_ITEM | = lt_et_iv_item | |
| ET_ACCOUNT | = lt_et_account | |
| ET_PARTNER | = lt_et_partner | |
| ET_HUB_HREL | = lt_et_hub_hrel | |
| ET_HUB_IREL | = lt_et_hub_irel | |
| ET_MESSAGES | = lt_et_messages | |
| ET_EXCHRATE | = lt_et_exchrate | |
| . " BBP_IV_ASSIGNMENT_INVD | ||
ABAP code using 7.40 inline data declarations to call FM BBP_IV_ASSIGNMENT_INVD
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single UNAME FROM SY INTO @DATA(ld_iv_user_name). | ||||
Search for further information about these or an SAP related objects