SAP SACO_FRMWRK_COPY Function Module for Framework for Copying SAs
SACO_FRMWRK_COPY is a standard saco frmwrk copy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Framework for Copying SAs 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 saco frmwrk copy FM, simply by entering the name SACO_FRMWRK_COPY into the relevant SAP transaction such as SE37 or SE38.
Function Group: SACO
Program Name: SAPLSACO
Main Program: SAPLSACO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SACO_FRMWRK_COPY 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 'SACO_FRMWRK_COPY'"Framework for Copying SAs.
EXPORTING
IT_VBELN = "Sales Document: Header Data
IV_NOCCI = "Do not copy cancelled items indicator
IV_SPLIT = "Split each item into new SA
IT_RESULT = "Table type for SA copy report: copy status
IV_ABGRU_OLD = "Reason for rejection of old SA
IV_ABGRU_NEW = "Reason for rejection of new SA
IV_LOG_EXTNUMBER = "Application Log: External ID
IV_CHECK_TIMESTAMP = "Date + Time of checking
* IV_MODUS = 'N' "Call Transaction Modus
IT_VBTYP = "Ranges for vbtyp
IT_VBKLT = "Ranges for vbklt
IT_ABDIS = "Ranges for abdis
IMPORTING Parameters details for SACO_FRMWRK_COPY
IT_VBELN - Sales Document: Header Data
Data type: SACO_VBELN_TTOptional: No
Call by Reference: No ( called with pass by value option)
IV_NOCCI - Do not copy cancelled items indicator
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
IV_SPLIT - Split each item into new SA
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
IT_RESULT - Table type for SA copy report: copy status
Data type: SACO_TT_RESULTOptional: No
Call by Reference: No ( called with pass by value option)
IV_ABGRU_OLD - Reason for rejection of old SA
Data type: ABGRUOptional: No
Call by Reference: No ( called with pass by value option)
IV_ABGRU_NEW - Reason for rejection of new SA
Data type: ABGRUOptional: No
Call by Reference: No ( called with pass by value option)
IV_LOG_EXTNUMBER - Application Log: External ID
Data type: BAL_S_LOG-EXTNUMBEROptional: No
Call by Reference: No ( called with pass by value option)
IV_CHECK_TIMESTAMP - Date + Time of checking
Data type: CHAR14Optional: No
Call by Reference: No ( called with pass by value option)
IV_MODUS - Call Transaction Modus
Data type: CHAR1Default: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_VBTYP - Ranges for vbtyp
Data type: SACO_VBTYP_RANGES_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_VBKLT - Ranges for vbklt
Data type: SACO_VBKLT_RANGES_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_ABDIS - Ranges for abdis
Data type: SACO_ABDIS_RANGES_TABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SACO_FRMWRK_COPY 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_it_vbeln | TYPE SACO_VBELN_TT, " | |||
| lv_iv_nocci | TYPE XFELD, " | |||
| lv_iv_split | TYPE XFELD, " | |||
| lv_it_result | TYPE SACO_TT_RESULT, " | |||
| lv_iv_abgru_old | TYPE ABGRU, " | |||
| lv_iv_abgru_new | TYPE ABGRU, " | |||
| lv_iv_log_extnumber | TYPE BAL_S_LOG-EXTNUMBER, " | |||
| lv_iv_check_timestamp | TYPE CHAR14, " | |||
| lv_iv_modus | TYPE CHAR1, " 'N' | |||
| lv_it_vbtyp | TYPE SACO_VBTYP_RANGES_TAB, " | |||
| lv_it_vbklt | TYPE SACO_VBKLT_RANGES_TAB, " | |||
| lv_it_abdis | TYPE SACO_ABDIS_RANGES_TAB. " |
|   CALL FUNCTION 'SACO_FRMWRK_COPY' "Framework for Copying SAs |
| EXPORTING | ||
| IT_VBELN | = lv_it_vbeln | |
| IV_NOCCI | = lv_iv_nocci | |
| IV_SPLIT | = lv_iv_split | |
| IT_RESULT | = lv_it_result | |
| IV_ABGRU_OLD | = lv_iv_abgru_old | |
| IV_ABGRU_NEW | = lv_iv_abgru_new | |
| IV_LOG_EXTNUMBER | = lv_iv_log_extnumber | |
| IV_CHECK_TIMESTAMP | = lv_iv_check_timestamp | |
| IV_MODUS | = lv_iv_modus | |
| IT_VBTYP | = lv_it_vbtyp | |
| IT_VBKLT | = lv_it_vbklt | |
| IT_ABDIS | = lv_it_abdis | |
| . " SACO_FRMWRK_COPY | ||
ABAP code using 7.40 inline data declarations to call FM SACO_FRMWRK_COPY
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 EXTNUMBER FROM BAL_S_LOG INTO @DATA(ld_iv_log_extnumber). | ||||
| DATA(ld_iv_modus) | = 'N'. | |||
Search for further information about these or an SAP related objects