‎2007 Apr 20 2:36 AM
Hi experts,
I am trying to use a BAPI 'BAPI_INCOMINGINVOICE_CREATE' to post in MIRO based on the service entry sheet and also update the condition rates. Is it possible through this BAPI? If anybody has done this before, please provide a sample code for this.
Thanks
‎2007 Apr 20 3:42 AM
CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
headerdata = gs_header
IMPORTING
invoicedocnumber = gv_invno
fiscalyear = gv_fcl_yr
TABLES
itemdata = gt_itemdata
taxdata = gt_taxdata
return = gt_return.
LOOP AT gt_return WHERE type = 'E' OR
type = 'A'.
EXIT.
ENDLOOP.
Pass the header data , tax data fields & item data.