SAP CRIF_SHP_MA_COLLRUN_CUST_SAVE Function Module for NOTRANSL: Sichern der benutzerspezifischen Selektionskriterien
CRIF_SHP_MA_COLLRUN_CUST_SAVE is a standard crif shp ma collrun cust save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Sichern der benutzerspezifischen Selektionskriterien 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 crif shp ma collrun cust save FM, simply by entering the name CRIF_SHP_MA_COLLRUN_CUST_SAVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: MA_SHP_COLLECTIVE_RUN
Program Name: SAPLMA_SHP_COLLECTIVE_RUN
Main Program: SAPLMA_SHP_COLLECTIVE_RUN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CRIF_SHP_MA_COLLRUN_CUST_SAVE 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 'CRIF_SHP_MA_COLLRUN_CUST_SAVE'"NOTRANSL: Sichern der benutzerspezifischen Selektionskriterien.
EXPORTING
IF_USERNAME = "SAP System, User Logon Name
IF_SELECTION_MODE = "Selection Method
IF_SELDATE_FROM = "Date (lower limit)
IF_SELDATE_TO = "Date (upper limit)
IF_THRESHOLD = "
IF_SORT_CRITERION = "
IF_SHIPPING_POINTS = "
IF_USERNAMES = "
IMPORTING
EF_ERROR_CODE = "Return Value, Return Value after ABAP Statements
EF_ERROR_TEXT = "Error Text
IMPORTING Parameters details for CRIF_SHP_MA_COLLRUN_CUST_SAVE
IF_USERNAME - SAP System, User Logon Name
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
IF_SELECTION_MODE - Selection Method
Data type: SHP_MA_COLLRUN-SELMEOptional: No
Call by Reference: No ( called with pass by value option)
IF_SELDATE_FROM - Date (lower limit)
Data type: SHP_MA_COLLRUN-CDATEOptional: No
Call by Reference: No ( called with pass by value option)
IF_SELDATE_TO - Date (upper limit)
Data type: SHP_MA_COLLRUN-CDATEOptional: No
Call by Reference: No ( called with pass by value option)
IF_THRESHOLD -
Data type: SHP_MA_COLLRUN-THRESOptional: No
Call by Reference: No ( called with pass by value option)
IF_SORT_CRITERION -
Data type: SHP_MA_COLLRUN-SORTCOptional: No
Call by Reference: No ( called with pass by value option)
IF_SHIPPING_POINTS -
Data type: SHP_MA_COLLRUN-VSTEL_FOptional: No
Call by Reference: No ( called with pass by value option)
IF_USERNAMES -
Data type: SHP_MA_COLLRUN-UNAME_FOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CRIF_SHP_MA_COLLRUN_CUST_SAVE
EF_ERROR_CODE - Return Value, Return Value after ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
EF_ERROR_TEXT - Error Text
Data type: SHP_MA_COLLRUN-ETEXTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CRIF_SHP_MA_COLLRUN_CUST_SAVE 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_if_username | TYPE SY-UNAME, " | |||
| lv_ef_error_code | TYPE SY-SUBRC, " | |||
| lv_ef_error_text | TYPE SHP_MA_COLLRUN-ETEXT, " | |||
| lv_if_selection_mode | TYPE SHP_MA_COLLRUN-SELME, " | |||
| lv_if_seldate_from | TYPE SHP_MA_COLLRUN-CDATE, " | |||
| lv_if_seldate_to | TYPE SHP_MA_COLLRUN-CDATE, " | |||
| lv_if_threshold | TYPE SHP_MA_COLLRUN-THRES, " | |||
| lv_if_sort_criterion | TYPE SHP_MA_COLLRUN-SORTC, " | |||
| lv_if_shipping_points | TYPE SHP_MA_COLLRUN-VSTEL_F, " | |||
| lv_if_usernames | TYPE SHP_MA_COLLRUN-UNAME_F. " |
|   CALL FUNCTION 'CRIF_SHP_MA_COLLRUN_CUST_SAVE' "NOTRANSL: Sichern der benutzerspezifischen Selektionskriterien |
| EXPORTING | ||
| IF_USERNAME | = lv_if_username | |
| IF_SELECTION_MODE | = lv_if_selection_mode | |
| IF_SELDATE_FROM | = lv_if_seldate_from | |
| IF_SELDATE_TO | = lv_if_seldate_to | |
| IF_THRESHOLD | = lv_if_threshold | |
| IF_SORT_CRITERION | = lv_if_sort_criterion | |
| IF_SHIPPING_POINTS | = lv_if_shipping_points | |
| IF_USERNAMES | = lv_if_usernames | |
| IMPORTING | ||
| EF_ERROR_CODE | = lv_ef_error_code | |
| EF_ERROR_TEXT | = lv_ef_error_text | |
| . " CRIF_SHP_MA_COLLRUN_CUST_SAVE | ||
ABAP code using 7.40 inline data declarations to call FM CRIF_SHP_MA_COLLRUN_CUST_SAVE
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_if_username). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_ef_error_code). | ||||
| "SELECT single ETEXT FROM SHP_MA_COLLRUN INTO @DATA(ld_ef_error_text). | ||||
| "SELECT single SELME FROM SHP_MA_COLLRUN INTO @DATA(ld_if_selection_mode). | ||||
| "SELECT single CDATE FROM SHP_MA_COLLRUN INTO @DATA(ld_if_seldate_from). | ||||
| "SELECT single CDATE FROM SHP_MA_COLLRUN INTO @DATA(ld_if_seldate_to). | ||||
| "SELECT single THRES FROM SHP_MA_COLLRUN INTO @DATA(ld_if_threshold). | ||||
| "SELECT single SORTC FROM SHP_MA_COLLRUN INTO @DATA(ld_if_sort_criterion). | ||||
| "SELECT single VSTEL_F FROM SHP_MA_COLLRUN INTO @DATA(ld_if_shipping_points). | ||||
| "SELECT single UNAME_F FROM SHP_MA_COLLRUN INTO @DATA(ld_if_usernames). | ||||
Search for further information about these or an SAP related objects