Cash journal no need to save option
Dear All
Please give me solutions deactive save option in cash journal . When i enter entery in FBCJ then we have post only. no need SAVE ..
Regards
Purushottam
Hi
Try it out with the help of authorisations. Do not authorise users to save entry in cash journal, but only to post entries
regards
Parag Bhargava
Similar Messages
-
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 -
Cheque Payment in cash journal
Hi Gurus,
My client is asking the following, in case they drawn money from bank by issuing a self check, in that case he's asking in cash journal check receipts tap any option to update the check details.
And also he's asking is it possible issue that self check automatically please help me in this.
sd/-
Rajesh.PHi,
There are 2 options for cashed cheques treatment:
1. Directly enter into Cash Receipt in receipts panel of cash journal.
2. Create one offset account for cash in transit and create one cheque payment through F-07 and Cash Receipt through FBCJ by giving effect to cash in transit account.
Try once and got solved your problem, assign points.
Regards
Sarma BH -
Setting for Cash Journal Transactions
Hi all,
Can someone tell whether the Vendor Line Item clearing and Special GL Transaction is possible in Cash Journal.
For example -
1. when we are giving the Advance in Cash to our employees, whether such entries can be posted with Special GL indicator ( as we do in Bank Payment thru T Code - F-48 )
2. Currently, when we are posting cash payment in Vendor Account ( thru Cash Journal ) , we need to first transaction in vendor account and then for clearing a open item against it , we need to use the T code - F-44 for manually clearing the open items. Is it possible to clear the same while posting Cash Vendor posting ( just like Bank Payment thru F-53 ).
If you have solution pls let us know.
Thanks
psHi PS,
Both the functionalities are NOT possible through the cash journal.
If you pay your vendor by cash, you have to clear the vendor open item seperately.
Also, splecial GL transactions are not allowed in cash journal.
Regards,
Mike -
Hi,
Please tell me Tcode for doing Setup of cash journal.
Regards,
SwethaHi,
spro>>financial accounting>>bank accounting>>Business transactions>>cash journal
You need to carryout the following steps under this path.
1.Create GL a/c's for cash journal
2 Amount limit
3.Define document types for cash journal
4.Define no.Range for cash journal (fbcjc1)
5.Setup cash journal (T.Code: FBCJC0)
6.Create,change,delete business transactions(FBCJC2)
Hope this information is sufficient to configure cash journal.
You can execute the cash journal transaction through t.code:FBCJ
all the best
Prasad -
How to save entries in Cash Journal with status 'Posted'?
Hi all,
I has been asked to create entries in a Cash Journal with status 'POSTED'. Obviously, FM 'BAPI_CASHJOURNALDOC_CREATE' only saves entry (status 'SAVED'), but didn't change its status to 'POSTED'.
After some investigation of different FM in a CJ area, I found the only way to change status via CALL TRANSACTION 'FBCJ' -> 'POST ALL' (for receipts, for example). This is not a decition I'm searching for.
My question is: how can I change status of a Cash Journal single entry to 'Posted'?
Any help would be highly appreciated.
Thanks in advance.
Regards,
Ivaylo Mutafchiev
Senior SAP ABAP Consultant
VBS EOOD
Varna, BulgariaI'm facing the same issue . have you been able to solve it ???
-
Trigger a workflow in fbcj on save of cash journal.
Hi All,
Have a requirement to trigger a workflow on saving a cash journal. We found out the business object "bus2023" . But it does not have any events in it which can be used in the workflow. i have searched through the forum and havent found suitable solutions.
Looking forward for the solution.
Thanks in advance ,
Regards,
Kavya.SHi,
Track the event (if any ) which is getting triggered on saving the cash journal.
use tcode: SWELS and SWEL. The event might be in different business object.
If there no event is getting triggered, search for user exit/Badi and from there
you can trigger your workflow directly or by using event ( custom event that you need to create).
Or if you know the change document you can trigger the event through customization (SWEC)
Regards
Kedar -
FBCJ: Print cash journal, cannot save own variant
Dear experts,
We have implemented SAP in our romanian company and have implemented country specific settings.
We have a problem saving our own layout in the 'Print cash journal' in transaction code FBCJ. We have the possibility of changing the layout, but not saving it. Also the headers of the different columns remain the same even though column content is changed.
In customizing the following settings have been made (transaction code FBCJC3):
Company Code: 0028
Cash jour. print program: /CEECV/RO_RFCASH00
Report variant: CASHRO
Corr.: SAP01
I don't quite understand the impact of these settings.
In our setup for 'Print cash jorunal' for our polish company we have the possibility of saving our own layout. But for our romanian company we don't.
Any help would be appreciated
Thank you
Regards NajaHi,
Business area put it optional entry, if u want business area enret other wise leave it,
now u will try it will work
if it's useful assigne points
Regards
gvr -
Need to make Assignment field in Cash Journal mandatory
Hi friends
I have a requirement to make the assignment field as mandatory in the Cash Journal for a particular G/L. So accordingly, i changed the Field Status for that particular G/L as mandatory in the Field Status Group. But now when i am entering the transaction in FBCJ, it is not prompting me to enter the assignment field. Strangely, when i try the same thing with F-02 with the same G/L, it shows the Assignment field as mandatory.
I checked the field name of the assignment field and it was ZUONR. However, in FBCJ, the name shows as ALLOC_NMBR. Please tell me where i am going wrong.
Thxs in advanceHi
On FBCJ screen, even though the field is set to mandatory in field status, "?" mark doesn't appear, but if the field is not filled, the system should issue an error message and the document doesn't get posted to FI. You can use screen variant to set the field mandatory on FBCJ screen.
See note 546365.
Regards, Kyoko -
How to post cash journal for Advances payment to vendor in SAP
Hi Experts,
I need some clarification about How to do the cash journal for special G/L indicator for customers and vendors.
Please provide valuable suggestions.
Regards
Madhan MohanHi Madan,
Whenever you use FBCJ for postings, it has to be for Cash postings only. The Cash posting is default and you don't get the option to enter the cash GL. So, whenever you make postings in FBCJ, one leg has to be Cash A/c(Either DR. or CR.)
My question to you is, why would you like to post Vendor Invoice in FBCJ? You have FB60 to post Vendor Invoice which would post a Credit on vendor and your advance postings in FBCJ would have posted a Dr. on Vendor.
You just need to clear this Dr. and Cr. postings in T-Code F-44 and your transaction is complete. There is no need to try to post Vendor Invoice in FBCJ. Only & Only Cash transactions can be posted in FBCJ.
Hope this helps. If this has answered your query, please close the thread.
Regards,
Kavita -
Cash Journal table values TCJ_MAX_AMOUNT amount limit not working
Hi Experts,
I have setup cash journal modules in SAP, client has the requirement that upto certian limit user should process payment from cash journal e.g. USD 500
I have setup below entries in table TCJ_MAX_AMOUNT but noticed that user can still process payment above USD 500
Company Code: 0011
Currency: USD
Valid From: 01.01.2011
Amount: 500
Looking for assistance
ThanksDear Sanil,
I tried earlier below validation but found that this works only when document posting level. But I am looking for solution at save level in cash journal
Prerequisite
SYS-TCODE = "FBCJ" AND BSEG-SHKZG = "S"
Check
BSEG-DMBTR <= '500.00'
any other options?
B/R
prashant rane -
User Exit in Cash Journal (FBCJ)
Hi
Does anyone knows if there are any User Exits / BADIs or other enhacements in transaction FBCJ for the Cash Journal??
Thanks in advance
FedericoAfeter saving the cash journal entry with the corresponding expense, we need an extra step to authorize the expense before posting it.
For Example
Employee --> Inputs the expense in the cash journal and save it (standard functionality)
Cash Journal Responsible --> Aproves the expense (Non standard functionality)
AP --> Post the cash journal entry (standard functionality)
In order to achieve this process, we are developing a transaction in which the Cash Journal Responsible can approve the expense. That transaction will save in a Z Table the Cash Journal Document together with an approval indicator (among other fields).
Hence, we want an enhacement so that before posting the expense, SAP validates against the Z table that the expense in the cash journal is approved. If so, it will allow to post, otherwise an error message will be issued.
Hope this can clarify the scenario.
Thanks for your help!
Federico -
Printing issue in cash journal. FBCJ
Hi all,
In cash journal there are two options either to print graphically or raw data. I need the raw data output which does not involves graphics or colors due to specific printer. But when raw data output is selected it displays ##### and not allowing data to read properly. If someone gone through the same problem and have a sol plzz share. I`ll appreciate that.
Regards,
MdDear All,
Thnx for your replies. But as I mentioned earlier, there are two Financial Documents generated for one cheque receipt, ideally we should have posted just one. But there is a duplicate document also.
If I select delete for the line item it might delete both the FI documents. But here I wish to delete just one of these two FI documents.
Accornding to one of ur replies, I should block the document and then delete. What it means?
Please help explain how to reverse just one of these two FI documents....
Thanks again and appreciate your help
LEENA.... -
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 -
BASIS- Give display rights only to FBCJ(Cash journal) Tcode
Hi,
I want to restrict transaction FBCJ(Cash journal) in display mode only.
I created a test role and added only FBCJ Tcode.
At object level (F_FBCJ), I maintained as below
Activity 33(Read)
Authorization Group * (only * selection is posible)
When this role is attached to a user( he has only this role), he is still able to change and save cash journal.
What to do to give display access only ?
Thanks in advance
AshrafKTI know it s an old post, but for future references here is the answer.
If you need only display, transaction FBCJ3 can be use.
If other activities are needed then FBCJ needs to be used, but in order for the object F_FBCJ to work, the authorization group should be set in every journal.
The authorization group can be set using the transaction FBCJC0.
Hope this helps.
Regards, Jose.
Maybe you are looking for
-
SOAP Certificate issue...High priority...please check
We are getting the below error in SOAP receiver side and 2 day ago certificates got expired and we imported new certificates when we trigger an idoc in receiver side SOAP is showing the below error.in receiver communication channel monitoring. SOAP:
-
How to use documentbeforesaved method? And why my code doesn't work in template files?
Can someone help me with these two codes? ----Beginning of code 1------------- Private WithEvents App As Word.Application Private Sub Document_Open() Set App = Word.Application End Sub Private Sub App_DocumentBeforeSave(ByVal Doc As Document, SaveAsU
-
SQL Tracing for session started from Java code
I am working with Oracle 10g on Solaris 9. I am facing a problem when trying to enable SQL Trace for Oracle sessions initiated from Weblogic server. I am querring V$SESSION to get the SID and SERIAL# of those sessions and then using DBMS_SYSTEM.SET_S
-
Ive only recently started to get this problem, basically my blackberry will just reboot it self without no warnings or anything, it will go to a black screen with the LED flashing red twice before resenting itself, ive looked around and found no solu
-
IPCC Monitoring - 2way, 1way & no audio
IPCCx 3.13 with OS 2000.2.6sr5 ccm 3.34sr2 with OS 2000.2.7sr7 problem is that when they attempt to monitor (supervisor) agents, they are getting different results some ports they can hear 2-way audio (expected results) some ports can only hear 1-way