Stop Creation of Billing Document in Future date
Hi Experts
We create Billing Document in VF01 on basis of Outbound delivery, system create Billing Document in current date.
but when we choose future date that time also system create billing Document l in future date .
Issue : While create Billing Document in future date system should not allow to do the same.System should give error message while creating Billing document in future date.
please reply as early as possible
Regards
Pash@SD
Hello
Refer following link:
- Restrict from entering future billing date
Thanks & Regards
JP
Similar Messages
-
How identify closed accounting period to restrict creation of billing document in sap
Hi Experts,
I have a requirement to identify the closed periods in sap based on this we need to restrict the creation of billing document .
Actually we are working for Brazil client, there we have notafiscal which created along with billing document.we are maintaining periods monthly basis.
When the periods are closed accounting document not created and billing document is created this is working fine . But over scenario along with billing document notafiscal number is also created which is causing the problem. This notafiscal should not be created without a accounting document.
so my client wants to restrict creation of billing document also when these monthly periods are closed.
Please suggest me a solution.
Regards
RaviHelllo Ravinder,
To check if a period is closed using the FM FI_PERIOD_CHECK.
First calculate the period of the FI document date.
DATA: GJAHR LIKE BKPF-GJAHR,
MONAT LIKE BKPF-MONAT,
POPER LIKE T009B-POPER.
CALL FUNCTION 'FI_PERIOD_DETERMINE'
EXPORTING
I_BUDAT = I_BUDAT
I_BUKRS = I_BUKRS
* I_PERIV = ' '
* I_GJAHR = 0000
* I_MONAT = 00
* X_XMO16 = ' '
IMPORTING
E_GJAHR = GJAHR
E_MONAT = MONAT
* e_poper = poper
EXCEPTIONS
FISCAL_YEAR = 1
PERIOD = 2
PERIOD_VERSION = 3
POSTING_PERIOD = 4
SPECIAL_PERIOD = 5
VERSION = 6
POSTING_DATE = 7
OTHERS = 8.
IF SY-SUBRC = 0.
MOVE MONAT TO POPER.
CALL FUNCTION 'FI_PERIOD_CHECK'
EXPORTING
I_BUKRS = I_BUKRS
* I_OPVAR = ' '
I_GJAHR = I_GJAHR
I_KOART = '+'
* i_konto =
I_MONAT = POPER
EXCEPTIONS
ERROR_PERIOD = 1
ERROR_PERIOD_ACC = 2
OTHERS = 3.
ENDIF.
Tutorial ABAP How to check that posting date belongs to closed period - ABAP Development - SCN Wiki
I hope you help. -
Block cancellation/creation of billing document on CLOSED posting period
Hi Experts,
Currently, user is allowed to cancel/create backdated billing document where period already closed, but it does not release to accounting automatically, due to the period has been closed.
When account user found out that the accounting document is missing for the billing document, they have to re-open the period and manual release it to accounting, in order to generate the accounting document.
Therefore, we need the billing document to be blocked for cancellation/creation on CLOSED posting period.
Is there any settings in stardard SAP to block cancellation/creation of billing document on CLOSED posting period?
would appreciate your inputs.
Thanks and Regards,
N.C.ReddyHi ,
We have blocked cancellation/ creation of billing document through below user exit. Below is the progran code also.
***INCLUDE RV60AFZC.
FORM USEREXIT_NUMBER_RANGE_INV_DATE USING US_RANGE_INTERN.
Example: Number range from TVFK like in standard
US_RANGE_INTERN = TVFK-NUMKI.
*{ INSERT KPDK904773 1
*Block creation or cancellation of billing doc in closed period
DATA : gv_gjahr TYPE bkpf-gjahr,
gv_monat TYPE bkpf-monat,
gv_poper TYPE t009b-poper,
gv_bukrs TYPE t001-bukrs,
lv_gjahr TYPE t001b-frye1,
lv_monat TYPE t001b-frpe1,
gv_oper TYPE t001b-frpe1.
CLEAR : gv_gjahr, gv_monat, gv_poper, gv_bukrs.
gv_bukrs = vbrk-bukrs.
IF NOT likp-wadat_ist IS INITIAL.
*- First determine the Period of the Actual GI date.
CALL FUNCTION 'FI_PERIOD_DETERMINE'
EXPORTING
i_budat = likp-wadat_ist
i_bukrs = gv_bukrs
IMPORTING
E_GJAHR = gv_gjahr
E_MONAT = gv_monat
E_POPER = gv_poper
EXCEPTIONS
FISCAL_YEAR = 1
PERIOD = 2
PERIOD_VERSION = 3
POSTING_PERIOD = 4
SPECIAL_PERIOD = 5
VERSION = 6
POSTING_DATE = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
CLEAR : lv_gjahr, lv_monat.
lv_gjahr = gv_gjahr.
lv_monat = gv_monat.
*- Once period is determine check whether Period is open or not for 'D' - Customer Account
CALL FUNCTION 'FI_PERIOD_CHECK'
EXPORTING
I_BUKRS = gv_bukrs
i_gjahr = lv_gjahr
i_koart = 'D'
i_monat = lv_monat
IMPORTING
E_OPER = gv_oper
EXCEPTIONS
ERROR_PERIOD = 1
ERROR_PERIOD_ACC = 2
INVALID_INPUT = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
*- Once period is determine check whether Period is open or not for 'S' - All G/L Accounts
CALL FUNCTION 'FI_PERIOD_CHECK'
EXPORTING
I_BUKRS = gv_bukrs
i_gjahr = lv_gjahr
i_koart = 'S'
i_monat = lv_monat
IMPORTING
E_OPER = gv_oper
EXCEPTIONS
ERROR_PERIOD = 1
ERROR_PERIOD_ACC = 2
INVALID_INPUT = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
*- Check Billing Date period is closed or not
IF kom-fkdat is not initial.
clear : gv_gjahr, gv_monat, gv_poper.
*- First determine the Period of the Actual GI date.
CALL FUNCTION 'FI_PERIOD_DETERMINE'
EXPORTING
i_budat = kom-fkdat
i_bukrs = gv_bukrs
IMPORTING
E_GJAHR = gv_gjahr
E_MONAT = gv_monat
E_POPER = gv_poper
EXCEPTIONS
FISCAL_YEAR = 1
PERIOD = 2
PERIOD_VERSION = 3
POSTING_PERIOD = 4
SPECIAL_PERIOD = 5
VERSION = 6
POSTING_DATE = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
CLEAR : lv_gjahr, lv_monat.
lv_gjahr = gv_gjahr.
lv_monat = gv_monat.
*- Once period is determine check whether Period is open or not for 'D' - Customer Account
CALL FUNCTION 'FI_PERIOD_CHECK'
EXPORTING
I_BUKRS = gv_bukrs
i_gjahr = lv_gjahr
i_koart = 'D'
i_monat = lv_monat
IMPORTING
E_OPER = gv_oper
EXCEPTIONS
ERROR_PERIOD = 1
ERROR_PERIOD_ACC = 2
INVALID_INPUT = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
*- Once period is determine check whether Period is open or not for 'S' - All G/L Accounts
CALL FUNCTION 'FI_PERIOD_CHECK'
EXPORTING
I_BUKRS = gv_bukrs
i_gjahr = lv_gjahr
i_koart = 'S'
i_monat = lv_monat
IMPORTING
E_OPER = gv_oper
EXCEPTIONS
ERROR_PERIOD = 1
ERROR_PERIOD_ACC = 2
INVALID_INPUT = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
IF kom-fkdat4(2) <> likp-wadat_ist4(2).
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
*} INSERT
ENDFORM.
FORM USEREXIT_FILL_VBRK_VBRP *
This userexit can be used to fill fields in VBRK and VBRP *
Be aware, that at this time the work areas KUAGV KURGV *
KUWEV and KUREV are not filled. *
This form is called from FORM VBRK_VBRP_FUELLEN. *
FORM USEREXIT_FILL_VBRK_VBRP.
Example: change Tax country
VBRK-LANDTX = T001-LAND1.
ENDFORM.
*eject -
Backgorund job for automatic creation of billing document
Dear All
Could you advise me on how to set up a bacground job for automatic creation of billing document?
Thanks and regards,
SylwiaIn standard, you cannot generate automatic billing but you can set date and time so that you can generate invoices at the specified time in bulk. The TCode to achieve this is VF06.
thanks
G. Lakshmipathi -
Bacground job for automatic creation of billing document
Dear All
Could you advise me on how to set up a bacground job for automatic creation of billing document?
Thanks and regards,
Sylwia
Edited by: S. KOWALSKA on Jan 12, 2009 10:12 AMDear Sylwia
Please dont post the same question in multiple threads. You are receiving feedback in the other forum. Check this link
[Backgorund job for automatic creation of billing document |Backgorund job for automatic creation of billing document;
thanks
G. Lakshmipathi -
Automatic creation of billing document
Hi all,
i want to automate creation of billing document for all the deliveries for which PGI done.
i think we have to define a job which will call VF04.
my question is when we do VF04 manually, we have to give selection criteria like sales org etc and then it displays the list of all the deliveries and then we have to select the deliveries manually and press collective billing/individual billing.
so when the batch job calls the VF04, how will the batch job tells VF04 to select all deliveries and generate the invoices.
regards
sachinHi Sonu,
Go to VF04 and provide the inputs in the selection screen. Now save this as a variant.say ZZ_INV_DUELIST
After saving the variant, find the program name of the tcode VF04. This can be found by going to System----Status in the menu. The resultant screen will have the program of the tcode VF04. Lets say it is BILLDUELIST
Now go to SM36. Give some name for hte job name and click Step button
Here you have to give the program name(BILLDUELIST) and the variant name(ZZ_INV_DUELIST). Here you can also configure whether the job should run immediately or in some schedules.
Once this is done, you can create a delivery and then run this program in SM37. Now you can see the log of this program. It will tell you that the invoice is created
Hope this helps -
Automatic creation of billing documents
Hi all,
i want to automate creation of billing document for all the deliveries for which PGI done.
i think we have to define a job which will call VF04.
my question is when we do VF04 manually, we have to give selection criteria like sales org etc and then it displays the list of all the deliveries and then we have to select the deliveries and press collective billing/individual billing.
so when the batch job calls the VF04, how all the deliveries are selected and the selection criteria taken into account by the batch job,
regards
sachinhi,
thanks for the reply.
my mian question was when the batch job calls the VF04 and the slection criteria is filled using variants, then the list of deliveries is called up by VF04. my question is how will the batch job select all the deliveries for invoice creation beause whn we run the VF04 witout bathc jb ,we need to select the deliveries for billing (either collective or individual)
reards
sachin -
Error during creation of Billing Document
Dear All,
we are getting an error while creatin billing document . The error message is as follows.
1.0154000188 000010 Order item 0139000078 000010 is missing .
Here my delivery number is 0154000188 .
my order no is 0139000078.
when i go technical data section it gives message no 029.
i have already seen the copy control it works fine.
kindly reply soon.
Regards,
Ajinkya.hi,
once your order is created and also delivery, there is no problem in the data of the material.
the only possibility is that you must have skipped the post goods issue step or if PGI is mandatory for delivery creation then there must not be appropriate stock for that item.
you can check the stock of that particular material in the specific plant by t.code MMBE.
regards,
Siddharth. -
Excise Invoice creation error -Billing document does not exists
Dear Experts,
I have created supplementary sales order, billing with refernece through sales order by VF01.
Now I want to create Excise Invoice but system gives error Billing Document does not exists
I have checked billing document in VBRK table & it is showing in table.
My item categroy is L2N -and set it to C
I have assigned Billing type under Outgoing excise invoice ->Assign billing type to delivery type still my excise invoice is not generating.
Pl. guide me.
Thanks
TruptiResolved my problem.
Actually in Billing item categroy if you put SD Doc. Catg. as M you can do excise invoice even if you have not created the
outbound delivery.
So cycle will be Supplementary Sales Order->VF01 with ref. to SO->J1IIN -Excise invoice creation.
Thanks to all.
Trupti. -
Creation of Billing Document - Item is not relevant for billing
Hi
While trying to Create a Billing document after entering the Order No.the following error msg shown in the Tool Bar
No Billing Documents were generated. See log
The Error Log shows the following msg with Yellow coloured indication :
000000xxxxxx 00010 The item is not relevant for billing.
Technical Data
The Technical Data shows the Client
Group Number
Sales Document Number
Item Number of the SD Document
Schedule Line Number
Counter in control Tables
Message in Identification VF
System Message Number 044
We need to issue the credit note.
How to solve this issue?
If any one knows pls guide me.
Govind BhaskaranHi
Thanks for all of your guidance.
I checked with existing Sale Order and compare with this S.Order. I found the following:
Reason for rejection column selected by "XXXXXXXXXX" - for Curren Sales Order
Reason for rejection column emply - for existing Sales Order
I removed the contents and kept it blank. Then we can create billing document as well
Cr. Memo without any problems. Document posted.
Thanks for your valuable suggestions to get some idea.
Regards,
G Bhas -
Error - Creation of Billing Document - Item is not relevant for billing
Hi
While trying to Create a Billing document after entering the Order No.the following error msg shown in the Tool Bar
No Billing Documents were generated. See log
The Error Log shows the following msg with Yellow coloured indication :
000000xxxxxx 00010 The item is not relevant for billing.
Technical Data
The Technical Data shows the Client
Group Number
Sales Document Number
Item Number of the SD Document
Schedule Line Number
Counter in control Tables
Message in Identification VF
System Message Number 044
We need to issue the credit note.
How to solve this issue?
If any onw knows pls guide me.
Regards,
G. BHASKARANHi friends,
I checked with existing Sale Order and compare with this S.Order. I found the following:
Reason for rejection column selected by "XXXXXXXXXX" - for Curren Sales Order
Reason for rejection column emply - for existing Sales Order
I removed the contents and kept it blank. Then we can create billing document as well
Cr. Memo without any problems. Document posted.
Thanks for your valuable suggestions and guidance to get some idea.
Regards,
G Bhas -
Error in creation of billing document: update was terminated
hi experts,
i am facing one problem while creating "Billing Document" in VF01 . After i save it says 'Document 941700032 has been saved' but later after i click on tht it shows d error "update was terminated' and billing document no i not getting created .
ThanksAfter save, and during SAP's update processing, a fatal error occured, causing a rollback of the transaction. Since the user is no longer in that same transaction at this point, SAP issues the Express Document to attempt to inform that there was a failure. Check ST22 for abend...in the meantime, check for exit coding that may be causing an error...In my previous life, working with SD/LE at lot, I was able to get these regularly by fouling up my exit coding....lol.
-
How to block the usage of reversed billing document for future
Hello,
A billing document that we reversed earlier was printed later. Billing document type is S1 and output type assigned to it is RD00. We don't want them the users to print the document that was reversed or cancelled. How can we make this document printed by only certain users? And do I just have to remove the output type if we never want the reversed billing documents to be printed?
Thank you very much.
HHi ,
i think removing the output condition type may work , after your printing is done , u can manually remove the output type in the
document itself. so that the document will not be printed by others.
Please let me know if you still need any more help.
Thanks and regards,
Rajeshwar -
Hi Experts,
while creating Billing Doc in Logistics with deliveryNo as reference i am getting error that no accounting document generated. can u suggest me why this occured
thanks in advanceHi,
If no Accounting document is generated means, The system is creationg a proforma invoice and the created invoice is not posted to accounts.
You can check in the customizations for sales document types, Which billing document type is assigned to the corresponding Sales document document type.
Its not an error, its just a information message.
Regards, -
Issue for creation date of Billing document in third party ???
Hello SAP Folks,
This issue is related to third party scenario. The basic requirement is to create to a billing document with a creation date same as
Good issue date of Sales Order.
For your information, with the help of enhacement we have passed on the value of posting date of material document generated
from MIGO to Goods issue date in Sales Order. I am very much aware that setting up a new copying routine would help me but
relating the GI date field of Sales Order from the techincal point of view is a complete work stopper. Could anyone throw light on
the workaround for mapping this case ???
Regards,
SarthakHello,
Thanks Alex for your input on the topic !!
But i would like to say that the billing relevance of the item category has to "B" as this process of Third part Sales talks about creation of billing document after the MIGO. And i am basically interested to Populated the posting date of MIGO for Biling creation date.
In Sales Order, the GI date is modified to Posting date of MIGO through enhancement. I have been looking around relevant tables to fetch the GI date of Sales Order but not getting the right track...
Could anyone provide any other workaround to implement this sort of requirement ???
Eager to hear from Lakshmipathi ...
Regards,
Sarthak
Maybe you are looking for
-
Grey Screen at start-up - Troubleshoot harddrive and/or logic board?
Hi everyone. Sorry for the lengthy post, but hopefully you can help me - I've spent a lot of time on the boards already, but hoped you could clarify some things. The problem is my Powerbook will not get past the grey screen at start-up. It will not b
-
Ax/airtunes/itunes on xp sp2 ever? informal survey
lots of problem posts... very few if any success stories.. ibook and mac mini effortless... xp box sees the ax/speakers but will not connect...seen a lot of posts re: connecting to speakers in windows enviroment... never any success ... has anyone ev
-
ORA-00934: group function is not allowed here
Hi, My requirement is to check oi.quantity is equal to sum of packing_detail. quantity by order_number select oi.quantity_ordered oi_qu, pd.quantity pq from ordered_items oi, packing_details pd where oi.ordered_item_id = pd.ordered_item_id and oi.qua
-
OK. So this started just, maybe 2 days ago, and I haven't done anything with it. Actually, it just started happening AFTER I updated iTunes (Silly iTunes!), which would have been 2 days ago. I really need some help!
-
HT5534 I updated iWork 09 and it won't open
I updated Keynote Pages and Numbers because I was told to by my automatic updates. MacBook Pro late 2011 model running OSX Maverick 10.9 Both versions are on here. Old versions run but the 2013 versions of all 3 crash before they even open. Why?