2013 Jul 01 12:52 PM
ABAP Exception: PARTIAL_DELIVERY_FORBIDDEN
Hi Experts,
I am getting above error while processing TO with RFC (L_TO_CREATE_DN).
Here I am trying to create TO against delivery note for an item (103104,103115) which is to picked from 2 bins.
| Material | Plnt | Sloc | Batch | Qty in Bin | Uom | Bin No. | Delivery No | Ship Qty |
| 103104 | xxxx | xxxx | 3191210037 | 40 | PC | CD-030-008 | 50000985 | 140 |
| 103104 | xxxx | xxxx | 3201950094 | 100 | PC | CD-030-009 | 50000985 | |
| 103110 | xxxx | xxxx | 3201970073 | 50 | PC | CD-031-004 | 50000985 | 50 |
| 103112 | xxxx | xxxx | 6029616 | 150 | PC | CD-035-006 | 50000985 | 150 |
| 103113 | xxxx | xxxx | 6016244 | 200 | PC | CD-024-010 | 50000985 | 200 |
| 103115 | xxxx | xxxx | 2443114 | 300 | PC | CD-037-003 | 50000985 | 1450 |
| 103115 | xxxx | xxxx | 3201850085 | 1150 | PC | CD-037-004 | 50000985 |
When I tried to pick the material WHICH IS TO BE PICKED FROM 2 BINS , I got an error message PARTIAL_DELIVERY_FORBIDDEN.
Please explain, how to get rid of this error.
Regards,
Vishal Verma
2013 Jul 01 9:58 PM
Vishal, welcome to SCN!
For your (and others') benefit I'll explain the steps here, but going forward, please do this kind of analysis yourself first before posting a question.
Transaction SM37, display FM L_TO_CREATE_DN. PARTIAL_DELIVERY_FORBIDDEN is listed as excaption here, so it must be triggered somewhere in the code. How do I find? Go to the menu Edit -> Find/Replace. Then enter PARTIAL_DELIVERY_FORBIDDEN in Find field and select 'In main program' (important!). Now we're in luck since it occurs only once in the include LL03BF1G:
IF T340D-TEILV IS INITIAL.
LOOP AT LFP.
IF LFP-KOMEA NE 0.
MESSAGE E132 RAISING PARTIAL_DELIVERY_FORBIDDEN.
ENDIF.
ENDLOOP.
ENDIF.
A quick check shows that LFP-KOMEA is the remaining delivery quantity, so the culprit is T340D-TEILV, which seems to be a customizing setting at the warehouse level. Obviously with this setting any partial picking won't work (each bin is a partial pick in this case, even though it may seem counterintuitive). As an alternative - goods have to be moved to one bin before picking.
2013 Jul 05 7:30 AM
Dear Jelena Perfiljeva
I am sending you the screen shot, please check & suggest what value should be passed to the fields mentioned there
2013 Jul 05 7:52 AM
Hi,
The messgae has nothing to do with the parameters that you passed to FM.
As per her suggestion
check the table T340D and field TEILV for that particular Wh. if it is initial then it is throwing that error message.
So to avoid the messgae, maintain a vlaue in TEILV field in T340D table and check
Regards,
Swarna.