‎2012 Aug 16 12:31 PM
Hi All,
I am working with a VOFM, Data Transfer-> Deliveires routine.
I've created a new routine and the routine is activated. i can trigger the break-point aswell.
my requirement in routine is:
i've to split a delivery when ever the volume is going beyond 200.
VBAP-VOLUM
my routine is triggering 6 times if i've line items. and 11 times if i've 10 line items.
if i update LIKP-ZUKRL filed delivery can be splitted.
i've written some logic in routine
Data: counter TYPE n VALUE 1,
vol TYPE vbap-volum.
vol = vol + cvbap-volum.
IF vol > 200.
CLEAR : vol.
vol = cvbap-volum.
counter = counter + 1.
LIKP-ZUKRL+4(2) = counter.
ELSE.
LIKP-ZUKRL+4(2) = counter.
endif.
but it is not working. i can able to split the deliveries but line items are not coming correctly.
please help me.
Thank you,
Chinna
‎2012 Aug 16 3:23 PM
Hi
First, see the next notes
SAP Note 355404 - Why was there a delivery split during creation?
SAP Note 546668 - FAQ: Delivery split when creating deliveries (question 6)
SAP Note 166397 - Delivery split according to customer field ZUKRL
LIKP-ZUKRL is diferent? I think you are creating deliveries from SO, am I right? Think you could create deliveries for subcontracting (tcode ME2O) or for stock transfer orders or STO with VL10B or VL10D (you have userexits, see Note 198137 - VL10: Customer-specific enhancements / user exits)
I hope this helps you
Regards
Eduardo
‎2012 Aug 16 3:23 PM
Hi
First, see the next notes
SAP Note 355404 - Why was there a delivery split during creation?
SAP Note 546668 - FAQ: Delivery split when creating deliveries (question 6)
SAP Note 166397 - Delivery split according to customer field ZUKRL
LIKP-ZUKRL is diferent? I think you are creating deliveries from SO, am I right? Think you could create deliveries for subcontracting (tcode ME2O) or for stock transfer orders or STO with VL10B or VL10D (you have userexits, see Note 198137 - VL10: Customer-specific enhancements / user exits)
I hope this helps you
Regards
Eduardo
‎2012 Aug 22 8:20 AM
Hi Eduardo,
We are creating deliveries for sales order using VL10G.
Please suggest.
Deliveries are being split based on incoterms, i want to apply the same logic to my requirement.
Please help me,
Thanks,
Chinna
‎2012 Aug 22 9:15 AM
Hi
Check in tcode VTLA, for the couple LF-OR what VOFM subroutine you have in the field data transfer/header data. This subroutines rule how are populated some fields of table LIKP (for instance field ZUKRL and you could use the field INCO1 to populate this field with an offset). Read again carefully note 546668.
Regards
Eduardo
‎2012 Aug 22 10:56 AM
Hi,
i've checked in VTLA,
The data transfer header data it is 902(customized).
i've copied code of 001 routine in side of this 902 routine aswell.
though i am updating LIKP-ZUKRL with a counter variable, splitt is happening.
but there is a mismatch in the line items of a delivery.
Thanks,
Chinna
‎2012 Aug 22 1:59 PM
Hi
Have you run the report RV80HGEN? Please, see notes 326560 and 327220.
Regards
Eduardo
‎2012 Aug 23 12:33 PM
Hi,
i run the program already and activated the routine. VTLA configuration also done.
my question is if we are simply moving one value to LIKP-ZUKRL how the system will understand that we are going to split a delivery.
after entering value into ZUKRL filed do we need to develop any code to to split delivery or create new delivery?
Thanks,
Chinna
‎2012 Sep 03 11:50 AM
Hi All,
my routine is being called 2 times for every first line item.
i've used a check to avoid the repeating of first line item.
problem solved.
Thank you all for your support.
Chinna
‎2014 Aug 29 12:14 PM