Application Development 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: 

How to Slect Pricing Condition Values Dynamically

Former Member
0 Kudos

Hi Friends,

For pricing Condition(ZPRO),the functional consultant will be mainting the values VK11 transaction.

In VK11 transaction there are different Key combinations.based on the key combination that is selected the values will be stored in different pricing values tables like ( A902,A544,A501,A996, A950,A960 etc. ).

now my code has to be such a way that the program selects the Condition record number,the filed KNUMH ,is selects dynamically.later I will pass the Condition record number to KONP table get the values( KBETR-condition amount or percentage).

Please help me in finding the record number Dynamically,and if there is any sample code for that ,please provide.

Regards,

Xavier.P

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check whether the combination of functional modules SD_COND_T685_SELECT (determination of Pricing access sequence) & RV_GET_CONDITION_TABLES (Determination of condition table based on access sequence) will be helpful for your requirement.

Regards, Vinod

3 REPLIES 3

Former Member
0 Kudos

Hi,

you can find the demo programs for dynamic conditions in DEMO_SELECT*

Former Member
0 Kudos

Hi Xavier,

I have one sloution you may not like it ;(

First of all find out the possible tables( A902,A544,A501,A996, A950,A960 etc.) from which you can pick field Condtion record number.

Do a:

Select on A902.

if sy-subrc NE 0.

Select on A544.

Elseif sy-subrc EQ 0.

come out with Condition record number.

if sy-subrc NE 0.

Select on A501.

If sy-subrc EQ 0.

Come out with  Condition record number.

Hope you got tha idea.

BR

Dep

Edited by: DeepakNandikanti on Aug 18, 2011 12:01 PM

Former Member
0 Kudos

Check whether the combination of functional modules SD_COND_T685_SELECT (determination of Pricing access sequence) & RV_GET_CONDITION_TABLES (Determination of condition table based on access sequence) will be helpful for your requirement.

Regards, Vinod