on 07-30-2014 2:06 PM
Hello experts,
I am stucking again. I want to change the validfrom-field of the conditions on a rental object. I am using BAPI_RE_RO_CHANGE and therefore, in the conditition table i an updating the valid_from-field with my new value.
But - this new valid date ain't approaching on table VICDCOND, neither it does on the condition tab of the rental object. Where's my mistake?
Regards
Markus
HI Markus,
Please check the following details to be used for updating RO values.
Change Indicator - 'I' to insert or 'U' to update
Condition_Type
Calculation_object_type- 'IM'
Calculation_Object_ID
Valid_From
You also need to execute BAPI_TRANSACTION_COMMIT after executing the above BAPI.
Regards,
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am sorry for my late answer. Bad news: everything checked - everything was set as recommended.
Until now, in my tests I was only trying to update existing conditions. Therefore I used MOVE-CORRESPONDING for condition-type, calculation_object_type and calculation_object_id.
Unfortunately I do not have access to our development instance for the next couple of days, 'cause of processing ERP updates. So I am not able to try some code snippets.
Regards
Markus
Hi Markus,
You are trying to change the valid from date which is one of the key fields. Therefore this field cannot be changed by API directly. You can change it from UI though and the way it works there is that the UI encapsulates the logic of deleting the existing record and inserting a new record with the new valid from date. You may probably need to do a similar thing add a record with deletion indicator for the old valid from date and do an insert of the same record with changed valid from date. This should solve your problem.
Regards,
Vimal
I just figured out that unit_price of the conditions also remains untouched.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
16 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.