on 12-08-2020 1:38 PM
Hello,
In our sales order, billing block is set. But still system allows to create inter-company invoice (wrt delivery) and normal invoice (with ref to delivery) . It should not allow. We have ZIV inter company and ZF2 as normal invoice.
Any pointers where there could be issues in config or if it is an ABAP issue, which user exit or routine one needs to debug to find out the cause ?
regards
sonu
In this case the next thing that I would check would be the VOFM routines in VTFL on item level, e.g. ZF2 ->LF for TAN. In standard systems you have routine 004 (LV60A004) which checks the billing block on order header level:
* Billing block for order header
IF vbak-faksk NE space.
SELECT SINGLE * FROM tvfsp WHERE faksp = vbak-faksk
AND fkart = tvfk-fkart.
IF sy-subrc = 0.
lv_doc_cat_descr = cl_sd_doc_category_util=>get_description( iv_document_category = vbak-vbtyp ).
PERFORM vbfs_hinzufuegen USING lips-posnr '064' lv_doc_cat_descr
vbak-vbeln
space.
sy-subrc = 4.
EXIT.
ENDIF.
sy-subrc = 0.
ENDIF.
If you do not have a routine assigned - this could be a possible reason why the process does not work as you expected.
If this is a custom routine - check if you have similar coding in it. If you are not sure about the performed checks in a custom routines- place a breakpoint in the routine and debug.
If you use 004 - you can start from the routine via debugging and check if some custom logic overwrites the error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Veselina,
Billing blocks are assigned to billing types. Now what should I do ? which exits/routines do we need to look at ?
rgds
sonu
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.