Google

Friday, January 4, 2008

Please post your questions/doubts(www.sapexplore.com)

Dudes...you can post your questions here and Ill reply very shortly.
Your doubt/s may need detail explanation so drop in your email id also.

Now post your doubts at www.sapexplore.com

13 comments:

Anonymous said...

Hi Safeer I am posting your doubt here, for others to see....

I am facing an issue with my client.In the pricing procedure a condition type A will be active if the scale quantity is 20, if that condition type A is active then he will be eligible for some other discounts say B,C and D.

Now the issue is, though the customer's item quantity is only 1, the condition type A is becoming active(but nothing is coming in the amount column,the condition type is getting displayed in the OR).As this is active discount types B,C and D are getting active bringing negative values to the sales order)

Is there anyway to set a condtion type to be inactive, if the scale quantity is not met...

Guys... Can you please suggest something...

Deepak Rastogi said...

Hi Faraz

To meet this requirement my suggestion is:

For condition type A, create condiotion records starting form scale qty 20. So if qty is less then 20, this condition type will not be active.

and we can use condition supplement, to ensure that condition B, C and D are applied when condion A is found.

Hope it will help to meet client requirement.

Have a nice day.

Faraz - Sapdude said...

Hi Deepak,

I did check the requirement using the condition supplement, it is not working and is giving the same result on doing it otherwise...ie. Discount in negative. Let me know if I am wrong.

Safeer,
Suppose the basic Price condition type is PR00
Discount KA00, KA01 and KA02
in the Pricing Procedure...
You have to write a routine e.g. "42" against the altcaltype and put it in each discount type...The logic for the routine would be to
apply the discount on the basic price (PR00)only if the quantity in the Sales order is more than equal to 20. If it is less than 20 the discount condition type should not return any value.

As per my knowledge u cannot turn a condition type inactive if the scale qty is not met in the standard SAP...instead u can set a minimum order level in the material master to 20 so that system in the first place should not allow to create the SO with less than 20 quantity.

If u still want order to be created with the lesser quantity than 20 and no discount should apply, first logic seems perfect.

Let me know if u r convinced.

Anonymous said...

Hi Faraz & Deepak,,

Thanks a lot for your valuable inputs. I will try that and revert if it works...Some clarifications i need to add in this point of time. LET ME TELL YOU MY REQUIREMENT IN few lines...

The thing is a Condition type is set to be valid if the scale quantity meets 24.MY ISSUE IS THAT y issue is that cond type is getting active though the item quantity is 1 itself , but the amount column which should be $58 is coming as 'Blank'.... i.e the cond type is active without showing or adding any amount in and to the sales order... I was asking is there any way to set the condition type inactive if the scale quantity is not met... (Its not possible through reqt routine...I checked that way)

Can you guys get any suggestions how to fix this...?

-Safeer Rahman

Deepak Rastogi said...

Hi Faraz/Safeer

Seems i misunderstood the requirment. Anyways, if we want disc condition to be active only for > 20 qty, we can create condiotion record with scales starting form 20.

Hope i understand the requirement clearly. and if not, u can use alternative calculation type (as u said) and can proceed.

Safeer Rahman said...

Hi Deepak,

The thing is condition record is already set we have created condition records with scales starting from 20.

But by the time of creating a sales order with item quantity 1, the condition type is getting active with no value in the amount column (as the condition record exists in VK11).This is the issue...

Solution is that.. I want to cutomize the setting in such a way that the particular condition type should be made active if and only if the item quantity is 20.

Any solution gurus...?

-Safeer Rahman

Faraz - Sapdude said...

Question : I want to cutomize the setting in such a way that the particular condition type should be made active if and only if the item quantity is 20.

See Safeer, for making things active/inactive you can make the use of Sales order specific User exits where in u can pass a code at the document level whose purpose would be to turn the condition type active only once the item quantity is 20. Ill tell u the name of the User exit by the end of the day.

Have u tried doing it with condition exclusion groups?

Safeer Rahman said...

Hi Gurus..

Sorry for eating your time....!

I will make myself clear once again...(by not mixing all the complex issues)

There are two condition types A & B, both are Price values and Condtion B type should be made active if and only if the material quantity is 20.Hope i made it clear till this point.

If condition type B is made active as the scale quantity is 20,then a discount type C will get triggered (through condition supplement) which will calculate the diffrence b/w A and B and will depreciate that value from the net value.

For Eg :for a sales order with item quantity 20,
Cond A price=100
Cond B price=80, then
Discount type C =80-100 =20-. so
Gross Value = 100-20 =80 which is ultimately resulting in the value of Cond B only.

Don't ask me why this process is designed in such an intricate manner.Even my client is not aware why is this done this way. And they are not ready to delete any condition types too... (SO Faraz, I think now you may be able to guess why Condition Exclusion will be of no use here).

My doubt here is is it possible to make a condition type to be active if and only if the scale quantity meets 20.

User Exits MV61AFZA or MV45AFZZ will be of any use..?

Can you suggest something...

Thanks for you guys time anyway...

-Safeer

Anonymous said...

Hi safeer..If all your customising settings are fine then the pricing program should not pick the condition type if the scale quantity is not met..and you had explained the issue to a greater extent so far..
pl try these options...

option 1:Pl refer OSS Note 600130 and try to implement... it says "A Pricing condition is Not set to Inactive as it should be" this could be bcos you are using IPC 3.0 support package <= SP14 (get this confirmed with BASIS)

option 2:try for a work around.. I reckon u need to use an exit to get the condition type inactive if the value is zero in the sales pricing calculation. to achieve this you may try the user-exit USEREXIT_PRICING_PREPARE_TKOMP in the include MV45AFZZ.

While executing check if XKOMV-KSCHL = 'XXXX'(condition type in question) then compare material quantity (KOMP- KPEIN) with the scale quantity maintained in the condition record (KONM-KSTBM)if its < than the scale quantity then make KINAK=’X’(deactivation indicator)

i'm not sure whether this will work ...but suggest you to have a try....

Sajith.S

Faraz - Sapdude said...

Hi Sajith,

Re-granted u the access let me know if uve got it this time...and if Safeer is convinced with your answer you can choose to post your coment in the form of New Post for others to see and uinderstand the issue. Dont forget to write the question as well.

Safeer Rahman said...

Hi guys,

Thanks for your time and valuable inputs...

I will try working on that and will update you...

-Safeer

saurav said...

f i want to cancel a contract i can straight away got to va42 and cancel the contract what is the importance of contract profile in cancellation?please help.please tell me how to post this question

Anonymous said...

can u leave ur phone number to me???