‎2007 Sep 16 5:37 PM
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
‎2007 Sep 17 4:16 AM
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
‎2007 Sep 17 4:16 AM
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
‎2007 Sep 17 6:34 AM
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