Inserting data in ztable

Hi Frd
I wants to insert data in ztable.can anyone tell me how to do that .
thanks
by
Pari

Using Table Maintenance Generator
Go to SE11, give the table name and click on change. Then Go to utilities--> Table
maintenance generator.
In the table maintenance generator screen, we should give Authorization Group,
Function Group name (Function Group name can be same as table name),
Maintenance type can be one step or two step, usually we will create with one
step. we should give maintenance screen number. After clicking on create button,
a table maintenance generator will be created.
To check it go to SM30 . In SM30, we find display, Maintain options.
We can view the table contents by choosing Display and we can create table
entries by choosing Maintain.
Have a look at below link for more details:
[Table Maintenance|http://help.sap.com/saphelp_nw04/helpdata/en/67/86b0f5415811d1893d0000e8323c4f/frameset.htm]
I hope it helps.
Thanks,
Vibha
Please mark all the useful answers

Similar Messages

  • Inserting data into Ztable

    Hi frnds,
    I am directly Inerting data in Ztable. But i am not able to please do need ful help.
    CONSTANTS:  mandt       TYPE  zdealer-mandt  VALUE   '400',
              zbp_sales_org   TYPE  zdealer-zbp_sales_org  VALUE '50000135',
             zbp_distr_chann TYPE  zdealer-zbp_distr_chann VALUE '10',
               ZBP_DIV    TYPE  zdealer-ZBP_DIV  VALUE  '01'.
    DATA : BEGIN OF gt_upload OCCURS 0,
            zbp_so_pa          TYPE  zdealer-zbp_so_pa,
            zbp_terr_id        TYPE  zdealer-zbp_terr_id,
            zcity_class        TYPE  zdealer-zcity_class,
            zbp_tso            TYPE  zdealer-zbp_tso,
            zbp_sale_sup       TYPE  zdealer-zbp_sale_sup,
            zbp_area_man       TYPE  zdealer-zbp_area_man,
            zbp_regio_man      TYPE  zdealer-zbp_regio_man,
            zbp_div_man        TYPE  zdealer-zbp_div_man,
            zbp_mkt_man        TYPE  zdealer-zbp_mkt_man,
            zbp_gen_man        TYPE  zdealer-zbp_gen_man,
            zbp_mkt_spoc       TYPE  zdealer-zbp_mkt_spoc,
            zbp_prod_spoc      TYPE  zdealer-zbp_prod_spoc,
            zbp_plant_spoc     TYPE  zdealer-zbp_plant_spoc,
            zbp_acc_spoc       TYPE  zdealer-zbp_acc_spoc,
            zbp_comm_spoc      TYPE  zdealer-zbp_comm_spoc,
            zbp_del_spoc       TYPE  zdealer-zbp_del_spoc,
            zbp_techno         TYPE  zdealer-zbp_techno,
            zbp_qsg_spoc       TYPE  zdealer-zbp_qsg_spoc,
            zbp_sales_off      TYPE  zdealer-zbp_sales_off,
            ZBP_SOURCE_SPOC    TYPE  zdealer-ZBP_SOURCE_SPOC,           "+
            ZBP_SALES_UNIT     TYPE  zdealer-ZBP_SALES_UNIT,            "+
            ZBP_APHS_BM        TYPE  zdealer-ZBP_APHS_BM,               "+
            ZAP_HL_BM          TYPE  zdealer-ZAP_HL_BM,                 "+
            ZBP_AP_HL_MAN      TYPE  zdealer-ZBP_AP_HL_MAN,             "+
            ZBP_AP_SUPER       TYPE  zdealer-ZBP_AP_SUPER,              "+
    END OF gt_upload.
    DATA zdealer_wa TYPE zdealer.
    DATA : p_file TYPE string.
                   SELECTION  SCREEN
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : p_fname1(100) TYPE c OBLIGATORY.
    SELECTION-SCREEN : END OF BLOCK b1.
                  AT  SELECTION  SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname1.
      PERFORM f4_filename USING p_fname1.
                  START OF SELECTION
    START-OF-SELECTION.
      PERFORM file_upload.
      LOOP AT gt_upload.
        CLEAR zdealer_wa.
        zdealer_wa-mandt                    =     mandt.
        zdealer_wa-zbp_so_pa             =     gt_upload-zbp_so_pa.
        zdealer_wa-zcity_class             =     gt_upload-zcity_class.
        zdealer_wa-zbp_tso            =     gt_upload-zbp_tso .
        zdealer_wa-zbp_sale_sup             =     gt_upload-zbp_sale_sup.
        zdealer_wa-zbp_area_man           =     gt_upload-zbp_area_man.
        zdealer_wa-zbp_regio_man     =     gt_upload-zbp_regio_man.
        zdealer_wa-zbp_div_man             =     gt_upload-zbp_div_man .
        zdealer_wa-zbp_mkt_man          =     gt_upload-zbp_mkt_man .
        zdealer_wa-zbp_gen_man        =     gt_upload-zbp_gen_man .
        zdealer_wa-zbp_mkt_spoc       =     gt_upload-zbp_mkt_spoc.
        zdealer_wa-zbp_prod_spoc     =     gt_upload-zbp_prod_spoc.
        zdealer_wa-zbp_plant_spoc     =     gt_upload-zbp_plant_spoc.
        zdealer_wa-zbp_acc_spoc       =     gt_upload-zbp_acc_spoc  .
        zdealer_wa-zbp_comm_spoc      =     gt_upload-zbp_comm_spoc .
        zdealer_wa-zbp_del_spoc       =     gt_upload-zbp_del_spoc  .
        zdealer_wa-zbp_techno         =     gt_upload-zbp_techno    .
        zdealer_wa-zbp_qsg_spoc       =     gt_upload-zbp_qsg_spoc  .
        zdealer_wa-zbp_sales_org      =     zbp_sales_org .
        zdealer_wa-zbp_distr_chann      =     zbp_distr_chann.
        zdealer_wa-zbp_div              =     zbp_div         .
        zdealer_wa-zbp_sales_off        =     gt_upload-zbp_sales_off   .
        zdealer_wa-ZBP_SOURCE_SPOC    =      gt_upload-ZBP_SOURCE_SPOC.
        zdealer_wa-ZBP_SALES_UNIT     =      gt_upload-ZBP_SALES_UNIT.
        zdealer_wa-ZBP_APHS_BM        =      gt_upload-ZBP_APHS_BM.
        zdealer_wa-ZAP_HL_BM          =      gt_upload-ZAP_HL_BM.
        zdealer_wa-ZBP_AP_HL_MAN      =      gt_upload-ZBP_AP_HL_MAN.
        zdealer_wa-ZBP_AP_SUPER       =      gt_upload-ZBP_AP_SUPER.
        INSERT into zdealer values zdealer_wa.
    *modify zdealer from zdealer_wa.
        CLEAR gt_upload.
      ENDLOOP.
      COMMIT WORK.
    *&      Form  f4_filename
    FORM f4_filename  USING file.
      DATA : l_it_filetable TYPE filetable,
             wa_filetable LIKE LINE OF l_it_filetable,
             l_rc TYPE i.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        CHANGING
          file_table              = l_it_filetable
          rc                      = l_rc
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          not_supported_by_gui    = 4
          OTHERS                  = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      IF sy-subrc = 0 AND l_rc = 1.
        READ TABLE l_it_filetable INTO wa_filetable INDEX 1.
        file = wa_filetable-filename.
      ENDIF.
    ENDFORM.                    " f4_filename
    *&      Form  FILE_UPLOAD
          text
    -->  p1        text
    <--  p2        text
    FORM file_upload .
      CLEAR p_file.
      MOVE : p_fname1 TO p_file.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = p_file
          has_field_separator     = 'X'
        CHANGING
          data_tab                = gt_upload[]
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
      IF sy-subrc <> 0.
        MESSAGE i039(zaba)
        WITH 'Error in Upload. Error code --> ' sy-subrc.
        STOP.
      ENDIF.
    ENDFORM.                    " FILE_UPLOAD
    Regards,
    Mehul.

    Hi Mehul,
      do not do so many accesses to the DB. It is performance wasting. Do insert after whole loop
    DATA zdealer_lt TYPE TABLE OF zdealer.
    CLEAR zdealer_wa.
    LOOP AT gt_upload.
    zdealer_wa-mandt = mandt.
    zdealer_wa-zbp_so_pa = gt_upload-zbp_so_pa.
    zdealer_wa-zcity_class = gt_upload-zcity_class.
    zdealer_wa-zbp_tso = gt_upload-zbp_tso .
    zdealer_wa-zbp_sale_sup = gt_upload-zbp_sale_sup.
    zdealer_wa-zbp_area_man = gt_upload-zbp_area_man.
    zdealer_wa-zbp_regio_man = gt_upload-zbp_regio_man.
    zdealer_wa-zbp_div_man = gt_upload-zbp_div_man .
    zdealer_wa-zbp_mkt_man = gt_upload-zbp_mkt_man .
    zdealer_wa-zbp_gen_man = gt_upload-zbp_gen_man .
    zdealer_wa-zbp_mkt_spoc = gt_upload-zbp_mkt_spoc.
    zdealer_wa-zbp_prod_spoc = gt_upload-zbp_prod_spoc.
    zdealer_wa-zbp_plant_spoc = gt_upload-zbp_plant_spoc.
    zdealer_wa-zbp_acc_spoc = gt_upload-zbp_acc_spoc .
    zdealer_wa-zbp_comm_spoc = gt_upload-zbp_comm_spoc .
    zdealer_wa-zbp_del_spoc = gt_upload-zbp_del_spoc .
    zdealer_wa-zbp_techno = gt_upload-zbp_techno .
    zdealer_wa-zbp_qsg_spoc = gt_upload-zbp_qsg_spoc .
    zdealer_wa-zbp_sales_org = zbp_sales_org .
    zdealer_wa-zbp_distr_chann = zbp_distr_chann.
    zdealer_wa-zbp_div = zbp_div .
    zdealer_wa-zbp_sales_off = gt_upload-zbp_sales_off .
    zdealer_wa-ZBP_SOURCE_SPOC = gt_upload-ZBP_SOURCE_SPOC.
    zdealer_wa-ZBP_SALES_UNIT = gt_upload-ZBP_SALES_UNIT.
    zdealer_wa-ZBP_APHS_BM = gt_upload-ZBP_APHS_BM.
    zdealer_wa-ZAP_HL_BM = gt_upload-ZAP_HL_BM.
    zdealer_wa-ZBP_AP_HL_MAN = gt_upload-ZBP_AP_HL_MAN.
    zdealer_wa-ZBP_AP_SUPER = gt_upload-ZBP_AP_SUPER.
    append zdealer_wa to zdealer_it.
    ENDLOOP.
    INSERT zdealer FROM TABLE zdealer_it.
    COMMIT WORK.
    Regards,
      Karol

  • How to insert data in Ztable from Non Sap tables like Msaccess table

    hi
      i want to know how to insert data in sap Ztable from non Sap table for example i have a non Sap application developed in Visual basic as Front end and data base in Sql2000. i want retrive data fron sql table into Ztable of SAp.
    Regards,
    Manish Gangwal

    look F1 for EXEC SQL and that link:
    Re: SQL Table

  • How to Insert Data in Ztable Using table Control

    Hi All,
      Please give some ideas of how to store the data from table control into the ztable database.
    There is a table control in which the end user enters the data manually and clicks the save button. Then, the data from the table control will go and store in the ztable.
    regards
    Vicky Kumar

    Hi Vicky,
    are you talking about ABAP transaction SE11 or about creating tables in the SAP HANA directly, i.e. in the HANA Modeler perspective?
    Cheers,
      Jasmin

  • How to insert data into a  Ztable by using module pool programming??

    Hi,
    I am new to ABAP, Actually I have made a Ztable now I want to insert data by using the module pool programming. In which there are all field in the first screen and there is a save button. So when ever i press SAVE button it shud update the Ztable with new entries.But actually I am not getting How can i update that??can you please send me the code for inserting data.
    Thanks in Advance.
    Edited by: Swapna Ram on Feb 17, 2008 12:01 AM

    Swapna,
    Check this thread...
    Custom Table updation thru table control
    ALso check this..
    Dialog programming

  • Inserting standard table data using ztable

    Hi all,
               I have an issue like i have created "ztable" where i am taking few of the mara table fields.
    but my problem is i m not getting data into these fields , so can anyone tell me wht shuld be done to get the data into my ztable which will contain all these fields.
    <code>
    tables : mara.
    data : begin of itab occurs 0,
           matnr like mara-matnr,
           ersda like mara-ersda,
           ernam like mara-ernam,
           vpsta like mara-vpsta,
           mtart like mara-mtart,
           mbrsh like mara-mbrsh,
           matkl like mara-matkl,
           meins like mara-meins,
           end of itab.
    data : wa like line of itab.
    select matnr ersda ernam vpsta mtart mbrsh matkl meins from mara into corresponding fields of table itab .
    what should be done , shuld i use INSERT INTO "ZTABLE FROM ITAB.
    PLZZ SUGGEST.
    Thanks,
    karan

    navneet its working now but ztable_12 where i am inserting data its not getting any data why?
    below is my code.
    <code>
    tables : mara.
    data : begin of itab occurs 0,
           matnr like mara-matnr,
           ersda like mara-ersda,
           ernam like mara-ernam,
           vpsta like mara-vpsta,
           mtart like mara-mtart,
           mbrsh like mara-mbrsh,
           matkl like mara-matkl,
           meins like mara-meins,
           end of itab.
    data : wa like line of itab.
    select matnr ersda ernam vpsta mtart mbrsh matkl meins from mara into corresponding fields of table itab .
    append itab.
    INSERT ztable_12 from table itab.
    </code>
    thnks karan

  • How to insert data from webdypro form to ztable

    hi all,
    i have created one webdynpro form and i have created one ztable in sap system.
    when ever i have to give information in input fields in webdypro page, at that time the information should go to ztable in sap system.
    i am developing in webdynpro in abap.
    i am using sap ecc6.0 version, please help in this area.
    please help me how to link from webdypro page and ztable.
    how many ways to update the data into ztable thru web dypro abap system.
    thanks and regards,
    sai siva kumar

    I should think it would be possible to update the ztable using a BAPI, called from the ABAP webdynpro.
    The Web Dynpro ABAP might be able to help you better.
    Hope this helps.
    Sudha

  • Error while uploading data to ztable from excel file

    Hi,
    I have a requirement where i have to upload data from excel file to ztable.I have used the fm 'ALSM_EXCEL_TO_INTERNAL_TABLE' for reading the excel file.After reading the excel file i have used INSERT zrb_hdr from table t_zrb_hdr for updating the ztable with data .
    here it is giving error as the data base table zrb_hdr and the internal table t_zrb_hdr should be declared of same type .
    I got this error b'coz i have changed the date and time fields in t_zrb_hdr table to char type.so the structure of zrb_hdr and t_zrb_hdr are not same.If i don't change the date and time fields,in the o/p i am not getting proper date and time formats.
    now how can i upload data into ztable?

    Hi,
    Try this.
    Data: itab type standard table of ztable,
             wa_itab type ztable.
    loop at t_zrb_hdr into wa_t_zrb_hdr.
       wa_itab-date = wa_t_zrb_hdr-date.
       wa_itab-time = wa_t_zrb_hdr-time.
       like  move all the fiedl to wa_itab...........
       append itab with wa_itab.
    Endloop.
    now insert the records from itab to the database table ztable.
    Thanks,
    Muthu.

  • I need insert /update/modify  ztable from  internal table or work area

    I have one simple problem.
    TYPES: BEGIN OF t_account,
            acc_no          LIKE zztaccountheader-acc_no,
            cust_id         LIKE zztaccountheader-cust_id,
            acc_type        LIKE zztaccountheader-acc_type,
            od_option       LIKE zztaccountheader-od_option,
            od_limit        LIKE zztaccountheader-od_limit,
            od_issue_date   LIKE zztaccountheader-od_issue_date,
            END OF t_account.
    data: lwa_account TYPE  t_account,
         li_account TYPE STANDARD TABLE OF t_account,
    bu scerrin i am inputing data :
    i want modify updare or insert record into ztable by work area  i put following thing
    MOVE : zztaccountheader-acc_no        TO lwa_account-acc_no,
               zztcustomer-cust_id            TO lwa_account-cust_id,
               zztaccountheader-acc_type      TO lwa_account-acc_type,
               zztaccountheader-od_option     TO lwa_account-od_option,
               zztaccountheader-od_limit      TO lwa_account-od_limit,
               zztaccountheader-od_issue_date TO lwa_account-od_issue_date.
        INSERT   zztaccountheader CLIENT SPECIFIED FROM lwa_account .
        CLEAR lwa_account.
      ENDIF.
    i am etting error
    The type of the database table and work area (or internal table)
    "LWA_ACCOUNT" are not Unicode convertible.
    please solve it

    hi,
    decalre like this.
    tables : zztaccountheader.
    data : t_account like zztaccountheader occurs 0 with header line.
    data: lwa_account TYPE t_account,
    li_account TYPE STANDARD TABLE OF t_account,
    MOVE : zztaccountheader-acc_no TO lwa_account-acc_no,
    zztcustomer-cust_id TO lwa_account-cust_id,
    zztaccountheader-acc_type TO lwa_account-acc_type,
    zztaccountheader-od_option TO lwa_account-od_option,
    zztaccountheader-od_limit TO lwa_account-od_limit,
    zztaccountheader-od_issue_date TO lwa_account-od_issue_date.
    INSERT zztaccountheader CLIENT SPECIFIED FROM lwa_account .
    CLEAR lwa_account.
    ENDIF.
    rgss
    anver
    if hlped mark points

  • Problem inserting data into database (increment problem)

    I have a servlet page that gets various data from a bean and executes multiple SQL statements to store this data. Beacuase i want to insert data into a number of tables that are related with a one to many relationship I am not using the auto increment function in mySQL. Instead i have created a counter bean that increments each time the servlet is involked. I am using this counter to set the primary key ID in the quesiton table that i insert data into and I am alos inserting it into another table as a foreign key which relates a number or records in the outcomes table to one record in the question table. I am havin a few problems getting it to work.
    Firstly the bean counter works but when the tomcat server is shutdown the counter is reset which will cause conflicts in the database no doubt and secondly even though i have not shut my server down i seem to be getting the following error saying there is a duplicate key even though there is no data in the database.
    Here is the exception.
    javax.servlet.ServletException: Duplicate entry '4' for key 1     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
    org.apache.jsp.authoring.question_005fmanager.process_005fquestion_jsp._jspService(process_005fquestion_jsp.java:469)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.sql.SQLException: Duplicate entry '4' for key 1
    com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2851)
    com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)     com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1366)     com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:952)     com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1974)     com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1897)     com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1758)     org.apache.jsp.authoring.question_005fmanager.process_005fquestion_jsp._jspService(process_005fquestion_jsp.java:140)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    My code is here
    // gets the feedback string parameters
         if(request.getParameterValues("feedbackBox") != null)
                   String[] feedbackList = request.getParameterValues("feedbackBox");
                   questionData.feedback = feedbackList;
         //gets the session username variable
         String insertQuestion1__username = null;
         if(session.getValue("MM_Username") != null){ insertQuestion1__username = (String)session.getValue("MM_Username");}
         //Creates a new mySQL date
         java.sql.Date currentDate = new java.sql.Date((new java.util.Date()).getTime());
         //goes thorugh each element of the scores array and calculates maxScore 
         questionData.maxScore = 0;
         for (int i = 0; i < questionData.scores.length; i++) {
                   questionData.maxScore = questionData.maxScore + questionData.scores;
         //increments count;
         synchronized(page) {
    appCounter.increaseCount();
         int counter = appCounter.count;
         Driver DriverinsertQuestion = (Driver)Class.forName(MM_connQuestion_DRIVER).newInstance();
         Connection ConninsertQuestion1 = DriverManager.getConnection(MM_connQuestion_STRING,MM_connQuestion_USERNAME,MM_connQuestion_PASSWORD);
         questionData.numOutcomes = questionData.choices.length;
         while (counter != 0)
              int questionID = counter;
              PreparedStatement insertQuestion1 = ConninsertQuestion1.prepareStatement("INSERT INTO Question.question (Question_ID, Topic_ID, Description, Image, Author, Created_Date, Max_Score, Question_Type) VALUES (" + questionID + ", '" + questionData.topicID + "', '" + questionData.questionText + "', '" + questionData.questionImage + "', '" insertQuestion1__username "', '" + currentDate + "', " + questionData.maxScore + ", '" + questionData.questionType + "') ");
              insertQuestion1.executeUpdate();          
         Driver DriverinsertQuestion2 = (Driver)Class.forName(MM_connAnswer_DRIVER).newInstance();
         Connection ConninsertQuestion2 = DriverManager.getConnection(MM_connAnswer_STRING,MM_connAnswer_USERNAME,MM_connAnswer_PASSWORD);
         PreparedStatement insertQuestion2 = ConninsertQuestion2.prepareStatement("INSERT INTO Answer.question (Question_ID, Question_Description, Question_Type, Topic, Number_Outcomes, Question_Wording) VALUES ('" counter "', '" questionData.questionLabel "', '" questionData.questionType "', '" questionData.questionType "', '" questionData.topicID "', '" questionData.numOutcomes "', '" questionData.questionText "' ) ");
         insertQuestion2.executeUpdate();
         Driver DriverinsertOutcomes = (Driver)Class.forName(MM_connAnswer_DRIVER).newInstance();
         Connection ConninsertOutcomes = DriverManager.getConnection(MM_connAnswer_STRING,MM_connAnswer_USERNAME,MM_connAnswer_PASSWORD);
         for (int i=0; i < questionData.numOutcomes; i ++)
         PreparedStatement insertOutcomes = ConninsertOutcomes.prepareStatement("INSERT INTO Answer.outcome (Question_ID, Outcome_Number, Outcome_Text, Score, Feedback) VALUES ( '" counter "', '" i "', '" +questionData.choices[i]+ "', '" +questionData.scores[i]+ "', '" +questionData.feedback[i]+ "' ) ");
         insertOutcomes.executeUpdate();
    Does anyone know where i am going wrong or how to fix this problem. I would like to know wheter i am doing this the right way. Is thjis the most practical way to use a counter bean or is there a better safer way to do it.
    Suggestions would be mcuh appreciated
    Thanks

    hi Narendran,
        i declared itab as follows
    DATA:      tb_final TYPE STANDARD TABLE OF ztable,
                       wa_final TYPE ztable.    "work area
    i am populating tb_final as follows:
                 wa_final-vkorg = wa_ycostctr_kunwe-vkorg.
                  wa_final-vtweg = wa_ycostctr_kunwe-vtweg.
                  wa_final-spart = wa_ycostctr_kunwe-spart.
                  wa_final-kunwe = wa_ycostctr_kunwe-kunwe.
                  wa_final-kondm = wa_ycostctr_kunwe-kondm.
                  wa_final-kschl = wa_ycostctr_2-kschl.
                  wa_final-hkont = wa_ycostctr_2-saknr.
                  wa_final-kostl = wa_ycostctr_kunwe-kostl.
            APPEND wa_final TO tb_final.
                  CLEAR wa_final.
    here i am not populating Mandt field.
    finally in tb_final am not getting the proper data .
    kindly help me.
    Thanks,
    Praveena

  • How to upload data into ztables

    Hi all,
    How to upload data into ztables
    plz sent the detail description as well sa sample programs

    Hi Narendra,
    Sample code to update the Z db table :
    REPORT yupload.
    TABLES ybtab.
    DATA itab LIKE ybtab OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    CODEPAGE = ' '
    filename = 'C:\data.txt'
    filetype = 'DAT'
    HEADLEN = ' '
    LINE_EXIT = ' '
    TRUNCLEN = ' '
    USER_FORM = ' '
    USER_PROG = ' '
    DAT_D_FORMAT = ' '
    IMPORTING
    FILELENGTH =
    TABLES
    data_tab = itab
    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.
    INSERT ybtab FROM TABLE itab.
    ENDIF.
    Schedule this program as a Background Job with required time paramters .
    Regards,
    Ramganesan K.

  • Error while insert data using execute immediate in dynamic table in oracle

    Error while insert data using execute immediate in dynamic table created in oracle 11g .
    first the dynamic nested table (op_sample) was created using the executed immediate...
    object is
    CREATE OR REPLACE TYPE ASI.sub_mark AS OBJECT (
    mark1 number,
    mark2 number
    t_sub_mark is a class of type sub_mark
    CREATE OR REPLACE TYPE ASI.t_sub_mark is table of sub_mark;
    create table sam1(id number,name varchar2(30));
    nested table is created below:
    begin
    EXECUTE IMMEDIATE ' create table '||op_sample||'
    (id number,name varchar2(30),subject_obj t_sub_mark) nested table subject_obj store as nest_tab return as value';
    end;
    now data from sam1 table and object (subject_obj) are inserted into the dynamic table
    declare
    subject_obj t_sub_mark;
    begin
    subject_obj:= t_sub_mark();
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,subject_obj from sam1) ';
    end;
    and got the below error:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7
    then when we tried to insert the data into the dynam_table with the subject_marks object as null,we received the following error..
    execute immediate 'insert into '||dynam_table ||'
    (SELECT

    887684 wrote:
    ORA-00904: "SUBJECT_OBJ": invalid identifier
    ORA-06512: at line 7The problem is that your variable subject_obj is not in scope inside the dynamic SQL you are building. The SQL engine does not know your PL/SQL variable, so it tries to find a column named SUBJECT_OBJ in your SAM1 table.
    If you need to use dynamic SQL for this, then you must bind the variable. Something like this:
    EXECUTE IMMEDIATE 'insert into op_sample (select id,name,:bind_subject_obj from sam1) ' USING subject_obj;Alternatively you might figure out to use static SQL rather than dynamic SQL (if possible for your project.) In static SQL the PL/SQL engine binds the variables for you automatically.

  • Can we insert data directly in standard table

    hi
    how can we insert data in standard table directly.
    pls reply urgently.

    Hi sapna yes u can insert data to the SAP tables, as shown below...
    use the table mara in the place of m
    REPORT  ZTEST_INSERT.
    TABLES: <m>.
    DATA: wa_m TYPE <m>.
    wa_m-ernam = 'ZTEST'.
    insert into <m> VALUES wa_m.
    if sy-subrc = 0.
      WRITE / 'Records inserted Successfully'.
    ENDIF.
    reward if usefull,
    Vishnu. R
    Edited by: vishnu ramanathan on Sep 18, 2008 2:17 PM

  • Can i insert data in my database from a web intelligence report?

    if that's not possible,can I do it from a stored procedure based Universe or with a derived table? Does BusinessObjects in general allow me to execute statements to insert data in my database?

    Hi Erika,
    afaik it is not possible write back to database from web intelligence .
    from dashboards with web services you can achieve this.

  • Not able to insert data in database via forms

    Hi there. i have been trying to insert data into my database, which i am connected to remotely. i have written some sql code for a button.
    INSERT INTO address_repository VALUES('ADD'|| :address.address_id, :address.address_street_num,
    :address.address_street_name, :address.address_suburb, :address.address_postcode, :address.address_state, :address.address_country);
    where the above are the above are textfield items. my code compiles fine, and no errors are displayed on my form, but when i click the button, nothing happens, and the page is busy, and appears to be processing something, but does nothing.

    don't write
    INSERT INTO address_repository VALUES('ADD'|| :address.address_id, :address.address_street_num,
    :address.address_street_name, :address.address_suburb, :address.address_postcode, :address.address_state, :address.address_country);
    write
    INSERT INTO address_repository (address_id, ....., ....., .....
    VALUES('ADD'|| :address.address_id, :address.address_street_num,
    :address.address_street_name, :address.address_suburb, :address.address_postcode, :address.address_state, :address.address_country);
    if the same error is still active, then we look further, ok?

Maybe you are looking for

  • Sometimes doesn't automatically add invitations

    iCal in Leopard has been a huge pain to say the least. I am the IT director for a law firm with 20 attorneys. One of the senior partners upgraded to 10.5 back in December. He's had continuous problems getting the invitations to go from email to iCal

  • ReferenceError: Error #1065: Variable onMediaComplete is not defined.

    Does anyone know what the following means and how I can stop it constantly cropping up - ReferenceError: Error #1065: Variable onMediaComplete is not defined.           at GoogleAnalytics/registerEvents()           at GoogleAnalytics/initialize()    

  • Unable to download library books to my nook

    when i try to download a book to my nook from my local library i get a message saying i do not have authorization, please help

  • Connection to Thunderbird was refused.

    On opening up Thunderbird noticed no emails for 2 days I'm told "Could not connect to mail server. Connection was refused." So cannot send/receive emails! Firefox is working o.k.

  • Creating 1 spool for every 1000 sapscripts

    Hi Friends , I have a program where i am printing W-2 forms (sapscripts) . There are a total of 3000 forms . I need to be able to split them into 3 spools of 1000 each instead of creating 3000 spools . Please advise as to wat parameters need to be se