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

Similar Messages

  • 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

  • Can I supress BPM for Asyn outbound and syn inbound proxy interface

    Hi all,
    Is there any other alternate to remove the BPM at asyn outbound and syn inbound proxy interface. Reason because I can create another outbound proxy interface at the receiver. But at receiver side we already invested huge code to develop the sync server proxy. So the intension is, with out disturbing the code Can I make the message flow with out BPM?
    Because the reason of removing BPM is for a simple interface like this I don't want to use BPM. souce is JDBC and receiver is ECC 6.0. I know with out BPM it can not be achieved but in PI 7.1 EHP 1 by any chance can we do?
    I mean during response mapping from server proxy shall we use look up function to achieve?

    This bean I have to use at sender channel right?
    Yes
    I mean is it is limited to JMS adapter?
    No
    You can find more information in the Wiki which deals with FILE  to RFC synchronous...using the above Module

  • 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.Gunasekar

    Hi,
    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

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

  • When i finally connected my mac to work network on windows environment everything related to apple including App store, Safari, software updates, iCloud and iTunes do not work using a proxy server and everything else is working very well

    when i finally connected my mac to work network on windows environment everything related to apple including App store, Safari, software updates, iCloud and iTunes do not work using a proxy server and everything else is working very well including chrome browser…i tried everything but no clue...anybody have solution for this..???

    I also forgot to note that this problem also persists with the new iBooks application. I cannot get past the 'Get Started' screen or access the iBooks Store. Again, all top bar menus are unresponsive.
    DT

  • I took video using my Iphone 4S and uploaded it into my Macbookpro iphoto.  When I open imovie it does not recognize the video when I import it manually it is distorted.

    I took video using my Iphone 4S and uploaded it into my Macbookpro iphoto.  When I open imovie it does not recognize the video when I import it manually it is distorted.

    Did you ever get an answer to this? I just experienced the distortion when I imported a video from my iPhone 4 to iPhoto.

  • I took some videos using my iPhone 5c and uploaded them to my computer.  I can play the videos in iPhoto, but when I open them in QuickTime, they are dark and silent.  Why can't I see them in QuickTime?

    I took some videos using my iPhone 5c and uploaded them to my computer.  I can play the videos in iPhoto, but when I open them in QuickTime, they are dark and silent.  Why can't I see them in QuickTime?

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • 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

  • GR posting using inbound Idoc against Outbound delivery

    Hi,
    We are doing SAP ISR integration with third party POS and there we have a scanario where we have to post GR against outbound delivery using inbound Idoc. Can anybody help me out, how can we do it.
    In SAP processing would happen using MIGO against outbound delivery number and movement type 101. We tried the same with Idoc WMMBXY message type but not suceed.
    Looking for positive reply.
    Regards
    Vikrant pathak

    Hi,
    You can never do a GR against an outbound delivery, but where as you can do a GR against PO with reference to corresponding sales order with special stock indicator.
    That means when the GR is done the goods what ever you have received is going to be blocked against the corresponding sales order and when you do the outbound delivery against the sales order stock is already available and the goods issue will happen smoothly without any errors.
    We have implemented the same in my earlier project.
    Thanks,
    Mahesh.

  • Cash Journal Posting Key

    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
    Ashwin

    Please mention posting keys in OBXI and try.

  • Can I use one GBIP-Interface with two programs at the same time?

    Hi, I have one PCI-GBIP-controller with multiple instruments installed. Now I want to use these instruments with two differents programs at the same time.
    E.g.: program 1 uses GPIB0::1 and GPIB0::3
    and program 2 uses GPIB0::4 and GPIB0::7
    Is this possible??
    When I have tried to do this, I always got timeout errors..
    Thanx in advance.
    Philipp

    Hi,
    You shouldn't have any problems accessing different devices from different programs using the same interface. I even used the two VIs to communicate with the same device. Although not the best approach, VISA didn't return any errors.
    DiegoF.

  • In Camera Raw 8.4.1 I can open dngs from 3 years ago, but it's using the old interface and functionality not the current - how do I change this. Have rebuilt cache.

    Running Creative Cloud on an HP with 18Gb Ram - I'm working on a project using 3 yr old dngs and when I open in my up to date Camera Raw it uses the old interface with 'contrast' towards the bottom and 'recovery' below 'exposure' - how do I get Camera Raw to open with the current interface?
    Thanks for any help.
    Craig

    If you're referring to the Process version, you set that in the Camera Calibration tab of ACR.
    Also keep in mind that any images with prior adjustments will show the Process used when they were adjusted.  That can also be changed in that tab.

  • What application in Creative Cloud do I use to quickly cut and upload a video?

    I shot video of my son pretty often, and then I want to quickly cut it and upload it to the internet to show relatives. What  do I use for that? In neither Bridge or Lightroom there are any tools like that. I have heard of Premiere but I don't know how to use it, it looks complex. Is there another application that does it?

    Hi agoico,
    Using Adobe Premiere Elements 11, you will be able to upload videos directly on Youtube ( If that's preffered for sharing), Its quick and easy.
    Please check http://help.adobe.com/en_US/premiereelements/using/WS09e4b3c48f3a79fc19b622510385d4355c-7d d5.html
    ^Ani

  • I have a G5 power PC dual 2ghz  10.5.8 and my recording interface stopped outputting. I used 2 different interfaces and changed cables, neither solved my problem. With everything plugged up i can hear playback through the internal speaker.

    I have tried System preferences, input and output. I have tried the midi controls in utilities. With everything hooked up correctly I cannot get the interface to playback through the box or record now. When i hit play I can hear the playback coming through the internal speaker on the tower. The interface previously worked fine, bought a second one and it is doing the same thing. Must be a system issue. Please help!

    I have tried System preferences, input and output. I have tried the midi controls in utilities. With everything hooked up correctly I cannot get the interface to playback through the box or record now. When i hit play I can hear the playback coming through the internal speaker on the tower. The interface previously worked fine, bought a second one and it is doing the same thing. Must be a system issue. Please help!

Maybe you are looking for

  • Windows Xp sound driver for Presario A 975em

    I just downgraded my Os from Vista to Xp and i cant find any sound driver for my Notebook pls help.I about Compaq Presario A975em Thanks in advance. Best regards

  • Active Directory RDP Logon Issue

    I have a problem logging on to my test domain, here are the setup and symptoms Domain Prod:   ua.here.someplace.com Domain Test:   ua.test-here.someplace.com Domains totally separate DNS and WINS, although they are on the same subnets. From my admin

  • PL/PDF

    Hi.. i'm using PL/PDF, i have run some examples that are some stored procedures of www.plpdf.com, but i don't know how can i call the PDF that i have keep on my DB to the html page in APEX, like attach or in the page... Somebody can help me?

  • Adobe Flashdrive says there is an update that needs to be loaded. Safe?

    Adobe Reader says there is a new Flashdrive update. Is it safe?

  • Listener.8li plugin not working with PS CS2 ?

    Dear forum, I tried to compile (Win 2000 / VC7.1 aka Visual Studio.NET 2003) and run the Listener plugin supplied with the PhotoShop CS2 SDK. I opened with VC7.1 the solution file (Listener.sln) and built it. As described in the "Automation tutorial.