SAP BBP_SOURCEDETERMIN_GETSOS Function Module for Determine Sources for Material/Material Group
BBP_SOURCEDETERMIN_GETSOS is a standard bbp sourcedetermin getsos SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Sources for Material/Material Group 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 sourcedetermin getsos FM, simply by entering the name BBP_SOURCEDETERMIN_GETSOS into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBPM
Program Name: SAPLBBPM
Main Program: SAPLBBPM
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BBP_SOURCEDETERMIN_GETSOS 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_SOURCEDETERMIN_GETSOS'"Determine Sources for Material/Material Group.
EXPORTING
* MATERIAL = "Material
* FIXED_VEND = "Fixed Vendor
* PCKG_NO = "Package Number
* UNIT_ISO = "
* MAT_GRP = "Material Group
PLANT = "Plant
DELIV_DATE = "Delivery Date
* QUANTITY = "Quantity
* UNIT = "Unit of Measure
* ITEM_CAT = "Item Category
* ACCTASSCAT = "Account Assignment Category
* PURCH_ORG = "Purchasing Organization
TABLES
SOURCES_OF_SUPPLY = "
* RETURN = "
IMPORTING Parameters details for BBP_SOURCEDETERMIN_GETSOS
MATERIAL - Material
Data type: BAPIEBAN-MATERIALOptional: Yes
Call by Reference: No ( called with pass by value option)
FIXED_VEND - Fixed Vendor
Data type: BAPIEBAN-FIXED_VENDOptional: Yes
Call by Reference: No ( called with pass by value option)
PCKG_NO - Package Number
Data type: BAPIEBAN-PCKG_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
UNIT_ISO -
Data type: BAPIEBAN-UNITOptional: Yes
Call by Reference: No ( called with pass by value option)
MAT_GRP - Material Group
Data type: BAPIEBAN-MAT_GRPOptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT - Plant
Data type: BAPIEBAN-PLANTOptional: No
Call by Reference: No ( called with pass by value option)
DELIV_DATE - Delivery Date
Data type: BAPIEBAN-DELIV_DATEOptional: No
Call by Reference: No ( called with pass by value option)
QUANTITY - Quantity
Data type: BAPIEBAN-QUANTITYOptional: Yes
Call by Reference: No ( called with pass by value option)
UNIT - Unit of Measure
Data type: BAPIEBAN-UNITOptional: Yes
Call by Reference: No ( called with pass by value option)
ITEM_CAT - Item Category
Data type: BAPIEBAN-ITEM_CATOptional: Yes
Call by Reference: No ( called with pass by value option)
ACCTASSCAT - Account Assignment Category
Data type: BAPIEBAN-ACCTASSCATOptional: Yes
Call by Reference: No ( called with pass by value option)
PURCH_ORG - Purchasing Organization
Data type: BAPIEBAN-PURCH_ORGOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BBP_SOURCEDETERMIN_GETSOS
SOURCES_OF_SUPPLY -
Data type: BBPSOSYOptional: No
Call by Reference: No ( called with pass by value option)
RETURN -
Data type: BBPRETURNOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BBP_SOURCEDETERMIN_GETSOS 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_material | TYPE BAPIEBAN-MATERIAL, " | |||
| lt_sources_of_supply | TYPE STANDARD TABLE OF BBPSOSY, " | |||
| lv_fixed_vend | TYPE BAPIEBAN-FIXED_VEND, " | |||
| lv_pckg_no | TYPE BAPIEBAN-PCKG_NO, " | |||
| lv_unit_iso | TYPE BAPIEBAN-UNIT, " | |||
| lt_return | TYPE STANDARD TABLE OF BBPRETURN, " | |||
| lv_mat_grp | TYPE BAPIEBAN-MAT_GRP, " | |||
| lv_plant | TYPE BAPIEBAN-PLANT, " | |||
| lv_deliv_date | TYPE BAPIEBAN-DELIV_DATE, " | |||
| lv_quantity | TYPE BAPIEBAN-QUANTITY, " | |||
| lv_unit | TYPE BAPIEBAN-UNIT, " | |||
| lv_item_cat | TYPE BAPIEBAN-ITEM_CAT, " | |||
| lv_acctasscat | TYPE BAPIEBAN-ACCTASSCAT, " | |||
| lv_purch_org | TYPE BAPIEBAN-PURCH_ORG. " |
|   CALL FUNCTION 'BBP_SOURCEDETERMIN_GETSOS' "Determine Sources for Material/Material Group |
| EXPORTING | ||
| MATERIAL | = lv_material | |
| FIXED_VEND | = lv_fixed_vend | |
| PCKG_NO | = lv_pckg_no | |
| UNIT_ISO | = lv_unit_iso | |
| MAT_GRP | = lv_mat_grp | |
| PLANT | = lv_plant | |
| DELIV_DATE | = lv_deliv_date | |
| QUANTITY | = lv_quantity | |
| UNIT | = lv_unit | |
| ITEM_CAT | = lv_item_cat | |
| ACCTASSCAT | = lv_acctasscat | |
| PURCH_ORG | = lv_purch_org | |
| TABLES | ||
| SOURCES_OF_SUPPLY | = lt_sources_of_supply | |
| RETURN | = lt_return | |
| . " BBP_SOURCEDETERMIN_GETSOS | ||
ABAP code using 7.40 inline data declarations to call FM BBP_SOURCEDETERMIN_GETSOS
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 MATERIAL FROM BAPIEBAN INTO @DATA(ld_material). | ||||
| "SELECT single FIXED_VEND FROM BAPIEBAN INTO @DATA(ld_fixed_vend). | ||||
| "SELECT single PCKG_NO FROM BAPIEBAN INTO @DATA(ld_pckg_no). | ||||
| "SELECT single UNIT FROM BAPIEBAN INTO @DATA(ld_unit_iso). | ||||
| "SELECT single MAT_GRP FROM BAPIEBAN INTO @DATA(ld_mat_grp). | ||||
| "SELECT single PLANT FROM BAPIEBAN INTO @DATA(ld_plant). | ||||
| "SELECT single DELIV_DATE FROM BAPIEBAN INTO @DATA(ld_deliv_date). | ||||
| "SELECT single QUANTITY FROM BAPIEBAN INTO @DATA(ld_quantity). | ||||
| "SELECT single UNIT FROM BAPIEBAN INTO @DATA(ld_unit). | ||||
| "SELECT single ITEM_CAT FROM BAPIEBAN INTO @DATA(ld_item_cat). | ||||
| "SELECT single ACCTASSCAT FROM BAPIEBAN INTO @DATA(ld_acctasscat). | ||||
| "SELECT single PURCH_ORG FROM BAPIEBAN INTO @DATA(ld_purch_org). | ||||
Search for further information about these or an SAP related objects