VF01 -'RV_INVOICE_CREATE'
Hi all,
I need to create partial billing document.
when I ttry to recording of transaction 'VF01' is failing when i select 'Select list'.
Is there any alternative for this.does anybody have sample code for 'RV_INVOICE_CREATE'.what are mandatory parameters for this FM.
please help
Hi,
Basically you do not need to create an accounting document. For each types of system generated documents, there are set of number ranges maintained for each fiscal year in the transaction <u><b>SNRO</b></u>.
If you go into the tcode, it will ask you for object.
For sales you can give it as <u><b>RV_BELEG</b></u>. Once you type this and press number ranges. You can see the list of ranges given for sale orders, deliveries, invoices, etc.
So these object is attached to the standard transactions VF01, VF04 etc. So whenver a billing doc is successfully generated a corresponding accounting doc is generated. there are 2 reasons, once is maintanence of no. ranges and second SAP is an integrated tool.
P.S. mark all helpful answers for points.
JLN
Similar Messages
-
RV_INVOICE_CREATE u0096 Incorrect Invoice Quantity
Hi All,
I am creating invoice document using <b>RV_INVOICE_CREATE</b> for sales document. Creation part works fine. I got small issue I am passing sales order details in table xkomfk with correct billing quantity. For some reason it is ignoring <b>Actual Invoiced Quantity</b> passed in table xkomfk and picking up quantity from original sales order.
Quantity should allow to change, because its partial billing. I debug VF01, it calls same FM, all passing parameters are same compare that in my program. VF01 it creates what ever <b>quantity specified</b>. Have any one come across such issue. Any clue is much appreciated and thanks in advance.
Regards,
TimHi,
if you have a userexit include, this must be active.
in SE80, select inactive objects, and see...
Regards,
Clemens -
Hi All,
I have to trap the erro rlog which is generated in case of error while creating billing document using transaction VF01. That LOG can be viewed by using path EDIT->LOG.
I debug the code and find out that it fill a structure VBFS in a Function 'RV_INVOICE_CREATE'. If i get the value of VBFS , i can easily trap the message.
I check with some USER-EXIT, but did not get useful one. Can any one help me to find out any soultion or another approach like BADI. I also try with BADI VOR_WA_FAKTURA but when i put break point in the BADI, it does not stop here.
PLease let me know, if any one of you know any soultion..
Thanks
PiyushHI,
You can find the BADI your self, Check the class CL_EXITHANDLER.
follow the below steps to find the suitable BADI for your case ..
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction
if you follow this 7 steps, you will find a suitable BADI.
and also refer the thread
Re: MB_MIGO_ITEM_BADI
Regards
Sudheer -
How to create a single invoice from several delivers? (BAPI for VF01)
Hi all,
I want to create a single invoice from several delivers, just like VF01.
I just tried BAPI_BILLINGDOC_CREATEMULTIPLE, and the problem is that this bapi creates an invoice for each deliver, and i need to create only one invoice.
Can you tell me how to do it?Here you go....
wa_vbsk_dummy-smart = 'F'.
wa_vbsk_dummy-ernam = sy-uname.
v_posting = 'E'.
v_datum = sy-datum.
IT_KOMFK willhave delivery numbers, billing doc type date etc.
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
invoice_date = v_datum
vbsk_i = wa_vbsk
with_posting = v_posting
id_no_enqueue = c_true
IMPORTING
vbsk_e = wa_vbsk
TABLES
xkomfk = it_xkomfk
xkomv = it_xkomv
xthead = it_xthead
xvbfs = it_xvbfs
xvbpa = it_xvbpa
xvbrk = it_xvbrk
xvbrp = it_xvbrp
xvbss = it_xvbss.
Cheers
Ravish -
Add billing date in existing prog when goes through VF01
How do I add the billing date as sy-datum in my program that uses BDC to create billing documenst for the sales order in the output . I would like this to take te billing date as sy-datum. I know if if I add the billing date as todays date while generating biling documenst for multiple selections of sales order it will process and create a billing doc for it, right now which si not happening as billing date is missing. I want to add the billing date in BDC. Could I get some help please. In the below case only for p_rdos.
*& Form process_vf01
* Call transaction VF01 and fill screen table with order values
FORM process_vf01.
DATA: ln_index(2) TYPE n,
lc_field(20) TYPE c,
lc_fkart TYPE vbrk-fkart,
li_lines TYPE i,
lc_msgtxt(99) TYPE c,
lwa_bdcoptions TYPE ctu_params,
lwa_mess LIKE LINE OF it_bdcmess,
* lc_date like vbrk-fkdat.
lc_date like sy-datum.
REFRESH: it_bdcmess.
lwa_bdcoptions-dismode = cns_mode.
lwa_bdcoptions-updmode = cns_upd.
CASE 'X'.
WHEN p_rdff.
lc_fkart = cns_fkff.
WHEN p_rdos.
lc_fkart = cns_fkos.
lc_date = sy-datum.
ENDCASE.
DESCRIBE TABLE it_vbeln LINES li_lines.
REFRESH: bdc_tab.
PERFORM update_bdc USING: 'X' 'SAPMV60A' '0102',
' ' 'BDC_CURSOR' 'RV60A-FKART',
' ' 'RV60A-FKART' lc_fkart,
' ' 'BDC_OKCODE' '/00'.
LOOP AT it_vbeln INTO wa_vbeln.
ln_index = sy-tabix.
* Up to the second delivery of the BDC add the Delivery to the screen,
* after that click the More Documents for every entry. logic changed for DEVK902353
* changed again in added for every line DEVK910604
CASE ln_index.
WHEN 1.
CONCATENATE 'KOMFK-VBELN' '(' ln_index ')' INTO lc_field.
IF li_lines = 1.
PERFORM update_bdc USING: ' ' lc_field wa_vbeln.
ELSE.
PERFORM update_bdc USING: ' ' lc_field wa_vbeln,
' ' 'BDC_OKCODE' 'FKAN'.
ENDIF.
WHEN OTHERS.
* IF p_rdos <> 'X'.
CONCATENATE 'KOMFK-VBELN' '(2)' INTO lc_field.
PERFORM update_bdc USING: ' ' lc_field wa_vbeln,
'X' 'SAPMV60A' '0102',
' ' 'BDC_OKCODE' 'FKAN'.
ENDCASE.
ENDLOOP.
* VF01 will go to a different screen if only one line selected
IF li_lines EQ 1.
PERFORM update_bdc USING: 'X' 'SAPMV60A' '0104',
' ' 'BDC_OKCODE' '=SICH'.
ELSE.
PERFORM update_bdc USING: 'X' 'SAPMV60A' '0102',
' ' 'BDC_OKCODE' '=SICH'.
ENDIF.
CALL TRANSACTION 'VF01' USING bdc_tab OPTIONS FROM lwa_bdcoptions
MESSAGES INTO it_bdcmess.
WRITE: / 'BDC Messages:'.
SKIP.
LOOP AT it_bdcmess INTO lwa_mess.
CALL FUNCTION 'RH_MESSAGE_GET'
EXPORTING
arbgb = 'VF'
msgnr = lwa_mess-msgnr
msgv1 = lwa_mess-msgv1
msgv2 = lwa_mess-msgv2
msgv3 = lwa_mess-msgv3
msgv4 = lwa_mess-msgv4
IMPORTING
msgtext = lc_msgtxt
EXCEPTIONS
message_not_found = 1
OTHERS = 2.
WRITE: /5 lc_msgtxt.
ENDLOOP.
ENDFORM. " process_vf01u can chk this code
data: wa_vbsk TYPE vbsk,
wa_vbsk-smart = c_f.
APPEND wa_komfk TO it_komfk.
CLEAR wa_komfk.
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
* delivery_date = 0
invoice_date = v_date "ur current date
* invoice_type = ' '
* pricing_date = 0
vbsk_i = wa_vbsk
with_posting = 'D'
* select_date = 0
i_no_vblog = ' '
i_analyze_mode = ' '
id_utasy = ' '
id_utswl = ' '
id_utsnl = ' '
id_no_enqueue = ' '
id_new_cancellation = ' '
** IMPORTING
* VBSK_E =
* OD_BAD_DATA =
* DET_REBATE =
TABLES
xkomfk = it_komfk
xkomv = it_komv
xthead = it_thead
xvbfs = it_vbfs
xvbpa = it_vbpa
xvbrk = it_xvbrk
xvbrp = it_vbrp
xvbss = it_vbss
* XKOMFKGN =
* XKOMFKKO =
Edited by: kartik tarla on Apr 3, 2009 10:28 AM -
Vf01-"please delete one document" message no. ZSD123-IDES
hello
i am practicing inquiry to cash flow.
at vf01 i get this error.
"please delete one document" message no. ZSD123 .
and it doesnot explain why ? and no other inputs on this.
when i see document flow ...
inq-completed
quoatation-completed
order-completed
delivery-being processed
picking request-completed
gd issue -completed
now i dont understand why delivery is not compled ..i saw delivery document and delivery date is 10.10.2011 only.
and why is that am i not able to make billing document and accounting document?
pls let me know.Hi
To find out where and why you get your Z error message
You can probalbly go to SE37 to RV_INVOICE_CREATE
and put a breakpoint.
Run VF01 when it hits your BP enter SY-MSGNO in the first field
go to the Watchpoints TAB at the top of the debugger.
put a watchpoint on SY-MSGNO = 123 and press F8
It should stop at the error and you can see what your
custom development is looking for
Good luck
Brian -
How the accounting doc. generated in VF01?
I debug VF01, found that FM 'RV_INVOICE_CREATE'. but cannot find how to generate the the accounting doc.
any advice?Hi,
Basically you do not need to create an accounting document. For each types of system generated documents, there are set of number ranges maintained for each fiscal year in the transaction <u><b>SNRO</b></u>.
If you go into the tcode, it will ask you for object.
For sales you can give it as <u><b>RV_BELEG</b></u>. Once you type this and press number ranges. You can see the list of ranges given for sale orders, deliveries, invoices, etc.
So these object is attached to the standard transactions VF01, VF04 etc. So whenver a billing doc is successfully generated a corresponding accounting doc is generated. there are 2 reasons, once is maintanence of no. ranges and second SAP is an integrated tool.
P.S. mark all helpful answers for points.
JLN -
Error while raising a invoice using VF01
Hi,
I am getting an error while raising a invoice using VF01.
Error as follows
RV_MESSAGE_UPDATE
Update was terminated
System ID.... TIP
Client....... 300
User..... user1
Transaction.. VF01
Update key... E66E6454075548D8922BAC091E81F0CB
Generated.... 18.07.2007, 18:57:38
Completed.... 18.07.2007, 18:57:38
Error info... TD 443: WRITE_FORM
Pls help
Points will be rewarded.
ThanksHi,
This is an ABAP short dump. If you go through the error log, there will be a section where in you can see > What caused the problem.
Try to analyze this log and you can find a solution. Probably, you can also check whether there is any OSS note with this error message.
Thanks
Murali. -
RV_INVOICE_CREATE for this FM what are the mandatory fields
Hi guru,
in my process development, first i am creating the sales order using the BAPI FM SD_SALESDOCUMENT_CREATE, From this FM i get the sales order no, after that i use this fm RV_INVOICE_CREATE , then i pass the VBELN (sales order no), but it is not created the invoice no,
what are the fields i have to pass for this FM.
What is the use of this FM : RV_INVOICE_DOCUMENT_ADD, is it useful in my scenario.
plz give the details briefly
thanks & regards
raj.HI ,
call function 'RV_INVOICE_CREATE'
exporting
with_posting = 'B'
vbsk_i = i_xvbsk
importing
vbsk_e = i_xvbsk
tables
xkomv = xkomv
xvbpa = xvbpa
xvbrp = xvbrp
xvbrk = xvbrk
xkomfk = i_komfk
xthead = xthead
xvbfs = i_vbfs
xvbss = i_vbss.
These table are not optional , these all are mand...
Reagrds,
Bharani -
Nota Complem. de Valor com qtd do item = zero - Dump na Transação VF01
Cenário: Nota Complemetar de Valor com quantidade de item = 0 (zero).
Ao efetuar o faturamento (VF01), acontece o dump pois o programa LJ1BGF01 divide o valor liquido pela quantidade.
Este cenário foi desenvolvido com base na Nota 421284.
Existe alguma nota a ser aplicada para que este dump não ocorra???
Ponto do programa que provoca o abend: LJ1BGF01
****calculate or take-over net price (incl. ICMS)
IF wnetpr = 0.
wnflin-netpr = wnflin-netwr / wnflin-menge. ****neste ponto do programa a variavel wnflin-menge é zero *****
ELSE.
wnflin-netpr = wnetpr
ENDIF.
Obrigada
LucianaOlá, Luciana.
Independente de seu cenário ser relacionado a Nota 421284, este erro acontece neste ponto pois o sistema não consegue proceder se seu documento de sales order tem quantidade igual a zero.
Faça outros exemplos onde a quantidade é setada com um valor positivo na sua sales order pois isto é necessário e o DUMP não ocorrerá.
Abraço,
Felipe Silveira -
Short dump in VF01 - Syntax error in program "RKEAK9RECP3000001"
Helo all,
We recently copied our production client to a QA client and when we try to save an SD invoice (VF01), we get a short dump titled - Syntax error in program "RKEAK9RECP3000001".
The dump long text states:
"The Dictionary structure or table "K9RECP3000001" is either not active"
" or does not exist."
and
NOTE in case of a SHORT DUMP:
if the following perform statement should lead to a short dump, then
the report stated in the short dump is missing (RKEAK9Rsssmmmnnnn)
Check if table K9Rsssmmmnnn exists. If not it should be transported
from the original system.
Regenerate the missing reports by using transaction SE37, entering
function KEDR_REGENERATE_ALL_REPORTS and pressing button 'Test' and
'Execute'.
but I tried to run function KEDR_REGENERATE_ALL_REPORTS in SE37 and the problem persists.
Maybe I'm not running it correctly - there is no execute option when pressing "Test" so I enter the function and press F8, which takes me to a screen titled "Test function module" and then I execute.
My suspicion is that table "K9RECP3000001" cannot be created or generated since it it a system specific naming convention K9RSSSCCC0001 in which SSS is system ID (in our case ECP is production and ECQ is QA) ans CCC is client number (300 in prod, and should be 286 in ECQ).
Has anyone encountered this type of a problem and knows how to fix it?
Needless to say, I looked at OSS notes, but did not find the solution there.
Any thought will be appreciated,
Yoel.Shalom Yoel,
This problem may be caused by the fact that some derivation rules
that were originally created once in a system have been transported
into target system without transporting the dependent objects
as well (the generated tables for the derivation rule entries).
You can see this by execution of program RKEDRCHECK with only
parameter 'Check in all clients' marked. You will then get
inconsistent derivation steps (which refer to a generated table
table for the rule entries that doesn't exist because it was
not transported).
There are two ways to solve the problem:
1.) If you don't need these steps any more in derivation you can get
rid of them by executing program RKEDRCHECK with both parameters
marked ('Check in all clients' and 'Delete inconsistent steps').
2.) If these steps should remain you have to retransport the missing
tables from the source system in which these tables have to exist
(creating transport requests for the customizing of derivation by
pushing on the 'Transport' icon in the source system in transactions
KEDR and KEPC).
For each derivation step,the system generates a program RKEAK9R *
and a table K9R+ System ID+ Mandant+ a number of five figures
from the object number in KEDR.
br, Guido -
Excise invoice number getting reflected in the reference field in VF01
Hello,
I require excise invoice number to get get reflected in the reference field of billing document number . (i.e accounting document generated from VF01)
Thanks,Dear Muscan,,
As per STANDARD SAP PROCESS this functionality is not Possible. The reason is very clear, Excise Invoice is always created after creating billing/invoice document. Without creating excise invoice you cannot have excise invoice number reflected in the reference field of billing document.
Hope this clarifies your doubt?
Regards
MBS -
Error in VF01-Proforma invoice alredy existed for the delivery
Hello All.
We had a problem with VF01. When entering the delivery and pressing enter we are getting the problem Proforma invoice already existed for the delivery.
From 4 Scheduling agreements(LZ) one delivery(LF) created, picked and packed. Before PGI user made proforma invoice F8.
It created with out error.
After that user done the PGI and tried to create the invoice but the system is thronging above mentioned error.
Please advise use what would be the problem.
Thanks and Regards
SASiHi Sasi
Check wheather any batch job is running in background for creating billing documents.If it is working fine then check wheather any enhancement has been done.
Regards
Srinath -
How to create Directly invoice in VF44 With out VF01
Dear FI Experts
i am sd consultant , i have checked in Google but not able to find please help me in this issue
I Want to Create invoice in VF44 Directly with out VF01
Presently i am fallowing this procedure --VA01-VL01N-VF01 -VF44
Now i want To skip ---VA01-VL01N-VF44
So please Comment on my issue
Dear Moderators If i asked Basic question please ignore this
Thanks a lotDear i found This but after that also not able to create please tell me once
Any extra configuration is there ? -
Regarding capturing VF01 ERROR logs in a background job
Hi ,
We are running a background job that calls transaction VF01 via BDC .
CALL TRANSACTION 'VF01' USING bdcdata
MODE S
UPDATE N
MESSAGES INTO gt_messtab.
In some cases billing documents will not be generated. In such cases systems will throw message "Check the log "
After which we can check the error messages via Menu Edit>logs.
This error messages (stored in XVBFS internal table) need to captured in the job log i.e custom programme.
Unfortunately i could not found any user exits/BADIs that can help me in capturing message.
Can you please help me how can i solve this issue?
Thanks in advance
Manoj
Edited by: Manoj J on Nov 16, 2011 9:42 AM
Moderator message : Duplicate post locked, continue with original thread [How to capture error logs of VF01 in a background job log |Re: How to capture error logs of VF01 in a background job log].
Edited by: Vinod Kumar on Nov 16, 2011 3:34 PMHi Manoj,
I had a similar problem.
I solved it selecting from VBSK the last record of the user regarding elaboration of invoices, and then calling f.m. 'VBSK_ALV_DISPLAY'.
Otherwise you could call directly transaction "V.21"
Hope this could help you
Andrea
Maybe you are looking for
-
I am attempting to download a photo from android phone to macbook pro. they are paired, they recognise and connect for half a second then drops out. Macbook works with other apple devices just not devices from different companies. is this common a pr
-
Trying to download a free trial for Photoshop Cs6
Hi. I am thinking about Purchasing Photoshop for my little business but would like to download the free trial as my friend did this recently. I started to download it An hour later my computer crashed so I tried to do it again and I thought it has wo
-
Creating a private/isolated vlan on Cisco switch
Hello I have many Cisco switches 65xx, 37xx at my company with a lot of vlans already configured. I need to create a new isolation vlan that will not be able to communicate with my other existing vlans. We are setting up a NAC solution at my compan
-
If i format the computer???
Hello, If i want to format my MacMini and install everything again, how about the software instaled on the Mac, do i have to register it again??? does the info stay on the machine so i dont have to do it all again??? becouse i want to have every thin
-
SPSS, missing tabs when installed
Hi, I ve been struggling with the SPSS installation, it works fine in my other computer. But when i install it on my mac, there are many missing tabs, for instance in Analysis, i can't find regression or descriptive statistiques or correlation and ma