Application Development and Automation 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: 
Read only

Reg Function Module

Former Member
0 Likes
583

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

4 REPLIES 4
Read only

Former Member
0 Likes
547

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.

Read only

0 Likes
547

Can we have any Standard FM for that,other than Z-FM

Read only

Former Member
0 Likes
547

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

Read only

Former Member
0 Likes
547

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.