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

BAPI BAPI_INCOMINGINVOICE_CREATE RETURNS: E F5 730

luisfel28
Participant
0 Likes
807

Anyone know because this error is return??

E F5 730 No accts maintained for company code clearing between comp.cds & and &.


Follow my code:


* HEADER
st_headerdata-DOC_DATE = sy-datum.
st_headerdata-PSTNG_DATE = SY-DATUM.
st_headerdata-doc_type = c_re.
st_headerdata-ref_doc_no = st_entrada003-xblnr.
st_headerdata-COMP_CODE = st_ekko-bukrs.
st_headerdata-business_place = v_bupla.
st_headerdata-bus_area = v_gsber.
st_headerdata-CURRENCY = c_brl.
st_headerdata-alloc_nmbr = st_ekbe-charg.
st_headerdata-GROSS_AMOUNT = st_ekpo-netpr.
st_headerdata-INVOICE_IND = 'X'.


* ITEM
st_itemdata-INVOICE_DOC_ITEM = c_item.
st_itemdata-PO_NUMBER = st_ekpo-ebeln.
st_itemdata-PO_ITEM = st_ekpo-ebelp.
st_itemdata-ITEM_AMOUNT = st_ekpo-netpr.
st_itemdata-QUANTITY = st_ekpo-menge.
st_itemdata-PO_UNIT = c_un.
st_itemdata-TAX_CODE = c_jb.
st_itemdata-ref_doc = st_ekbe-belnr.
st_itemdata-ref_doc_year = st_ekbe-gjahr.
st_itemdata-ref_doc_it = c_001
APPEND st_itemdata to it_itemdata.


* IMPOSTOS
MOVE:  st_ekpo-navnw   TO st_taxdata-tax_amount.
APPEND st_taxdata      TO it_taxdata.


CALL FUNCTION 'BAPI_INCOMINGINVOICE_CREATE'
EXPORTING
HEADERDATA = st_headerdata
IMPORTING
      invoicedocnumber = v_invoicedocnumber
      fiscalyear       = v_gjahr
TABLES
ITEMDATA = it_itemdata
Felipetaxdata  = it_taxdata
RETURN = it_RETURN
.

Regards,

Felipe

2 REPLIES 2
Read only

gouravkumar64
Active Contributor
0 Likes
563

Hi,

Try with this

I think u need to config for cross company code transactions.

The Tcode is OBYA

Configure

posted in

cleared against

debit & credit posting key

account debit & account credit

Check there.

Thanks

Gourav.

Read only

former_member194152
Contributor
0 Likes
563

Seems some configuration issue, post document manually from Standard TCODE MIRO with same test data as you posted through program and check same message is coming if yes ask functional folk to check config