Cash Journal Tables

Dear all.
I want to contribute some table information for Cash Journal for all user's reference.
Please find the same.
TCJ_BALANCE :-                     FI Cash Journal: Totals Records
TCJ_C_JOURNALS:-                 Cash Journals
TCJ_CHECK_STACKS:-               Check Lists in Cash Journal
TCJ_CJ_NAMES:-                   Cash Journal Names
TCJ_CPD:-                               FBCJ: One-Time Account Data of Cash Journals
TCJ_DOCUMENTS:-                  Cash Journal Documents (Header Data)
TCJ_MAX_AMOUNT :-                Cash Journal: Amount Limit
TCJ_POSITIONS:-                  Cash Journal Document Items
TCJ_PRINT:-                      Cash Journal Print Parameters
TCJ_TRANS_NAMES:-                Cash Journal Business Transaction Names
TCJ_TRANSACTIONS:-               Cash Journal Business Transactions
TCJ_WTAX_ITEMS:-                 Withholding Tax Items for Cash Journal Document
Thanks & Regards,
Pankaj.
Edited by: pankaj_ab on May 29, 2009 2:02 PM

Nice of u pankaj B.

Similar Messages

  • Cash Journal table to find out day wise closing balance

    Can I have the table name to find the day wise closing balance of cash journal
    tried with CJAMOUNT, but not ........

    Please refer below link:
    Cash journal
    Br,Vivek

  • 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
    Thanks

    Dear 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

  • Cash journal Back dated entry it' s allowed to 300.00 only.

    Dear Experts,
    When i try to post cash journal Back dated entry it' s allowed to 300.00 only. for example I want to post one expenses in 6th month 1200.00. But 6th month closing balance is 16675.00. then also it's shown error Payment amount is larger than cash on hand. Change amount. and i try to post 300.00 it's accepted.
    this problem is not even 6th month all Backdated entry
    Please suggest me..
    Regards,
    Krishna.v

    Dear Krishna.v,
    The error message mentioned by you i.e. Payment amount is larger than cash on hand which is message number F5A055 is to make sure the balance for cash jounal is always positive.
    There is no restriction of 300.00 etc..Ofcouse there is a restriction to ensure that CJ balance is positive.
    The system behaviour is explained in detail in note 430397. So as explained in the note, the system checks the new daily closing balance resulting from the reversal transaction for all days following the posting date up to the current system date.
    It is not therefore sufficient to have a sufficiently large closing balance at the posting date, but the balance must be sufficient for this payment or reversal of the receipt on all following days.
    Therefore, you must check the closing balance on all days following the posting date up to the current system date and take existing cash receipts into account if required.
    In the cases like, when a document is saved, the actual document is generated and stored in the cash journal tables TCJ_DOCUMENTS and TCJ_POSITIONS. So the BALANCE of the cash journal is updated.
    Therefore even a document which is not posted but saved is also considered in the balance of cash journal.
    I will try to explain you what does the note refer to with an example
    Imagine you have the following situation:
       Initial Cash Journal Amount 01.01.2011   100,00 USD
       Customer payment              02.01.2011  +200,00 USD
       Balance at                           02.01.2011   300,00 USD  ok
       Vendor payment                 03.01.2011  -150,00 USD
       Balance at                           03.01.2011   150,00 USD  ok
       Incoming payment               04.01.2011  +500,00 USD
       Balance at                           04.01.2011   650,00 USD  ok
    This is ok, but if for example, the user needs to reverse the customer payment made on 02.01.2009. As you can see, the balance at 02.01.2011 is 300,00 USD so from the user point of view, the document can be reversed without any problem. However, system will give you the error message F5A212. Why? Because if you reverse the document on 02.01.2011 the final balance at 03.01.2011 will return -50,00 USD and this is not correct.
    This is explained:
    "Check the closing balance on all days following the posting date up to the current system date and take existing check receipts into account if required."
    Hope this example helps you to understand the system behaviour.
    After implementing the note 1051847, if the system generates error message, it now specifies the date on which the negative balance would arise which would help you to take necessary actions based on that.
    Best Regards
    Soumya

  • Cash Journal - enhancement

    Dear friends,
    I would like to enhance the Cash Journal table control with an additional field, which should be transferred to FI database after the document posting.
    Is there anyone who has done it ?
    Please share your experience:)
    Svetlin

    Hi,
    In the FBCJ T-Code => Cash Receipt TABSTRIP
    Field Names                 Table Name                           Data Element
    1. BP_NAME               ISCJ_CR_POSTINGS              CJBPNAME
    2. CUSTOMER             ISCJ_CR_POSTINGS              KUNNR
    3. CHECK_ISSUER      ISCJ_CR_POSTINGS              CJCHECKISSUER
    4. CHECK_NUMBER    ISCJ_CR_POSTINGS              SCKNR_EB
    5. POSTING_DATE      ISCJ_CR_POSTINGS               BUDAT
    6. H_RECEIPTS          ISCJ_CR_POSTINGS                CJAMOUNT
    with the help of the above fields I have to prepare a report in the same order .
    The input screen should ask the following options: AAA (Advance acceptance Advice).
    1. AAA report from Date:
    2. To Date:
    3. Cash journal Number :
    This 3 fields should be Mandatory.
    According to the user requirement, he will select the from and to Dates. those should match with the posting date in the cash journal.
    Is there any standard report available for this requirment or how to do it.
    Can you please guide me how to do it.
    Regards,
    Jacob S.

  • Cash Journal internal doc. No. table

    Can anybody tell in which table Cash journal internal documents are saving. 
    And I want cash journal document print before posting the document.  I want print for saved document not posted document.  How it is possible.

    HI,
    Check table BKPF.
    Warm Regards

  • Function Module: to get Cash Journal Entries and Balances

    Dear Guru's,
    We need to develop a function module to display cash journal opening balance line item entries and closing balance of specific period.
    we have found document entries through table TCJ_DOCUMENTS or TCJ_POSITIONS now require help to generate opening and closing balances.
    Please help for the solution.
    AAR

    Hi,
    check FM FCJ_GET_DATA_FOR_SCREEN. Next time you can try to figure out by yourself. The program for transaction FBCJ is not that complicated and you can easily find this FM used there.
    Cheers

  • Cash Journal Day wise Closing Balances Report

    Dear Seniors,
    There is a requirement to have the details of all Closing Balances of Cash Journal.  Is there any table which stores this data or any other method to get this information.
    Regards
    KVKR

    Friends,
    Got the solution.
    We need to enter
    FI_CASH_BB_*       Text for the opening balance
    FI_CASH_CF_*       Text for the balance carried forward
    FI_CASH_EB_*       Text for the closing balance
    FI_CASH_SI_*       Text for the signature line
    Thanks for the help.
    Regards

  • Account description not shown in cash journal

    hi
    when i am looking the cash journal report in S_P6B_12000118 than i am not able to see the respective GLs  from which i have done entries. how can i see the GLs , so that i can do proper reporting or there is any other way to check it

    Dear
    You can develop your own query(t.coide SQVI) by joining the following requisite tables based upon the requirement.  The following cash book tables especially TCJ_DOCUMENTS and  TCJ_POSITIONS and TCJ_TRANSACTIONS mostly have the data you need.  Just check up and after you feel satisfied with the output of the query a t.code can be developed by your abaper.
    TCJ_BALANCE FI Cash Journal: Totals Records
    TCJ_C_JOURNALS Cash Journals
    TCJ_CHECK_STACKS Check Lists in Cash Journal
    TCJ_CJ_NAMES Cash Journal Names
    TCJ_CPD FBCJ: One-Time Account Data of Cash Journa
    TCJ_DOCUMENTS Cash Journal Documents (Header Data)
    TCJ_MAX_AMOUNT Cash Journal: Amount Limit
    TCJ_POSITIONS Cash Journal Document Items
    TCJ_PRINT Cash Journal Print Parameters
    TCJ_TRANS_NAMES Cash Journal Business Transaction Names
    TCJ_TRANSACTIONS Cash Journal Business Transactions
    Regards

  • Tax Code field in Cash journal

    Dear All,
    Can Tax Code field be activated in Cash Journal . If yes how? Useful answers will be rewarded with points.
    Regards
    Milind Nair

    Hi
    Goto FBCJ, it will have two segments, one is the header data and other is the line item data.
    In the Line item segment where you enter the line item details, go to the right hand side corner of the Table. You will see a small icon with colours. This icon is present at the Top right hand corner of the line item entry table in FBCJ.
    Click on this ICON, this is the administrator icon. Then click on administrator, then you can see list of field names, there will be a check box called invisible. For the fields TAx code and juristiction it will be marked as invisibel. remove this tick and activate and save the parameter.
    Afterwards you will get the required fields in FBCJ.
    If you have problem when you click on the icon, then it is a authorisation problem so contact your Basis resourse for necessary action then do the changes as required.
    Cheers
    V.Krishnan
    (Assign Points if Useful)

  • Cash journal report

    Hi
    Can anyone tell the report of cash journal in which we can get internal document no. , cash journal document no. and related FI document No. in 1 report.
    Thanks in advance.
    Regards
    Amita

    .i dont think there is any standard report available.
    Develop Z report using the following tables
    TCJ_DOCUMENTS     Cash Journal Documents (Header Data)
    TCJ_POSITIONS                  Cash Journal Document Item
    BKPF
    Regards
    Chandra

  • Advance through cash journal to vendor( through t.code F-48)

    hi SAP guru,
    i am getting error while makng advance payment through cash journal t. code-f-48
    "payment amount is larger than cash on hand ,change amount"
       though i have sufficent cash balance even it is showing this error.
    total available cash balance=rs 2,35,000 ans we are making advance of rs 2,00,000. getting above error but when we are making payment of Rs 1,00,000 it has posted and again we made another posting of rs 25,000 it also posted. but remaining(Rs 75,000) we cant post advance to the vendor.
    our  Petty cash A/c  amount received  from head office through inter bank transfer.i have ceck all receipt no any receipt is park, all receipt are fully posted so there is no any question of less balance.apart from this i also chek tables of cash journal which automatically updated when cash received from head office.tables are 1.TCJ_position
    2.TCJ_documents
    3.BSIS
    4.BSEG
    5.BSIA
    6.BSAS.
          the cash balance which are showing under fbl3n,FBCJ same are showing under above when i saw it in production through BASIS consultant.it means all cheques are fully posted.
                 one thing i want to tel you that l we are making this transaction for the month of 31st may 2010 not for today i.e 04-03-2011.because earlier we are using Tally now all previous transaction of tally are mapping into sap.
        so, i want to inform all of you that this is back day posting in the month of        31st   MAY 2010, so above balance  of rs 2,35,000 standing in cash journal on this date.and we want to pay advance cash on this date i.e 31st may 2010.
      before 31st may 2010 imean on 30-05-2010 we have only cash balance of rs 35,000.
    and we received cash from head office on 31-05-2010 of rs 2,00,000 and we have to make advance payment of rs 2,00,000 to a vendor on the same day.but when making advance of rs 2,00,000 CANT DO THIS.can anyone suggest? one interesting thing is when i reduced amount to rs 1,00,000 it posted again doing so by rs 25,000 it also posted but remaining rs 75,000 cant and getting above error-     
    "payment amount is larger than cash on hand ,change amount" though i have still rs 1,10,000. then why this is coming?

    Please check any future date documents are posted in system.
    that means if you are trying to post on 05.03.2011 for the amount 5000 and balance is 10000. But if there is any document posted on 06.3.2011 with amount 7000, system will not allow to post document on 05.03.2011 eventhough you have balance on 05.03.2011.
    Just check, It can be one of the reasons.
    Regards,
    Ganesh Lokam

  • 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_CALL

    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_CALL

  • Cash journal posting

    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?
    Thanks

    you have to assign number ranges for cash journal in cash journal customization

  • Cash Journal -FBCJ

    Hi,
    Is there any table to identify the FI Document number from the Internal document number generating from the cash journal entry positing
    Gayani

    Hi
    Go to T Code : SE11
    give BKPF in database table
    Click display
    Utilities ==> Table content ==> Display
    There if field TCODE is FBCJ the those documents are from Transaction code FBCJ
    Regards
    Sunoj

Maybe you are looking for

  • Scheduling agreement  does not get updated (though in valid period)

    Hi, Once I change the setting of document type LPA from Time dependent conditiopns to Time independent conditions, how can I convert existing scheduling agreements that have been already created to time independent settings? Is it posible? Regards, A

  • Screens flicker on and off, especially after 'waking'

    Just shy of 100% of the time I wake my computer from full sleep mode or just the screensaver (factory installed screensaver), my monitors will take turns turning blue, then black, then coming back on again in a cycle that repeats for up to five minut

  • Sharing data between two separate user sessions

    Hi all! I have been trawling my brain for a solution to this - any help will be appreciated! I would like to create a single instance of a class but share that instance over more than one user session (two separate users but both running concurrently

  • Best color matching settings for canon pro9500

    I tried different settings for printing 13x19 photos. Printer color management, photoshop color management with different color options. Always a difference with preview... Help please. I have no problem when printing with my old ip6700d!

  • Spring & JSF - myFaces?

    Hello guys, I'm new to JSF, so anyone feeling nice enough to answer, please keep it 'simple' :-) Anyway, the situation is as follows: I've got a pretty basic project. Bunch of tables, a bunch of pojo's, dao's... Technologies I'm using: Spring 2.x MyS