cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to fill the XREF1_HD from BKPF in BAPI BAPI_INCOMINGINVOICE_CREATE

SAPSupport
Employee
Employee
0 Likes
3,903

Hello Team,

We are trying to post the vendor invoice through BAPI_INCOMINGINVOICE_CREATE for vendor invoice posting however we want to pass the data in the field reference key 1 (Head) technical name: XREF1_HD from BKPF table but we couldn't see this field in the SAP standard BAPI.

Could you please help for getting this field in the BAPI_INCOMINGINVOICE_CREATE.

Regards
Sheetal Patil
SAP FICO Consultant


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Likes

Hello Sheetal

Regarding to XREF1 and XREF1_HD fields, when you enter incoming invoices, you can notice differences between the Financial Accounting (FI) transaction FB60 and the Logistics Invoice Verification transactions (MIRO, MIR7). For example, fewer input fields are available in MIRO. MIRO is an independent Materials Management (MM) transaction that is different than the accounting transactions (such as FB60 or FB01).

MIRO was developed to allow users to process vendor invoices within the context of the MM procurement processes as simple as possible. For this reason, the field selection was limited to what was absolutely necessary (among other differences). So far I am afraid that this field will not be covered by our Bapis. I did an internal search however our MM-IV Bapis do not have the need of taking field BKPF-XREF1_HD into consideration, as it is not relevant to the document creation. You can get more insights from Note 904652.

With best regards,

Ana

IDESA_MX
Newcomer
0 Likes

hi sheetal

I have read your message, which clarified the process for me, but in Mexico, the field XREF1_HD must be filled in because it is mandatory when declaring finances in our country. Is there a suitable process for us to make this change in the BAPI?

Answers (0)