Skip to Content

VF04 split

Jun 26, 2017 at 11:10 AM


avatar image

One of our customers has this process:

At the moment of the outbound delivery creation related to the sales order, if they need packaging material they add it directly in the outbound delivery and use it to package the delivered material.

At the end of the month they launch the VF04 - billing due list -. For this particular process only the ZWIA are created in the pool and thereafter they have to bill the "packaging positions" due to invoice, using the VF01 - first choosing manual the ZF2.

In "Copy control" Delivery => Invoice, the "position type A" is part of the LF => ZWIA customizing while "position P" => ZF2.

I would like to configure this process so that they do not require further steps more after the VF04 - and that therefore, after launching it, the outcome is the two invoices (ZWIA and ZF2).

Thanks for your help in advance,


captura.jpg (28.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

G Lakshmipathi
Jun 26, 2017 at 11:35 AM

Not clear with your statement. Once you execute VF04, is the billing document not generated for packaging material? If not, you need to check the item category of that packaging material whether billing relevance is set for that

Show 4 Share
10 |10000 characters needed characters left characters exceeded

G Lakshmipathi,

Billing relevance of the packing mat item category must be set, or else how is the user able to create ZF2 invoice for these packing materials.




Please go through OP's comments once again where it is not clear whether he has configured for ZF2 or not. In fact, OP mention

I would like to configure this process

which I presumed, he is seeking inputs from SCN


Agree that things could have been explained more clearly and it is difficult to identify what is already working in SAP and what the OP wants to setup.

What I understand is that:


Two steps are involved in creating ZWIA and ZF2 -

1. VF04, this creates ZWIA

2. manual step, VF01, this creates ZF2 for packing material


Have only one step involving VF04 to create both ZWIA and ZF2 invoices.


Mr Typewrite understood and summarized perfectly my request.

This process is working right now as explained in AS IS. And the TO BE is what I'm trying to figure out.

I did find something that might help me:

G Lakshmipathi
Jun 26, 2017 at 01:49 PM

You still have not answered whether the item category is unique for both the items. If it is different, you need to compare what settings is there for Billing Relevance and finally, ensure in VF04, all the relevant check boxes are selected under "Documents to be selected"

10 |10000 characters needed characters left characters exceeded
Typewriter TW Jun 26, 2017 at 12:22 PM

What are the Billing types user inputs in the selection screen of VF04, have you tried by inputting both billing types in field "Billing Type"?

Show 5 Share
10 |10000 characters needed characters left characters exceeded

The VF04 only finds the ZWIA. After this ZWIA is posted, doesn't find any more - that's why they currently use the VF01 to bill the package positions left to be invoiced.


The question is -

Why with VF04 user cannot invoice delivery with packing material?

If billing document can be created with VF01, then it should be possible to create it with VF04 too.

Perform below test:

1. Create a delivery with only packing material

2. In the selection screen of VF04 input ZF2 in field "Billing Type" and execute. Does the billing due list pickup the delivery referred to in 1?

If not, please paste the screenshot here


I tested and the test was quite relevant. I found something.

The VF04 tries to bill the Pack position with a ZWIA ... BUT as in "copy control" is not allowed, it triggers an error. And that's perfectly fine.

The thing I found is that in "MV50AFZ1 form userexit_move_field_to_lips", given a certain condition (customers country = 'ES') the likp-fkarv = 'ZWIA' (FKARV = "The billing type that the system automatically proposes for this type of sales document during the creation of billing documents (invoices, credit memos, etc.) that refer to deliveries").

I guess I should try to substitute this "billing type proposal" in "copy control" at "pack position type" level - using a new routine in Data VBRK/VBRP... That's my best guess by now.


To confirm, did you test by inputting billing type ZF2 in the selection screen of VF04, when you try to bill a delivery with packing material?

Before doing any development, please test this.


Yep... actually when I wrote "I tested and the test was quite relevant" - the test I did is the one you mentioned.

I'm trying to figure out where is the best point to develop... I'll try tomorrow to put some breakpoint in copy control and see what I can do.

I'll keep you posted - thanks very much for your help.

Typewriter TW Jun 26, 2017 at 02:05 PM

After understanding your business need, my "overall" suggestion is to find a SD analyst and s/he will be able to fix this issue which has low difficult. S/He will take care of the analysis (customizing if any, may not be required), impact analysis, testing and user manual.


Show 1 Share
10 |10000 characters needed characters left characters exceeded

I'm SD consultant but the customer is new for me and his system after more than 8 years running has Z's and points where I find unexpected code etc...

Let's see what I can get!