‎2011 Aug 02 1:38 PM
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?
‎2011 Aug 02 2:21 PM
‎2011 Aug 03 8:50 PM
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
‎2011 Aug 03 8:52 PM
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.