IDOC "ACC_GL_POSTING01" fails du to missing OBJ_TYPE
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:
OBJ_SYS <target client>
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,
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.