cancel
Showing results for 
Search instead for 
Did you mean: 

EDI order to automatically reject line items that cannot be allocated( AFS)

Former Member
0 Kudos

Hi All

The requirement is as follows

1. A specific type of customer EDI order enters SAP via IDOC

2. We need to identify these specific orders in SAP and have the ability to automatically reject lines that cannot be allocated (AFS allocation)

3. What are our options using standard functionality of SAP/AFS? Iu2019d prefer an element other than a new doc type. Something such as order reason, or Purchase Order Type (preferred)

4. How is this possible?

Appreciate your quick help and response.

Thanks

Yella

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Roja,

Instead of blocking sales order with reason you can block the customer for particular sales area through T.code XD05,once you block the customer his orders will not get punched untill you remove the block.

Please check and revert

regards

Ram

Former Member
0 Kudos

Hi Ram

Appreciate your reply..

The same customer can have 3 different orders out of which one order may be allocation releavant and other two may not be allocation relevant. If we set a block at customer level as indicated by you then all the orders for the customer will be blocked, which would not match our requirement.

So intead we are planning to findout a way by which their rejection indicator could be set at schedule line item level automatically through IDOC or any other means, preferrably by standard procedure.

Thanks

Yella

Former Member
0 Kudos

Hi Roja,

In that case it will be better to apply reason for rejection at header or item level,you can define your own reason for rejections for better understanding.

Define reason for rejection for header T.code OVAU

For Item T.code OVAG

Regards

Ram

Former Member
0 Kudos

Hi Ram

Thanks again for reply, if we want to automate this rejection process? Is there any way we bring this with configurations?

Please let me know.

Thanks

Yella

Former Member
0 Kudos

Hi Roja,

After seeing your query it can be done through user exit only,there is no option in standard.

User exit in program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAP or

MV45AFZZ - USEREXIT_SAVE_DOCUMENT

take ABAPer help he can fix the problem

in the program you can tell in which conditions the order should be created with automatic reason for rejection.

Regards

Ram

Former Member
0 Kudos

Thanks Ram