Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any BAPI available to update the condition records?For creation i have used XK15, But there is no update functionality.

Former Member
0 Kudos

Is there any BAPI available to update the condition records?For creation i have used XK15, But there is no update functionality.Appreciate your early response?

7 REPLIES 7

nabheetscn
Active Contributor
0 Kudos

Hi

You can use RV_CONDITION_COPY RV_CONDITION_SAVE  RV_CONDITION_RESET and then commit work. Pass MAINTAIN_MODE as B for change

Nabheet

0 Kudos

I want to cange the validity end date on existing condition records like what we have done throgh

vk12

0 Kudos

Hi,

I would suggest go for direct input or BDC, I don't think so BAPI will work in this case.

Already some of the threads are available with your issue. May be useful for you!

Thanks,

Kiran

0 Kudos

I got this FM  "RV_CONDITION_MAINTENANCE",

it is not taking selection date though i have passed the selction date.

Below is the code.

CALL FUNCTION 'RV_CONDITION_MAINTENANCE'
  EXPORTING
    APPLICATION                    = 'V'
*   BONUS                          = 'X'
   CONDITION_TABLE                = '510'
   CONDITION_TYPE                 = 'ZPM'
*   CUSTOMER                       = ' '
   DATE_FROM                      = '20131101'
   DATE_TO                        = '20140324'
   ENQUEUE                        = 'X'
   FIRST_SCREEN                   = 'B'
*   ITEM_NUMBER                    = '01'
   I_KOMK                         = GT_KOMK
   I_KOMP                         = GT_KOMP
   KEY_FIELDS                     = gs_keyfields
   MAINTAIN_MODE                   = 'B'
*   MATERIAL_M                     = ' '
*   MATERIAL_V                     = ' '
*   NO_AUTHORITY_CHECK             = ' '
   RECORD_NUMBER                  = '0007264194'
   SELECTION_DATE                 = '20140320'
   USE_SELECTION_DATE             = 'X'
   VARIABLE_KEY                   = '1001000006161520140124201311010007264194'

Can someone help where i am doing wrong?

0 Kudos

Hi

What is the issue with earlier function modules?

Nabheet

0 Kudos

it is not is updating valid end date

0 Kudos

does it throw you any error? Have you called all FM in sequence and commit in end with no exception occuring in between?

If still it does not work either we need to debug and check if SAP is expecting some other field to modify the date or simple go with BDC as kiran suggested