Re: [sap-log-sd] Pricing Condition to if All Material Line Items meet Criteria

Posted by jim-wolfe
on Nov 21 at 11:11 PM
Without doing a lot of experimentation, I think you'd be better off looping through one of the line-item pricing structures, such as tkomp,

---------------Original Message---------------
From: rubitoncek
Sent: Monday, November 21, 2011 1:22 PM
Subject: Pricing Condition to if All Material Line Items meet Criteria

Hi Experts,
My client has a requirement to pick a header freight pricing condition (header group condition) only if all the materials in the sales order have a particular Level 2 product Hierarchy. If at least 1 line item in the sales order does not have the required product hierarchy the system will not calculate freight. A requirement routine has been created to check line items in the sales order . The following code was introduced to the routine to dynamically check the material line items while creating the sales order:

lc_xvbap(17) type c value '(SAPMV45A)XVBAP[ ]' and the program loops through this table to check the line item product hierarchy and see if it is applicable for freight.

Problem with this code is that when the user deletes a line item and changes it for another material then (SAPMV45A)XVBAP[ ] does not get refreshed automatically unless the order is saved. This means that order can look as if freight has been picked incorrectly. Is there a way to ensure SAPMV45A)XVBAP[ ] is refreshed straight away?

Many Thanks

Copyright © 2011 and message author. 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
SAP Logistics Sales and Distribution Helper

Posted helpful replies on 5 threads in a group to earn a Bronze Achievement
Popular White Papers

In the Spotlight
Have you explored the Marketplace? Learn more and access a free course now.