Application Development and Automation 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: 
Read only

BAPI BAPI_ACC_EMPLOYEE_EXP_POST

Former Member
0 Likes
1,143

Hi masters.

Does anybody can send me any example about using BAPI BAPI_ACC_EMPLOYEE_EXP_POST. I am trying to use that BAPI to post travel expenses, by filling in DOCUMENTHEADER, with the following data:

DOCUMENTHEADER

OBJ_TYPE HRPAY

OBJ_KEY 000354160010000261

OBJ_SYS DR3CLNT110

USERNAME KJDH935

HEADER_TXT TESTE WF

OBJ_KEY_R

BUS_ACT

COMP_CODE AZB

AC_DOC_NO

FISC_YEAR 2011

DOC_DATE 07.01.2011

PSTNG_DATE 07.01.2011

FIS_PERIOD 01

DOC_TYPE BT

REF_DOC_NO 0010000261

COMPO_ACC

TAX_COMP_CODE

REASON_REV

REF_DOC_NO_LONG

NEG_POSTNG

and ,also, two lines in ACCOUNTGL table:

ITEMNO_ACC GL_ACCOUNT COMP PSTNG_DATE DO AC_DOC_NO FISC FI STLMNT_ REF_KEY_1 REF_KEY_2 REF_KEY_3 ITEM_TEXT

0000000001 26101025 AZB 07.01.2011 BT 2011 01 201101 TESTE CONTABILIZAÇÃO POR BAPI

0000000002 56700101 AZB 07.01.2011 BT 2011 01 201101 TESTE CONTABILIZAÇÃO POR BAPI

and two mor lines in CURRENCYAMOUNT table:

ITEMNO_ACC CU CURRE AMT_DOCCUR EXCH_RATE AMT_BASE EXCH_RATE_V CUR

0000000001 BRL 300,0000 0,0000 0,00000

0000000002 BRL 300,0000 0,0000 0,00000

When a test the BAPI, I get the following messages:

E RW 609 Error in document: HRPAY 000354160010000261 DR3CLNT110

E F5 354 Account 26101025 in company code AZB cannot be directly posted to

E F5 354 Account 26101025 in company code AZB cannot be directly posted to

W KI 281 Do not assign any objects in cost accounting to account 26101025

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
911

These are functional errors - talk to your functional analyst.

Rob

2 REPLIES 2
Read only

Former Member
0 Likes
912

These are functional errors - talk to your functional analyst.

Rob

Read only

0 Likes
911

Thank you, Rob.