2007 Mar 02 6:48 PM
Can anybody give me a Bapi for uploading invoice orders in SD?
2007 Mar 02 7:02 PM
2007 Mar 02 7:06 PM
Hi,
You can use the BAPI BAPI_BILLINGDOC_CREATEMULTIPLE
OR
BAPI_BILLINGDOC_CREATEFROMDATA
Thanks,
Naren
2007 Mar 02 9:17 PM
Try these..
BAPI_BILLINGDOC_CREATE Custimer Individual Billing Document : Create Billing Document
BAPI_BILLINGDOC_CREATEFROMDATA Create Customer Individual Billing Doc. Using Ext. Doc. from RH
BAPI_BILLINGDOC_CREATEMULTIPLE Create Individual Customer Billing Document
2007 Mar 02 9:22 PM
Hi,
You can also use FM GN_INVOICE_CREATE.
Please fill the communication structures KOMFK, KOMFKGN, KOMFKKO, KOMFKTX etc ... and pass it to FM.
CALL FUNCTION 'GN_INVOICE_CREATE'
EXPORTING
DELIVERY_DATE = DELIVERY_DATE
INVOICE_DATE = INVOICE_DATE
INVOICE_TYPE = 'ZFX'
PRICING_DATE = PRICING_DATE
VBSK_I = X_VBSK
WITH_POSTING = 'D'
ID_NO_ENQUEUE = 'X'
TABLES
XKOMFK = IT_KOMFK
XKOMFKGN = IT_KOMFKGN
XKOMFKKO = IT_KOMFKKO
XKOMFKTX = IT_KOMFKTX
XKOMV = IT_KOMV
XTHEAD = IT_HEAD
XVBFS = IT_VBFS
XVBPA = IT_VBPA
XVBRK = IT_VBRK
XVBRP = IT_VBRP
XVBSS = IT_VBSS
SUCCESS_DOC_OUT = IT_SUCCESS.
Regards,
Ferry Lianto