cancel
Showing results for 
Search instead for 
Did you mean: 

glaccount and cost center information in BAPI_INCOMINGINVOICE_PARK

Former Member
0 Kudos

Hi All,

I am trying to use BAPI_INCOMINGINVOICE_PARK using jco code.

When we park the transaction in sap, we give gl account and cost center corresponding to each invoice line item.

I am trying to give these values using jco code.

As I am seeing, there are no gl_accounts, cost_centers variables in ITEMDATA table.

Can anybody tell me which is the right table to define gl_account and cost center ?

Is it ACCOUNTINGDATA or GLACCOUNTDATA ?

Thanks,

Nitin

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

1. open SE37

2. put the BAPI_INCOMINGINVOICE_PARK

3. display it's documentation

4. is has multiple examples on how to call this BAPI with different options

there is also one for GL account and cost center called:

Example: Incoming invoice with G/L and material account posting.

can you use this one ?

Regards,

Michal Krawczyk


Former Member
0 Kudos

Thanks for the suggestion Michael.

That example helped me. But one more I need to ask.

I am getting this message

G/L account 37000 not created (please check your input)

even though this G/L account is created in my sap environment and it's in the same company code that I am giving.

Any idea about this issue ?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

try the GL number with leading zeros

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michael, that issue is resolved,

Now one more error :-

No direct postings can be made to G/L acct. 37000 in CoCode 3000

what is the reason behind this message ?

former_member184681
Active Contributor
0 Kudos

Hi Nitin,

You would get better feedback for this question in the SAP FI forum here:

In general, the G/L account settings do not allow posting directly against this account in your case. Maybe it is a reconciliation account or something like that.

Regards,

Greg

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

if it's solved with correct answer please close  the message so others can view it as closed too

>>>No direct postings can be made to G/L acct. 37000 in CoCode 3000

you're using wrong account - FS00 - create bank/interest tab - post automatically only check is checked so the account cannot be used - get a correct account from your FI consultant - this one is not correct,

Regards,

Michal Krawczyk

Answers (0)