2009 Mar 02 5:47 AM
Hi
I am looking to create a billing document using Delivery Number. I would need some help if someone can suggest any BAPI or Method to create Billing document.
I do not want to use BDC on VF01 transaction.
I explored BAPI bapi_billingdoc_create. But it is used only in foreground and it does not have any import/export parameters. My requirement is to take Delivery number as input and create billing document.
I appreciate your help in advance.
Regards,
Satya
2009 Mar 02 6:00 AM
2009 Mar 02 6:02 AM
use fm RV_INVOICE_CREATE
give delivery number in the structure komfk
кu03B1ятu03B9к
2009 Mar 02 11:46 PM
Hi Karthik,
Thank you for your help. I used FM RV_INVOICE_CREATE. But it is working when I wrote a sample program. Samething when I copied to the custom program(the custom program which i am writing will create delivery, then create PGI and it comes to this FM), it is some time creating billing and sometimes not. This is the sample code I am using . Can you please look at the same and advise.
data: lt_vbsk LIKE vbsk,
lt_xkomfk LIKE komfk OCCURS 0 WITH HEADER LINE,
lt_xvbfs LIKE vbfs OCCURS 0 WITH HEADER LINE,
lt_xkomv LIKE komv OCCURS 0 WITH HEADER LINE,
lt_xthead LIKE theadvb OCCURS 0 WITH HEADER LINE,
lt_xvbpa LIKE vbpavb OCCURS 0 WITH HEADER LINE,
lt_xvbrk LIKE vbrkvb OCCURS 0 WITH HEADER LINE,
lt_xvbrp LIKE vbrpvb OCCURS 0 WITH HEADER LINE,
lt_xvbss LIKE vbss OCCURS 0 WITH HEADER LINE.
REFRESH lt_xkomfk.
lt_xkomfk-VBELN = '0080000227'.
lt_xkomfk-VBTYP = 'J'.
append lt_xkomfk.
lt_vbsk-smart = 'F'.
lt_vbsk-ernam = sy-uname.
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
DELIVERY_DATE = 0
INVOICE_DATE = 0
INVOICE_TYPE = ' '
PRICING_DATE = 0
vbsk_i = lt_vbsk
WITH_POSTING = 'B'
SELECT_DATE = 0
I_NO_VBLOG = ' '
I_ANALYZE_MODE = ' '
ID_UTASY = ' '
ID_UTSWL = ' '
ID_UTSNL = ' '
ID_NO_ENQUEUE = ' '
ID_NEW_CANCELLATION = ' '
I_BLART = ' '
IMPORTING
VBSK_E = lt_vbsk
OD_BAD_DATA =
DET_REBATE =
tables
xkomfk = lt_xkomfk
xkomv = lt_xkomv
xthead = lt_xthead
xvbfs = lt_xvbfs
xvbpa = lt_xvbpa
xvbrk = lt_xvbrk
xvbrp = lt_xvbrp
xvbss = lt_xvbss.
XKOMFKGN =
XKOMFKKO =
if sy-subrc eq 0.
commit work.
endif.
Regards,
Satya
2009 Mar 03 5:18 AM
2009 Mar 02 6:02 AM
Try MR_CREATE_INVOICE,
MB_CREATE_INV_DOCUMENT,
BAPI_BILLINGDOC_CREATE,
BAPI_ACC_BILLING_POST,
RV_INVOICE_CREATE
Edited by: Phanindra Annaparthi on Mar 2, 2009 7:02 AM
2009 Mar 02 6:03 AM
Hi,
Chekc these BAPI's
BAPI_BILLINGDOC_CREATEFROMDATA Create Customer Individual Billing Doc.
BAPI_BILLINGDOC_CREATEMULTIPLE Create Individual Customer Billing Document
Regards,
Jyothi CH.