cancel
Showing results for 
Search instead for 
Did you mean: 

how to park a non po invoice using jco

Former Member
0 Kudos

Hi Everyone,

I have a requirement to park a non-po invoice using jco library.

Can somebody tell me what will be BAPI for that and what will be input output parameters ?

Thanks,

Nitin

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

Please have a look at : BAPI_INCOMINGINVOICE_PARK

it's described in many forums on SDN (with parameters)

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi,

BAPI_INCOMINGINVOICE_PARK is used to park PO based invoice. Isn't it ?

if no, then what is the parameter to define vendor name in case of non-po invoice ?

Thanks,

Nitin

former_member184681
Active Contributor
0 Kudos

Hi Nitin,

Check transaction BAPI to search BAPIs in application hierarchy or by Business Object name. In your case, use Alphabetical tab page -> IncomingInvoice -> ParkFromData. The Documentation for this particular BAPI (as well as many others) is quite detailed, even giving you examples on how to use it for particular scenarios. Use this as a reference.

Regards,

Greg

Former Member
0 Kudos

Hi Greg,

I followed your advice. I looked into the examples. All the examples I found are for PO based invoice.

Can you give me any example for non -PO based invoice ?

Thanks,

Nitin

former_member184681
Active Contributor
0 Kudos

Simply provide the vendor number in the DIFF_INV field of the HEADERDATA structure. Providing PO number is not mandatory while parking the document. This should work fine, I already completed this scenario a few times.

Regards,

Greg

Former Member
0 Kudos

Hi Greg,

Thanks for this information.

But whatever vendor name I am giving it's giving me a message that

Vendor xxx is not defined in company code yyyy.

When I check is SAP, there is an entry of vendor corresponding to that company code.

I am giving these parameters in HEADERDATA

ret.setValue("X", "INVOICE_IND");

ret.setValue(date, "DOC_DATE");

ret.setValue(date, "PSTNG_DATE");

ret.setValue("3000", "COMP_CODE");

ret.setValue(117.00, "GROSS_AMOUNT");

ret.setValue("USD", "CURRENCY");

ret.setValue("0001", "PMNTTRMS");

ret.setValue("3021", "DIFF_INV");

former_member184681
Active Contributor
0 Kudos

Dear Nitin,

Bear in mind that you have to use leading zeros. So instead of "3021", use "0000003021".

Regards,

Greg

Former Member
0 Kudos

Hi Greg,

I solved this. I had to put all the zero's also before the code .

Ok now my invoice is parked. But I am seeing this parked invoice in MIRO transaction.

what I know Miro transaction is only used for PO Based invoices.

Is that true ?

Thanks,

Nitin

former_member184681
Active Contributor
0 Kudos

So what is your exact requirement? Initially you mentioned parking an invoice, I think that's why Michal told you to use BAPI_INCOMINGINVOICE_PARK. Now, do you want to park a posting (accounting document) instead? One that you see in fb03 for instance?

Former Member
0 Kudos

Ok Greg,

Please understand my requirement.

I have two types of invoices:- PO Based and non PO Based. I need to park these invoices using jco code.

After parking , SAP person will do the posting for these invoices manually.

Q.1 :- Are you saying that BAPI_INCOMINGINVOICE_PARK is used to park both these types of invoices ?

Q.2 :- Is there same method when it comes to posting of these invoices ?

Thanks,

Nitin