on 10-14-2014 7:00 AM
Hi All,
I have a requirement that needs to suppress or stop the creation of F2/ZF2 invoice for a delivery with delivery type 'LF',moreso the it will only be restricted to a specific reference type of order document.
Example: I created an order ZOR, from that order I created a delivery which will be billed. billing document F2 and ZF2 will not be allowed to be created.
Is it possible to place a logic in the copy control of LF to F2 and LF to ZF2?
Please let know on where can I place the logic to stop the creation of F2 and ZF2 documents?
Thanks alot.
Hi
On the delivery creation side you could set a billing block (LIKP-FAKSK) under your own conditions.
Likewise on the billing side you could copy one of the standard billing requirements (VOFM)
and add your check in your custom requirement.
Delivery related billing is carried out here:
LV60AA22 -> form FAKTURA_LIEFERBEZOGEN
...
* Lesen Kopiertabelle TVCPF
if *tvcpf-fkarn ne xfkart or *tvcpf-lfarv ne likp-lfart.
select single * from tvcpf into *tvcpf
where fkarn = xfkart
and auarv = space
and lfarv = likp-lfart
and fkarv = space
and pstyv = space.
if sy-subrc ne 0.
...
* Prüfen Bedingungen lt. TVCPF
if *tvcpf-grbed ne 0.
bedmodul-nr = *tvcpf-grbed. >>> header routine
...
* Lieferposition mit Referenzauftrag
perform fakturaposi_lieferbezogen. >>> item routine
You have the billing type and reference delivery type in *tvcpf so you could check the contents
under your conditions and issue an error message to stop the billing.
Hope it helps
Kind regards
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi You will have a unique entry in the copy control table (TVCPF) so I guess you can implement any check you like to make sure billing cannot be carried out for that order type. I suppose you will ultimately have to create a billing document though ? If the item is billing relevant and you don't bill it
you will build up infinite numbers of unresolved entries in the VKDFS table.
A blanket check that will always fail will mean these entries can never be invoiced.
I am not sure of the requirement but of course you can implement many way of achieving the goal just to be aware of side effects. You should perhaps have a custom item category without billing relevance if you do not intend to bill them.
Kind regards
Brian
This has been resolved. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just remove copy control for delivery to billing LF to F2/ZF2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.