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

Error in Bapi : BAPI_ACC_INVOICE_RECEIPT_POST

Former Member
0 Likes
560

Hi Experts,

Iam using bapi " BAPI_ACC_INVOICE_RECEIPT_POST " to post outgoing payments ( tcode F-53 ).

I have passed all the values to the bapi structures. It is giving the error saying -- " Required field DOC_TYPE was not transferred in parameter DOCUMENTHEADER ". What could be the problem.

Iam passing the doc_type field also. In debugging also, it is showing the doc_type value.

Still error is throwing.

Thanks in advance

Regards

Murali Krishan.T

2 REPLIES 2
Read only

Former Member
0 Likes
468

Hi,

Compare your code with the Standard program "LWOSCR_EXIF01" which calls this BAPI .

Regards

Vinod

Read only

0 Likes
468

Hi Vinod,

Thanks for prompt reply.

I have compared my program code with the standard program that you suggested.

And I passed the values to the bapi strucutres accordingly.

But it is throwing these errors :

Error in document: BKPFF $ KDVCLNT201

Required field USERNAME was not transferred in parameter DOCUMENTHEADER

Required field COMP_CODE was not transferred in parameter ACCOUNTPAYABLE

Required field PSTNG_DATE was not transferred in parameter ACCOUNTPAYABLE

Required field COMP_CODE was not transferred in parameter DOCUMENTHEADER

Required field PSTNG_DATE was not transferred in parameter DOCUMENTHEADER

Required field DOC_TYPE was not transferred in parameter DOCUMENTHEADER

what could be the problem?

regards,

Murali