SAP /SCMB/TM_INPUT_FRD_SHP Function Module for Input Freight Document with Shipments
/SCMB/TM_INPUT_FRD_SHP is a standard /scmb/tm input frd shp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Input Freight Document with Shipments 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 /scmb/tm input frd shp FM, simply by entering the name /SCMB/TM_INPUT_FRD_SHP into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SCMB/TM_INTERFACES
Program Name: /SCMB/SAPLTM_INTERFACES
Main Program: /SCMB/SAPLTM_INTERFACES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SCMB/TM_INPUT_FRD_SHP 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 '/SCMB/TM_INPUT_FRD_SHP'"Input Freight Document with Shipments.
EXPORTING
IV_ACTION_CODE = "Änderungsmodus
* IT_STATUS = "Tabellentyp: Status
* IT_EQUIPMENT = "Tabellentyp: Equipment
* IT_GROUP = "Tabellentyp: Gruppen
* IT_PRODUCT = "Tabellentyp: Produktdaten
* IT_PACKAGE = "Tabellentyp: Verpackungsmaterial
* IT_UOM = "Tabelle für Zusätzliche Mengeneinheiten
* IT_ITEM = "Tabellentyp: Positionen
* IT_NOTES_HEADER = "
* IT_NOTES_LINES = "
IV_FINAL_LOAD_MESS = "Nachricht über endgültiges Beladen
* IS_FRD_HEADER = "Transport Details
* IT_FRD_DATES = "Tabellentyp: Datum
* IT_FRD_REFDOC = "Tabellentyp: Referenzen
* IT_HEADER = "Sendungskopf
* IT_PARTYLOC = "Tabellentyp: Partner/Lokationen
* IT_DATES = "Tabellentyp: Datum
* IT_REFDOC = "Tabellentyp: Referenzen
IMPORTING
ET_BAPIRET2 = "Returntabelle
IMPORTING Parameters details for /SCMB/TM_INPUT_FRD_SHP
IV_ACTION_CODE - Änderungsmodus
Data type: /SCMB/TMBIF_ACTIONOptional: No
Call by Reference: No ( called with pass by value option)
IT_STATUS - Tabellentyp: Status
Data type: /SCMB/TMBIF_STATUS_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_EQUIPMENT - Tabellentyp: Equipment
Data type: /SCMB/TMBIF_EQUIPMENT_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_GROUP - Tabellentyp: Gruppen
Data type: /SCMB/TMBIF_GROUP_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PRODUCT - Tabellentyp: Produktdaten
Data type: /SCMB/TMBIF_PRODUCT_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PACKAGE - Tabellentyp: Verpackungsmaterial
Data type: /SCMB/TMBIF_PACKAGE_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_UOM - Tabelle für Zusätzliche Mengeneinheiten
Data type: /SCMB/TMBIF_UOM_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ITEM - Tabellentyp: Positionen
Data type: /SCMB/TMBIF_SHP_ITEM_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_NOTES_HEADER -
Data type: /SCMB/TMBIF_NOTES_HEAD_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_NOTES_LINES -
Data type: /SCMB/TMBIF_NOTES_LINE_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_FINAL_LOAD_MESS - Nachricht über endgültiges Beladen
Data type: /SCMB/TMBIF_FLMOptional: No
Call by Reference: No ( called with pass by value option)
IS_FRD_HEADER - Transport Details
Data type: /SCMB/TMBIF_FRD_HEADER_STROptional: Yes
Call by Reference: No ( called with pass by value option)
IT_FRD_DATES - Tabellentyp: Datum
Data type: /SCMB/TMBIF_DATES_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_FRD_REFDOC - Tabellentyp: Referenzen
Data type: /SCMB/TMBIF_REFDOC_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_HEADER - Sendungskopf
Data type: /SCMB/TMBIF_SHP_HEADER_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_PARTYLOC - Tabellentyp: Partner/Lokationen
Data type: /SCMB/TMBIF_PARTYLOC_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_DATES - Tabellentyp: Datum
Data type: /SCMB/TMBIF_DATES_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_REFDOC - Tabellentyp: Referenzen
Data type: /SCMB/TMBIF_REFDOC_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for /SCMB/TM_INPUT_FRD_SHP
ET_BAPIRET2 - Returntabelle
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SCMB/TM_INPUT_FRD_SHP 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_et_bapiret2 | TYPE BAPIRET2_T, " | |||
| lv_iv_action_code | TYPE /SCMB/TMBIF_ACTION, " | |||
| lv_it_status | TYPE /SCMB/TMBIF_STATUS_TAB, " | |||
| lv_it_equipment | TYPE /SCMB/TMBIF_EQUIPMENT_TAB, " | |||
| lv_it_group | TYPE /SCMB/TMBIF_GROUP_TAB, " | |||
| lv_it_product | TYPE /SCMB/TMBIF_PRODUCT_TAB, " | |||
| lv_it_package | TYPE /SCMB/TMBIF_PACKAGE_TAB, " | |||
| lv_it_uom | TYPE /SCMB/TMBIF_UOM_TAB, " | |||
| lv_it_item | TYPE /SCMB/TMBIF_SHP_ITEM_TAB, " | |||
| lv_it_notes_header | TYPE /SCMB/TMBIF_NOTES_HEAD_TAB, " | |||
| lv_it_notes_lines | TYPE /SCMB/TMBIF_NOTES_LINE_TAB, " | |||
| lv_iv_final_load_mess | TYPE /SCMB/TMBIF_FLM, " | |||
| lv_is_frd_header | TYPE /SCMB/TMBIF_FRD_HEADER_STR, " | |||
| lv_it_frd_dates | TYPE /SCMB/TMBIF_DATES_TAB, " | |||
| lv_it_frd_refdoc | TYPE /SCMB/TMBIF_REFDOC_TAB, " | |||
| lv_it_header | TYPE /SCMB/TMBIF_SHP_HEADER_TAB, " | |||
| lv_it_partyloc | TYPE /SCMB/TMBIF_PARTYLOC_TAB, " | |||
| lv_it_dates | TYPE /SCMB/TMBIF_DATES_TAB, " | |||
| lv_it_refdoc | TYPE /SCMB/TMBIF_REFDOC_TAB. " |
|   CALL FUNCTION '/SCMB/TM_INPUT_FRD_SHP' "Input Freight Document with Shipments |
| EXPORTING | ||
| IV_ACTION_CODE | = lv_iv_action_code | |
| IT_STATUS | = lv_it_status | |
| IT_EQUIPMENT | = lv_it_equipment | |
| IT_GROUP | = lv_it_group | |
| IT_PRODUCT | = lv_it_product | |
| IT_PACKAGE | = lv_it_package | |
| IT_UOM | = lv_it_uom | |
| IT_ITEM | = lv_it_item | |
| IT_NOTES_HEADER | = lv_it_notes_header | |
| IT_NOTES_LINES | = lv_it_notes_lines | |
| IV_FINAL_LOAD_MESS | = lv_iv_final_load_mess | |
| IS_FRD_HEADER | = lv_is_frd_header | |
| IT_FRD_DATES | = lv_it_frd_dates | |
| IT_FRD_REFDOC | = lv_it_frd_refdoc | |
| IT_HEADER | = lv_it_header | |
| IT_PARTYLOC | = lv_it_partyloc | |
| IT_DATES | = lv_it_dates | |
| IT_REFDOC | = lv_it_refdoc | |
| IMPORTING | ||
| ET_BAPIRET2 | = lv_et_bapiret2 | |
| . " /SCMB/TM_INPUT_FRD_SHP | ||
ABAP code using 7.40 inline data declarations to call FM /SCMB/TM_INPUT_FRD_SHP
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.Search for further information about these or an SAP related objects