cancel
Showing results for 
Search instead for 
Did you mean: 

update reason for rejection from delivery item

Former Member
0 Kudos

Dear All,

I would like to update reason for rejection field of sales order item, from delivery creation T-code. If anybody had done something like this, please help me.

Thanks.

Regards,

Ravi

Accepted Solutions (0)

Answers (5)

Answers (5)

Jelena
Active Contributor
0 Kudos

This question has already been asked several times before, please use Search. The same exact question posted just a few days ago: http://scn.sap.com/thread/3277904

Former Member
0 Kudos

Hi Ravi ,

As per my uderstanding of your query, you want to set the reason for rejection of the sales order item when there is partial delivery and the trigger point should be from the delivery document. May be you can develop a custom program to set the reason of rejection. I am not sure whether we have any user-exit to handle this beacuse the trigger point is in delivery and the action is in sales order.

Please also consider that when you delete the delivery document, the reason of rejection should be set to "BLANK".

former_member182378
Active Contributor
0 Kudos

Vinu,

Thanks for your post!

I am not sure whether we have any user-exit to handle this beacuse the trigger point is in delivery and the action is in sales order.

Please also consider that when you delete the delivery document, the reason of rejection should be set to "BLANK".

Interesting remarks!

former_member182378
Active Contributor
0 Kudos

Ravi,

When reason for rejection is given in the sales order, for a line item, then for that line item there would not be delivery created!

I would like to update reason for rejection field of sales order item, from delivery creation T-code. 

Please explain your requirement, if delivery is created, for the ref. sales order line item put reason for rejection.

If reason for rejection is put in the sales order, line item then how delivery is created?

Former Member
0 Kudos

Hi,

In the case of partial delivery, it is possible.

Thanks,

Regards,

Ravi

former_member184555
Active Contributor
0 Kudos

Hi

Please refer the OSS Note 415716 - User exits in delivery processing

I guess, the below exit will be useful for you to handle your requirement. Consult your abaper and they can handle the sales order change through a BAPI.

FORM routine USEREXIT_SAVE_DOCUMENT (include MV50AFZ1)

Thanks,

Ravi Sankar

Former Member
0 Kudos

Ravi Sankar,

FORM routine USEREXIT_SAVE_DOCUMENT (include MV50AFZ1).

Using the specified user exit, we can only update LIKP, LIPS, VBUK tables . But not, VBAP table.

The problem is, when a delivery is created no field of VBAP gets updated.

Thanks.

Regards,

Ravi

Lakshmipathi
Active Contributor
0 Kudos

Can you please explain the scenario under which, you want this weird requirement ??

G. Lakshmipathi

Former Member
0 Kudos

Hi,

If a sales order has been created with an item for quantity 10. At the time of delivery creation, if only 5 quanity is available, then the delivery creation person will set input a custom field at delivery item level. Whatever value has been set in the custom field, must be updated in sales order item reason for rejection field for reporting purpose.

There are no user exits, BADIs, BTE, etc.

Thanks.

Regards,

Ravi

former_member182378
Active Contributor
0 Kudos

Ravi,

Thanks for your reply!

Now I have more understanding on this requirement.

For reporting purposes in the sales order at line item why don't you consider Tab Additional B?

The field Reason for rejection would be applicable for 10EA (total amount of that line item). But your company has already delivered 5EA.

Thus for only 5EA that is not deliveried, you want to put a reason (not for 10EA).

Former Member
0 Kudos

Hi,

I have simulated a scenario where in i have created a sales order for quantity 10 EA. I have created a delivery of 5 EA. And then i have changed  the sales order item, by putting the reason for rejection field to 'Out of Stock' and saved it. It worked. Now, when i do 'VL01N' , i get message 'No deliverable items'.

Hence, we can conclude that we can put reason for rejection to partial delivery items also.

Thanks.

Regards,

Ravi

former_member184065
Active Contributor
0 Kudos

Hi,

http://scn.sap.com/thread/2062796

Please have a look into above link.

Request : Please search in Google before posting this type of queries .you can get a lot of threads on this .

Thanks,

Naren