Cash journal posting problem
Hi guys,
We are facing a typical problem with cash journal posting using transaction code fbcj. It is showing the error message as Tax-code is not defined for jurisdiction code. Where do we make these settings?
Please help me out
chintu
Hi,
Goto SPRO path as below and define Jurisdiction code
Financial Accounting (New) -Financial Accounting Basic Settings (New) -Ledgers
Global Parameters for Company Code -Document -Tax on Sales/Purchases -Basic Settings -Check Calculation Procedure -Assign Country to Calculation -Procedure -Check and Change Settings for Tax Processing -Specify Structure for Tax Jurisdiction Code -Define Tax Jurisdictions
Rgds
sunfico
Similar Messages
-
*FBCJ - CASH JOURNAL POSTING - ABAP RUN TIME ERROR*.
Hai,
My problem is, while FBCJ cash journal posting, Error message comes as Programme terminated, short dump is beeing formatted. The screen is quitting out to ABAP RUN TIME ERRORS. Short text of error message- For object, CAJO_DOC2 101, numer range interval 01 does not exist.( I have given the number range, but result is same.) - Pls advice, document type for cash journal is DZ ?.expecting valued support- Iam working on SAP R/3 4.7 enterprise.- TITUS GEORGE.Hi,
GOto SNUM, Input CAJO_DOC2...
Click on change and click on document number ranges.
Maintain the document number ranges for your company code..
That should solve the problem.
Good Luck
Cheers,
Redoxcube -
Automating Cash Journal Posting using inbound proxy interface and upload program
Hi Experts,
I have a requirement where in cash journal posting needs to be carried out automatically by an inbound interface on a periodic basis and at the start during cut over an upload program needs to be used to upload beg balance data . For this purpose I have used BAPI_CASHJOURNALDOC_CREATE to save cash journal entries along with BAPI TRANSACTION COMMIT.
Once the Data is successfully saved I am using FM FCJ_GET_DATA_FOR_SCREEN to get prerequisite data for the FM FCJ_POST_ALL which is used by the Standard cash journal program internally to post the saved data. ( I got this by debugging the standard transaction and both FMs are not yet released )
The issues I am facing is that the the FM FCJ_POST_ALL does not always post the data it behaves in random fashion i.e some times it posts the entries where as sometimes it does not post the entries.
I have tried using commit work after the FM but that also does not result in consistent behavior of the program. One more issue is the i am not allowed to use commit work in a an inbound proxy so how do i proceed ?
I am attaching the code for further analysis:
DATA: LIT_TCJ_TRANS_NAMES TYPE TABLE OF TCJ_TRANS_NAMES,
LWA_TCJ_TRANS_NAMES TYPE TCJ_TRANS_NAMES,
LV_WAIT TYPE BAPITA-WAIT VALUE '1',
LV_RECORD_NO TYPE SY-TABIX.
DATA : LIT_POSTING TYPE STANDARD TABLE OF ISCJ_POSTINGS,
LIT_WTAX_ITEMS TYPE STANDARD TABLE OF TCJ_WTAX_ITEMS,
LIT_SPLIT_POSTINGS TYPE STANDARD TABLE OF ISCJ_POSTINGS,
LIT_CPD TYPE STANDARD TABLE OF TCJ_CPD.
DATA: LV_BEG_BALANCE TYPE CJAMOUNT,
LV_TOTAL_RECEIPTS TYPE CJAMOUNT,
LV_TOTAL_PAYMENTS TYPE CJAMOUNT,
LV_TOTAL_CHECKS TYPE CJAMOUNT,
LV_RUN_BALANCE TYPE CJAMOUNT,
LV_RUN_CASH_BALANCE TYPE CJAMOUNT,
LV_NUMB_OF_REC TYPE I,
LV_NUMB_OF_PAYM TYPE I,
LV_NUMB_OF_CHECKS TYPE I.
DESCRIBE TABLE GIT_CJ LINES GV_TOTAL_RECORDS.
SELECT MANDT COMP_CODE TRANSACT_NUMBER LANGU TRANSACT_NAME LONG_TEXT
FROM TCJ_TRANS_NAMES
INTO TABLE LIT_TCJ_TRANS_NAMES
WHERE LANGU = GC_EN.
IF SY-SUBRC <> 0.
MESSAGE 'No Business Transaction maintained for Company Code in this client'(016) TYPE GC_I.
LEAVE LIST-PROCESSING.
ENDIF.
DESCRIBE TABLE GIT_CJ LINES GV_TOTAL_RECORDS.
LOOP AT GIT_CJ INTO GWA_CJ.
LV_RECORD_NO = SY-TABIX.
CLEAR: GS_HEADER_BAPI,
GS_CJ_KEY,
GWA_ITEMS.
REFRESH: GIT_ITEMS,
GIT_RETURN.
GS_HEADER_BAPI-COMP_CODE = GWA_CJ-BUKRS.
GS_HEADER_BAPI-CAJO_NUMBER = GWA_CJ-CJNR.
GS_HEADER_BAPI-CURRENCY = GC_PHP.
CLEAR LWA_TCJ_TRANS_NAMES.
READ TABLE LIT_TCJ_TRANS_NAMES INTO LWA_TCJ_TRANS_NAMES WITH KEY COMP_CODE = GWA_CJ-BUKRS
LANGU = GC_EN
TRANSACT_NAME = GWA_CJ-BTNAM.
IF SY-SUBRC = 0.
GWA_ITEMS-TRANSACT_NUMBER = LWA_TCJ_TRANS_NAMES-TRANSACT_NUMBER.
GWA_ITEMS-P_RECEIPTS = GWA_CJ-CJRAT.
GWA_ITEMS-TAX_CODE = GWA_CJ-TXCOD.
GS_HEADER_BAPI-BP_NAME = GWA_CJ-BPNAM.
GWA_ITEMS-POSITION_TEXT = GWA_CJ-POTXT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GWA_CJ-LIFNR
IMPORTING
OUTPUT = GWA_ITEMS-VENDOR_NO.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GWA_CJ-KUNNR
IMPORTING
OUTPUT = GWA_ITEMS-CUSTOMER.
PERFORM SUB_DATE_FROMAT_BAPI CHANGING GWA_CJ-BLDAT
GS_HEADER_BAPI-DOC_DATE.
PERFORM SUB_DATE_FROMAT_BAPI CHANGING GWA_CJ-BUDAT
GS_HEADER_BAPI-PSTNG_DATE.
GS_HEADER_BAPI-REF_DOC_NO = GWA_CJ-XBLNR.
GS_HEADER_BAPI-ALLOC_NMBR = GWA_CJ-ALLNO.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GWA_CJ-KOSTL
IMPORTING
OUTPUT = GWA_ITEMS-COSTCENTER.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GWA_CJ-PRCTR
IMPORTING
OUTPUT = GWA_ITEMS-PROFIT_CTR.
APPEND GWA_ITEMS TO GIT_ITEMS.
CALL FUNCTION 'BAPI_CASHJOURNALDOC_CREATE'
EXPORTING
HEADER = GS_HEADER_BAPI
IMPORTING
COMPANY_CODE = GS_CJ_KEY-COMP_CODE
CASH_JOURNAL_NUMBER = GS_CJ_KEY-CAJO_NUMBER
FISCAL_YEAR = GS_CJ_KEY-FISC_YEAR
CASH_JOURNAL_DOC_NO = GS_CJ_KEY-POSTING_NUMBER
TABLES
ITEMS = GIT_ITEMS
RETURN = GIT_RETURN.
IF GIT_RETURN IS NOT INITIAL.
READ TABLE GIT_RETURN INTO GWA_RETURN WITH KEY TYPE = GC_E.
IF SY-SUBRC <> 0.
CLEAR GWA_CJ_S.
MOVE-CORRESPONDING GS_CJ_KEY TO GWA_CJ_S.
CLEAR GWA_RETURN.
READ TABLE GIT_RETURN INTO GWA_RETURN WITH KEY TYPE = GC_S.
IF SY-SUBRC = 0.
MOVE GWA_RETURN-MESSAGE TO GWA_CJ_S-MSG.
CLEAR GWA_RETURN.
READ TABLE GIT_RETURN INTO GWA_RETURN WITH KEY TYPE = GC_I.
IF SY-SUBRC = 0.
CLEAR GWA_CJ_E.
CONCATENATE GWA_RETURN-MESSAGE GWA_CJ_S-MSG INTO GWA_CJ_E-MSG SEPARATED BY GC_PIPE_FORMAT.
MOVE-CORRESPONDING GS_HEADER_BAPI TO GWA_CJ_E.
GWA_CJ_E-POSTING_NUMBER = LV_RECORD_NO.
APPEND GWA_CJ_E TO GIT_CJ_E.
GV_ERROR_RECORDS = GV_ERROR_RECORDS + GC_1.
ELSE.
IF P_TEST NE GC_X.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = LV_WAIT.
REFRESH:LIT_POSTING ,
LIT_WTAX_ITEMS ,
LIT_SPLIT_POSTINGS ,
LIT_CPD .
CLEAR: LV_BEG_BALANCE ,
LV_TOTAL_RECEIPTS ,
LV_TOTAL_PAYMENTS ,
LV_TOTAL_CHECKS ,
LV_RUN_BALANCE ,
LV_RUN_CASH_BALANCE ,
LV_NUMB_OF_REC ,
LV_NUMB_OF_PAYM ,
LV_NUMB_OF_CHECKS .
CALL FUNCTION 'FCJ_GET_DATA_FOR_SCREEN'
EXPORTING
I_COMP_CODE = GS_CJ_KEY-COMP_CODE
I_CAJO_NUMBER = GS_CJ_KEY-CAJO_NUMBER
I_DISPLAY_PERIOD_LO = GS_HEADER_BAPI-PSTNG_DATE
I_DISPLAY_PERIOD_HI = GS_HEADER_BAPI-PSTNG_DATE
IMPORTING
E_BEGINNING_BALANCE = LV_BEG_BALANCE
E_RUNNING_BALANCE = LV_RUN_BALANCE
E_RUNNING_CASH_BALANCE = LV_RUN_CASH_BALANCE
E_TOTAL_RECEIPTS = LV_TOTAL_RECEIPTS
E_TOTAL_REC_NUMBER = LV_NUMB_OF_REC
E_TOTAL_PAYMENTS = LV_TOTAL_PAYMENTS
E_TOTAL_PAYM_NUMBER = LV_NUMB_OF_PAYM
E_TOTAL_CHECKS = LV_TOTAL_CHECKS
E_TOTAL_CHECKS_NUMBER = LV_NUMB_OF_CHECKS
TABLES
E_POSTINGS = LIT_POSTING
E_WTAX_ITEMS = LIT_WTAX_ITEMS
E_SPLIT_POSTINGS = LIT_SPLIT_POSTINGS
E_CPD = LIT_CPD.
CALL FUNCTION 'FCJ_POST_ALL'
EXPORTING
I_COMP_CODE = GS_CJ_KEY-COMP_CODE
I_CAJO_NUMBER = GS_CJ_KEY-CAJO_NUMBER
I_CURRENCY = GS_HEADER_BAPI-CURRENCY
I_TYP = 'R'
I_DISPLAY_PERIOD_LO = GS_HEADER_BAPI-PSTNG_DATE
I_DISPLAY_PERIOD_HI = GS_HEADER_BAPI-PSTNG_DATE
* IMPORTING
* E_ERROR_NUMBER =
TABLES
ITCJ_POSTINGS = LIT_POSTING
ITCJ_WTAX_ITEMS = LIT_WTAX_ITEMS
ITCJ_SPLIT_POSTINGS = LIT_SPLIT_POSTINGS
ITCJ_CPD = LIT_CPD
CHANGING
P_BEG_BALANCE = LV_BEG_BALANCE
P_TOTAL_RECEIPTS = LV_TOTAL_RECEIPTS
P_TOTAL_PAYMENTS = LV_TOTAL_PAYMENTS
P_TOTAL_CHECKS = LV_TOTAL_CHECKS
P_RUN_BALANCE = LV_RUN_BALANCE
P_RUN_CASH_BALANCE = LV_RUN_CASH_BALANCE
P_NUMB_OF_REC = LV_NUMB_OF_REC
P_NUMB_OF_PAYM = LV_NUMB_OF_PAYM
P_NUMB_OF_CHECKS = LV_NUMB_OF_CHECKS.
COMMIT WORK.
ENDIF.
APPEND GWA_CJ_S TO GIT_CJ_S.
GV_SUCCESS_RECORDS = GV_SUCCESS_RECORDS + GC_1.
CLEAR GWA_CJ_S.
ENDIF.
ENDIF.
ELSE.
CLEAR GWA_CJ_E.
MOVE-CORRESPONDING GS_HEADER_BAPI TO GWA_CJ_E.
MOVE GWA_RETURN-MESSAGE TO GWA_CJ_E-MSG.
GWA_CJ_E-POSTING_NUMBER = LV_RECORD_NO.
APPEND GWA_CJ_E TO GIT_CJ_E.
GV_ERROR_RECORDS = GV_ERROR_RECORDS + GC_1.
ENDIF.
ENDIF.
ELSE.
GWA_RETURN-MESSAGE = 'Transaction Name does not correspond to any Transaction Number'(017).
CLEAR GWA_CJ_E.
MOVE-CORRESPONDING GS_HEADER_BAPI TO GWA_CJ_E.
MOVE GWA_RETURN-MESSAGE TO GWA_CJ_E-MSG.
GWA_CJ_E-POSTING_NUMBER = LV_RECORD_NO.
APPEND GWA_CJ_E TO GIT_CJ_E.
GV_ERROR_RECORDS = GV_ERROR_RECORDS + GC_1.
ENDIF.
ENDLOOP.
ENDFORM. " SUB_BAPI_CALLHi Experts,
I have a requirement where in cash journal posting needs to be carried out automatically by an inbound interface on a periodic basis and at the start during cut over an upload program needs to be used to upload beg balance data . For this purpose I have used BAPI_CASHJOURNALDOC_CREATE to save cash journal entries along with BAPI TRANSACTION COMMIT.
Once the Data is successfully saved I am using FM FCJ_GET_DATA_FOR_SCREEN to get prerequisite data for the FM FCJ_POST_ALL which is used by the Standard cash journal program internally to post the saved data. ( I got this by debugging the standard transaction and both FMs are not yet released )
The issues I am facing is that the the FM FCJ_POST_ALL does not always post the data it behaves in random fashion i.e some times it posts the entries where as sometimes it does not post the entries.
I have tried using commit work after the FM but that also does not result in consistent behavior of the program. One more issue is the i am not allowed to use commit work in a an inbound proxy so how do i proceed ?
I am attaching the code for further analysis:
DATA: LIT_TCJ_TRANS_NAMES TYPE TABLE OF TCJ_TRANS_NAMES,
LWA_TCJ_TRANS_NAMES TYPE TCJ_TRANS_NAMES,
LV_WAIT TYPE BAPITA-WAIT VALUE '1',
LV_RECORD_NO TYPE SY-TABIX.
DATA : LIT_POSTING TYPE STANDARD TABLE OF ISCJ_POSTINGS,
LIT_WTAX_ITEMS TYPE STANDARD TABLE OF TCJ_WTAX_ITEMS,
LIT_SPLIT_POSTINGS TYPE STANDARD TABLE OF ISCJ_POSTINGS,
LIT_CPD TYPE STANDARD TABLE OF TCJ_CPD.
DATA: LV_BEG_BALANCE TYPE CJAMOUNT,
LV_TOTAL_RECEIPTS TYPE CJAMOUNT,
LV_TOTAL_PAYMENTS TYPE CJAMOUNT,
LV_TOTAL_CHECKS TYPE CJAMOUNT,
LV_RUN_BALANCE TYPE CJAMOUNT,
LV_RUN_CASH_BALANCE TYPE CJAMOUNT,
LV_NUMB_OF_REC TYPE I,
LV_NUMB_OF_PAYM TYPE I,
LV_NUMB_OF_CHECKS TYPE I.
DESCRIBE TABLE GIT_CJ LINES GV_TOTAL_RECORDS.
SELECT MANDT COMP_CODE TRANSACT_NUMBER LANGU TRANSACT_NAME LONG_TEXT
FROM TCJ_TRANS_NAMES
INTO TABLE LIT_TCJ_TRANS_NAMES
WHERE LANGU = GC_EN.
IF SY-SUBRC <> 0.
MESSAGE 'No Business Transaction maintained for Company Code in this client'(016) TYPE GC_I.
LEAVE LIST-PROCESSING.
ENDIF.
DESCRIBE TABLE GIT_CJ LINES GV_TOTAL_RECORDS.
LOOP AT GIT_CJ INTO GWA_CJ.
LV_RECORD_NO = SY-TABIX.
CLEAR: GS_HEADER_BAPI,
GS_CJ_KEY,
GWA_ITEMS.
REFRESH: GIT_ITEMS,
GIT_RETURN.
GS_HEADER_BAPI-COMP_CODE = GWA_CJ-BUKRS.
GS_HEADER_BAPI-CAJO_NUMBER = GWA_CJ-CJNR.
GS_HEADER_BAPI-CURRENCY = GC_PHP.
CLEAR LWA_TCJ_TRANS_NAMES.
READ TABLE LIT_TCJ_TRANS_NAMES INTO LWA_TCJ_TRANS_NAMES WITH KEY COMP_CODE = GWA_CJ-BUKRS
LANGU = GC_EN
TRANSACT_NAME = GWA_CJ-BTNAM.
IF SY-SUBRC = 0.
GWA_ITEMS-TRANSACT_NUMBER = LWA_TCJ_TRANS_NAMES-TRANSACT_NUMBER.
GWA_ITEMS-P_RECEIPTS = GWA_CJ-CJRAT.
GWA_ITEMS-TAX_CODE = GWA_CJ-TXCOD.
GS_HEADER_BAPI-BP_NAME = GWA_CJ-BPNAM.
GWA_ITEMS-POSITION_TEXT = GWA_CJ-POTXT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GWA_CJ-LIFNR
IMPORTING
OUTPUT = GWA_ITEMS-VENDOR_NO.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GWA_CJ-KUNNR
IMPORTING
OUTPUT = GWA_ITEMS-CUSTOMER.
PERFORM SUB_DATE_FROMAT_BAPI CHANGING GWA_CJ-BLDAT
GS_HEADER_BAPI-DOC_DATE.
PERFORM SUB_DATE_FROMAT_BAPI CHANGING GWA_CJ-BUDAT
GS_HEADER_BAPI-PSTNG_DATE.
GS_HEADER_BAPI-REF_DOC_NO = GWA_CJ-XBLNR.
GS_HEADER_BAPI-ALLOC_NMBR = GWA_CJ-ALLNO.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GWA_CJ-KOSTL
IMPORTING
OUTPUT = GWA_ITEMS-COSTCENTER.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GWA_CJ-PRCTR
IMPORTING
OUTPUT = GWA_ITEMS-PROFIT_CTR.
APPEND GWA_ITEMS TO GIT_ITEMS.
CALL FUNCTION 'BAPI_CASHJOURNALDOC_CREATE'
EXPORTING
HEADER = GS_HEADER_BAPI
IMPORTING
COMPANY_CODE = GS_CJ_KEY-COMP_CODE
CASH_JOURNAL_NUMBER = GS_CJ_KEY-CAJO_NUMBER
FISCAL_YEAR = GS_CJ_KEY-FISC_YEAR
CASH_JOURNAL_DOC_NO = GS_CJ_KEY-POSTING_NUMBER
TABLES
ITEMS = GIT_ITEMS
RETURN = GIT_RETURN.
IF GIT_RETURN IS NOT INITIAL.
READ TABLE GIT_RETURN INTO GWA_RETURN WITH KEY TYPE = GC_E.
IF SY-SUBRC <> 0.
CLEAR GWA_CJ_S.
MOVE-CORRESPONDING GS_CJ_KEY TO GWA_CJ_S.
CLEAR GWA_RETURN.
READ TABLE GIT_RETURN INTO GWA_RETURN WITH KEY TYPE = GC_S.
IF SY-SUBRC = 0.
MOVE GWA_RETURN-MESSAGE TO GWA_CJ_S-MSG.
CLEAR GWA_RETURN.
READ TABLE GIT_RETURN INTO GWA_RETURN WITH KEY TYPE = GC_I.
IF SY-SUBRC = 0.
CLEAR GWA_CJ_E.
CONCATENATE GWA_RETURN-MESSAGE GWA_CJ_S-MSG INTO GWA_CJ_E-MSG SEPARATED BY GC_PIPE_FORMAT.
MOVE-CORRESPONDING GS_HEADER_BAPI TO GWA_CJ_E.
GWA_CJ_E-POSTING_NUMBER = LV_RECORD_NO.
APPEND GWA_CJ_E TO GIT_CJ_E.
GV_ERROR_RECORDS = GV_ERROR_RECORDS + GC_1.
ELSE.
IF P_TEST NE GC_X.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = LV_WAIT.
REFRESH:LIT_POSTING ,
LIT_WTAX_ITEMS ,
LIT_SPLIT_POSTINGS ,
LIT_CPD .
CLEAR: LV_BEG_BALANCE ,
LV_TOTAL_RECEIPTS ,
LV_TOTAL_PAYMENTS ,
LV_TOTAL_CHECKS ,
LV_RUN_BALANCE ,
LV_RUN_CASH_BALANCE ,
LV_NUMB_OF_REC ,
LV_NUMB_OF_PAYM ,
LV_NUMB_OF_CHECKS .
CALL FUNCTION 'FCJ_GET_DATA_FOR_SCREEN'
EXPORTING
I_COMP_CODE = GS_CJ_KEY-COMP_CODE
I_CAJO_NUMBER = GS_CJ_KEY-CAJO_NUMBER
I_DISPLAY_PERIOD_LO = GS_HEADER_BAPI-PSTNG_DATE
I_DISPLAY_PERIOD_HI = GS_HEADER_BAPI-PSTNG_DATE
IMPORTING
E_BEGINNING_BALANCE = LV_BEG_BALANCE
E_RUNNING_BALANCE = LV_RUN_BALANCE
E_RUNNING_CASH_BALANCE = LV_RUN_CASH_BALANCE
E_TOTAL_RECEIPTS = LV_TOTAL_RECEIPTS
E_TOTAL_REC_NUMBER = LV_NUMB_OF_REC
E_TOTAL_PAYMENTS = LV_TOTAL_PAYMENTS
E_TOTAL_PAYM_NUMBER = LV_NUMB_OF_PAYM
E_TOTAL_CHECKS = LV_TOTAL_CHECKS
E_TOTAL_CHECKS_NUMBER = LV_NUMB_OF_CHECKS
TABLES
E_POSTINGS = LIT_POSTING
E_WTAX_ITEMS = LIT_WTAX_ITEMS
E_SPLIT_POSTINGS = LIT_SPLIT_POSTINGS
E_CPD = LIT_CPD.
CALL FUNCTION 'FCJ_POST_ALL'
EXPORTING
I_COMP_CODE = GS_CJ_KEY-COMP_CODE
I_CAJO_NUMBER = GS_CJ_KEY-CAJO_NUMBER
I_CURRENCY = GS_HEADER_BAPI-CURRENCY
I_TYP = 'R'
I_DISPLAY_PERIOD_LO = GS_HEADER_BAPI-PSTNG_DATE
I_DISPLAY_PERIOD_HI = GS_HEADER_BAPI-PSTNG_DATE
* IMPORTING
* E_ERROR_NUMBER =
TABLES
ITCJ_POSTINGS = LIT_POSTING
ITCJ_WTAX_ITEMS = LIT_WTAX_ITEMS
ITCJ_SPLIT_POSTINGS = LIT_SPLIT_POSTINGS
ITCJ_CPD = LIT_CPD
CHANGING
P_BEG_BALANCE = LV_BEG_BALANCE
P_TOTAL_RECEIPTS = LV_TOTAL_RECEIPTS
P_TOTAL_PAYMENTS = LV_TOTAL_PAYMENTS
P_TOTAL_CHECKS = LV_TOTAL_CHECKS
P_RUN_BALANCE = LV_RUN_BALANCE
P_RUN_CASH_BALANCE = LV_RUN_CASH_BALANCE
P_NUMB_OF_REC = LV_NUMB_OF_REC
P_NUMB_OF_PAYM = LV_NUMB_OF_PAYM
P_NUMB_OF_CHECKS = LV_NUMB_OF_CHECKS.
COMMIT WORK.
ENDIF.
APPEND GWA_CJ_S TO GIT_CJ_S.
GV_SUCCESS_RECORDS = GV_SUCCESS_RECORDS + GC_1.
CLEAR GWA_CJ_S.
ENDIF.
ENDIF.
ELSE.
CLEAR GWA_CJ_E.
MOVE-CORRESPONDING GS_HEADER_BAPI TO GWA_CJ_E.
MOVE GWA_RETURN-MESSAGE TO GWA_CJ_E-MSG.
GWA_CJ_E-POSTING_NUMBER = LV_RECORD_NO.
APPEND GWA_CJ_E TO GIT_CJ_E.
GV_ERROR_RECORDS = GV_ERROR_RECORDS + GC_1.
ENDIF.
ENDIF.
ELSE.
GWA_RETURN-MESSAGE = 'Transaction Name does not correspond to any Transaction Number'(017).
CLEAR GWA_CJ_E.
MOVE-CORRESPONDING GS_HEADER_BAPI TO GWA_CJ_E.
MOVE GWA_RETURN-MESSAGE TO GWA_CJ_E-MSG.
GWA_CJ_E-POSTING_NUMBER = LV_RECORD_NO.
APPEND GWA_CJ_E TO GIT_CJ_E.
GV_ERROR_RECORDS = GV_ERROR_RECORDS + GC_1.
ENDIF.
ENDLOOP.
ENDFORM. " SUB_BAPI_CALL -
How to reverse the cash journal posted entries in FBCJ
Hi All
In Cash journal (FBCJ) user has posted the document by mistakenly two times, is it possible to reverse the cash journal posted document. Please advise how to reverse the posted cash journal entries.
Regards
K.GunasekarHi,
For reversing, select the line and then go to "Edit > Delete Entry (Shift+F2)" or "Delete Row" button at the bottom part of screen. (Deletion function reverse the document in FBCJ)
However in case you are trying to reverse the entry after printing a receipt if you must implement OSS Note 359656 first:-
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=359656]
Regards,
Gaurav -
Dear all,
While posting a transaction in cash journal, I am getting the following message -
For object CAJO_DOC2 1111, number range interval 01 does not exist.
Message no. NR751
Diagnosis
The database table NRIV has the delivery class 'C', i.e. the SAP default settings are only in client 000.
Procedure
Create the missing number range interval in customizing.
I have created a doc type (CN) & no range (CN) for cash journal in customising & assigned the same to the doc type.
How to move ahead on this?
Thanksyou have to assign number ranges for cash journal in cash journal customization
-
Cash journal splitting problems
Dear experts,
I can't understand cash journal splitting principles and how does it work. Because documentation in help.sap.com is very poor about this.
I have entered one line item in FBCJ, and then press on "Split" button. System shows me splitting screen and there I see my just entered line item with all my account assignements. I don't want to add more line items for splitting, so I press on the button "Copy". And nothing heapens!!! After document posting to general ledger I don't see (in document General Ledger view) account assignements to Cash Journal line item... (!!!)
What I am doing wrong?Hi
The spiltting functionality in FBCJ is for posting more than one line item,
Say for Exapmle for a employee vendor we have to pay Travel expenses,Medical Exp and so on, this point of time the splitting functionality is being used.
Once you click on the split it will show you only one line item in edit mode and the others will be in display mode but once you complete enetring one line item and press enter the other line item will become in edit mode and so on.
Hope this helps you..
Good Luck
Hari -
Hello,
while making cash receipts/payments in t.code "FBCJ - Cash journal", i am getting error "Posting Key not defined", but after pressing enter it is getting posted, what configuration has been missed? I have even checked in T.code OB41 and all posting keys are defined. so where i have done a mistake? Please guide.
Regards
AshwinPlease mention posting keys in OBXI and try.
-
Good Day All,
When we posted Cash Journal transaction FBCJ and do a split transaction of 7 lines on the cash receipt. The system only posted the first 4 line items, but with the amount of the total transaction. The other three transactions were not posted and the system showed that the transaction is not completed. Therefor we cannot revers the transaction via FBCJ.
Kindly see example
Split transaction the way the user split the money.
1) Customer receipt 5.383,18 Customer Account
2) Customer receipt 5.960,05 Customer Account
3) Customer receipt 25.798,85 Customer Account
4) Customer receipt 32.070,27 Customer Account
5) Unallocated receipt 44.142,49 General Ledger Account
6) Unallocated receipt 2.348,52 General Ledger Account
7) Unallocated receipt 247,21 General Ledger Account
Total Amount R 15 000,00
SAP post as follow.
1)Customer receipt R 15 000,00 15 Customer Account 40 Cash Journal
2)Customer receipt R 15 000,00 15 Customer Account 40 Cash Journal
3)Customer receipt R 15 000,00 15 Customer Account 40 Cash Journal
4)Customer receipt R 15 000,00 15 Customer Account 40 Cash Journal
Please Help
MartieGood Morning Marssell,
Thank You very much for your reply. Sorry for the long explanation, but hope this will give you a better understanding of my problem.
I do not understand you question. Are these 3 line items changing account balance?
The system did post to the offsets G/L accounts (Cash Journal posted G/L accounts) for the customer accounts.
I did the same scenario in the QA client and its working fine see transaction below.
The splitting was entered as follow.
1)Customer receipt 5.383,18 Customer Account
2) Customer receipt 5.960,05 Customer Account
3) Customer receipt 25.798,85 Customer Account
4) Customer receipt 32.070,27 Customer Account
5) Unallocated receipt 44.142,49 General Ledger Account
6) Unallocated receipt 2.348,52 General Ledger Account
7) Unallocated receipt 247,21 General Ledger Account
The total amount of all the line items is R 115.950,57
The system posted the transaction as follow
1 40 115122 5.383,18 Petty Cash Account
2 40 115122 5.960,05 Petty Cash Account
3 40 115122 25.798,85 Petty Cash Account
4 40 115122 32.070,27 Petty Cash Account
5 40 115122 44.142,49 Petty Cash Account
6 40 115122 2.348,52 Petty Cash Account
7 40 115122 247,21 Petty Cash Account
8 15 80930051 5.383,18- Customer Account
9 15 80930033 5.960,05- Customer Account
10 15 80930037 25.798,85- Customer Account
11 15 80930065 32.070,27- Customer Account
12 50 800030 38.721,49- GL account
13 50 805550 2.060,10- GL account
14 50 805120 216,85- GL account
15 50 175000 5.739,78- Vat Output Account
But in the production its posting the transaction incorrect see transaction below.
The splitting was the same as above but the system did not post the GL lines, and it used the Total amount of the splitting. In other words the system post a total of R 463 802,28 into the Petty Cash account instead of a total of R 115.950,57
1 40 115122 115.950,57 Petty Cash Account
2 15 80930051 115.950,57 Customer Account
1 40 115122 115.950,57 Petty Cash Account
2 15 80930033 115.950,57 Customer Account
1 40 115122 115.950,57 Petty Cash Account
2 15 80930037 115.950,57 Customer Account
1 40 115122 115.950,57 Petty Cash Account
2 15 80930065 115.950,57 Customer Account -
Cash Journal Branch creation concept
Dear Friends,
Can any one please explain about the Petty cash in sap.
I did the set up in petty cash like creation of Branch account.
Please help me to understand the actual concept of petty cash in sap. how its works in the system.
Thanks in advance.
Regards,
MahendraHi,
Concept of Cash Journal:
You can use the cash journal to manage cash transactions in your company. You can post cash receipts and cash payments, print receipts, and print out a cash journal. The cash journal in the R/3 System is a subsidiary ledger, which contains documents that are transferred from the cash journal to the general ledger in SAP FI. A cash journal is kept in one currency.
The cash journal does not include functions for accepting and depositing checks.
Each cash journal is assigned a G/L account to which the documents in the general ledger are posted.
When a posting is made to a cash journal, the documents with the following document types are posted:
Business transaction Document Type
G/L account postings AB
Vendor: incoming/outgoing payments KZ
Customer: incoming/outgoing payments DZ
You can create your own business transactions that have to be posted. In the cash journal transaction FBCJ, you can create, change, and delete business transactions.
We can provide the following business transactions for cash journal accounting:
Business transaction type
E = Expenses
D = Customer posting
K = Vendor posting
B = Payment to ICBC bank account
B = Payment to BOC bank account
C = Payment from bank account
C = Payment to bank account
R = Revenue
Cash Journal Configuration steps:
1. Create GL Account for Cash Journal (Post Automatically): FS00 or FS01
2. Amount Limit: Path: IMG/FA/Bank Accounting/Business Transactions/Cash Journal
3. Define Document Types for Cash Journal Documents - Tcode: OBA7
4. Define No. Range Intervals for Cash Journal Documents- CJC1
5. Set up Cash Journal - Tcode: CJC0
6. Create, Change, Delete Business Transactions - Tcode: CJC2
7. Set up Print Parameters for Cash Journal - CJC3
8. Cash Journal Posting : FBCJ
Hope this helps you,
Regards,
Kannusamy S -
Cash journal: security deposit refund to customer in cash
Hi
Please mention how to post in FBCJ; security deposit refund in cash to custmers. As we cannot use expense or other business transaction type in cash journal posting.
Regards
Keyin.12345Dear Llu jo and Atif
Thanks for your wonderful inputs, I have done the posting and subsequent clearing. But I have two doubts in this...
1. When i am posting to customer account in FBCJ, it is getting posted to Main reconciliation and from there I am trasnfering to Special gl account using f-02, and in next step i am clearing using f-32. Is this correct or do we need some other account in FBCJ. If it is possible plesae provide journal entries.
2. I have read on sdn that we can use substitution rule, I am trying to create but in substitution step HKONT field is not displayed. . In prerequisite step HKNOT field is there but not in substitution step. Is there any way we can distplay HKONT.
Please do the needful
Regards
Keyin.12345 -
Cash Journal with special G/L indicator
Dear All ,
Can I use special G/L indicator with casj journal ?
thanks
DashHi,
Following part of note 532888 where this information is explained:
"o Special G/L indicator (for example, for down payments)
We have not provided a special G/L indicator, in particular for down payments, for reasons of simple useablity.However, if you want to enter down payments in the cash journal,you should write a corresponding note in the text field as a workaround (for example, 'Down payment'), in the cash journal
post this amount to a clearing account that is intended for this, and afterwards make a transfer posting of this clearing account with the corresponding special G/L indicator in the accounts receivable accounting."
Regards
Ravinagh Boni -
CASH Journal ---------------------Urgent
Hi all
pls this is very urgent
my client is posting FBCJ Cash journal
when cash journal posting vendor
system was Calculating Td's also
my client asking no need tds Calculation
pls how it possibleHello
In Cash journal we can post documents which require TDS calculation and documents which do not require TDS calculation.
If you have already set the tax calculation indicator in the config, the system would automatically calculate.
So, if your client want's no calculation, if it is actually required by law, then try some substitution rule for specific vendors or type of transcations. Maybe the ABAPer could also help in debugging the whole process and identify from where the tax is picking up and you could go there and make the tax code inactive.
Reg
*Assign points if useful -
Cash journal and electroni BRS
Hi ,
I am sunitha , plz tell me the basic steps for cash journal and electronic BRS .
Thank you.
Regards,
sunita.HI
CASH JOURNAL
IMG/FA/BANK A/C / BUS TRANS/ CASH JOURNAL
1. Create GL a/c for Cash Journal Ensure post automatically is on, so that posting can take place automatically. [ 100000 Petty Cash A/c ]
2. Define doc types for Cash Journal Docs - SK [other doc types SA GL, DZ Customer Receipt, KZ Vendor Payment] [ OBA7 ]
3. Define No range & interval for Cash Journal documents [ FBCJC1 ] - copy from 0001.
4. Setup cash journal : [ FBCJC0 ]
a. Give a Cash Journal Code
b. Various code for GL A/cs, Customers, Vendors.
5. Create, Change, Delete Business Transactions [ FBCJC2 ] : These tran types can be copied, but as they are linked to GL a/cs, change as reqd. These can be accessed at FBCJ.
a. C receipts from bank GL a/c -
b. B payment ot bank GL a/c -
c. R Sales
For vendors & Customers, GL a/cs need not be given, as they will be different for A/P, A/R.
6. Setup Print params [ FBCJC3 ] copy from 0001, output device LP01.
7. Posting - SAP/A/c/FA/GL/Doc Entry - Cash Journal Posting FBCJ
BANK RECONCILIATION STATEMENT
SAP/FA/Banking/MasterData/BankMasterData
FI01 create. Instead of the above, you can also create the house bank thru IMG/FA/BankAccounting/BankAccounts
Define house bank - When the house bank is entered, click create button to create. The other details on left like bank a/c con be copied wherever possible.
IMG/FA/ARAP/BT/IP/AutoIP/Payment Method/Bank selection for payment prg
o Setup all co codes for payment transactions
 FPJ customers
 FP vendors
o Setup paying co codes for payment transactions
 Copy from ..
o Setup payment methods per country for payment transactions
 Copy IN cheque exists
 Possible currencies - include all possible currencies. If not set, payment cannot be made in that currency.
o Setup payment method per co code for payment transactions
 C cheque
 Ranking order 1
 Min & max amounts for payment
 Optimize using postal code for faster searches.
o Setup bank determination for payment transactions
 Bank a/c create
 Available amounts for C
 Value dates
IMG/FA/ARAP/BT/OP/AutoOp/PaymentMedia/CheckManagement
o Define no ranges for cheques
o Pass some bank entries thru FBCJ [cash journal]
SAP/AC/Treasury/CashManagement/Incomings/ManualBankStatement
o FF67 enter
 Beginning balance = 0
 End balance = total or earlier entry
 In Further Processing keep Bank Posting  ON.
 The difference enter into the statement with +=dr & -=cr
 Save statement.
 Post statement from Bank Statement TOP.
o FEBA post process. Value date is important, as the matching takes place as per the value dates.
Assign Points
Z -
Hi
All guru's
I have to involving in cash journals configuration.
plz send me any documents...
and wt i have take points to consideration
plz help me out...
regards
ssHi,
1. <b>IMG-FA-Bank Bus Trans-Cash Journal</b>
a. <i>Create GL for Cash journal</i>
i. Create Petty cash under Current Asset Check Post Automatically
ii. Create many petty expenses E.g. Printing, Postage etc
b. <i>Define Document types for cash journal AB,DZ,KZ</i>
c. <i>Define number range for Cash Journal Mention 01 always</i>
d. <i>Setup Cash journal</i>
i. New Entries
ii. Cocode
iii. Cash journal # - <Any 4 char>
iv. GL account no (Petty cash GL no)
v. Currency
vi. AB,K,KZ,DZ,DZ
vii. Give Descr
viii. Save
e. <i>Create/Cahnge/Delete bus Trans</i>
i. New Entries
ii. Cocode
iii. TransNo <Automatically Updated>
iv. Bus Trans type
v. GL Account Number - Maintain Two entries Cash Receipt: C; Cash Deposit: B; Expenditure: E (Separate line item for all petty cash expenses)
vi. Save
<b>2. Easy Access Accounting FA GL document Entry Cash journal Posting (FBCJ)</b>
a. Click Change cash journal to change Cocode and cash journal
b. Display period
i. Today
ii. Click Cash Receipt tab
iii. Click Save to update
iv. Click Post
v. Cash payments
REgards,
Sridevi
<i><b>Award points, if useful</b></i> -
Unable to post one time customer to cash journal
Dear All,
I have difficulty in posting one time customer to cash journal, it did
not prompt me for name and address. However in the website
http://help. sap.com/bp_ bblibrary/ 600/documentatio n/N70_BPP_ 04_EN_DE. doc
it mention it is able, does not know what is the problem, any one has
any idea?
Many ThanksHi Chua,
1) please, make sure that in tr. FD02 this one-time customer exists. IF it doesn't exist, please, create as master data should be available in FI module.
2) According to SAP Library:
For customers whom you only supply once or rarely, you can create a special customer master record, the master record for "one-time accounts". In contrast to other master records, no data specific to a single customer is stored in the one-time master record, since this account is used for more than one customer. The customer-specific entries such as address and bank details are not entered until the document for the transaction is entered into the system.
When you post a document to a one-time account, the system automatically goes to a master data screen. On this screen, you enter the specific master data for the customer, which is stored separately in the document. This includes name, address, and bank data, for example.
3) as per note 490513:
"OTA: The system displays a new 'OTA' button. If you have entered an OTA business partner, then the system automatically displays a screen for the entry of the OTA data. It is possible to navigate to the OTA data via the 'OTA' button."
Therefore, according to standard design of OTA functionality if customer/vendor belongs to One-Time Account group you should enter all customer-specific data (Name, address, bank data, etc.) directly in a document. Otherwise, please, use a non-OTA customer/vendor master records.
I hope this information helps you.
Rewards me if it useful
Regards
Ravinagh Boni
Maybe you are looking for
-
Installing Windows 7 using bootcamp help
Hi all, I am planning to install windows 7 using bootcamp to play PC games only, as love mac software for everything else, and want to make sure that all will run smoothly before i buy the required stuff. I am running OSX 10.8.5 on my iMac, which has
-
Exit a loop when the condition in if succeed
Hello everbody: LOOP .... IF ... "If the sentence here succeed I want to exit of the loop. ENDIF. ENDLOOP. Some ideas please
-
Mac NativeMenu non-English problems
Hi all, I'm working on an AIR application that includes a number of custom menus that are added like this: application.menu.addItem(new NativeMenuItem("New Menu")); This works fine on Windows, and on MacOSX in English. But users in Germany, France,
-
I have a MacMini under my TV which I use as a media machine to service all my video content in the living room. Its running Snow Leopard with the Perian plugin to give me access to content not supported natively by iTunes/Quicktime. Now all is fine w
-
Canon G16 Raw File completly shuts down the computer
I am using Aperture3.6 and Yosemite (completely updated) on a 4 year MacBook Air. I have used Aperture and macs for many many years and have been shooting pictures in RAW and editing them in Aperture for 8 years. I have a huge library of RAW files i