Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VOFM Routine Data Transfer routine error

Former Member
0 Likes
2,159

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

1 ACCEPTED SOLUTION
Read only

eduardo_hinojosa
Active Contributor
0 Likes
1,670

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

8 REPLIES 8
Read only

eduardo_hinojosa
Active Contributor
0 Likes
1,671

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

Read only

0 Likes
1,670

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

Read only

0 Likes
1,670

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

Read only

0 Likes
1,670

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

Read only

0 Likes
1,670

Hi

Have you run the report RV80HGEN? Please, see notes 326560 and 327220.

Regards

Eduardo

Read only

0 Likes
1,670

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

Read only

0 Likes
1,670

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

Read only

Former Member
0 Likes
1,670

issue resolved.