To upload bulk data through FI transation F-02

Hey All,
The requirement here is to upload bulk data through FI transation F-02.
Using a BDC for the data upload is not suggested for this transaction as the Screen Sequence changes as per the values of the Posting Key ( and in some rare cases according to value of Account ).
Authorisations for LSMW havent been provided at this site.
I looked up SDN which showed many threads in which it was agreed that coding a BDC to handle such a dynamic sequence of screens is very complex. Some people suggested BAPIs as an alternative. Namely - BAPI_ACCT_DOCUMENT_POST and  BAPI_TRANSACTION_COMMIT .
But, when I searched for the BAPI BAPI_ACCT_DOCUMENT_POST in se37, it did not exist !!  The SAP version here is 4.6c
Any suggestions ?
-ashrut .
Extra Info -
The posting keys I have to use are - GL Account Debit, GL Account Credit , Vendor Debit, Vendor Credit .
And there is the special case of a GL Account mapping to a Sales Order No for the GL Account Posting Keys.
SDN Links - BDC for FB01
                  http://sap.ittoolbox.com/groups/technical-functional/sap-acct/prog-rfbibl00-230755?cv=expanded#

When we implemented, we used this program to upload all of our financial activity. We did not use LSMW and never have. We continue to use the program for interfaces. It is well documented, so check that out.
Rob

Similar Messages

  • Upload data through FI transation F-02

    Hey All,
    The requirement here is to upload data through FI transation F-02.
    Using a BDC for the data upload is not suggested for this transaction as the Screen Sequence changes as per the values of the Posting Key ( and in some rare cases according to value of Account ).
    Authorisations for LSMW havent been provided at this site.
    I looked up SDN which showed many threads in which it was agreed that coding a BDC to handle such a dynamic sequence of screens is very complex. Some people suggested BAPIs as an alternative. Namely - BAPI_ACCT_DOCUMENT_POST and  BAPI_TRANSACTION_COMMIT .
    But, when I searched for the BAPI BAPI_ACCT_DOCUMENT_POST in se37, it did not exist. The version here is 4.6c
    Any suggestions ?
    -ashrut .
    <u><b>PS - I'm a techie !!</b></u> , keep this in mind while you answer
    Extra Info -
    The posting keys I have to use are - GL Account Debit, GL Account Credit , Vendor Debit, Vendor Credit .
    And there is the special case of a GL Account mapping to a Sales Order No for the GL Account Posting Keys.
    SDN Links - BDC for FB01
                      http://sap.ittoolbox.com/groups/technical-functional/sap-acct/prog-rfbibl00-230755?cv=expanded #

    Programmed a BDC that handled screen changes

  • Upload bulk data into sap?

    hi all,
    let me know is there any methods to upload bulk data into sap and can same data be modified , delete , add. please correct me if i am wrong. what i know is that we can do with lsmw method, as i am new to lsmw method please let me know where to hunt for lsmw documentation.
    thanks,
    john dias.

    Hi John-
    According to SAP, The Data Transfer Workbench supports the automatic transfer of data into the system. The Workbench is particularly useful for various business objects with large amounts of data. It guarantees that data is transferred efficiently and ensures that data in the system is consistent.
    Further, The Legacy System Migration Workbench (LSMW) is a tool recommended by SAP that you can use to transfer data once only or periodically from legacy systems into an R/3 System.
    For your purpose you might be helped by the following two links-
    'Data Transfer Workbench' - http://help.sap.com/saphelp_47x200/helpdata/en/0d/e211c5543e11d1895d0000e829fbbd/frameset.htm
    'Using the LSM Workbench for the Conversion' - http://help.sap.com/saphelp_46c/helpdata/en/0f/4829e3d30911d3a6e30060087832f8/frameset.htm
    Hope these links help,
    - Vik.

  • Uploading bulk data in v_512w_d

    Hi gurus,
    I have to upload bulk data in table V_512W_D.
    Plase let me know the best way to do it..
    Thanks,
    Adesh

    Hi,
    We had a similar requirement.
    At that time what we did was, we had downloaded the data from different table from source system.
    We have created a program in Development Server to upload the data into target system Development.
    And transported the table with data into Quality and Production.
    Hope this helps.
    Pradeep.

  • Best way of uploading bulk data in a Z tables

    Greatings...
    Actually we have to maintain Bulk test data in new system..so where we need to upload bulk data in TABLES . most of them are 'Z' tables....
    Please suggest me which way is the best way to proceed in this case.....
    We came with one solution like RUN A eCatt. is this the only way or we have any other......
    Thanks in Advance...

    Hi
    Check this sample code..
    TYPE-POOLS truxs.
    TABLES :  ZACG_BOMM.
    parameter p_file TYPE rlgrap-filename DEFAULT 'E:\TEST.xls'.
    TYPES: BEGIN OF t_tab,
           CBSIZE TYPE ZACG_BOMM-CBSIZE,
           SDESC TYPE ZACG_BOMM-SDESC,
           MENGE TYPE ZACG_BOMM-MENGE,
           MEINS TYPE ZACG_BOMM-MEINS,
           LDESC TYPE ZACG_BOMM-LDESC,
           END OF t_tab.
    DATA :  IT_upload TYPE STANDARD TABLE OF t_tab,
            wa_upload TYPE t_tab,
            it_type TYPE truxs_t_text_data.
    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.
        CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
          EXPORTING
          I_FIELD_SEPERATOR          =
           I_LINE_HEADER              = 'X'
            I_TAB_RAW_DATA             = IT_TYPE
            I_FILENAME                 = P_FILE
          TABLES
            I_TAB_CONVERTED_DATA       = IT_UPLOAD[]
        EXCEPTIONS
          CONVERSION_FAILED          = 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.
    END-OF-SELECTION.
    LOOP AT IT_UPLOAD INTO WA_UPLOAD.
       ZACG_BOMM-CBSIZE = WA_UPLOAD-CBSIZE.
         ZACG_BOMM-SDESC = WA_UPLOAD-SDESC.
         ZACG_BOMM-MENGE = WA_UPLOAD-MENGE.
         ZACG_BOMM-MEINS = WA_UPLOAD-MEINS.
         ZACG_BOMM-LDESC = WA_UPLOAD-LDESC.
        MODIFY ZACG_BOMM.
      ENDLOOP.

  • Error during BAPI while uploading Material data through MM01

    Hi all,
    i am facing one problem when uploading Material data thorough BAPI in MM01.i am attaching the code below and the error given.
    but in the debugger all the value is being stored.
    REPORT  ZFINISHED_MAT.
    Data: Begin of legacy_data occurs 0,
         MATNR LIKE MARA-MATNR,
         MBRSH LIKE MARA-MBRSH,            "Industry Sector
         MTART LIKE MARA-MTART,            "Matl Type
         WERKS LIKE MARD-WERKS,            "Plant
         LGORT LIKE MARD-LGORT,            "Storage location
         VKORG LIKE MVKE-VKORG,
         VTWEG LIKE MVKE-VTWEG,
         MAKTX LIKE MAKT-MAKTX,             "Matl Desc.
         MEINS LIKE MARA-MEINS,             "Base UOM
         MATKL LIKE MARA-MATKL,             "Matl.Grp
    *     BISMT LIKE MARA-BISMT,
         SPART LIKE MARA-SPART,             "Division
    *     BRGEW LIKE MARA-BRGEW,             "Gross weight
         GROES LIKE MARA-GROES,
         FERTH LIKE MARA-FERTH,
         ZEINR LIKE MARA-ZEINR,
         TAXKM1 LIKE MLAN-TAXM1,
         TAXKM2 LIKE MLAN-TAXM2,
         TAXKM3 LIKE MLAN-TAXM3,
         TAXKM4 LIKE MLAN-TAXM4,
         KTGRM LIKE MVKE-KTGRM,
    *     GEWEI LIKE MARA-GEWEI,             "Weight unit
    *     NTGEW LIKE MARA-NTGEW,             "Net weight
    *     KLART LIKE RMCLF-KLART,
         MTVFP LIKE MARC-MTVFP,             "Availibility Check
    *     XGCHP LIKE MARA-XGCHP,
         XCHPF LIKE MARA-XCHPF,             "Batch Management
         TRAGR LIKE MARA-TRAGR,
         LADGR TYPE MARC-LADGR,
         VPRSV LIKE MBEW-VPRSV,            "Price Control
         VERPR LIKE MBEW-VERPR,
    *     SPRAS LIKE MAKT-SPRAS,
      END OF LEGACY_DATA.
    DATA: BEGIN OF IT_MAKT OCCURS 0.
    INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARD1 LIKE BAPI_MARD,
    BAPI_MARDX1 LIKE BAPI_MARDX, " Checkbox Structure for BAPI_MARD
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MVKE1 LIKE BAPI_MVKE,
    BAPI_MVKEX1 LIKE BAPI_MVKEX, " Checkbox Structure for BAPI_MVKE
    BAPI_MLAN1 LIKE BAPI_MLAN,
    BAPI_MLANX1 LIKE bapi_mlan1, " Checkbox Structure for BAPI_MLAN
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_RETURN LIKE BAPIRET2. " Return Parameter
    *              $PARAMETERS DECLARATION$
    SELECTION-SCREEN BEGIN OF BLOCK B11
                              WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_FILE LIKE RLGRAP-FILENAME. " DEFAULT 'C:\TEST1.XLS'.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN END OF BLOCK B11 .
    *              $DATA DECLARATION$
    *DATA : BDC_DATA LIKE STANDARD TABLE OF BDCDATA WITH HEADER LINE.
    DATA : IT_EXCEL TYPE STANDARD TABLE OF  ALSMEX_TABLINE INITIAL SIZE 0 WITH HEADER LINE,
            IT_EXCEL_DUMMY TYPE ALSMEX_TABLINE.
    DATA : MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : L_MSTRING(480).
    DATA :L_SUBRC LIKE SY-SUBRC.
    DATA: V_FILE TYPE STRING.
    *              $AT-SELECTON SCREEN DECLARATION$
    AT SELECTION-SCREEN ON P_FILE.
      IF P_FILE IS INITIAL.
        MESSAGE E398(00) WITH 'FILE NAME NEEDS TO BE SPECIFIED'.
      ENDIF.
    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.
    perform data_fetch_to_xls.
    perform insertion.
    *&      Form  data_fetch_to_xls
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM data_fetch_to_xls .
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                = P_FILE
          I_BEGIN_COL             = 1
          I_BEGIN_ROW             = 2
          I_END_COL               = 25
          I_END_ROW               = 2
        TABLES
          INTERN                  = IT_EXCEL
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 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.
        WRITE: /'ERROR UPLOADING XLS FILE FROM PRESENTATION SERVER !' ,
               /'RETURN CODE : ', SY-SUBRC.
      ELSE.
    *************NOW FILL DATA FROM EXCEL INTO FINAL LEGACY DATA ITAB----LEGACY_DATA***************
        IF NOT IT_EXCEL[] IS INITIAL.
          CLEAR LEGACY_DATA.
          REFRESH LEGACY_DATA[].
          LOOP AT IT_EXCEL.
            IT_EXCEL_DUMMY = IT_EXCEL.
            AT NEW COL.
              CASE IT_EXCEL_DUMMY-COL.
                WHEN 1.
                  LEGACY_DATA-MATNR = IT_EXCEL_DUMMY-VALUE(18).
                WHEN 2.
                  LEGACY_DATA-MBRSH = IT_EXCEL_DUMMY-VALUE(1).
                WHEN 3.
                  LEGACY_DATA-MTART = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 4.
                  LEGACY_DATA-WERKS = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 5.
                  LEGACY_DATA-LGORT = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 6.
                  LEGACY_DATA-VKORG = IT_EXCEL_DUMMY-VALUE(4).
                 WHEN 7.
                  LEGACY_DATA-VTWEG = IT_EXCEL_DUMMY-VALUE(2).
                WHEN 8.
                  LEGACY_DATA-MAKTX = IT_EXCEL_DUMMY-VALUE(40).
                WHEN 9.
                  LEGACY_DATA-MEINS = IT_EXCEL_DUMMY-VALUE(3).
                WHEN 10.
                  LEGACY_DATA-MATKL = IT_EXCEL_DUMMY-VALUE(9).
                WHEN 11.
                  LEGACY_DATA-SPART = IT_EXCEL_DUMMY-VALUE(2).
                WHEN 12.
                  LEGACY_DATA-GROES = IT_EXCEL_DUMMY-VALUE(32).
                WHEN 13.
                  LEGACY_DATA-FERTH = IT_EXCEL_DUMMY-VALUE(18).
                WHEN 14.
                  LEGACY_DATA-ZEINR = IT_EXCEL_DUMMY-VALUE(22).
                 WHEN 15.
                  LEGACY_DATA-TAXKM1 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 16.
                  LEGACY_DATA-TAXKM2 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 17.
                  LEGACY_DATA-TAXKM3 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 18.
                  LEGACY_DATA-TAXKM4 = IT_EXCEL_DUMMY-VALUE(1).
                 WHEN 19.
                  LEGACY_DATA-KTGRM = IT_EXCEL_DUMMY-VALUE(2).
                WHEN 20.
                  LEGACY_DATA-MTVFP = IT_EXCEL_DUMMY-VALUE(2).
                 WHEN 21.
                  LEGACY_DATA-XCHPF = IT_EXCEL_DUMMY-VALUE(1).
                WHEN 22.
                  LEGACY_DATA-TRAGR = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 23.
                  LEGACY_DATA-LADGR = IT_EXCEL_DUMMY-VALUE(4).
                WHEN 24.
                  LEGACY_DATA-VPRSV = IT_EXCEL_DUMMY-VALUE(1).
                WHEN 25.
                  LEGACY_DATA-VERPR = IT_EXCEL_DUMMY-VALUE(14).
                  APPEND LEGACY_DATA.
                  CLEAR LEGACY_DATA.
              ENDCASE.
            ENDAT.
            AT END OF ROW.
            ENDAT.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDFORM.                    " data_fetch_to_xls
    *&      Form  insertion
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM insertion .
    LOOP AT legacy_data.
    * Header
    BAPI_HEAD-MATERIAL = legacy_data-MATNR.
    BAPI_HEAD-IND_SECTOR = legacy_data-MBRSH.
    BAPI_HEAD-MATL_TYPE = legacy_data-MTART.
    BAPI_HEAD-BASIC_VIEW = 'X'.
    BAPI_HEAD-SALES_VIEW = 'X'.
    BAPI_HEAD-STORAGE_VIEW = 'X'.
    *BAPI_HEAD-PURCHASE_VIEW = 'X'.
    BAPI_HEAD-ACCOUNT_VIEW = 'X'.
    * Material Description
    REFRESH IT_MAKT.
    *IT_MAKT-LANGU = legacy_data-SPRAS.
    IT_MAKT-MATL_DESC = legacy_data-MAKTX.
    APPEND IT_MAKT.
    BAPI_MARD1-PLANT = legacy_data-WERKS.
    BAPI_MARD1-STGE_LOC = legacy_data-LGORT.
    BAPI_MARDX1-PLANT = legacy_data-WERKS.
    BAPI_MARDX1-STGE_LOC = legacy_data-LGORT.
    ** Client Data - Basic
    BAPI_MARA1-MATL_GROUP = legacy_data-MATKL.
    *bapi_mara1-OLD_MAT_NO = legacy_data-bismt.
    BAPI_MARA1-BASE_UOM = legacy_data-MEINS.
    BAPI_MARA1-PROD_MEMO = LEGACY_DATA-FERTH.
    BAPI_MARA1-SIZE_DIM = LEGACY_DATA-GROES.
    BAPI_MARA1-DOCUMENT = LEGACY_DATA-ZEINR.
    BAPI_MARA1-BATCH_MGMT = LEGACY_DATA-XCHPF.
    *BAPI_MARA1-UNIT_OF_WT = legacy_data-GEWEI.
    BAPI_MARA1-TRANS_GRP = legacy_data-TRAGR.
    BAPI_MARA1-DIVISION = legacy_data-SPART.
    BAPI_MARAX-MATL_GROUP = 'X'.
    *BAPI_MARAX-OLD_MAT_NO = 'X'.
    BAPI_MARAX-BASE_UOM = 'X'.
    BAPI_MARAX-PROD_MEMO = 'X'.
    BAPI_MARAX-SIZE_DIM = 'X'.
    BAPI_MARAX-DOCUMENT = 'X'.
    BAPI_MARAX-BATCH_MGMT = 'X'.
    *BAPI_MARAX-UNIT_OF_WT = 'X'.
    BAPI_MARAX-TRANS_GRP = 'X'.
    BAPI_MARAX-DIVISION = 'X'.
    *SALES
    BAPI_MVKE1-SALES_ORG = legacy_data-VKORG.
    BAPI_MVKE1-DISTR_CHAN = legacy_data-VTWEG.
    *BAPI_MVKE1-DELYG_PLNT = legacy_data-DWERK.
    BAPI_MVKE1-ACCT_ASSGT = legacy_data-KTGRM.
    BAPI_MVKEX1-SALES_ORG = legacy_data-VKORG.
    BAPI_MVKEX1-DISTR_CHAN = legacy_data-VTWEG.
    *BAPI_MVKEX1-DELYG_PLNT = 'X'.
    BAPI_MVKEX1-ACCT_ASSGT = 'X'.
    ** Plant - Purchasing
    BAPI_MARC1-PLANT = legacy_data-WERKS.
    BAPI_MARC1-LOADINGGRP = legacy_data-LADGR.
    BAPI_MARC1-AVAILCHECK = legacy_data-MTVFP.
    *BAPI_MARC1-MRP_GROUP =  legacy_data-disgr.
    BAPI_MARCX-PLANT = legacy_data-WERKS.
    BAPI_MARCX-LOADINGGRP = 'X'.
    BAPI_MARCX-AVAILCHECK = 'X'.
    *BAPI_MARCX-MRP_GROUP =  'X'.
    * Accounting
    BAPI_MBEW1-VAL_AREA = legacy_data-WERKS.
    BAPI_MBEW1-PRICE_CTRL = legacy_data-VPRSV.
    BAPI_MBEW1-STD_PRICE =  legacy_data-VERPR.
    *BAPI_MBEW1-VAL_CLASS =  legacy_data-BKLAS.
    *BAPI_MBEW1-STD_PRICE = legacy_data-STPRS.
    *BAPI_MBEW1-PRICE_UNIT = legacy_data-PEINH.
    BAPI_MBEWX-VAL_AREA = legacy_data-WERKS.
    BAPI_MBEWX-PRICE_CTRL = 'X'.
    BAPI_MBEWX-STD_PRICE =  'X'.
    *BAPI_MBEWX-VAL_CLASS =  'X'.
    * TAX JURISDICTION CODE
    BAPI_MLAN1-TAXCLASS_1 = LEGACY_DATA-TAXKM1.
    BAPI_MLAN1-TAXCLASS_2 = LEGACY_DATA-TAXKM2.
    BAPI_MLAN1-TAXCLASS_3 = LEGACY_DATA-TAXKM3.
    BAPI_MLAN1-TAXCLASS_4 = LEGACY_DATA-TAXKM4.
    BAPI_MLAN1-TAXCLASS_1 = 'X'.
    BAPI_MLAN1-TAXCLASS_2 = 'X'.
    BAPI_MLAN1-TAXCLASS_3 = 'X'.
    BAPI_MLAN1-TAXCLASS_4 = 'X'.
    *--- BAPI to create material
    call function 'BAPI_MATERIAL_SAVEDATA'
    exporting
    HEADDATA = BAPI_HEAD
    CLIENTDATA = BAPI_MARA1
    CLIENTDATAX = BAPI_MARAX
    *PLANTDATA = BAPI_MARC1
    *PLANTDATAX = BAPI_MARCX
    * FORECASTPARAMETERS =
    * FORECASTPARAMETERSX =
    * PLANNINGDATA =
    * PLANNINGDATAX =
    * STORAGELOCATIONDATA =
    * STORAGELOCATIONDATAX =
    VALUATIONDATA = BAPI_MBEW1
    VALUATIONDATAX = BAPI_MBEWX
    * WAREHOUSENUMBERDATA =
    * WAREHOUSENUMBERDATAX =
    * SALESDATA = BAPI_MVKE1
    * SALESDATAX = BAPI_MVKEX
    * STORAGETYPEDATA =
    * STORAGETYPEDATAX =
    IMPORTING
    RETURN = BAPI_RETURN
    TABLES
    MATERIALDESCRIPTION = IT_MAKT
    * UNITSOFMEASURE =
    * UNITSOFMEASUREX =
    * INTERNATIONALARTNOS =
    * MATERIALLONGTEXT =
    * TAXCLASSIFICATIONS =
    * RETURNMESSAGES =
    * PRTDATA =
    * PRTDATAX =
    * EXTENSIONIN =
    * EXTENSIONINX =
    IF BAPI_RETURN-TYPE = 'E'.
    WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,legacy_data-maTNR.
    ELSEIF BAPI_RETURN-TYPE = 'S'.
    WRITE: 'Successfully created material' ,legacy_data-maTNR.
    ENDIF.
    ENDLOOP.
    ENDFORM.                    " insertion
    The error: The field MARC-MTVFP/BAPI_MARC-AVAILCHECK is defined as a required field; it does not contain an entr
    suggestion will be vry helpful,
    Kind Regards,
    Edited by: Prasenjit Sengupta on Nov 16, 2009 9:11 AM

    Hi Prasenjit,
    Did you get any solution for this as I am getting same error from BAPI to update MRP controller in MARC table.
    Regards,
    Suruchi

  • How we can upload the data through BDC for transaction J1ID

    Hi guru
    How w can upload the data for Transaction J1ID.In this we want to upload the data for Customer Excise details. I want to upload the data on behalf of Customer (KUNNR) becasue customer is a primary KEY. Table name: J_1IMOCUST
    Fields. 11 Fields.plz provide some code logic.
    KUNNR     J_1IEXCD     J_1IEXRN     J_1IEXRG     J_1IEXDI     J_1IEXCO     J_1ICSTNO     J_1ILSTNO     J_1IPANNO     J_1IEXCICU     J_1ISERN

    Hi,
    I dont see any difficulties in doing BDC upload for J1ID, You have to record by giving the New Entries button and then enter all the details of customers using table control technique.
    SEARCH SCN for Table Control in BDC
    Regards
    Karthik D

  • Why do we need to upload meta data through IDX2

    Hi Experts,
    Why do we need to uplaod the meta data through idx2 ,if we won't do that what will be the impact on oue scenario.
    Regards

    The IDOC msg comes as a data stream from ECC to PI. PI uses the metadata in IDX2 to convert the IDOC msg to IDOC-XML msg...
    http://help.sap.com/saphelp_nw04/helpdata/EN/ab/bdb13b00ae793be10000000a11402f/content.htm
    If you don't load IDX2, When the 1st IDOC is received, the metadata is automatically loaded.
    For subsequent changes in ECC, (If new Z-fields are added in ECC), they are not reflected in PI, if you don't perform IDX2. Hence, IDOC msg to IDOC-XML convertion will have some problems.. Data will get into wrong fields... It is recommended to Perform IDX2 to aviod such issues..
    Regards,
    Siva Maranani

  • Problem while uploading master data through two files

    Hi all,
    When i try to upload master data of CUSTOMER with two files , Attribute and Text.
    Text gets uploaded perfectly.
    for Attribute, the data upload is done and psa i can see the exact data. But when i check the CUSTOMER object, i am not able to find the actually Attributs data. Instead those colmns are filed with 'E'.
    Can anybdy please explain me wheret the problem is.
    Thanks..

    Hi Sun,
    First check the data in PSA whether the records are fine or any discrepancy in them. Also check the properties of the COSTUMER object into which you are loading. The properties "type" or the "size" of the object may not be matching with the same in the file.
    Check them and try to load once again.
    Hope this helps u...
    Regards,
    Koundinya Karanam.
    Edited by: koundinya karanam on Jan 15, 2008 12:05 AM

  • Bulk Data through xml

    Hi,
    I am new to oracle in SQL we use to import bulk data in xml formate and then insert it into the data.
    is there any way of doing the same job in oracle?
    i have a table
    empId empName empFatherName
    i want to bring a bulk of user name and father name in xml(clob) format,
    add my id by extracting it from a sequence and insert it combine to the table.
    thx...

    Hi,
    By using SQL*LOADER you can do this in oracle database.Check the below link for usage.
    http://www.oracleutilities.com/OSUtil/sqlldr.html
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/
    Edited by: Rafi (Oracle DBA) on Jan 11, 2011 10:41 PM

  • Uploading bulk data in oracle spatial

    Hi,
    I need to upload a map data in (input is ESRI File geodatabase) in Oracle Spatial using ArcSDE.
    I have Oracle spatial 10g, ArcGIS desktop 9.3. I am able to connect the oracle spatial data using arcsde and i am able to view those maps in arcmap. Also, i am able to upload small esri shape files in oracle spatial using esri arccatalog through arcsde.
    I would like to know, the steps to be followed to upload a road network for North america (around 15gb) data as SDO. If there is any document available it will be more useful for me.
    Or pls. share your experience in this.
    Thanks,
    Vadivelan. P

    Yikes,
    You won't require 150 gig of undo to load your data with ESRI tools. Noel might need to start a new thread to discuss that issue as his bulk loader may need some tuning. :p
    All ESRI bulk loaders use a rather modest auto-commit. ArcCatalog is 1000 records and sdeimport is 2000 records by default. So after loading that many records the tool does a commit and thus avoids much undo at all. You can easily change this number to tune performance (higher for point data, lower for huge honkin' polygons) in the parameters.
    At this point I would say the heck with all these torpedoes and give your load a try. You stated in the very first thread that you have loaded shapefiles successfully into Oracle Spatial so the assumption is you have your dbtune keywords setup and are all set with the issues of mapping ESRI coordinate systems into Oracle Spatial. So full steam ahead! Another idea would be to load a small subset of the data and make sure its correct to your needs before doing the whole thing. My opinion is I don't think you need to worry about the 15 gig size of the load. Yes it will take some time to do but I would bet whatever problems you run into are the same you would face with a 15 meg load.
    Cheers and good luck,
    Paul

  • How users can upload excelsheet data through the application page....

    I want to make my application in such a way that the users of the application can import data from an excel sheet to the respective tables through the page.Once the users browses the file and clicks on the submit button,the whole data from the excel sheet should go to the respective tables.The thing is that as the work of uploading is done at the back-end...it can also be done at front-end in the application itself.Also,i need to validate the data before inserting it.Please can you advice me on this.........

    Hello,
    I believe the following thread can be a good starting point - Loading a CSV file into a table
    You can download Vikas' application, exploring the code and modify it to your needs.
    Regards,
    Arie.

  • Is it OK to upload the data through SQLPlus

    Hi all,
    Is there a way for doing this in SQLPlus?
    Thks & Bst Rgds,
    Edward

    Hi HuaMin,
    It depends on the data you have to upload.
    If you have your data as a SQL script, then you can use sqlplus.
    Or else if your data is on text or some other file format, then you can do with SQL Loader (sqlldr).
    SQL Loader is a very good tool for data loading.
    Regards.

  • REg Upload of data through Flat file .....  .XLS or .TXT or .CSV

    Hi,
    I am trying to upload flat file data using the FM GUI_UPLOAD for .TXT file and
    FM TEXT_CONVERT_XLS_TO_SAP for .Xls and .csv files
    My internal table is as follows
    TYPES : BEGIN OF ty_f64,
                     field(255) type c,
                  END OF ty_f64.
    data : it_f64 type table of ty_f64.
    Example Flat file data is as follows
    H     20112008     DR     0001     20112008     INR
    L     01     61     1000          
    L     50     41000     1000          
    H     20112008     DR     0001     20112008     INR
    L     01     61     1000          
    L     50     41000     500          
    L     50     41000     400          
    L     50     41000     100          
    My problem is that only the first field i.e H or L is getting updated into my internal table but I want whole record to be the content in one row
    i.e in RUN TIME I see the internal table data as
    H
    L
    L
    H
    L
    L
    L
    regards
    Prasanth

    Check the below code
    REPORT  ZSRK_073                            .
    CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
    TYPES : BEGIN OF TY_F64,
                     FIELD(255) TYPE C,
                  END OF TY_F64.
    DATA : IT_F64 TYPE TABLE OF TY_F64,
           WA_F64 TYPE TY_F64.
    TYPES : BEGIN OF TY_HEADER,
           RECNO TYPE I,
           INDICATOR,
           BLDAT TYPE BLDAT,
           BLART TYPE BLART,
           BUKRS TYPE BUKRS,
           BUDAT TYPE BUDAT,
           WAERS TYPE WAERS,
           END OF TY_HEADER.
    TYPES : BEGIN OF TY_ITEM,
            RECNO TYPE I,
            INDICATOR,
            NEWBS TYPE NEWBS,
            NEWKO TYPE NEWKO,
            WRBTR(16), " TYPE WRBTR,
            END OF TY_ITEM.
    TYPES : BEGIN OF TY_TAB,
            F1,
            F2(10),
            F3(17),
            F4(17),
            F5(10),
            F6(5),
            END OF TY_TAB.
    DATA : IT_HEADER TYPE TABLE OF TY_HEADER ,
           IT_ITEM TYPE TABLE OF TY_ITEM,
           WA_HEADER TYPE TY_HEADER,
           WA_ITEM TYPE TY_ITEM,
           IT_TAB TYPE TABLE OF TY_TAB,
           WA_TAB TYPE TY_TAB.
    DATA : L_REC TYPE I,
           FLAG.
    CONSTANTS : C_HTAB TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
    DATA : FNAME TYPE STRING VALUE 'C:\TTT1.xls',
           L_FILE LIKE RLGRAP-FILENAME.
    IF FNAME CS '.TXT'.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME = FNAME
          FILETYPE = 'ASC'
        TABLES
          DATA_TAB = IT_F64.
      PERFORM SPLIT_TEXT_TABLE TABLES IT_F64.
    ELSEIF FNAME CS '.XLS'.
      L_FILE = FNAME.
      PERFORM UPLOAD_XLSFILE TABLES IT_TAB
                             USING L_FILE.
      PERFORM SPLIT_XLS_TABLE TABLES IT_TAB.
    ELSEIF FNAME CS '.CSV' .
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME = FNAME
          FILETYPE = 'ASC'
        TABLES
          DATA_TAB = IT_F64.
      PERFORM SPLIT_CSV_TABLE TABLES IT_F64.
    ENDIF.
    *&      Form  UPLOAD_XLSFILE
          text
    -->  p1        text
    <--  p2        text
    FORM UPLOAD_XLSFILE TABLES P_TABLE
                        USING P_FILE.
      DATA : L_INTERN TYPE KCDE_CELLS OCCURS 0 WITH HEADER LINE.
      DATA : L_INDEX TYPE I.
      DATA : L_START_COL TYPE I VALUE '1',
             L_START_ROW TYPE I VALUE '1',
             L_END_COL TYPE I VALUE '256',
             L_END_ROW TYPE I VALUE '65536'.
      FIELD-SYMBOLS : <FS>.
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          FILENAME                = P_FILE
          I_BEGIN_COL             = L_START_COL
          I_BEGIN_ROW             = L_START_ROW
          I_END_COL               = L_END_COL
          I_END_ROW               = L_END_ROW
        TABLES
          INTERN                  = L_INTERN
        EXCEPTIONS
          INCONSISTENT_PARAMETERS = 1
          UPLOAD_OLE              = 2
          OTHERS                  = 3.
      IF SY-SUBRC <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE : / 'File Error'.
        EXIT.
      ENDIF.
      IF L_INTERN[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE : / 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT L_INTERN BY ROW COL.
        LOOP AT L_INTERN.
          MOVE L_INTERN-COL TO L_INDEX.
          ASSIGN COMPONENT L_INDEX OF STRUCTURE P_TABLE TO <FS>.
          MOVE L_INTERN-VALUE TO <FS>.
          AT END OF ROW.
            APPEND P_TABLE.
            CLEAR P_TABLE.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " UPLOAD_XLSFILE
    *&      Form  SPLIT_TEXT_TABLE
          text
         -->P_IT_F64  text
    FORM SPLIT_TEXT_TABLE  TABLES   IT_F64 .
      LOOP AT IT_F64 INTO WA_F64.
        IF WA_F64+0(1) = 'H'.
          SPLIT WA_F64 AT C_HTAB INTO      WA_HEADER-INDICATOR
                                           WA_HEADER-BLDAT
                                           WA_HEADER-BLART
                                           WA_HEADER-BUKRS
                                           WA_HEADER-BUDAT
                                           WA_HEADER-WAERS.
          CLEAR FLAG.
          IF FLAG EQ SPACE.
            L_REC = L_REC + 1.
            WA_HEADER-RECNO = L_REC.
            FLAG = 'X'.
          ENDIF.
          APPEND WA_HEADER TO IT_HEADER.
          CLEAR WA_HEADER.
        ELSEIF WA_F64+0(1) = 'L'.
          SPLIT WA_F64 AT C_HTAB INTO    : WA_ITEM-INDICATOR
                                            WA_ITEM-NEWBS
                                            WA_ITEM-NEWKO
                                            WA_ITEM-WRBTR.
          IF FLAG EQ 'X'.
            WA_ITEM-RECNO = L_REC.
          ENDIF.
          APPEND WA_ITEM TO IT_ITEM.
          CLEAR WA_ITEM.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " SPLIT_TEXT_TABLE
    *&      Form  SPLIT_xls_TABLE
          text
         -->P_IT_TAB  text
    FORM SPLIT_XLS_TABLE  TABLES   IT_TAB .
      LOOP AT IT_TAB INTO WA_TAB.
        IF WA_TAB-F1 = 'H'.
          WA_HEADER-INDICATOR = WA_TAB-F1.
          WA_HEADER-BLDAT = WA_TAB-F2.
          WA_HEADER-BLART = WA_TAB-F3.
          WA_HEADER-BUKRS = WA_TAB-F4.
          WA_HEADER-BUDAT = WA_TAB-F5.
          WA_HEADER-WAERS = WA_TAB-F6.
          CLEAR FLAG.
          IF FLAG EQ SPACE.
            L_REC = L_REC + 1.
            WA_HEADER-RECNO = L_REC.
            FLAG = 'X'.
          ENDIF.
          APPEND WA_HEADER TO IT_HEADER.
          CLEAR WA_HEADER.
        ELSEIF WA_TAB-F1 = 'L'.
          WA_ITEM-INDICATOR = WA_TAB-F1.
          WA_ITEM-NEWBS = WA_TAB-F2.
          WA_ITEM-NEWKO = WA_TAB-F3.
          WA_ITEM-WRBTR = WA_TAB-F4.
          IF FLAG EQ 'X'.
            WA_ITEM-RECNO = L_REC.
          ENDIF.
          APPEND WA_ITEM TO IT_ITEM.
          CLEAR WA_ITEM.
        ENDIF.
        CLEAR WA_TAB.
      ENDLOOP.
    ENDFORM.                    " SPLIT_xls_TABLE
    *&      Form  SPLIT_CSV_TABLE
          text
         -->P_IT_F64  text
    FORM SPLIT_CSV_TABLE  TABLES   IT_F64 .
      LOOP AT IT_F64 INTO WA_F64.
        IF WA_F64+0(1) = 'H'.
          SPLIT WA_F64 AT '|' INTO      WA_HEADER-INDICATOR
                                           WA_HEADER-BLDAT
                                           WA_HEADER-BLART
                                           WA_HEADER-BUKRS
                                           WA_HEADER-BUDAT
                                           WA_HEADER-WAERS.
          CLEAR FLAG.
          IF FLAG EQ SPACE.
            L_REC = L_REC + 1.
            WA_HEADER-RECNO = L_REC.
            FLAG = 'X'.
          ENDIF.
          APPEND WA_HEADER TO IT_HEADER.
          CLEAR WA_HEADER.
        ELSEIF WA_F64+0(1) = 'L'.
          SPLIT WA_F64 AT '|' INTO    : WA_ITEM-INDICATOR
                                            WA_ITEM-NEWBS
                                            WA_ITEM-NEWKO
                                            WA_ITEM-WRBTR.
          IF FLAG EQ 'X'.
            WA_ITEM-RECNO = L_REC.
          ENDIF.
          APPEND WA_ITEM TO IT_ITEM.
          CLEAR WA_ITEM.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " SPLIT_CSV_TABLE

  • I want to upload om data through lsmw. how can i create transport request for lsmw data.

    can anyone help me?

    Hi Anand,
    There are 2 ways for transporting LSMW data from a system to another.
    1) Export/import this method gives you the opportunity to select the subprojects or objects you want to transfer. Hence you don't transfer the object a colleague might have created and that should stay in development system. LSMW -> Extras -> Export project  
    2)Transport request with this method, you can transport a LSMW project in full (you cannot select the objects you want). With this method, the project will be transported as any other SAP object in a transport order. 
    LSMW -> Extras -> Create change request 
    For more information, refer below link Steps to copy LSMW from one client to another
    Thanks
    KH

Maybe you are looking for

  • Add field 'asset' in sales order line item account assignment tab

    Hi, I would like to add the following field: 'asset' in sales order line item account assignment tab. I can enter order, or wbs, but not Asset. How can I make this field visable? Anybody? thanks, klundert Edited by: Eric Van Zundert on Oct 30, 2010 8

  • Configuring SAP R/3 system as data source for SAP BW3.5 system

    HI All, Please help me in getting some document for integrating SAP R/3 4.7 with SAP BW3.5 as data source system. Thanks in advance. Regards, Nalla.

  • How can I make playlists and update ipod from music stored on a NAS?

    I recently bought a new computer and before doing so, I transferred all my mp3/music files onto my NAS device.  I am able to share that music and play it from my Itunes, but I cannot make playlists from it or update my ipod.  I tried searching and fo

  • Windows 8 Eats battery compared to Windows 7

    Hi ,  I used Windows 7 for more than a year , it gave me about 2:30 Min in my laptop. When i installed windows 8 , after 2 months when i try to plug out my laptop from power the battery gets low after 5 min , i though battery need to be replaced but

  • BitmapData Resize and rotation

    Hi there, I'm having some problems manipulating an image with AS3 and Flash Player 10. I've managed to edit a Bitmap from a local image by changing it's size and rotation with the help of class Matrix. The problem is that now I want to save the new i