B31I_SOURCEDETERMIN_GETSOS 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 B31I_SOURCEDETERMIN_GETSOS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
BBP_BD_DRIVER_31I
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'B31I_SOURCEDETERMIN_GETSOS' "
EXPORTING
* i_product_guid = " comt_product_guid Interner, eindeutiger Identifikator des Produkts
* i_ordered_prod = " crmt_ordered_prod_db Eingegebener Produktname
* i_product_src_sys = " crmt_product_src_sys Logisches System, aus dem das Produkt stammt
* material = " bapieban-material Material Number
* mat_grp = " bapieban-mat_grp Material group
plant = " bapieban-plant Plant
deliv_date = " bapieban-deliv_date Delivery date
* quantity = " bapieban-quantity Quantity
* unit = " bapieban-unit Unit of measure
* item_cat = " bapieban-item_cat Item category
* acctasscat = " bapieban-acctasscat Account assignment category
* purch_org = " bapieban-purch_org Purchasing organization
* fixed_vend = " bapieban-fixed_vend Fixed vendor
* pckg_no = " bapieban-pckg_no Package number
* unit_iso = " bapieban-preq_unit_iso ISO code for unit of measure
TABLES
sources_of_supply = " bbps_bapisosy Table of sources found
* return = " bapireturn Return messages
* control_record = " bbp_control_record Meta BAPI control record
. " B31I_SOURCEDETERMIN_GETSOS
The ABAP code below is a full code listing to execute function module B31I_SOURCEDETERMIN_GETSOS 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).
| it_sources_of_supply | TYPE STANDARD TABLE OF BBPS_BAPISOSY,"TABLES PARAM |
| wa_sources_of_supply | LIKE LINE OF it_sources_of_supply , |
| it_return | TYPE STANDARD TABLE OF BAPIRETURN,"TABLES PARAM |
| wa_return | LIKE LINE OF it_return , |
| it_control_record | TYPE STANDARD TABLE OF BBP_CONTROL_RECORD,"TABLES PARAM |
| wa_control_record | LIKE LINE OF it_control_record . |
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_i_product_guid | TYPE COMT_PRODUCT_GUID , |
| it_sources_of_supply | TYPE STANDARD TABLE OF BBPS_BAPISOSY , |
| wa_sources_of_supply | LIKE LINE OF it_sources_of_supply, |
| ld_i_ordered_prod | TYPE CRMT_ORDERED_PROD_DB , |
| it_return | TYPE STANDARD TABLE OF BAPIRETURN , |
| wa_return | LIKE LINE OF it_return, |
| ld_i_product_src_sys | TYPE CRMT_PRODUCT_SRC_SYS , |
| it_control_record | TYPE STANDARD TABLE OF BBP_CONTROL_RECORD , |
| wa_control_record | LIKE LINE OF it_control_record, |
| ld_material | TYPE BAPIEBAN-MATERIAL , |
| ld_mat_grp | TYPE BAPIEBAN-MAT_GRP , |
| ld_plant | TYPE BAPIEBAN-PLANT , |
| ld_deliv_date | TYPE BAPIEBAN-DELIV_DATE , |
| ld_quantity | TYPE BAPIEBAN-QUANTITY , |
| ld_unit | TYPE BAPIEBAN-UNIT , |
| ld_item_cat | TYPE BAPIEBAN-ITEM_CAT , |
| ld_acctasscat | TYPE BAPIEBAN-ACCTASSCAT , |
| ld_purch_org | TYPE BAPIEBAN-PURCH_ORG , |
| ld_fixed_vend | TYPE BAPIEBAN-FIXED_VEND , |
| ld_pckg_no | TYPE BAPIEBAN-PCKG_NO , |
| ld_unit_iso | TYPE BAPIEBAN-PREQ_UNIT_ISO . |
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 B31I_SOURCEDETERMIN_GETSOS or its description.