Upload additional data into existing material number.

Hi Experts,
I want to upload an additional info about Material (valuation category and valuation type), where the material ids are already exists.
There are 87 data which i have to upload to their corresponding material numbers from notepad.
So please suggest what should i follow to upload BDC or LSMW and also suggest how to do ...
Thanks,
Deepanshu Mathur
Moderator message: please do more research before asking, show what you have done yourself when asking.
Edited by: Thomas Zloch on Jun 24, 2011 10:07 AM

Hi,
MANDT is always added as one of the fields to make the table client specific and it has to be a primary key.
As rest of your fields are non-primary key fields, your table will have duplicate records for all the fields. You shall not get any error even if you enter duplicate entries.
As a general practice, it is always good to have at least one primary key on a a table apart from MANDT. This ensures faster data access and provides uniqueness for each record.
Also, if your table does not have at least one primary key apart from MANDT, you shall not be able to maintain the table via SM30 even if you create a Table Maintanence.
Regards,
Danish.

Similar Messages

  • Upload the data into interface

    HI Abapers,
    My requirement is that i want to upload the data into the transaction where for the header data there are n number of  item transactions , so my requirement is to select all the item  transactions that should be done in background, so i have written the code below but it is selectiong only the first row
    itd2[] = itd[].
    *icount = 1.
        LOOP AT itd2 INTO wa_itd2.
    icount = 1.
        CONCATENATE 'GWA_MTBAL-CHECK(' icount ')'  INTO w_fnam.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                  w_fnam.
          PERFORM bdc_field       USING w_fnam
            'X'.
          icount = icount + 1.
        ENDLOOP.
        PERFORM bdc_dynpro      USING 'SAPMZPP001_PRODORDCONF' '9010'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=GR'.
    Pls reply for any changes in code or any clarifications for this post.
    Thanks In advance.

    Hi thank you  for kind reply i need to create the entries  for CO Activity /Price planning .
    i have to upload data to KP26 which i have posted the fields ..
    i already cheked the function modules which you have been given .. it is not suitable ..
    Is there any ohter  BAPI is there ... le t me know ...
    regards
    purushotham.ineni

  • How to batch upload some data into SAP system?

    Hi All:
    I'm a SAP key user in our company, I want to know how to batch upload master data into SAP system? What t-code we can use for batch input?
    Thanks in advance!

    Hi,
    I think at least there are four methods for batch input which you can use in SAP system:
    Standard mass change t-code: for example, MM17 for mass change of material master data, you can find the mass change t-code under the relevant function module;
    T-code SCAT, you can use to record and generate the simple batch input template, it's easy to use for key user;
    T-code LSMW, it's another transaction to generate batch input template, it's often used at the beginning of SAP rollout;
    ABAP program, of course, ABAP is a universal tool for everything, you can use ABAP to generate a batch input program to upload data into SAP system as well.
    So you had better contact your SAP support department, help you to upload data!
    Good luck
    Tao

  • Upload excel data into Internal table

    Hi,
    I'm trying to upload excel data into internal table, well the excel file layout will be different on each run of the report.
    Excel file will have 60 columns and 500 record limit. I can upload the excel data using 'ALSM_EXCEL_TO_INTERNAL_TABLE' and 'KCD_EXCEL_OLE_TO_INT_CONVERT' but the output table is generates 60 lines for each record i.e.., 60 * 500 = 30,000 which could cause performance.
    I try with the FM 'TEXT_CONVERT_XLS_TO_SAP', but this will only work if the file structure is static. It didn't work for dynamic file layout. Even GUI_UPLOAD doesn't work to upload excel file, it will work if I convert the file to Tab delimited file.
    Please advise if you know any alternate procedure to upload excel data into internal table.
    Thanks,
    Kumar.

    Moderator message - Cross post locked
    Rob

  • Mass upload of data into Custom table

    Hello all,
                I made search in SDN and could not find the best solution to my problem and hence posting .
               What is the best way for Mass upload of data into Custom database table ?
               I think LSMW would not be a viable option as it would take longer time .
               Locking of the table also needs to be taken care.
               PLease let me know if you have a alternative to this and the best way to do this .
    Comradely,
    K.Sibi

    Hi Sibi,
    See Lock objects are required when we enter the data through screen level, or multiple users should not enter the data at same time.
    Create one Lock object in SE11, It automatically creates FM.
    DEQUEUE_EYTEST2                Release lock on object EYTEST2
    ENQUEUE_EYTEST2                Request lock for object EYTEST2
    Call these FM in your program.
    EX: Refer this links
    1 http://help.sap.com/saphelp_nw70/helpdata/en/41/7af4c8a79e11d1950f0000e82de14a/content.htm
    2 http://wiki.sdn.sap.com/wiki/display/Snippets/lockingandunlockingofthe+tables
    Rgds
    Aeda

  • Upload legacy data into SAP

    Hi experts,
           I have to upload legacy data into SAP by using eCATT recording Transaction. For doing this I have completed  ‘Test script’ in tcode SECATT. After this what I have to do.. How can I attach my legacy file.. Can anyone help me. ..Its really urgent…
    Thanks in advance

    Hi,
    There are a series of weblogs in this area. Check them out, I think there are 8 in a series:
    /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
    cheers
    Aveek

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

  • How to upload Hierarchy data into BW InfoObjects

    I have gone through the XI and BI integration document provided by SAP and I found out that using that method only Master data and Text data can be uploaded into Infoobejects using Flexible upload which doesnt support Hierarchy data upload.
    I need to upload Hierarchy data into InfoObjects using SAP XI. Please suggest me the best way to upload the hierarchy data.
    Thanks and Regards,
    Shridhar.

    Hi,
    First , thanks for your answer.
    Concerning the scope of my project, currently we just have a SAP system to be integrated into BW but in a few times we will get also other OLAP Tools to integrate in BW. Also my customer want to manage all the message processing with only one product if it's possible and currently he use SAP XI for it so that's why he want's to use XI between SAP and BW.
    If i understand weel your answer, i can use XI without defining XML file in BW I can use standard extractor so XI just transfert IDOC  receving from SAP to BW , it that right ?
    Thansk again.
    Best regards.
    Bertrand.

  • Upload Hierarchy data into BW using XI.

    Hi I need to upload Hierarchy data for Info Object in SAP BW using SAP XI.
    <b>I have gone through the XI-BI integration document but it gives only Flexible upload method which doesnt support Hierarchy data upload into BW.</b>
    Can anybody suggest me the best way to upload Hierarchy data into SAP BW Info objects using SAP XI.
    Advance Thanks,
    Anil.

    Hi! Have you not checked the BW-XI Integration document? It is available on the main page of the SDN section for XI. Almost all the steps for the integration are there...

  • How to upload the  data into SAP R/3 System

    I have a scenario to  upload the flat file data into SAP R/3 System.
    I will describe my complete scenario here so that it will be better understanding for you to suggest the solution.
    The  segments that relevant for the upload of customer master data, namely
    HD : Header Segment
    PF  : Partner Function Segment
    OP : Output Segment
    TX : Tax Segment
    CR : Credit Segment
    CT : Customer Text Segment

    I think you can achieve this with IDOC creation. If it is so follow the steps below.
    Basic Type:
    Basic IDoc type defines the structure and format of the business document that is to be exchanged between two systems.
    Segments:
    Segments form the basic building blocks of an IDoc type and are used to store the actual datta. A segment type is the name of a segment and is independent of the SAP elease. A segment definition is the release-specific name of a segment.
    Steps in creating Segments:
    T.Code WE31
    Enter the name for your segment type and click on the create icon.
    Type the Short text.
    Enter the variable names and data elements.
    Save and Go back.
    Go to Edit -> Set Release.
    Repeat the steps to create more segments.
    IDOC TYPE:
    Business data is exchanged with an external system using the IDoc Interface.
    IDoc types (Special Structures) An IDoc type is defined through its permitted segments. Segments can be dependent on each other (parent and child segments). The IDoc interface can check for each IDoc whether thhe segments contained are compatible with thhe definitiion of its type. This systax check is activated or deactivated in the Partner Profiles.
    Steps in creating IDoc Type:
    T.Code WE30 to create IDoc Type.
    Enter the Object Name, Select Basic Type and click Create Icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDoc name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press enter
    The system transfers the name of the segment type to the IDoc editor.
    Follow these steps to add more number of segments to Parent or as Parent-child relation.
    Save it and go back.
    Go to Edit -> Set Release.
    Message Type:
    Steps in Creating Message Type:
    T.Code WE81.
    change the details from Display mode to Change mode
    After selection, the system will give this message "The table is cross client (See help for further info)". Press enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back.
    Assign Message Type to IDoc Type:
    T.Code WE82
    Change the details from Display mode to change mode.
    After selection, the system will give this message "The table is cross client (See help for further info)". Press enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back.
    Reward Points if useful.

  • Using bapi how to upload the data into sap database?

    hi dear all,
                  im facing problem with bapi ? let me edcuate on bapi ..
    i will be  waiting for reply.
    my e-id :[email protected]
    thanks&regards
    shiva.

    Hi
    A BAPI is a method of a SAP Business Object. BAPI enables SAP and third party applications to interact and integrate
    with each other at the Business Object / Process level.
    Check this link to know more about BAPI.
    http://www.sapgenie.com/abap/bapi/example.htm
    http://sappoint.com/abap/
    Batch Data Communication (BDC) is the oldest batch interfacing technique that SAP provided since the early versions of R/3. BDC is not a
    typical integration tool, in the sense that, it can be only be used for uploading data into R/3 and so it is not bi-directional.
    BDC works on the principle of simulating user input for transactional screen, via an ABAP program. Typically the input comes in the form
    of a flat file. The ABAP program reads this file and formats the input data screen by screen into an internal table (BDCDATA). The
    transaction is then started using this internal table as the input and executed in the background.
    In ‘Call Transaction’, the transactions are triggered at the time of processing itself and so the ABAP program must do the error handling.
    It can also be used for real-time interfaces and custom error handling & logging features. .
    To know more about BDC,
    check the link.
    http://sappoint.com/abap/
    Main differences are...
    In case of bdc data transfer takes place from flat file into sap system ie the file existing in sap system to sap sytem
    where is bapi's r remotly enabled function modules which are assigned to some business objects n used to transfer the data between different business partners who are using different systems other than sap.
    not only that...
    when you plan to upgrade your system version then bdc willnot support those upgradations where as bapi's will support.
    http://www.sap-img.com/abap/ale-bapi.htm
    SAP BAPI
    BAPI STEPS
    Hope this helps.
    ashish

  • Add additional params into existing SP

    Hello,
    please, how can I add additional params: @LastName and @FirstName into existing procedure that starts:
    @PIN nvarchar(13)
      AS
    DECLARE @v_exist int
    set @v_exist=0;
    Namely, upon adding additional params:
    @PIN nvarchar(13)
    @LastName nvarchar(20)
    @FirstName nvarchar(20)
      AS
    DECLARE @v_exist int
    set @v_exist=0;
    and adding additional table that comprises columns FirstName and LastName into existing Select statement(referenced table that comprises all possible values of PIN) by creating corresponding relationship, the SP freezes, fails without any output....
    Note: SP checks for PIN that is entered into WEB application, in certain T1. If exists, it informs user that PIN already has been entered and new one must be of different type. But, I would like the First and Last name to be checked, too, i.e., in newly
    added table T2 I would like LastName and FirstName to be extracted based on entered PIN and, upon that, to have checked these couple LastName AND FirstName in T1 (because, there are rows with missing PIN and fact that result could be more then one line is
    not problem because T1 comprises only cca 300 rows... ) 
    Tables T1 and T2 are not changeable but reference tables...The data entered via interface goes into some other tables...

    Must be because, one person with it's belonging PIN can be entered only once into e.g., T1. Evaluation in the SP checks if entered  PIN is in the T2, which comprises forbidden PINs, LastName, FirstName...etc...But, in some cases i.e., some rows, there
    is missing PIN which is to say that I had to involve new table that comprises all possible values for PINs based on which I would like to extract LastName AND FirstName and check it against T2...i.e., check T3.LastName with T2.LastName AND T3.FirstName with
    T2.FirstName...
    But, like Mr.Sorna advised, without table scripts and sample data ...etc...my thread is too ambiguous...I am afraid...

  • Stock Uploading with respect to Old Material Number of Legacy System

    Hi Experts,
    Need Your valuable Inputs,
    As we are Going Go-Live in ECC6.0
    As we have already Uploaded Material Master with the New Material Number (Internal Number Range generated by system )   Material Type, Valuation Class and Moving average indicator and related Fields in Material Master in ECC 6.0.with respect to old material number of Legacy system,
    Now we need to Upload the Stocks and Values with respect to Old Material Number by Using 561 Movement Type in the New system of ECC 6.0 , This New material number and old material number Stock and its Values should match in the New ECC 6.0 . 
    As from the Old Legacy system we have only Old Material Number, Description and its stock, Value, How can we Upload the Stock with respect to Old Material Number ?
    Kindly assist your Inputs.
    Best Regards
    Javeed Ahamed

    you have to have a mapping from old number to new number.
    you can either do it already in your source or you find the number in SAP itself with an ABAP command.
    Usually the old material number is stored in field MARA-BISMT
    if you want add the number in the source, assuming its Excel, then you you can download via SE16 from MARA just 2 fields: MATNR and BISMT. in Excel you can then use the formula VLOOKUP to get the MATNR by looking it up with old number.
    if you are a little familiar with ABAP, and you load stocks by using LSMW, then you can easily get the new material number by adding an ABAP statement to find a material number by old number
    select single  MATNR from mara into wa_MATNR
    where BISMT = oldmaterial.

  • Problem to upload the data into internal table record length more than 6000

    Hi all
            I stuck with this problem from past 3 days. I have to upload the data from excel sheet. iam making it tab delimited and trying to upload from gui_upload. but in the structure of file, we have, one field of 4000 characters, and other fields of 255 characters.
    how can i upload this into internal table . From excel sheet or from tab delimeted or any other format? or any special function module is there?  while iam doing this its truncating the datat 255 characters and not uploading the other fields also...
    can any one of you help me out. ASAP
    thnks in advance

    from one of the forum iam just pasting code which it is used in lsmw, try the same logic in ur code hope it can work.
    you have to create multiple lines with do...enddo loop., like this:
    (assuming excel_long_text-text is 924 characters long, 7 lines X 132 char)
    __GLOBAL_DATA__
    data: offset type i,
    text_132(132) type c.
    __BEGIN_OF_RECORD__ Before Using Conversion Rules
    Rule : Default Settings Modified
    Code: /sapdmc/ltxtl = init_/sapdmc/ltxtl.
    CLEAR offset.
    DO 7 TIMES.
    text_132 = excel_long_text-text+offset(132).
    offset = offset + 132.
    __END_OF_RECORD__ After Using Conversion Rules
    Rule : Default Settings Modified
    Code: transfer_record.
    ENDDO.
    also check this
    COMMIT_TEXT
    To load long text into SAP
    READ_TEXT
    To load long text into SAP

  • ERROR while uploading the data into ztable with background processing

    Hi gurus,
    i am trying to upload the data from excel file to internal table 
    its working fine ..
    but........
    if i try to upload the data with background processing , in sm37 it is saying "error during the upload of clipboard contents".
    Regards,
    Sri

    Hi,
    FM GUI_UPLOAD doesnt work in background, use dataset to upload it from application server.
    refer below code
    *--Local Variables
      DATA : l_file  TYPE string,
             l_line  TYPE string,
             l_index TYPE sy-tabix.
    *--Clear
      CLEAR : l_file.
      l_file = p_ipfile.
    *--Read the data from application server file.
      OPEN DATASET l_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
    *--Error in opening file
        MESSAGE i368(00) WITH text-005.
      ENDIF.
    *--Get all the records from the specified location.
      DO.
        READ DATASET l_file INTO l_line.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT l_line AT cl_abap_char_utilities=>horizontal_tab
                          INTO st_ipfile-vbeln
                               st_ipfile-posnr
                               st_ipfile-edatu
                               st_ipfile-wmeng.
          APPEND st_ipfile TO it_ipfile.
        ENDIF.
      ENDDO.
    Regards,
    Prashant

Maybe you are looking for