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

Issue with BAPI_INCOMINGINVOICE_PARK for document parking

Former Member
0 Likes
1,326

Hi all,

We are using F-65 to park FI documents .This tcode is used in entering various travel expenses into SAP.

I have read that using BAPI_INCOMINGINVOICE_PARK, one can achieve this functionality.

HEADERDATA:

INVOICE_IND = 'X'.

DOC_DATE = '11.03.2014'

PSTNG_DATE '11.03.2014'.

COMP_CODE =  'CSPL'.

GROSS_AMOUNT = 100.

ITEM_TEXT = 'TEST VOUCHER CLAIM'...... and also the G/L acct data and acct data i have entered.

My issue is that the BAPI is returning errors that PO NUMBER, PO_ITEM, INVOICE_DOC_ITEM is to be entered into ITEMDATA

and also MATERIAL,DB_CR_IND,VAL_AREA and TAX_CODE is to be entered into MATERIAL.

Can anyone tell me why do i need to enter all this? I have read all such related posts,but everywhere PO no is entered.

While creating in F-65 manually ,we do not enter PO no and these data,since for voucher claims, no PO is generated. Still the document gets parked.

Then why are these field mandatory in the BAPI? Is there any other BAPI to achieve this funtionality?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,088

This BAPI is expecting MM invoice relative to actual PO, the corresponding transaction is MIRO and not F-65.

Better look for a FI BAPI using search tool with keywords PARK and BAPI_ACC_DOCUMENT_POST as this question is now a FAQ. But if your  system is too up-to-date, read first (or ask someone allowed to service) .1951302 - Document parking through BAPI_ACC_DOCUMENT_POST .

Regards,

Raymond

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,089

This BAPI is expecting MM invoice relative to actual PO, the corresponding transaction is MIRO and not F-65.

Better look for a FI BAPI using search tool with keywords PARK and BAPI_ACC_DOCUMENT_POST as this question is now a FAQ. But if your  system is too up-to-date, read first (or ask someone allowed to service) .1951302 - Document parking through BAPI_ACC_DOCUMENT_POST .

Regards,

Raymond

Read only

0 Likes
1,088

Hi,

Problem resolved by BAPI_ACC_DOCUMENT_POST.

Thanks.