Application Development and Automation 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: 
Read only

Help with bapi

Former Member
0 Likes
260

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

1 REPLY 1
Read only

Former Member
0 Likes
230

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.