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

Error when posting Cash Journal BAPI

Former Member
0 Likes
1,868

Hi

When I post a Cash Journal with 'BAPI_CASHJOURNALDOC_CREATE' I get an error. The error is 'Define the name of accounting transaction in language E'.

What is this error caused by???

What is the required fields that must be filled in for the Cash Journal BAPI?

Usefull help that solves the problem will be rewarded.

Thanks in adavance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,184

Working back from the error message, it would at first seem that config is missing from "Create, Change, Delete Business Transactions" under Cash Journal in SPRO... but the function module FCJ_CHECK_TRANSACTION is one of the places the message is issued, and FCJ_PREP_SEL_CHECK_STACK is another... and in both cases it would seem you should have got a message along the lines of 'Define the name of accounting transaction XXX in language E'... i.e. there should have been a value of the"XXX" transaction in the message... if this is showing as blank, then that might indicate you need to be setting that up in your call (at the item level?)...

Hope this is of some help - we don't run cash journals so I can't test anything here, only browse the code.

Jonathan

2 REPLIES 2
Read only

Former Member
0 Likes
1,185

Working back from the error message, it would at first seem that config is missing from "Create, Change, Delete Business Transactions" under Cash Journal in SPRO... but the function module FCJ_CHECK_TRANSACTION is one of the places the message is issued, and FCJ_PREP_SEL_CHECK_STACK is another... and in both cases it would seem you should have got a message along the lines of 'Define the name of accounting transaction XXX in language E'... i.e. there should have been a value of the"XXX" transaction in the message... if this is showing as blank, then that might indicate you need to be setting that up in your call (at the item level?)...

Hope this is of some help - we don't run cash journals so I can't test anything here, only browse the code.

Jonathan

Read only

0 Likes
1,184

Thanks

The settings were correct, but your response made me look at the Cash Journal settings again and I then realised in my code I was using the wrong accounting transaction. Was using the description istead of numeric number/code.

Thanks