cancel
Showing results for 
Search instead for 
Did you mean: 

Full Pallet discount based on same EAN for materials in Sales order

veera5375
Explorer
0 Kudos

Hi Folks,

Condition Records maintained as:

EAN1 - 1 - PAL - 5 EUR

EAN2 - 1 - PAL - 8 EUR

Requirement: if materials/items entered in sales order having same EAN no then SUM those materials quantity(entering quantity in OUT unit-of-measure) and convert quantity into PAL quantity using FM: MD_CONVERT_MATERIAL_UNIT after that check the Total PAL quantity against condition record PAL quantity.

If Total PAL quantity is greater than or equal to condition record PAL quantity then only eligible for full pallet discount so that multiply Total PAL quantity with condition record amount value with respect to EAN no. then distribute Total received discount among the materials based on quantity(these materials having same EAN no. so).

NOTE1: each material, after OUT to PAL conversion using FM: MD_CONVERT_MATERIAL_UNIT rounded off the decimals, like this finally SUM up all the materials PAL quantity.

NOTE2: Created new Z condition type for Full pallet discount as Item condition type

NOTE3: written logic in Implicit Enhancement (in FM: PRICING_COMPLETE)

ERROR:

Sales order created successfully, Delivery done successfully and then Invoice done without automatic posting to accounting so that using VF02 tried to release to accounting but error like "2.91 EUR balance, posting to accounting not possible"

Please advice.

Thanks,

Veera

hsyngvural
Participant
0 Kudos

Have you maintained account key for the condition type in pricing procedure?

Best regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Neeraj_Jain
Active Contributor
0 Kudos

Hello veera v,

Double click on the error and send screen shot of that. If your sale order created as per your expectation then same conditions/amount should be copied into billing.

Might be some conditions changed/updated at the time of creation of invoice. You can also compare both condition record tab of Sale order and billing and check if there is any difference.

Regards,

Neeraj Jain