SAP SD_CONDITION_COPY_RULES Function Module for









SD_CONDITION_COPY_RULES is a standard sd condition copy rules SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sd condition copy rules FM, simply by entering the name SD_CONDITION_COPY_RULES into the relevant SAP transaction such as SE37 or SE38.

Function Group: V15C
Program Name: SAPLV15C
Main Program: SAPLV15C
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SD_CONDITION_COPY_RULES 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 'SD_CONDITION_COPY_RULES'"
EXPORTING
* C_USER_DEFINE_RULES = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
C_GOTO_COPY_FUNCTION = "

TABLES
C_CERR_TAB = "
C_GCR_DATA_SO = "DE-EN-LANG-SWITCH-NO-TRANSLATION
C_GROUP_COPY_RULES = "DE-EN-LANG-SWITCH-NO-TRANSLATION
C_IVAKE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
C_IVAKE_EXCLUDE = "
C_T6B2F = "
.



IMPORTING Parameters details for SD_CONDITION_COPY_RULES

C_USER_DEFINE_RULES - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: VAKEIND-SELKZ
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SD_CONDITION_COPY_RULES

C_GOTO_COPY_FUNCTION -

Data type: VAKEIND-SELKZ
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SD_CONDITION_COPY_RULES

C_CERR_TAB -

Data type: VAKECERR
Optional: No
Call by Reference: No ( called with pass by value option)

C_GCR_DATA_SO - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: VAKEDCOPY
Optional: No
Call by Reference: No ( called with pass by value option)

C_GROUP_COPY_RULES - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: VAKEGCOPY
Optional: No
Call by Reference: No ( called with pass by value option)

C_IVAKE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: VAKEIND
Optional: No
Call by Reference: No ( called with pass by value option)

C_IVAKE_EXCLUDE -

Data type: VAKEKNUMH
Optional: No
Call by Reference: No ( called with pass by value option)

C_T6B2F -

Data type: CT6B2F
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SD_CONDITION_COPY_RULES 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:
lt_c_cerr_tab  TYPE STANDARD TABLE OF VAKECERR, "   
lv_c_user_define_rules  TYPE VAKEIND-SELKZ, "   ' '
lv_c_goto_copy_function  TYPE VAKEIND-SELKZ, "   
lt_c_gcr_data_so  TYPE STANDARD TABLE OF VAKEDCOPY, "   
lt_c_group_copy_rules  TYPE STANDARD TABLE OF VAKEGCOPY, "   
lt_c_ivake  TYPE STANDARD TABLE OF VAKEIND, "   
lt_c_ivake_exclude  TYPE STANDARD TABLE OF VAKEKNUMH, "   
lt_c_t6b2f  TYPE STANDARD TABLE OF CT6B2F. "   

  CALL FUNCTION 'SD_CONDITION_COPY_RULES'  "
    EXPORTING
         C_USER_DEFINE_RULES = lv_c_user_define_rules
    IMPORTING
         C_GOTO_COPY_FUNCTION = lv_c_goto_copy_function
    TABLES
         C_CERR_TAB = lt_c_cerr_tab
         C_GCR_DATA_SO = lt_c_gcr_data_so
         C_GROUP_COPY_RULES = lt_c_group_copy_rules
         C_IVAKE = lt_c_ivake
         C_IVAKE_EXCLUDE = lt_c_ivake_exclude
         C_T6B2F = lt_c_t6b2f
. " SD_CONDITION_COPY_RULES




ABAP code using 7.40 inline data declarations to call FM SD_CONDITION_COPY_RULES

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 SELKZ FROM VAKEIND INTO @DATA(ld_c_user_define_rules).
DATA(ld_c_user_define_rules) = ' '.
 
"SELECT single SELKZ FROM VAKEIND INTO @DATA(ld_c_goto_copy_function).
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!