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

Using BAPI_PRICES_CONDITIONS

Former Member
0 Likes
949

Hi All,

I have developed a functional module ZXX_FM which calls the BAPI_PRICES_CONDITIONS to create/change prices. I also developed a ZXX_Prog program which calls the fm ZXX_FM.

Problem:

If I call the fm ZXX_FM directly using the code SE37 and execute. All prices were created as expected. Fine. I can also see the prices using code VK13.

now if use the ZXX_Prog and call the fm ZXX_FM within the program, the condition records are created in all DB (A006, KONH, KONP) but using code VK13, I am not getting the price displayed. I have debugged the underlying report to VK13 (RV13ANBC) and found out that at code line 393, my creadted condition records (using prog ZXX_Prog) is not selected.

Question:

Has anyone had such experience before?

Why the prices are created using the function module ZXX_FM and not when using Program ZXX_Prog?

3 REPLIES 3
Read only

Shahid
Product and Topic Expert
Product and Topic Expert
0 Likes
592

Never experienced this sort of issue....

there is an other post where we had some discussion and code, may be not be helpful to you

rather than a program, create a class and call the bapi in the method. it worked for me...

Read only

Former Member
0 Likes
592

I guess I will have to use the class method CL_CACS_APPL_DATA_SERVICES->CREATE_NEW_CONDITION_RECORD or the FM RV_CONDITION_COPY

Read only

Former Member
0 Likes
592

I also found out what I am doing wrong. The VAKEY input was errornous. I inputed the value in Debug modus and the prices conditions were created successfully.

Thanks.