08-18-2011 10:07 AM
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
08-18-2011 11: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
08-18-2011 10:40 AM
Hi,
you can find the demo programs for dynamic conditions in DEMO_SELECT*
08-18-2011 11: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
08-18-2011 11: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