Application Development 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: 

BAPI_ACC_DOCUMENT_CHECK Commitment item error

edgar_almonte
Participant
0 Kudos

hello ,

not sure if this is the right place for ask this question but if not please move the question sorry and thanks in advanced.

my problem is that i am using the bapi BAPI_ACC_DOCUMENT_CHECK to check if is posible post first using BAPI_ACC_DOCUMENT_POST , but BAPI_ACC_DOCUMENT_CHECK is give me a errror :

Commitment item EDCP/0000//1130100102 does not exist

this look like a config error but if i try do a posting using fb01 i can do the post right using the same value that i pass in the bapi,

any clue i can check or is in fact some config is missing ?

thanks again

22 REPLIES 22

Former Member
0 Kudos

Look at the long text for the message. That '0000' in the middle looks suspicious.

Rob

0 Kudos

that is the only text i get in the return table of the bapi.... or you are refence to something else ?

0 Kudos

The RETURN table must contain other message details viz., the Message Class, Message No etc.

Perform a "where-used" on this message & check if you can figure out something.

Look at the long text for the message. That '0000' in the middle looks suspicious.

Means you may have missed some param to the BAPI call

0 Kudos

The RETURN table must contain other message details viz., the Message Class, Message No etc.

>

> Perform a "where-used" on this message & check if you can figure out something.

>

>

Look at the long text for the message. That '0000' in the middle looks suspicious.

Means you may have missed some param to the BAPI call

,

i know that return is a table , and only saw that messange and other things point to ACCOUNTGL , but not a field error ; the bapi dont have a field to field the commitment part i think that is auto get by the config in because of that i think is some config missing

0 Kudos

What is the message id and number? I suspect that you have not given a valid FM area or fiscal year at some point in your code.

Rob

Edited by: Rob Burbank on Jun 13, 2011 9:55 AM

0 Kudos

What is the message id and number?

>

> Rob

ID: F6

Number: 177

0 Kudos

Or it couold be the fiscal year variant you are missing.

Can you post the code where you fill in the commitment item?

Rob

0 Kudos

Or it couold be the fiscal year variant you are missing.

>

> Can you post the code where you fill in the commitment item?

>

> Rob

i will show the value pass to the bapi :

header:

OBJ_TYPE

OBJ_KEY

OBJ_SYS

BUS_ACT RFBU

USERNAME USER( i am just hidden the user name )

HEADER_TXT 10015120110613TXT

COMP_CODE COMPANY_CODE(i am just hidden the company code)

DOC_DATE 20110517

PSTNG_DATE 20110517

TRANS_DATE 20110517

FISC_YEAR 2011

FIS_PERIOD 05

DOC_TYPE IC

REF_DOC_NO

AC_DOC_NO

OBJ_KEY_R

REASON_REV

COMPO_ACC

REF_DOC_NO_LONG

ACC_PRINCIPLE

NEG_POSTNG

OBJ_KEY_INV

BILL_CATEGORY

VATDATE 00000000

accountgl:

Position 1:

ITEMNO_ACC 0000000001

GL_ACCOUNT 1130100102

ITEM_TEXT Interface SGC_SAP Ofi.:1110

ACCT_TYPE S

DOC_TYPE IC

COMP_CODE EE10

FIS_PERIOD 00

FISC_YEAR 0000

PSTNG_DATE 20110517

ALLOC_NMBR 1110

CMMT_ITEM 1130100102

CMMT_ITEM_LONG 1130100102

Position: 2

ITEMNO_ACC 0000000002

GL_ACCOUNT 1110333700

ITEM_TEXT Interface SGC_SAP Ofi.:1110

ACCT_TYPE S

DOC_TYPE IC

COMP_CODE EE10

FIS_PERIOD 00

FISC_YEAR 0000

PSTNG_DATE 20110517

ALLOC_NMBR 1110

CMMT_ITEM 1110333700

CMMT_ITEM_LONG 1110333700

currencyamount:

poistion: 1

ITEMNO_ACC 0000000001

CURR_TYPE

CURRENCY DOP

CURRENCY_ISO

AMT_DOCCUR 5238.6700

EXCH_RATE 0.00000

EXCH_RATE_V 0.00000

AMT_BASE 0.0000

DISC_BASE 0.0000

DISC_AMT 0.0000

TAX_AMT 0.0000

position: 2

ITEMNO_ACC 0000000002

CURR_TYPE

CURRENCY DOP

CURRENCY_ISO

AMT_DOCCUR 5238.6700-

EXCH_RATE 0.00000

EXCH_RATE_V 0.00000

AMT_BASE 0.0000

DISC_BASE 0.0000

DISC_AMT 0.0000

TAX_AMT 0.0000

0 Kudos

You have:

FISC_YEAR 0000

Change that to your current fiscal year.

Rob

0 Kudos

outside of the topic. you also have period '00'

0 Kudos

You have:

>

FISC_YEAR 0000

> Change that to your current fiscal year.

>

> Rob

done , and don't work i get the same error i , fill both , fiscal year and period field

FIS_PERIOD 05

FISC_YEAR 2011

0 Kudos

Did you do that in both places?

Rob

0 Kudos

of course , in both position ( i do the change dynamic in my program for all record i load , is a interface with a satellite system reading txt files )

0 Kudos

outside of the topic. you also have period '00'

yes , i also add the periont to the accountgl table , i dont fill it because all example that i find say is enough doing it in the header

0 Kudos

And the message is still:

Commitment item EDCP/0000//1130100102 does not exist

?

With the '0000'?

Rob

0 Kudos

And the message is still:

>

Commitment item EDCP/0000//1130100102 does not exist

?

> With the '0000'?

>

> Rob

yes , check a screenshot of the debuggin screen

http://picpaste.com/bapi_error-ZNdW16P6.JPG

( the messange is the same is just in show in spanish in the screenshot )

0 Kudos

Give it a try..

on the header

Assign: Sy-datum to Doc_date, Posting date and transaction date.

on the GL account (accntGL) -> Remove everything but

Itemno_acc , Gl_account, item_text. (you dont need to assign any account type).

Also add Profit center to the GL account line. (I am guessing here is the problem)

I see that Fiscal period is 05 in the debugging screen shot. Is that still open?

Edited by: Sampath Kumar on Jun 13, 2011 9:55 AM

former_member404244
Active Contributor
0 Kudos

Hi,

Please see if the commitment item was created..

Regards,

Nagaraj

0 Kudos

where i can check that ? i don't know much ( almost nothing ) of FI , i just a abaper and a newbie one.

edgar_almonte
Participant
0 Kudos

look like the bapi is not doing the strategic derivation when i put a trace in the FMDERIVE tcode is not lunch

somebody have any idea about this ?

0 Kudos

look like the bapi is not doing the strategic derivation when i put a trace in the FMDERIVE tcode is not lunch

>

> somebody have any idea about this ?

forget that , i try again and the trace was lunch when i run the bapi

0 Kudos

> look like the bapi is not doing the strategic derivation when i put a trace in the FMDERIVE tcode is not lunch

> >

> > somebody have any idea about this ?

>

> forget that , i try again and the trace was lunch when i run the bapi 😞

was in fact a derivation issue , i was overwrite the automatic derivation of strategic filling the field CMMT_ITEM of accountgl table

i comment that and everything was OK

Thanks for all trying help me