SAP /SAPAPO/DM_ARC_ORDER_GET Function Module for Read Routine for SNP TLB Shipments
/SAPAPO/DM_ARC_ORDER_GET is a standard /sapapo/dm arc order get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Routine for SNP TLB 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 /sapapo/dm arc order get FM, simply by entering the name /SAPAPO/DM_ARC_ORDER_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_ARC
Program Name: /SAPAPO/SAPLDM_ARC
Main Program: /SAPAPO/SAPLDM_ARC
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/DM_ARC_ORDER_GET 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 '/SAPAPO/DM_ARC_ORDER_GET'"Read Routine for SNP TLB Shipments.
EXPORTING
IC_DATABASE = "
* IV_FILL_ORDBUF = ' ' "Auftraege in Puffer speichern
* IV_READ_HEADER = ' ' "boolsche Variable (X=true, -=false, space=unknown)
* IT_POCO_CATEGORIES = "SNP: Stock Transfers Between Locations
* IV_READ_MTO = "General Flag
* IV_READ_LOCFR = ' ' "Read orders at source location
IV_VERSION = "
* IV_SIMSESSION = "
* IV_TSTFR = "
* IV_TSTTO = "
* IV_LOCFRFROMORDKEY = ' ' "Quelllok. aus Ordkey nehmen
* IV_LOCTOFROMORDKEY = ' ' "Ziellok. aus Ordkey nehmen
* IV_READ_ORDERS_FROM_ORDKEY = ' ' "Aufträge aus Ordkey selektieren
* IV_PLOBID = "boolsche Variable (X=true, -=false, space=unknown)
IMPORTING
ET_CHARACT_VAL = "Table with Characteristic Value Assignments
ET_RC = "
CHANGING
CT_POCO = "
* CT_IO_ACT_TI = "Selektionsbedingung für Aktivitäten
EXCEPTIONS
LC_CONNECT_FAILED = 1 LC_COM_ERROR = 2 LC_APPL_ERROR = 3 PEGID_PROBLEM = 4 ORDKEY_MISSING_ENTRY = 5 LC_UNKNOWN_ERROR = 6 INVALID_INTERFACE = 7
IMPORTING Parameters details for /SAPAPO/DM_ARC_ORDER_GET
IC_DATABASE -
Data type: /SAPAPO/SNPDBFLAGOptional: No
Call by Reference: Yes
IV_FILL_ORDBUF - Auftraege in Puffer speichern
Data type: CDefault: ' '
Optional: Yes
Call by Reference: Yes
IV_READ_HEADER - boolsche Variable (X=true, -=false, space=unknown)
Data type: BOOLEANDefault: ' '
Optional: Yes
Call by Reference: Yes
IT_POCO_CATEGORIES - SNP: Stock Transfers Between Locations
Data type: /SAPAPO/MSNP_POCO_TABOptional: Yes
Call by Reference: Yes
IV_READ_MTO - General Flag
Data type: FLAGOptional: Yes
Call by Reference: Yes
IV_READ_LOCFR - Read orders at source location
Data type: BOOLEANDefault: ' '
Optional: Yes
Call by Reference: Yes
IV_VERSION -
Data type: /SAPAPO/SNPVERSIONOptional: No
Call by Reference: Yes
IV_SIMSESSION -
Data type: /SAPAPO/OM_SIMSESSIONOptional: Yes
Call by Reference: Yes
IV_TSTFR -
Data type: /SAPAPO/SNPTSTFROptional: Yes
Call by Reference: No ( called with pass by value option)
IV_TSTTO -
Data type: /SAPAPO/SNPTSTTOOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LOCFRFROMORDKEY - Quelllok. aus Ordkey nehmen
Data type: BOOLEANDefault: ' '
Optional: Yes
Call by Reference: Yes
IV_LOCTOFROMORDKEY - Ziellok. aus Ordkey nehmen
Data type: BOOLEANDefault: ' '
Optional: Yes
Call by Reference: Yes
IV_READ_ORDERS_FROM_ORDKEY - Aufträge aus Ordkey selektieren
Data type: BOOLEANDefault: ' '
Optional: Yes
Call by Reference: Yes
IV_PLOBID - boolsche Variable (X=true, -=false, space=unknown)
Data type: /SAPAPO/TS_PLOBIDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SAPAPO/DM_ARC_ORDER_GET
ET_CHARACT_VAL - Table with Characteristic Value Assignments
Data type: /SAPAPO/OM_CHARACT_VAL_TABOptional: No
Call by Reference: Yes
ET_RC -
Data type: /SAPAPO/OM_LC_RC_TABOptional: No
Call by Reference: Yes
CHANGING Parameters details for /SAPAPO/DM_ARC_ORDER_GET
CT_POCO -
Data type: /SAPAPO/MSNP_POCO_TABOptional: No
Call by Reference: Yes
CT_IO_ACT_TI - Selektionsbedingung für Aktivitäten
Data type: /SAPAPO/OM_IO_ACT_TI_TABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
LC_CONNECT_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LC_COM_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LC_APPL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PEGID_PROBLEM -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ORDKEY_MISSING_ENTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LC_UNKNOWN_ERROR -
Data type:Optional: No
Call by Reference: Yes
INVALID_INTERFACE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_ARC_ORDER_GET 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_ct_poco | TYPE /SAPAPO/MSNP_POCO_TAB, " | |||
| lv_ic_database | TYPE /SAPAPO/SNPDBFLAG, " | |||
| lv_et_charact_val | TYPE /SAPAPO/OM_CHARACT_VAL_TAB, " | |||
| lv_lc_connect_failed | TYPE /SAPAPO/OM_CHARACT_VAL_TAB, " | |||
| lv_iv_fill_ordbuf | TYPE C, " ' ' | |||
| lv_iv_read_header | TYPE BOOLEAN, " ' ' | |||
| lv_it_poco_categories | TYPE /SAPAPO/MSNP_POCO_TAB, " | |||
| lv_iv_read_mto | TYPE FLAG, " | |||
| lv_iv_read_locfr | TYPE BOOLEAN, " ' ' | |||
| lv_et_rc | TYPE /SAPAPO/OM_LC_RC_TAB, " | |||
| lv_iv_version | TYPE /SAPAPO/SNPVERSION, " | |||
| lv_ct_io_act_ti | TYPE /SAPAPO/OM_IO_ACT_TI_TAB, " | |||
| lv_lc_com_error | TYPE /SAPAPO/OM_IO_ACT_TI_TAB, " | |||
| lv_iv_simsession | TYPE /SAPAPO/OM_SIMSESSION, " | |||
| lv_lc_appl_error | TYPE /SAPAPO/OM_SIMSESSION, " | |||
| lv_iv_tstfr | TYPE /SAPAPO/SNPTSTFR, " | |||
| lv_pegid_problem | TYPE /SAPAPO/SNPTSTFR, " | |||
| lv_iv_tstto | TYPE /SAPAPO/SNPTSTTO, " | |||
| lv_ordkey_missing_entry | TYPE /SAPAPO/SNPTSTTO, " | |||
| lv_lc_unknown_error | TYPE /SAPAPO/SNPTSTTO, " | |||
| lv_iv_locfrfromordkey | TYPE BOOLEAN, " ' ' | |||
| lv_invalid_interface | TYPE BOOLEAN, " | |||
| lv_iv_loctofromordkey | TYPE BOOLEAN, " ' ' | |||
| lv_iv_read_orders_from_ordkey | TYPE BOOLEAN, " ' ' | |||
| lv_iv_plobid | TYPE /SAPAPO/TS_PLOBID. " |
|   CALL FUNCTION '/SAPAPO/DM_ARC_ORDER_GET' "Read Routine for SNP TLB Shipments |
| EXPORTING | ||
| IC_DATABASE | = lv_ic_database | |
| IV_FILL_ORDBUF | = lv_iv_fill_ordbuf | |
| IV_READ_HEADER | = lv_iv_read_header | |
| IT_POCO_CATEGORIES | = lv_it_poco_categories | |
| IV_READ_MTO | = lv_iv_read_mto | |
| IV_READ_LOCFR | = lv_iv_read_locfr | |
| IV_VERSION | = lv_iv_version | |
| IV_SIMSESSION | = lv_iv_simsession | |
| IV_TSTFR | = lv_iv_tstfr | |
| IV_TSTTO | = lv_iv_tstto | |
| IV_LOCFRFROMORDKEY | = lv_iv_locfrfromordkey | |
| IV_LOCTOFROMORDKEY | = lv_iv_loctofromordkey | |
| IV_READ_ORDERS_FROM_ORDKEY | = lv_iv_read_orders_from_ordkey | |
| IV_PLOBID | = lv_iv_plobid | |
| IMPORTING | ||
| ET_CHARACT_VAL | = lv_et_charact_val | |
| ET_RC | = lv_et_rc | |
| CHANGING | ||
| CT_POCO | = lv_ct_poco | |
| CT_IO_ACT_TI | = lv_ct_io_act_ti | |
| EXCEPTIONS | ||
| LC_CONNECT_FAILED = 1 | ||
| LC_COM_ERROR = 2 | ||
| LC_APPL_ERROR = 3 | ||
| PEGID_PROBLEM = 4 | ||
| ORDKEY_MISSING_ENTRY = 5 | ||
| LC_UNKNOWN_ERROR = 6 | ||
| INVALID_INTERFACE = 7 | ||
| . " /SAPAPO/DM_ARC_ORDER_GET | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_ARC_ORDER_GET
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.| DATA(ld_iv_fill_ordbuf) | = ' '. | |||
| DATA(ld_iv_read_header) | = ' '. | |||
| DATA(ld_iv_read_locfr) | = ' '. | |||
| DATA(ld_iv_locfrfromordkey) | = ' '. | |||
| DATA(ld_iv_loctofromordkey) | = ' '. | |||
| DATA(ld_iv_read_orders_from_ordkey) | = ' '. | |||
Search for further information about these or an SAP related objects