CREATE BANK STATEMENT UPLOAD TXT FILE SAPBYD

Hi,
I implemented bank statement upload TXT FILE and loading the file format MT940 UK, load the file with status CONFIRMED but does not perform any bank statement in the list of BANK STATEMENT just seems like INBOUND FILES with status FINISHED but not as financial status.
Anyone have a UK model MT940, and knows that the next step has to be performed after loading INBOUND FILE
Email: [email protected]
PD: Attached my MT940 UK inbound file to review in case .
Regards

goto to the user exit where u will find import & export parameters...Now create a project and implement this enhancement...Inside the FM u will find Zprogram which needs to be created. Now write ur code in this by importing data and check routinues and export back to variables....When u run actual transaction, this user exit automatically triggers...

Similar Messages

  • Unable to upload txt file when creating new message

    Hi Expert,
    We installed SolMan 7.1, but we are not able to upload txt file when
    create a new message, detailed steps as below:
    1. Click on “New
      Message” under “Common Tasks” in the left side
    2. Click on
      “Attachment” under “Create Message”
    3. Click on “Add”
      under “Attachment”
    4. Select file and
      click on “OK”
    5. But as the result, it says “No attachments. Select Add to
      upload a new attachment.”
    Could you please help advise the reason and solution?
    BR
    Takashi

    Hi Vikram,
    Thanks for your reply.
    I have tried again and found that, it seems if the file size is 0, it can't be uploaed; if the size if bigger than 0, then it can be uploaded.
    So I close this discussion now. Thank you!
    BR
    Takashi

  • Switzerland ESR file format for Bank statement upload

    Hi,
    I want to how the Switzerland ESR file format for bank statement upload looks like?
    Can i get the sample of the file format from anywhere?
    I just want to input this file to program RFEBCH00 to convert it into multicash file format.
    Please if anybody can help regarding this?
    Thanks,

    Hi Gordon,
    Thank you so much for your welcome and prompt reply. The localization is Chinese. But the client is using HSBC service which only provides swift MT940 format. I believe Dutch is included in the system of 2007A. Unfortunately, our system is 2007B. Is there any chance I can download the bfp file from SAP portal site or other places? Thank you very much again for your help. I am looking forward to hear from you!
    Cheers,
    Leon

  • Electronic bank statement upload - SWIFT MT940 format...

    Hi All,
    i am first doing the electronic bank statement upload to SAP.
    i already done the related config for this.  i did check with my Client bank about the statement format and they able to provide the statement in SWIFT MT940 only not in multi cash format.
    Is any body done this before i mean upload the MT940 format to SAP. If so please share your experience with me.
    i need:
    1) The format of SWIFT MT940 file.
    2) Is any SAP notes related to this format?
    one important thing is -> 1) is this SWIFT MT940 format got two files(statement file  and line item file )  like mult icash format  or only one file.
      2) if this format got only one file  in which field we have to use  to upload this file in TCODE. FF_5. -> Line item field or statement filed.
    Thank you very much.
    Sandhya

    Hi ,
    Check SAPnote 13283. This has information on
    Multicash
    SWIFT MT940
    DTAUS
    BAZ
    MAOBE
    SAP.TXT and SAPKURZ.TXT
    Also you can see the link  http://www.swedbank.lv/lib/en/SWIFT_MT_940_formata_apraksts_ENG.doc
    for the detailed description of SWIFT MT940 File.
    Hope it helps
    SJ

  • FEBA :Banking: Red Cross on bank statement upload

    Hello Gurus,
    I am facing a strange behaviour in electronic bank statement uploads.
    The file is uploaded in the system and its shown as Red cross. There are no transactions in the bank statement and the opening and closing balances are same.
    There is no activity in the bank account and still on loading the satement it shows a Red Cross for file loaded on June 20th.
    The file coming on June23rd is loaded successfully and has a green checkbox where again there were no transactions and opening and closing balances are tallied.
    I dont see any value or sign difference. I checked other threads but couldnt get solution and had to open a new discussion
    Any thoughts on how we can change the red cross to Green Tick. SAP instance is on ECC 6.0.
    Any utility to be developed?
    Regards
    Rutvij

    Hello Rutvij,
    FEBAN - give Co.code, house bank, account id, statement date and statement nubmer.
    If it is outgoing payment then go to statement items i con in top side of that screen. Then click post option.
    In the next screen click on payment order because if you want to clear invoices based on payment orders or click either reference or document number in additional selections tab. And then give your co.code and account type. If required, put additional selection like amount, reference, etc in additonal selections tab.
    Press enter and then select open items to be cleared and then save.
    Now SAP will display all open invoices against the customers. Activate the invoices that must be cleared. Simulate document. Now enter the payment amount and press enter.
    Enter once again in the next screen then press save. Now you will get a message saying that document got posted with no.xxxx in co.code
    I hope it will resolve your issue else revert us with your query.
    Thanks & Regards,
    Lakshmi S

  • Bank Statement Upload (RFEBKA00) issue

    Hi All,
    I am trying to upload bank statements via FF_5 using multicash format. When I try uploading I get the following error for each bank account statement "statement 20088251 is not in the bank data storage". There are about 8 different accounts in the one bank statement file upload.
    The last message is "total of line items in line item file not the same as in statement file" however I am doing this in our DEV client but in production the upload works fine, the only difference is that I am adding a new bank account for the bank statement upload.
    Need some help ASAP.
    Thanks

    The forum [FPM - General|Enterprise Performance Management (SAP EPM); in which you originally posted your question deals mainly with the financial performance applications otherwise known as Enterprise Performance Management (EPM) carrying the BusinessObjects brand.   Your question pertains to SAP [ERP Financials|SAP ERP Financials; which is covered by another forum.  Therefore your message has been moved.  Please adjust any bookmarks you might have and post to the appropriate area in the future, that way you are assured you will have the right audience reading your posts.
    Thanks and best regards,
    [Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
    SAP Labs, LLC
    BusinessObjects Division
    Americas Applications Regional Implementation Group (RIG)

  • Program to create Bank Statement

    Hi
    There is a program to create Bank statement, so that it can be used for Electronic Bank statement processiong FEBA...
    I am not able to recollect that program.
    Can any help me in this regard.
    Points assured
    Kalyan

    Hi,
    I think FINSTA is the message type of IDOC interface
    Go to WE20 and maintain the partner profile for FINSTA message type.
    To generate the postings that result from the bank statement, schedule report RFEBKA30
    http://help.sap.com/saphelp_sm32/helpdata/en/e4/52ec78bfff11d295f400a0c9426c73/content.htm
    Regards,
    Sridevi
    <i><b>Pls. assign points, if it is useful</b></i>

  • Issue with electronic bank statement upload

    Hi All,
              Presently I face an inssue in posting electronic bank statement upload (Tcode - ff_5).
    The scenario goes like this.
             First we do payment to vendor using 'f110' transaction.Here the document currency is different from local currency.Let us say we paid 100 EBP i.e, approximately 177 USD.
    After the payment we get statement from Bank (in this case BAI format).In the bank statement due to exchange rate difference the amount will not be exactly 177 USD but slightly different like 185 USD or may be 170 USD.
           At this point we have to upload this statement using transaction 'FF_5' to system.Here obviously the differential amount goes to the system ( 185 USD or 170 USD).
    Now the issue is we have to post this difference amount like USD 8 or USD 7 to a specific GL account ( 11800 or any other GL acc number ).
    The 'FF_5' transaction updates the tables 'FEBKO,FEBEP' by using the programs 'RFEBBU00',
    'RFEBBU10'.There is an exit also like 'FEB00001'. We can put this difference amount in one of the fields of FEBEP table by using this exit.
       But the point I don't know is how to post this difeerence amount 8 or 7 USD to a specific G/l account ? I could not locate in the above program 'RFEBBU00' where the posting happens ?
    Thanks for any help.
    Vinod.

    Hi Sharaad & Naga,
                         Thanks for the replies.One more doubt, Will I have to use these function modules inside the exit or do I need to change the sap standard program to incorporate these FM calls ?
    Thanks
    Vinod.

  • BEx Analyzer 7.0: Uploading txt-file

    Hello experts,
    when I start a query and want to upload a txt-file for variable selection, it takes minutes and hours (depending on how many entries are in the txt-file).
    e.g. when using this BEx Analyzer 3.x and uploading txt-file with 60.000 entries for variable selection it takes just a few seconds. When using BEx Anlayzer 7.0 (selection upload) it takes 30 minutes an more.
    Is there any solution for this?
    Thanks in advance

    Dear Toni,
    Functionality has changed litle bit in BEx 7.0
    From Clipboard:
    1. After clicking on the "Select from List" click on the "More >>" button.
    2. Click on the right box to set the focus.
    3. Past (Ctrl + V).
    From txt file:
    1. After clicking on the "Select from List" click on the "More >>" button.
    2. Right click on the right box and choose "Upload selections" option.
    3. Select the txt file you want to import.
    Regards,
    Arvind

  • Uploading .txt file to z table

    Hai Friends,
    I want to upload a .txt file to Z table which contains around 27 fields. but .txt file contains data in two lines by as follows.
    4.5  2.36  21.56 25  36.14  47.00  145.3  1247.6
    10.2  4.6  23.5 589.1  20.1  45.6
    Is it possible to upload the .txt file.

    Hi,
      It is possible to upload txt file to ztable. You need to write small program for that.
       Please see the example code below. Here from excel they are converting to internal table, use 'GUI_UPLOAD' to convert text file data to internal table and use this internal table to upload data into ztable. use MODIFY ZTABLE FROM TABLE ITAB.
    Also maintain the internal table structure and structure of the ZTABLE should match.
    **& Report  Z_DEMO_FILL_TABLE
    report  z_demo_fill_table no standard page heading line-size 255.
    selection-screen begin of block b1 with frame title text-003.
    selection-screen skip.
    *File Name
    selection-screen begin of line.
    selection-screen comment 5(28) text-001 for field p_file.
    parameters: p_file type  rlgrap-filename.
    selection-screen end of line.
    selection-screen skip.
    selection-screen end of block b1.
    data declarations.
    *data: get_po_header type standard table of BAPIEKKOC,
         get_PO_HEADER_ADD_DATA type standard table of BAPIEKKOA,
         get_PO_ITEMS type standard table of BAPIEKPOC,
         get_PO_ITEM_ADD_DATA type standard table of BAPIEKPOA,
    data:   get_poheader type standard table of bapimepoheader,
            get_poitem type standard table of bapimepoitem,
            it_data type table of alsmex_tabline initial size 0.
    data: wa_poheader like line of get_poheader,
          wa_poitem like line of get_poitem,
          wa_data like line of it_data,
    *tables used for catching messages returned by bapi
          gt_return   type standard table of bapiret2,
          gt_return1   type standard table of bapiret2.
    types: begin of x_po_tab,
      doc_date type bapimepoheader-doc_date,
      comp_code type bapimepoheader-comp_code,
      purch_org type bapimepoheader-purch_org,
      pur_group type bapimepoheader-pur_group,
      vendor type bapimepoheader-vendor,
      po_number type bapimepoheader-po_number,
      pmnttrms type bapimepoheader-pmnttrms,
      po_item type bapimepoitem-po_item,
      material type bapimepoitem-material,
      plant type bapimepoitem-plant,
      stge_loc type bapimepoitem-stge_loc,
      tax_code type bapimepoitem-tax_code,
    end of x_po_tab.
                    Search help for file                                 *
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
       exporting
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
         field_name          = 'P_FILE'
       importing
         file_name           = p_file.
                    START-OF-SELECTION                                   *
    start-of-selection.
    perform for uploading Excel file
      perform upload_file_path.
    perform for transfering Excel data to Internal table
      perform excel_to_itab.
      perform int_process.
    *&      Form  upload_file_path
          text
    -->  p1        text
    <--  p2        text
    form upload_file_path .
      call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        exporting
          filename                = p_file
          i_begin_col             = 1
          i_begin_row             = 1
          i_end_col               = 12
          i_end_row               = 5000
        tables
          intern                  = it_data
        exceptions
          inconsistent_parameters = 1
          upload_ole              = 2
          others                  = 3.
      if sy-subrc <> 0.
        message e000(zdbm) with 'Error in getting filename'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " upload_file_path
    *&      Form  excel_to_itab
          text
    -->  p1        text
    <--  p2        text
    form excel_to_itab .
      loop at it_data into wa_data.
        at new row.
          clear: wa_poheader, wa_poitem.
        endat.
        case wa_data-col.
          when '001'.
            move wa_data-value to wa_poheader-doc_date.
          when '002'.
            move wa_data-value to wa_poheader-comp_code.
          when '003'.
            move wa_data-value to wa_poheader-purch_org.
          when '004'.
            move wa_data-value to wa_poheader-pur_group.
          when '005'.
            move wa_data-value to wa_poheader-vendor.
          when '006'.
            move wa_data-value to wa_poheader-po_number.
          when '007'.
            move wa_data-value to wa_poheader-pmnttrms.
          when '008'.
            move wa_data-value to wa_poitem-po_item.
          when '009'.
            move wa_data-value to wa_poitem-material.
          when '010'.
            move wa_data-value to wa_poitem-plant.
          when '011'.
            move wa_data-value to wa_poitem-stge_loc.
          when '012'.
            move wa_data-value to wa_poitem-tax_code.
        endcase.
        at end of row.
          append wa_poheader to get_poheader.
          append wa_poitem to get_poitem.
        endat.
        clear: wa_data.
      endloop.
    endform.                    " excel_to_itab
    *&      Form  Int_process
          text
    -->  p1        text
    <--  p2        text
    form int_process .
      loop at get_poheader into wa_poheader.
        read table get_poitem into wa_poitem index 1.
    call function 'BAPI_PO_CREATE1'
      exporting
        poheader                     = wa_poheader
      POHEADERX                    =
      POADDRVENDOR                 =
      TESTRUN                      =
      MEMORY_UNCOMPLETE            =
      MEMORY_COMPLETE              =
      POEXPIMPHEADER               =
      POEXPIMPHEADERX              =
      VERSIONS                     =
      NO_MESSAGING                 =
      NO_MESSAGE_REQ               =
      NO_AUTHORITY                 =
      NO_PRICE_FROM_PO             =
    IMPORTING
      EXPPURCHASEORDER             =
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    tables
      RETURN                       =
       poitem                       = get_poitem
      POITEMX                      =
      POADDRDELIVERY               =
      POSCHEDULE                   =
      POSCHEDULEX                  =
      POACCOUNT                    =
      POACCOUNTPROFITSEGMENT       =
      POACCOUNTX                   =
      POCONDHEADER                 =
      POCONDHEADERX                =
      POCOND                       =
      POCONDX                      =
      POLIMITS                     =
      POCONTRACTLIMITS             =
      POSERVICES                   =
      POSRVACCESSVALUES            =
      POSERVICESTEXT               =
      EXTENSIONIN                  =
      EXTENSIONOUT                 =
      POEXPIMPITEM                 =
      POEXPIMPITEMX                =
      POTEXTHEADER                 =
      POTEXTITEM                   =
      ALLVERSIONS                  =
      POPARTNER                    =
      POCOMPONENTS                 =
      POCOMPONENTSX                =
      POSHIPPING                   =
      POSHIPPINGX                  =
      POSHIPPINGEXP                =
      endloop.
    endform.                    " Int_process

  • FF_5 Bank Statement Upload Error

    Hello Experts,
    I have a bank  statement file in a specific share drive path and when I import this file using transaction FF_5, it gives the error message (FB 704)  File \Accounts\ Bankstatements  upl in disk drive J: cannot be opened. 
    But I am not getting the error messages for the similar type of other Banks file in MT940 format stored in the same path but in the other folder within the same path and same drive.
    On the other hand, when I change the location of the bank file and also the folder in which the file is stored within the same drive or move it to my C drive, I am able to successfully upload the file. 
    Can any one suggest to me how to over come this error ? Thanks in advance for your replies.
    Regards
    AJ

    Hi,
    AL11 - You can create the folders. These are the folders in application server. Nothing but they are create in one of your network drive but linked to AL11 by your basis consultant.
    You should not upload the bank statement from your local drive due to security concerns. There are chances that the file values can be manipulated. The file you are uploading from presentation server.
    Regards,
    Ravi

  • Error!! uploading .txt file using WS_upload

    Hi Friends,
       I am trying to upload a .txt file with 5 fields into a ztable using WS_upload. In debug mode i see that the internal table itab has all the fields clustered together seperated by a # symbol. How do i remove this # symbol so that i can upload it into ztable properly .
    For eg the error i m getting is
    ibm#1042#krj#04-19-2006#PS. All these 5 fields get clustered under material column and not in their respective columns.
    Your opinion and advice is greatly appreciated .
    Thank you

    Suppose you have the data from the file in i_text and i_vendor is a structure similar to the database, then you use the following logic to split the text with hash as delimiter.
    loop at i_text.
    split i_text-text at '#' into i_vendor-lifnr
                                  i_vendor-ekorg
                                  i_vendor-ktokd
                                  i_vendor-name1
                                  i_vendor-sortl
                                  i_vendor-land1
                                  i_vendor-spras
                                  i_vendor-waers.
    append i_vendor.
    clear :i_vendor,
           i_text.
    endloop.
    Let me send you a sample code. Let me know if this helps.
    Award points if the answer helped you !
    Session Method: ( Batch Input)
    3 Function Modules are there.
    1)     BDC_OPEN_GROUP
    2)     BDC_INSERT
    3)     BDC_CLOSE_GROUP
    Instead of all the Call Transactions we use the Function modules here.
    1)     Go for MK01
    2)     Go for recording.  M4567,0001,0001 enter; test1, abcd, us, en, enter; usdollars; save.
    3)     Save and come back.
    4)     Select Vendor and Click on PROGRAM button . Stest_01
    5)     Select Transfer from recording button.
    6)     Save as local object
    7)     Copy the code into a Report program and execute it.
    Example:
    1) Create a text field having the following entries
    t3456,0001,0001,testt3456,abcd123,US,E,USD and save the entries for 4-5 lines of these type.
    2) Create a Program.
    Report ZBDC_MK01.
    *& Report  ZBDC_MK01
    REPORT  ZBDC_MK01.
    * Internal table for file
    data : begin of i_text occurs 0,
           text(255) type c,
           end of i_text.
    * Internal table for MK01 Transaction
    data : begin of i_vendor occurs 0,
           lifnr(10) type c,
           ekorg(4) type c,
           ktokd(4) type c,
           name1(40) type c,
           sortl(10) type c,
           land1(3) type c,
           spras(1) type c,
           waers(3) type c,
           end of i_vendor.
    * Internal table for BDCDATA
    data i_bdcdata like bdcdata occurs 0 with header line.
    data : v_repid like sy-repid.
    parameters p_file like rlgrap-filename.
    INITIALIZATION.
    v_repid = sy-repid.
    at selection-screen on value-request for p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = v_repid
    *   *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = p_file
    start-of-selection.
    * Get the data from file to internal table
    perform get_data.
    * Open the session
    perform open_session.
    * Process the bdcdata
    perform process_bdcdata.
    * Call the close_group
    perform close_group.
    *&      Form  get_data
    *       WS_UPLOAD FM
    FORM get_data .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    *   CODEPAGE                      = ' '
       FILENAME                      = p_file
       FILETYPE                      = 'ASC'
    *   HEADLEN                       = ' '
    *   LINE_EXIT                     = ' '
    *   TRUNCLEN                      = ' '
    *   USER_FORM                     = ' '
    *   USER_PROG                     = ' '
    *   DAT_D_FORMAT                  = ' '
    * IMPORTING
    *   FILELENGTH                    =
      TABLES
        DATA_TAB                      = i_text
    EXCEPTIONS
       CONVERSION_ERROR              = 1
       FILE_OPEN_ERROR               = 2
       FILE_READ_ERROR               = 3
       INVALID_TYPE                  = 4
       NO_BATCH                      = 5
       UNKNOWN_ERROR                 = 6
       INVALID_TABLE_WIDTH           = 7
       GUI_REFUSE_FILETRANSFER       = 8
       CUSTOMER_ERROR                = 9
       NO_AUTHORITY                  = 10
       OTHERS                        = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    else.
    loop at i_text.
    split i_text-text at ',' into i_vendor-lifnr
                                  i_vendor-ekorg
                                  i_vendor-ktokd
                                  i_vendor-name1
                                  i_vendor-sortl
                                  i_vendor-land1
                                  i_vendor-spras
                                  i_vendor-waers.
    append i_vendor.
    clear :i_vendor,
           i_text.
    endloop.
    endif.
    free: i_text.
    ENDFORM.                    " get_data
    *&      Form  open_session
    *       text
    FORM open_session .
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
       CLIENT                    = SY-MANDT
    *   DEST                      = FILLER8
       GROUP                     = 'VENDOR_MK01'
    *   HOLDDATE                  = FILLER8
       KEEP                      = 'X'
       USER                      = sy-uname
    *   RECORD                    = FILLER1
    *   PROG                      = SY-CPROG
    * IMPORTING
    *   QID                       =
    EXCEPTIONS
       CLIENT_INVALID            = 1
       DESTINATION_INVALID       = 2
       GROUP_INVALID             = 3
       GROUP_IS_LOCKED           = 4
       HOLDDATE_INVALID          = 5
       INTERNAL_ERROR            = 6
       QUEUE_ERROR               = 7
       RUNNING                   = 8
       SYSTEM_LOCK_ERROR         = 9
       USER_INVALID              = 10
       OTHERS                    = 11
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " open_session
    *&      Form  process_bdcdata
    *       BDCDATA
    FORM process_bdcdata .
    loop at i_vendor.
    perform bdc_dynpro      using 'SAPMF02K' '0107'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-KTOKK'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                                  i_vendor-lifnr.
    perform bdc_field       using 'RF02K-EKORG'
                                   i_vendor-ekorg.
    perform bdc_field       using 'RF02K-KTOKK'
                                  i_vendor-ktokd.
    perform bdc_dynpro      using 'SAPMF02K' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-SPRAS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFA1-NAME1'
                                 i_vendor-name1.
    perform bdc_field       using 'LFA1-SORTL'
                                  i_vendor-sortl.
    perform bdc_field       using 'LFA1-LAND1'
                                  i_vendor-land1.
    perform bdc_field       using 'LFA1-SPRAS'
                                    i_vendor-spras.
    perform bdc_dynpro      using 'SAPMF02K' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02K' '0310'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFM1-WAERS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFM1-WAERS'
                                  i_vendor-waers.
    perform bdc_dynpro      using 'SAPMF02K' '0320'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-LIFNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    * Call the transaction code.
    perform bdc_insert.
    refresh i_bdcdata.
    endloop.
    ENDFORM.                    " process_bdcdata
    *&      Form  bdc_dynpro
    *       text
    *      -->P_0264   text
    *      -->P_0265   text
    FORM bdc_dynpro  USING    p_prog
                              p_scrn.
    clear i_bdcdata.
    i_bdcdata-program = p_prog.
    i_bdcdata-dynpro = p_scrn.
    i_bdcdata-dynbegin = 'X'.
    append i_bdcdata.
    ENDFORM.                    " bdc_dynpro
    *&      Form  bdc_field
    *       text
    FORM bdc_field  USING    p_fnam
                             p_fval.
    clear i_bdcdata.
    i_bdcdata-fnam = p_fnam.
    i_bdcdata-fval = p_fval.
    append i_bdcdata.
    ENDFORM.                    " bdc_field
    *&      Form  bdc_insert
    *       text
    FORM bdc_insert .
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
       TCODE                  = 'MK01'
    *   POST_LOCAL             = NOVBLOCAL
    *   PRINTING               = NOPRINT
    *   SIMUBATCH              = ' '
    *   CTUPARAMS              = ' '
      TABLES
        DYNPROTAB              = i_bdcdata
    EXCEPTIONS
       INTERNAL_ERROR         = 1
       NOT_OPEN               = 2
       QUEUE_ERROR            = 3
       TCODE_INVALID          = 4
       PRINTING_INVALID       = 5
       POSTING_INVALID        = 6
       OTHERS                 = 7
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " bdc_insert
    *&      Form  close_group
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM close_group .
    CALL FUNCTION 'BDC_CLOSE_GROUP'
    * EXCEPTIONS
    *   NOT_OPEN          = 1
    *   QUEUE_ERROR       = 2
    *   OTHERS            = 3
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " close_group
    4)     Save and activate.
    5)     Go to SM35 and see the session created. Vendor_MK01 (group name which was given)
    6)     Need to go to SM35. Select the Session name and Click on Process. Select BACKGROUND.
    7)     Click on PROCESSED Tab.
    8)     For seeing the log file select the session and click on LOG. Click on Display.
    Difference between Call Transaction and Sessions Method.:
    1) In CT if mode is ¡¥A¡¦ then there wont be log messages. In sessions method we can get log messages in Foreground and Background too.
    2) In session method until and unless session Is created it wont update the data. But in CT data is updated immediately.
    3) In CT for log messages have to write BDCMSGCOLL structure and Format_Messages function module. Logs are created automatically in Session method.
    4) Data UPDATION in CT is Asynchronous. In Session method its Synchronous.
    5) In CT we have to split the file. In Session method we need not split the file.
    6) In CT we use BEND in Session we have to use END
    Real time most of the times its SESSION Method.
    Use CT method when: 
    a)     Run time Validation.  Example: We are creating a sales order. Here we are validating when selecting Payment Terms etc.
    DIRECT INPUT Method:
    If anything modified in SAP transaction don¡¦t use DI method. Updation is very fast.
    There is no Restart mechanism in DI method.
    Ex: have 10 records. 6,7 are error. In session method we needent go to the file. We have to go to BI and process again. Process in Foreground and during this time change at run time.
    We need to go for the file. Delete the first files, last files and then upload the data and run again.
    Main Transaction Code for DI is SXDB
    1)     Click on GoTo-----„³ DX Tools
    2)     Object type---Select G/L Account ; Task type: Load Data; Program type: Batch Input; Program: RFBISA00 .
    Q) How to copy files from SAP server to local?
    Ans) Bcos we don¡¦t get authorization for AL11 transaction. If we know file directory and File name. We can see structure.
    In SXDB.
    1)     Click on GoTo-----„³ DX Tools
    2)     Object type---Select G/L Account (BUS 3006) ; Task type: Load Data; Program type: Batch Input; Program: RFBISA00 .
    Go for Copy file. Give the Application Server file name and also he presentation server name and location.
    *& Report  ZBDC_MM01
    REPORT  ZBDC_MM01.
    * Constants
    constants : c_x type c value 'X'.
    * Internal table for file
    data : begin of i_text occurs 0,
           text(255) type c,
           end of i_text.
    * iNTERNAL TABLE FOR MATERIAL LOAD
    DATA : BEGIN OF I_MATERIAL OCCURS 0,
           MATNR(18) TYPE C,
           MBRSH(1) TYPE C,
           MTART(4) TYPE C,
           MAKTX(40) TYPE C,
           MEINS(3) TYPE C,
           MAKTL(3) TYPE C,
           END OF I_MATERIAL.
    * INTERNAL TABLE FOR BDCDATA
    DATA I_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    * internal table for for logs
    data i_bdcmsg like bdcmsgcoll occurs 0 with header line.
    * Report id
    data : v_repid like sy-repid,
           v_msg(255) type c.
    * Internal tabel for log records
    data : begin of i_log occurs 0,
           text(255) type c,
           end of i_log.
    * Selection-screen
    selection-screen : begin of block blk with frame title text-001.
    parameter p_file like rlgrap-filename.
    selection-screen : end of block blk.
    * fill the defaut value
    INITIALIZATION.
    v_repid = sy-repid.
    * F4 value for File
    at selection-screen on value-request for p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = v_repid
    *   DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = p_file
    start-of-selection.
    * get the data from file to internal table
    perform get_data_itab.
    * tO PROCEESS BDCDATA
    PERFORM PROCESS_BDCDATA.
    end-of-selection.
    * Process the data into file
    perform download_file.
    *&      Form  get_data_itab
    *    ws_upload
    FORM get_data_itab .
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    *   CODEPAGE                      = ' '
       FILENAME                      = P_FILE
       FILETYPE                      = 'ASC'
    *   HEADLEN                       = ' '
    *   LINE_EXIT                     = ' '
    *   TRUNCLEN                      = ' '
    *   USER_FORM                     = ' '
    *   USER_PROG                     = ' '
    *   DAT_D_FORMAT                  = ' '
    * IMPORTING
    *   FILELENGTH                    =
      TABLES
        DATA_TAB                      = I_TEXT
    EXCEPTIONS
       CONVERSION_ERROR              = 1
       FILE_OPEN_ERROR               = 2
       FILE_READ_ERROR               = 3
       INVALID_TYPE                  = 4
       NO_BATCH                      = 5
       UNKNOWN_ERROR                 = 6
       INVALID_TABLE_WIDTH           = 7
       GUI_REFUSE_FILETRANSFER       = 8
       CUSTOMER_ERROR                = 9
       NO_AUTHORITY                  = 10
       OTHERS                        = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
    LOOP AT I_TEXT.
    SPLIT I_TEXT-TEXT AT ',' INTO I_MATERIAL-MATNR
                                  I_MATERIAL-MBRSH
                                  I_MATERIAL-MTART
                                  I_MATERIAL-MAKTX
                                  I_MATERIAL-MEINS
                                  I_MATERIAL-MAKTL.
    APPEND I_MATERIAL.
    CLEAR : I_MATERIAL,
            I_TEXT.
    ENDLOOP.
    ENDIF.
    ENDFORM.                    " get_data_itab
    *&      Form  PROCESS_BDCDATA
    *      bdcdata
    FORM PROCESS_BDCDATA .
    LOOP AT I_MATERIAL.
    * First Screen
    perform f_get_program using 'SAPLMGMM' '0060'.
    perform f_get_field   using 'BDC_CURSOR' 'RMMG1-MATNR'.
    perform f_get_field  using 'BDC_OKCODE' '=AUSW'.
    perform f_get_field  using 'RMMG1-MATNR' i_material-matnr.
    perform f_get_field  using 'RMMG1-MBRSH' i_material-mbrsh.
    perform f_get_field  using 'RMMG1-MTART' i_material-mtart.
    * Second screen
    perform f_get_program using 'SAPLMGMM' '0070'.
    perform f_get_field   using 'BDC_CURSOR' 'MSICHTAUSW-DYTXT(01)'.
    perform f_get_field  using 'BDC_OKCODE' '=ENTR'.
    perform f_get_field  using 'MSICHTAUSW-KZSEL(01)' c_x.
    * third screen
    perform f_get_program using 'SAPLMGMM' '4004'.
    perform f_get_field   using 'BDC_CURSOR' 'MAKT-MAKTX'.
    perform f_get_field  using 'BDC_OKCODE' '=BU'.
    perform f_get_field  using 'MAKT-MAKTX' i_material-maktx.
    perform f_get_field  using 'MARA-MEINS' i_material-meins.
    perform f_get_field  using 'MARA-MATKL' i_material-maktl.
    ** call transaction
    call transaction 'MM01'
         using i_bdcdata
         mode 'N'
         messages into i_bdcmsg.
    refresh i_bdcdata.
    * Log message
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
       ID              = SY-MSGID
       LANG            = '-E'
       NO              = SY-MSGNO
       V1              = SY-MSGV1
       V2              = SY-MSGV2
       V3              = SY-MSGV3
       V4              = SY-MSGV4
    IMPORTING
       MSG             = v_msg
    EXCEPTIONS
       NOT_FOUND       = 1
       OTHERS          = 2
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    i_log-text = v_msg.
    append i_log.
    clear: i_log,
           v_msg.
    ENDLOOP.
    ENDFORM.                    " PROCESS_BDCDATA
    *&      Form  f_get_program
    *       Program ,Screen no, Dynbegin
    *      -->P_0206   text
    *      -->P_0207   text
    FORM f_get_program  USING   p_prog
                                p_scrn.
    clear : i_bdcdata.
    i_bdcdata-program = p_prog.
    i_bdcdata-dynpro = p_scrn.
    i_bdcdata-dynbegin = c_x.
    append i_bdcdata.
    ENDFORM.                    " f_get_program
    *&      Form  f_get_field
    *      field name ,field value
    *      -->P_0217   text
    *      -->P_0218   text
    FORM f_get_field  USING   p_fnam
                              p_fval.
    clear i_bdcdata.
    i_bdcdata-fnam = p_fnam.
    i_bdcdata-fval = p_fval.
    append i_bdcdata.
    ENDFORM.                    " f_get_field
    *&      Form  download_file
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM download_file .
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    *   BIN_FILESIZE                  = ' '
    *   CODEPAGE                      = ' '
       FILENAME                      =
       'C:Documents and SettingsAdministratorDesktoplog.txt'
       FILETYPE                      = 'ASC'
    *   MODE                          = ' '
    *   WK1_N_FORMAT                  = ' '
    *   WK1_N_SIZE                    = ' '
    *   WK1_T_FORMAT                  = ' '
    *   WK1_T_SIZE                    = ' '
    *   COL_SELECT                    = ' '
    *   COL_SELECTMASK                = ' '
    *   NO_AUTH_CHECK                 = ' '
    * IMPORTING
    *   FILELENGTH                    =
      TABLES
        DATA_TAB                      = i_log
    *   FIELDNAMES                    =
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_WRITE_ERROR              = 2
       INVALID_FILESIZE              = 3
       INVALID_TYPE                  = 4
       NO_BATCH                      = 5
       UNKNOWN_ERROR                 = 6
       INVALID_TABLE_WIDTH           = 7
       GUI_REFUSE_FILETRANSFER       = 8
       CUSTOMER_ERROR                = 9
       NO_AUTHORITY                  = 10
       OTHERS                        = 11
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.                    " download_file

  • Manual Bank Statement - Upload of line items

    Hi,
    We are trying to implement Manual Bank Statement for a specific client. We are not going for electronic bank statement, taking into consideration fewer number of transactions in the month.
    The bank statement for the month has approx 40-50 transactions/line items.
    The format for entering data in manual bank statement is - Transaction type, Value date, Amount, Document no.
    My client intends to create this format in Excel, and upload all the 50 line items at one stretch. But only 21 line items are getting uploaded at single instance.
    Also, after inserting row, only one row is inserted at a time. This process would be time consuming.
    Is there a solution whereby the entire 50 line items are entered at one stretch in manual bank statement
    Thanks in advance
    Regards
    Vishwanath.B

    Hi,
    The copy paste does not work in FF67. Only first column gets copied and then you have to copy paste column wise. This is limitation is SAP standard transaction and is not modifiable.
    LSMW will not help much as the records to be uploaded in the same statement and paage down can not be handled in LSMW.
    Your ABAPer need to record the transaction in SHDB and the can create a custom program to upload the excel using that recording. This is easy for programming point of view.
    Regards,
    Gaurav

  • Problem when I upload txt files to the server

    Hi, I have a problem when I try to upload files to the server, and I can't understand the fail.
    My case is:
    I have a jsp page where a from is.
    This form is sended to a servlet that proccess its content and upload the attach file to the server.
    It works correctly (it uploads the files, txt, xls and csv), the problem is when I try to upload a txt file like this, for example:
    Depth     Age
    0     0,1
    2     0,9
    3     2
    5     6
    6     9
    8     12
    34     25
    56     39
    101     40When I verify the uploaded file, this one has a character extra of return of line (a small square). This character prevents me from working then correctly with the file, on having detected a column of more.
    Which can be the problem?
    The code I use to uploaded the file is:
    try
        MyConnection Objconnection = new MyConnection();
        boolean isMultipart = FileUpload.isMultipartContent(req);
        // Create a factory for disk-based file items
        FileItemFactory factory = new DiskFileItemFactory();
         // Create a new file upload handler
        ServletFileUpload upload = new ServletFileUpload(factory);
        // Set overall request size constraint
        upload.setSizeMax(1024*512); //524288 Bytes (512 KB)
         // Parse the request
        List items = upload.parseRequest(req);
        // Process the uploaded items
        Iterator iter = items.iterator();
        String dat = new String();
        String typeFile = new String();
        while (iter.hasNext())
            FileItem item = (FileItem) iter.next();
            if (item.getFieldName().equals("typeFile") )
                typeFile = item.getString();
            if (!item.isFormField())
            String fieldName = item.getFieldName();
            String fileName = item.getName();
            String contentType = item.getContentType();
            boolean isInMemory = item.isInMemory();
            long sizeInBytes = item.getSize();
            int numbers=0;
            for(int i=fileName.length();(i=fileName.lastIndexOf('\\',i-1))>=0;)
                 numbers++;
            String stringFile[] = fileName.split("\\\\");
            HttpSession session = req.getSession(true);
            String loginSesion = (String)session.getAttribute("UserLogin");
            String newUserFolder = loginSesion;
            File createFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/"+newUserFolder);
            if ("AgeModel".equals(typeFile))
                createFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/AgeModels/"+newUserFolder);
            if (!createFile.exists())
                createFile.mkdir();
            fileName = stringFile[numbers];
            File uploadedFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/"+newUserFolder+"/"+fileName);
            if ("AgeModel".equals(typeFile) )
                uploadedFile = new File("/usr/local/tomcat/webapps/Usuarios/FilesUp/AgeModels/"+newUserFolder+"/"+fileName);
            existe = Objconnection.existFile(fileName, typeFile, loginSesion);
            if ( true == existe )
                 exito = false;
            else
                item.write(uploadedFile);
                ....// NOW REGISTER THE FILE IN TH DATA BASE
        } // if (!item.isFormField())
    } // WHILE ( iter.hasNext() )
                catch(Exception e) {
                out.println("Error de Aplicaci�n " + e.getMessage());
                return exito;
    ...THANKS

    Hi,
    Sorry I am aware this question was posted way back, but I am having similar problem and haven't been able to find the fix yet.
    So please let me known if you have got any ideas.
    My problem is same that I have to upload a CSV file from Client Machine (Windows) to Unix Application Server.
    I am using JSP method post and multipart/form-data (as in http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml).
    The file is uploaded fine but the problem is it displays carraige Return (^M) a square boxes on Unix file.
    I can't ask user to convert file to Unox format before uploading. They just convert excel file to CSV and upload.
    Is there any way I can get rid of these characters as I have to use this file further.
    Sorry, I can't use any paid utility or tool for it.
    I would appreciate if you could please help.
    Thanks,
    SW

  • Electronic bank statement upload to SAP....?

    HI experts,
    plz can any body pass some inputs on electronic bank statement.
    we have received the electronic statement from bank recently and want to upload it to SAP.
    we try to use the TCODE: FF_5 to import the statement.
    but in that tcode need to specify the statement file and line item files.
    actually whatu2019s that files mean ..Where we have to generate those two files from the existed electronic bank statement wt we received fromt the bank.
    and those file should be in which format...?
    plz advise i have not worked on the electronic bank statement before....
    i have done all the related configuration settings in the system... i have assigned the external transaction type MC ( multi cash format) to My bank Key in the config.
    if u have any documentation and file formats please send i to me to sandhya.rani at issconsulting.net
    thank you very much...
    Sandhya Reddy.

    Hi Sandhya,
    For this you need to do a lot off customizing and testing, perhaps to imlement an user exit.
    When you have activated EA-FIN you have more options.
    The setup is different by country, bank, record format,.
    Have a look in customing and click on help. There are some examples available.
    SPRO: Financial Accounting /Bank Accounting/ Business Transactions /Payment Transactions /Manual Bank Statement
    The first step is to look to your bank statements from the last year and write down all possible cases and how you post it. (Like customer invoice, bank transaction code XXX in the text you will found the invoice number, bank costs, interest, slaery payments,......)
    Based on this you can set-up the rule's (customizing - User exit)

Maybe you are looking for