on 2024 May 27 6:42 PM
i, our client wants to have prerequisite at the time of sales order creation where certain customers are allowed to create sales orders with order quantity in multiple of half/full pallets only. This check should be active only for certain customer and not all customers.
Ex - Product XYZ has base unit of PC and sales unit of PAL where 1 PAL = 24 PC.
If a customer sends in an EDI order for 15 PC, the EDI message should error out and a failure notification should be sent to a business user whereas, if the same customer sends in an EDI order for 48 PC, system should allow sales order creation as 48 is a multiple of 24 (2 x 24 = 48).
Is there a solution available in SAP S4 Public Cloud to fulfil this requirement?
Hi Akash,
for this scenario, I would recommend investigating the usage of the Cloud BADIs (EDI_SD_ORDER_MODIFY_HEADER, EDI_SD_ORDER_MODIFY_ITEM) available to perform certain modifications to sales orders created via EDI. You can find a detailed guide on this topic in this blog post.
In your case, the EDI_SD_ORDER_MODIFY_ITEM custom logic would be required to check the order quantity in the inbound payload and verify/modify if the quantity is a multiple of the pallet quantity. The only limitation is that the sold-to-party is not available as an importing parameter in the BADI, which the check of the quantity can't be verified only for certain customers. However, a workaround for this could be to create a custom field on the sales order header level ("EDI_CUSTOMER") for example, and if possible, in the EDI interface you could implement a logic such that the end customer's ID or name is written into this custom field. Since custom fields are available as importing parameters, you could then extract the customer's name from the custom field and cross-check this against an internal list of customers maintained for which the pallet quantity check should be executed.
Best regards
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
109 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.