on 04-08-2010 12:19 PM
hi
i need to do Invoice Receipt against the POs.We do this manually with MIRO with reference to PO.how can i find this bapi.Please let me know which BAPI suitable for this.
thanks,
siva.
Use these bapi.
BAPI_INCOMINGINVOICE_CREATE
BAPI_INCOMINGINVOICE_PARK.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BAPI_INCOMINGINVOICE_CREATE
Regards
Vinod
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
RFC is not required. Check the sample code
loop at it_ekpo .
itemdata-invoice_doc_item = sy-tabix .
it_material-invoice_doc_item = sy-tabix.
it_material-material = it_ekpo-matnr.
it_material-val_area = it_ekpo-werks.
it_material-db_cr_ind = 'X'.
it_material-tax_code = it_ekpo-mwskz.
it_material-quantity = it_ekpo-menge.
it_material-base_uom_iso = it_ekpo-meins.
itemdata-po_number = it_ekpo-ebeln .
itemdata-po_item = it_ekpo-ebelp .
itemdata-item_amount = it_ekpo-netpr * it_ekpo-menge .
itemdata-quantity = it_ekpo-menge .
itemdata-po_unit = it_ekpo-meins .
append itemdata to itemdatat .
append it_material.
endloop .
headerdata-invoice_ind = 'X' .
headerdata-doc_date = sy-datum .
headerdata-pstng_date = sy-datum .
headerdata-ref_doc_no = 'Test-Inv' .
headerdata-comp_code = '0101' .
headerdata-currency = 'INR'..
headerdata-gross_amount = '990.00'.
it_tax-tax_code = 'V0'.
it_tax-tax_amount = '90'.
it_tax-tax_base_amount = '990.00'.
append it_tax.
call function 'BAPI_INCOMINGINVOICE_CREATE'
exporting
headerdata = headerdata
importing
invoicedocnumber = invoicedocnumber
fiscalyear = fiscalyear
tables
itemdata = itemdatat
materialdata = it_material
taxdata = it_tax
return = return .
call function 'BAPI_TRANSACTION_COMMIT'.
Regards
Vinod
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.