SAP RV_CONDITION_COPY Function Module for NOTRANSL: Pflege von Konditionssätzen für die Preisfindung
RV_CONDITION_COPY is a standard rv condition 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 NOTRANSL: Pflege von Konditionssätzen für die Preisfindung 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 rv condition copy FM, simply by entering the name RV_CONDITION_COPY into the relevant SAP transaction such as SE37 or SE38.
Function Group: V14A
Program Name: SAPLV14A
Main Program: SAPLV14A
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RV_CONDITION_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 'RV_CONDITION_COPY'"NOTRANSL: Pflege von Konditionssätzen für die Preisfindung.
EXPORTING
APPLICATION = "Application
* MAINTAIN_MODE = 'B' "Mode: Create, Change, Display
* NO_AUTHORITY_CHECK = ' ' "Do not carry out authorization check
* NO_FIELD_CHECK = ' ' "Do not carry out field checks
* SELECTION_DATE = '00000000' "Selection date
* KEEP_OLD_RECORDS = ' ' "Indicator: Old records are not deleted
* MATERIAL_M = "MAPOV segment (application V)
* USED_BY_IDOC = ' ' "Controls special handling in case of IDoc processing
* I_KONA = "Transfer of KOMA (for IDoc processing)
* OVERLAP_CONFIRMED = ' ' "Automatic confirmation in case of overlapping periods
* NO_DB_UPDATE = ' ' "
CONDITION_TABLE = "Condition Table Number
* USED_BY_RETAIL = ' ' "
CONDITION_TYPE = "Condition type
* DATE_FROM = '00000000' "Valid-from date
* DATE_TO = '00000000' "Valid-to Date
* ENQUEUE = ' ' "Lock indicators of condition recor
* I_KOMK = ' ' "Communication block header (pricing)
* I_KOMP = ' ' "Communication block item (pricing)
KEY_FIELDS = "Key fields
IMPORTING
E_KOMK = "Communication block header (pricing)
E_KOMP = "Communication block item (pricing)
NEW_RECORD = "New condition record was created
E_DATAB = "
E_DATBI = "
E_PRDAT = "
TABLES
COPY_RECORDS = "Table of conditions to be copied
* COPY_STAFFEL = "
* COPY_RECS_IDOC = "
EXCEPTIONS
ENQUEUE_ON_RECORD = 1 NO_MATERIAL_FOR_SETTLEMENT = 10 NO_UNIT_FOR_PERIOD_COND = 11 NO_UNIT_REFERENCE_MAGNITUDE = 12 INVALID_CONDITION_TABLE = 13 INVALID_APPLICATION = 2 INVALID_CONDITION_NUMBER = 3 INVALID_CONDITION_TYPE = 4 NO_AUTHORITY_EKORG = 5 NO_AUTHORITY_KSCHL = 6 NO_AUTHORITY_VKORG = 7 NO_SELECTION = 8 TABLE_NOT_VALID = 9
IMPORTING Parameters details for RV_CONDITION_COPY
APPLICATION - Application
Data type: T681A-KAPPLOptional: No
Call by Reference: No ( called with pass by value option)
MAINTAIN_MODE - Mode: Create, Change, Display
Data type:Default: 'B'
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_CHECK - Do not carry out authorization check
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_FIELD_CHECK - Do not carry out field checks
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECTION_DATE - Selection date
Data type: SYST-DATUMDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEEP_OLD_RECORDS - Indicator: Old records are not deleted
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_M - MAPOV segment (application V)
Data type: MT06EOptional: Yes
Call by Reference: No ( called with pass by value option)
USED_BY_IDOC - Controls special handling in case of IDoc processing
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KONA - Transfer of KOMA (for IDoc processing)
Data type: KONAOptional: Yes
Call by Reference: No ( called with pass by value option)
OVERLAP_CONFIRMED - Automatic confirmation in case of overlapping periods
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_DB_UPDATE -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONDITION_TABLE - Condition Table Number
Data type: T681-KOTABNROptional: No
Call by Reference: No ( called with pass by value option)
USED_BY_RETAIL -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONDITION_TYPE - Condition type
Data type: T685A-KSCHLOptional: No
Call by Reference: No ( called with pass by value option)
DATE_FROM - Valid-from date
Data type: RV13A-DATABDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE_TO - Valid-to Date
Data type: RV13A-DATBIDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ENQUEUE - Lock indicators of condition recor
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KOMK - Communication block header (pricing)
Data type: KOMKDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KOMP - Communication block item (pricing)
Data type: KOMPDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY_FIELDS - Key fields
Data type: KOMGOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RV_CONDITION_COPY
E_KOMK - Communication block header (pricing)
Data type: KOMKOptional: No
Call by Reference: No ( called with pass by value option)
E_KOMP - Communication block item (pricing)
Data type: KOMPOptional: No
Call by Reference: No ( called with pass by value option)
NEW_RECORD - New condition record was created
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_DATAB -
Data type: VAKE-DATABOptional: No
Call by Reference: No ( called with pass by value option)
E_DATBI -
Data type: VAKE-DATBIOptional: No
Call by Reference: No ( called with pass by value option)
E_PRDAT -
Data type: VAKE-DATBIOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RV_CONDITION_COPY
COPY_RECORDS - Table of conditions to be copied
Data type: KOMVOptional: No
Call by Reference: No ( called with pass by value option)
COPY_STAFFEL -
Data type: CONDSCALEOptional: Yes
Call by Reference: No ( called with pass by value option)
COPY_RECS_IDOC -
Data type: KOMV_IDOCOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ENQUEUE_ON_RECORD - Condition record is locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MATERIAL_FOR_SETTLEMENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_UNIT_FOR_PERIOD_COND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_UNIT_REFERENCE_MAGNITUDE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_CONDITION_TABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_APPLICATION - Application is not provided
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_CONDITION_NUMBER - Condition number is not provided
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_CONDITION_TYPE - Condition type is not provided
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_EKORG - No authorization for purchasing organization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_KSCHL - No authorization for condition type
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_VKORG - No authorization for organization
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SELECTION - No data records for specified selection
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_VALID - Table and condition type are not allowed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RV_CONDITION_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_e_komk | TYPE KOMK, " | |||
lv_application | TYPE T681A-KAPPL, " | |||
lt_copy_records | TYPE STANDARD TABLE OF KOMV, " | |||
lv_enqueue_on_record | TYPE KOMV, " | |||
lv_maintain_mode | TYPE KOMV, " 'B' | |||
lv_no_material_for_settlement | TYPE KOMV, " | |||
lv_no_authority_check | TYPE KOMV, " ' ' | |||
lv_no_unit_for_period_cond | TYPE KOMV, " | |||
lv_no_field_check | TYPE KOMV, " ' ' | |||
lv_no_unit_reference_magnitude | TYPE KOMV, " | |||
lv_selection_date | TYPE SYST-DATUM, " '00000000' | |||
lv_invalid_condition_table | TYPE SYST, " | |||
lv_keep_old_records | TYPE SYST, " ' ' | |||
lv_material_m | TYPE MT06E, " | |||
lv_used_by_idoc | TYPE MT06E, " ' ' | |||
lv_i_kona | TYPE KONA, " | |||
lv_overlap_confirmed | TYPE KONA, " ' ' | |||
lv_no_db_update | TYPE KONA, " ' ' | |||
lv_e_komp | TYPE KOMP, " | |||
lt_copy_staffel | TYPE STANDARD TABLE OF CONDSCALE, " | |||
lv_condition_table | TYPE T681-KOTABNR, " | |||
lv_invalid_application | TYPE T681, " | |||
lv_used_by_retail | TYPE T681, " ' ' | |||
lv_new_record | TYPE T681, " | |||
lv_condition_type | TYPE T685A-KSCHL, " | |||
lt_copy_recs_idoc | TYPE STANDARD TABLE OF KOMV_IDOC, " | |||
lv_invalid_condition_number | TYPE KOMV_IDOC, " | |||
lv_e_datab | TYPE VAKE-DATAB, " | |||
lv_date_from | TYPE RV13A-DATAB, " '00000000' | |||
lv_invalid_condition_type | TYPE RV13A, " | |||
lv_date_to | TYPE RV13A-DATBI, " '00000000' | |||
lv_e_datbi | TYPE VAKE-DATBI, " | |||
lv_no_authority_ekorg | TYPE VAKE, " | |||
lv_enqueue | TYPE VAKE, " ' ' | |||
lv_e_prdat | TYPE VAKE-DATBI, " | |||
lv_no_authority_kschl | TYPE VAKE, " | |||
lv_i_komk | TYPE KOMK, " ' ' | |||
lv_no_authority_vkorg | TYPE KOMK, " | |||
lv_i_komp | TYPE KOMP, " ' ' | |||
lv_no_selection | TYPE KOMP, " | |||
lv_key_fields | TYPE KOMG, " | |||
lv_table_not_valid | TYPE KOMG. " |
  CALL FUNCTION 'RV_CONDITION_COPY' "NOTRANSL: Pflege von Konditionssätzen für die Preisfindung |
EXPORTING | ||
APPLICATION | = lv_application | |
MAINTAIN_MODE | = lv_maintain_mode | |
NO_AUTHORITY_CHECK | = lv_no_authority_check | |
NO_FIELD_CHECK | = lv_no_field_check | |
SELECTION_DATE | = lv_selection_date | |
KEEP_OLD_RECORDS | = lv_keep_old_records | |
MATERIAL_M | = lv_material_m | |
USED_BY_IDOC | = lv_used_by_idoc | |
I_KONA | = lv_i_kona | |
OVERLAP_CONFIRMED | = lv_overlap_confirmed | |
NO_DB_UPDATE | = lv_no_db_update | |
CONDITION_TABLE | = lv_condition_table | |
USED_BY_RETAIL | = lv_used_by_retail | |
CONDITION_TYPE | = lv_condition_type | |
DATE_FROM | = lv_date_from | |
DATE_TO | = lv_date_to | |
ENQUEUE | = lv_enqueue | |
I_KOMK | = lv_i_komk | |
I_KOMP | = lv_i_komp | |
KEY_FIELDS | = lv_key_fields | |
IMPORTING | ||
E_KOMK | = lv_e_komk | |
E_KOMP | = lv_e_komp | |
NEW_RECORD | = lv_new_record | |
E_DATAB | = lv_e_datab | |
E_DATBI | = lv_e_datbi | |
E_PRDAT | = lv_e_prdat | |
TABLES | ||
COPY_RECORDS | = lt_copy_records | |
COPY_STAFFEL | = lt_copy_staffel | |
COPY_RECS_IDOC | = lt_copy_recs_idoc | |
EXCEPTIONS | ||
ENQUEUE_ON_RECORD = 1 | ||
NO_MATERIAL_FOR_SETTLEMENT = 10 | ||
NO_UNIT_FOR_PERIOD_COND = 11 | ||
NO_UNIT_REFERENCE_MAGNITUDE = 12 | ||
INVALID_CONDITION_TABLE = 13 | ||
INVALID_APPLICATION = 2 | ||
INVALID_CONDITION_NUMBER = 3 | ||
INVALID_CONDITION_TYPE = 4 | ||
NO_AUTHORITY_EKORG = 5 | ||
NO_AUTHORITY_KSCHL = 6 | ||
NO_AUTHORITY_VKORG = 7 | ||
NO_SELECTION = 8 | ||
TABLE_NOT_VALID = 9 | ||
. " RV_CONDITION_COPY |
ABAP code using 7.40 inline data declarations to call FM RV_CONDITION_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 KAPPL FROM T681A INTO @DATA(ld_application). | ||||
DATA(ld_maintain_mode) | = 'B'. | |||
DATA(ld_no_authority_check) | = ' '. | |||
DATA(ld_no_field_check) | = ' '. | |||
"SELECT single DATUM FROM SYST INTO @DATA(ld_selection_date). | ||||
DATA(ld_selection_date) | = '00000000'. | |||
DATA(ld_keep_old_records) | = ' '. | |||
DATA(ld_used_by_idoc) | = ' '. | |||
DATA(ld_overlap_confirmed) | = ' '. | |||
DATA(ld_no_db_update) | = ' '. | |||
"SELECT single KOTABNR FROM T681 INTO @DATA(ld_condition_table). | ||||
DATA(ld_used_by_retail) | = ' '. | |||
"SELECT single KSCHL FROM T685A INTO @DATA(ld_condition_type). | ||||
"SELECT single DATAB FROM VAKE INTO @DATA(ld_e_datab). | ||||
"SELECT single DATAB FROM RV13A INTO @DATA(ld_date_from). | ||||
DATA(ld_date_from) | = '00000000'. | |||
"SELECT single DATBI FROM RV13A INTO @DATA(ld_date_to). | ||||
DATA(ld_date_to) | = '00000000'. | |||
"SELECT single DATBI FROM VAKE INTO @DATA(ld_e_datbi). | ||||
DATA(ld_enqueue) | = ' '. | |||
"SELECT single DATBI FROM VAKE INTO @DATA(ld_e_prdat). | ||||
DATA(ld_i_komk) | = ' '. | |||
DATA(ld_i_komp) | = ' '. | |||
Search for further information about these or an SAP related objects