Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

bapi

Former Member
0 Kudos
116

Can anybody give me a Bapi for uploading invoice orders in SD?

4 REPLIES 4

suresh_datti
Active Contributor
0 Kudos
70

try BAPI_BILLINGDOC_CREATE.

~Suresh

Former Member
0 Kudos
70

Hi,

You can use the BAPI BAPI_BILLINGDOC_CREATEMULTIPLE

OR

BAPI_BILLINGDOC_CREATEFROMDATA

Thanks,

Naren

0 Kudos
70

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

ferry_lianto
Active Contributor
0 Kudos
70

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