cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC "ACC_GL_POSTING01" fails du to missing OBJ_TYPE

peter_wallner2
Active Contributor
0 Kudos

Dear experts,

I need to post to a Leading Ledger (OL) account using an inbound iDoc.

I found I could use iDoc ACC_GL_POSTING.ACC_GL_POSTING01 iDoc to do that.

The BAPI "BAPI_ACC_DOCUMENT_POST" is used by that in the background if I am not mistaken.

In WE20 I set message type "ACC_GL_POSTING" and Process code "BAPI" and "Trigger immediately".

The iDoc is filled as follows:

E1BPACHE08

OBJ_TYPE

OBJ_KEY                     20150701

OBJ_SYS                    <target client>

USERNAME                 <user>

HEADER_TXT          

OBJ_KEY_R

COMP_CODE               0104

AC_DOC_NO

FISC_YEAR

DOC_DATE                   20150701

PSTNG_DATE               20150701

TRANS_DATE               20150701

FIS_PERIOD

DOC_TYPE                   SA

REF_DOC_NO              0000000000006066

COMPO_ACC           

REASON_REV

REF_DOC_NO_LONG

ACC_PRINCIPLE           IAS

But whenever I post the inbound iDoc ACC_GL_POSTING01 I get the error:

"Required field OBJ_TYP was not transferred in parameter DOCUMENTHEADER

Error in document: 20150701 ET2CLNT100

Message no. RW609"

I know I need to fill iDoc field OBJ_TYPE but with what value? I checked table TTYP for values but I do not know which value to pick from there.

Please help. Can you suggest how to find the right value from TTYP? It seems the only obstacle righ now.

Thank you and best regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos


Hi Peter,

Since it is and IDOC, please hard code " OBJ_TYPE" to "IDOC". Then, you can process the idoc.

Regards,

Rajesh

peter_wallner2
Active Contributor
0 Kudos

Hello Rajesh,

Thank you. It looks better now. I do get another error now:

"G/L account 144130 is not defined in chart of accounts CAUK".

I checked FS00 and it seems to me that account 144130 is defined:

Would you have an idea what could be the issue? Thank you again for your help.

Best regards,

Peter

Former Member
0 Kudos

Hi Peter,

GL account length is 10 digits. Since, the gl account in idoc is 6 digits, system throws that error. pad it with 0000 in the begining to mean update 0000144130 in the account number field. It should get processed.

Regards,

Rajesh

peter_wallner2
Active Contributor
0 Kudos

Hello Rajesh,

What a difference a few zeros can make. Thank you - it worked. I now get an error about open item management but I will talk to Finance about that error. Otherwise it seems to work now.

Thank you and best regards,

Peter

Answers (0)