‎2008 Aug 01 9:23 AM
Hi,
We are updating Condition records using Function Module RV_CONDITION_COPY.
It is not throwing any error even if we are not providing suffficient data. Can anyone suggest any other FMs which can throw error in that case.
Thanks in advance,
Anand Raj K.
<unsuitable for ABAP Objects - moved to ABAP General. Please choose your forums more carefully in future>
Edited by: Mike Pokraka on Aug 1, 2008 10:24 AM
‎2008 Aug 01 10:42 AM
Write your own custom Y_ function encapsulating the SAP function where you can raise more errors per your wish. Make sure this new FM is attached at the right place in config.
‎2008 Aug 01 11:05 AM
‎2008 Aug 01 11:05 AM
Hello Anand,
I advise you to use the Message Type COND_A (Conditions: master data for price determination) and the appropriate IDoc Type to meet the requirement for updating condition records instead of making a direct call to the Function Module RV_CONDITION_COPY.
The IDoc Inbound Module IDOC_INPUT_COND_A does the following:
a) Data Validations and Conversions
b) Call to the FM RV_CONDITION_COPY from within
This approach will enable you to Validate the data.
Hope this helps.
With Regards
VG
‎2008 Aug 01 11:09 AM
Anand,
just open OIRC_PRICECONDITIONS_SAVE in se37 in that RV_CONDITION_COPY has been used you can take help from this fm for what data you must pass to RV_CONDITION_COPY.
Amit.