Skip to Content
author's profile photo Former Member
Former Member

How to Slect Pricing Condition Values Dynamically

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 18, 2011 at 10:07 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2011 at 09:40 AM

    Hi,

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2011 at 10:00 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.