Regarding updating data into ztable

hi all,
     When i am updating data into ztable .
Old record is deleted and new record is created
What will be the problem.
Please suggest.
Regards
Rami

Hi,
pz use ur syntax this way.
UPDATE zo9_user_status
                SET  sub_date = sy-datum
                     sub_time = sy-uzeit
                     status = g_wa_outtab-status
       WHERE  representative = g_wa_outtab-representative AND
                       selection_id = g_wa_outtab-selection_id AND
                       sub_date = g_wa_outtab-sub_date AND
                       sub_time = g_wa_outtab-sub_time AND
                       superior = g_wa_outtab-superior.
        IF sy-subrc EQ 0.
          COMMIT WORK.
          l_error = 'X1'.
        ELSE.
          l_error = 'X2'.
          CLEAR l_error.
          ROLLBACK WORK.
        ENDIF.
hope this helps.
thanx.

Similar Messages

  • Regarding updating data to ztable

    Hi,
    pls help me,
    My querry is :
    I have a ztable, i have to find from which program this ztable was updating?
    how can i find this?
    Thanks & Regards,
    siva.

    Go to SE11.
    Put ur Ztable name.
    Then u can see a button name "where used list" just above it.
    Press it.
    Then only select check box Program. Then ok.
    It will show list of program.
    The try to find out in which program the table is getting modified ..
    reward if helpful.

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

  • How to get new and updated data into LO Excel in Xcelsius

    Dear Experts,
    I have created dashboard on top of webi report by using Live-Office connection. Latest data of webi report is imported into excel and mapped data with components and generated SWF file and exported into server.
    To day my webi report has latest instance with new and updated data. But until unless by clicking "Refresh All Objects" i am not getting updated data into excel.
    When i am trying to open dashboard in BI Launch Pad/CMC it is showing data whatever exist in excel(i.e yesterday data). But here we need to show data of latest instance of webi report.(i.e New and updated data as of now).
    I have selected option "Latest instance: From latest instance scheduled by" in "refresh options".
    My Question & Doubts:
    1) Is it mandatory to open dashboard every day and need to click on "Refresh All Objects" to get updated data into excel or dashboard.
    2) Is there any option to automate this process.
    Regards,
    PRK.

    Hi,
    Schedule the webi report to get the latest data from the source. To answer your query no is doesn't require to open the dashboard every time to refresh the excel to get the latest data.
    Please use the Refresh Before Components are Loaded: Select this option to refresh the data each time the model loads and to use that data as the initial data for the model (using a Reset Button component, it will reset the data to the values from the last time the model was loaded).
    You are using the Live Office  so here automatic refresh is not possible without touch the swf file, you need to use the refresh but to get the latest data. If you are using QAAWS, Web Service & XML then automatic refresh is possible.
    For more information please check the below document for in-depth idea on the design pattern.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b02e31fb-3568-2e10-e78f-92412c3c0a96?overridelayout=t…
    Kindly revert for more clarification!!!
    --SumanT

  • WHAT IS PROCEDURE TO UPDATE DATA INTO DATA TARGETS?

    Hi,
    Experts,
    WHAT IS PROCEDURE TO UPDATE DATA INTO DATA TARGETS?
    FULL and DELTA.
    Thnx&regds,
    prerna

    Hi...........
    For both BW 3.X and BI 7.0........replicate the datasource in the BW side and activate it.............if require create Generic datasource and replicate it........
    In BW 3.X.....
    1) Create infosource
    2) Create transfer rules and update rules
    3) Create an infopackage...............with update mode full update( Update tab),in the Processing tab you can make it PSA and then into data targets........only data targets..........or PSA and data targets parallely...............
    For Delta load..........1),2) is same...........
    3) then you have to create a full Upload IP...........and you have to run it first..........
    4) Then you have run a init IP without data transfer to det the init flag
    5) then run Delta IP........
    Init and delta upload will be always without selection......
    BI 7.0 :
    1) Create an infopackage and load data till PSA..............
    2) create transformation between PSA and data targets.....
    3) The create a DTP and load data to the target.............depending on your requirements you DTP can be full or delta..........
    Check the following links :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/02c52ce87e2c9ce10000000a1553f6/frameset.htm
    http://help.sap.com/search/highlightContent.jsp
    http://help.sap.com/search/highlightContent.jsp
    http://help.sap.com/saphelp_nw70/helpdata/EN/b9/2d9778476b11d4b2b40050da4c74dc/frameset.htm
    Hope this helps you......
    Regards,
    Debjani..........
    Edited by: Debjani  Mukherjee on Sep 14, 2008 1:43 PM

  • Unable to Update data in Ztable (dbase) through Table Control.

    Hi Experts.
    I am able to pull dta from Ztable into table control and also able to insert a new line and delete a row from table control. But after trying a lot I am unbale to pass the same from Table control to Ztable.
    Any ideas. Seems like here Update of Ztable needs some different treatment.
    PLZ LOOK into the code in red only. rest are for reference.
    The code on the Flow Logic Screen:
    PROCESS BEFORE OUTPUT.
      module init_100.
      LOOP At it_auftrag1 with CONTROL tctrl1 cursor tctrl1-current_line.
      ENDLOOP.
    PROCESS AFTER INPUT.
    LOOP AT it_auftrag1.
       Module modify_it_auftrag1.
    ENDLOOP.
    MODULE fcode_100.
    MODULE USER_COMMAND_9000.
    The code on main Screen (Mod. Pool Screen ) follows:
    PROGRAM  SAPMZDEMO_MPOOL_06.
    TABLES: ZLT_Auftrag1, ZLT_Kunde.
    DATA: fcode2(4), fcode(4).    "OK_Code.
    CONTROLS : tctrl1 type TABLEVIEW USING SCREEN '9000'.
    DATA: col TYPE cxtab_column.
    DATA: demo_cprop, demo_tprop.
    DATA:  Begin Of it_Auftrag1 occurs 20,
            marked.
            include structure ZLT_auftrag1.
    DATA:  END OF it_Auftrag1.
    DATA: linno TYPE i.
    DATA: fld(20).
    DATA: off TYPE i.
    module fcode_100 input.
    endmodule.                 " fcode_100  INPUT
    module modify_it_auftrag1 input.
      modify it_Auftrag1 index tctrl1-current_line.
    endmodule.                 " modify_it_auftrag1  INPUT
    module init_100 output.
      set pf-status 'ZSTATUS01'.
      Describe Table it_auftrag1  lines  tctrl1-lines.   "TO add Scroll Bar to Table Control1
      UPDATE ZLT_Auftrag1 From it_auftrag1.
    endmodule.                 " init_100  OUTPUT
    module USER_COMMAND_9000 input.
       CASE sy-ucomm.
    *To Populate Data into Kunde through Pushbuttons
        When 'OK_GETK'.
            IF ZLT_Kunde-K1 is NOT INITIAL.
                SELECT SINGLE *
                FROM  ZLT_Kunde
                Where K1 = ZLT_KUNDE-K1.
               IF ZLT_Kunde-K1 is NOT initial.
                  Select *
                  From ZLT_Auftrag1
                  INTO Corresponding fields of TABLE it_auftrag1
                  Where A3 = ZLT_Kunde-K2.
               ENDIF.
            ELSE.
                MESSAGE S000(8i) With 'Enter Kunde Name'.
            ENDIF.
      when 'DELL'.
    * remove marked lines
           delete it_auftrag1.
          loop at it_auftrag1 where marked = 'X'.
          UPDATE ZLT_Auftrag1 From it_auftrag1.
          endloop.
          if sy-subrc <> 0.
            get cursor field fld line linno offset off.
            set cursor field fld line linno offset off.
            if fld cp 'IT_auftrag1*' and sy-subrc = 0.
              linno = linno + tctrl1-top_line - 1.
              delete it_auftrag1 index linno.
              tctrl1-lines = tctrl1-lines - 1.
            endif.
          endif.
       When 'INSL'.
    * insert line above cursor position
          get cursor field fld line linno offset off.
          set cursor field fld line linno offset off.
          if fld cp 'IT_auftrag1*' and sy-subrc = 0.
            if linno >= 1.
              linno = linno + tctrl1-top_line - 1.
              clear it_auftrag1.
              insert it_auftrag1 index linno.
              tctrl1-lines = tctrl1-lines + 1.
            else.
              clear it_auftrag1.
              append it_auftrag1.
              tctrl1-lines = tctrl1-lines + 1.
            endif.
          endif.
         When 'SAVE'.
         loop at it_auftrag1 where marked = 'X'.
    *        Modify it_Auftrag1.
            Modify ZLT_Auftrag1 From it_Auftrag1.
          Endloop.
            IF sy-subrc = 0.
             MESSAGE s000(8i) With 'Data Saved'.
           ENDIF.
       When 'BACK'.
           Leave Program.
        When 'OK_CLEAR'.
          Clear : ZLT_KUNDE, ZLT_AUFTRAG1, it_auftrag1.
    ENDCASE.
    endmodule.                 " USER_COMMAND_9000  INPUT
    Looking forward for your advice,
    Regards
    Chandan

    Hi Venkat,
    Thanks again. I will try ur suggestion too. In the meanwhile I did the following changes in the code:
    Purpose: After data is getting pulled from dbase table (ZLT_Auftrag1) into internal table it_auftrag1 then and just after I press the button delete ( i.e. When the user command starts: When 'DELL' )
    then I delete all the contents reflecting in it_auftrag1 from ZLT_Auftrag1, Now the Ztable is empty but it_auftrag1 holds all values. futher when loop starts then the Marked line gets deleted. Now at this stage the it_Auftrag1 contains all data of ZLT_auftrag1 except the line that I want to delete. If I am able to MODIFY  the ZLT_auftrag1 from it_Auftrag1 at this stage then ZLT_Auftrag1 will again be populated with all those data except the line that I want to delete.
    Here goes the code that I modified ( ref the code in my 1st post in red to compare)
       WHEN 'DELL'.
    * remove marked lines
    *      If it_Auftrag1-Marked = 'X'.
            DELETE from ZLT_Auftrag1 where A3 = ZLT_kunde-K2.
    *      ENDIF.
          IF sy-subrc = 0.
                loop at it_auftrag1 where marked = 'X'.
                 DELETE it_auftrag1.
    *             INSERT ZLT_Auftrag1 From TABLE it_auftrag1 accepting duplicate keys.
    *             UPDATE ZLt_auftrag1 from TABLE it_auftrag1.
    *             MODIFY ZLT_Auftrag1 From TABLE it_auftrag1.
                endloop.
    *            INSERT ZLT_Auftrag1 From TABLE it_auftrag1.
    *             UPDATE ZLt_auftrag1 from TABLE it_auftrag1.
    *             MODIFY ZLT_Auftrag1 From TABLE it_auftrag1.
    *        If sy-subrc = 0.
    *          MESSAGE S000(8i) With 'Data Deleted from Database'.
    *        ENDIF.
          ENDIF.
            MODIFY  ZLT_Auftrag1 from it_Auftrag1.  ==> This modification doesn't works.
             If sy-subrc = 0.
              MESSAGE S000(8i) With 'Data Deleted from Database'.
            ENDIF.
          if sy-subrc <> 0.
            get cursor field fld line linno offset off.
            set cursor field fld line linno offset off.
            if fld cp 'IT_auftrag1*' and sy-subrc = 0.
              linno = linno + tctrl1-top_line - 1.
              delete it_auftrag1 index linno.
              tctrl1-lines = tctrl1-lines - 1.
            endif.
          endif.
    Looking forward for your suggestions.
    Regards
    Chandan

  • Upload data into ztable

    Hi all,
    i need to upload data from notepad into ztables.  what is the best method of doing it?  do we use gui upload? when do we use BDC and when to go for LSMW?  Thanks in advance.

    Hi Lathika,
    For uploading data from notepad to ztable you can use GUI_UPLOAD function module. If you have to upload legacy data into some standard transaction such as MM02 then you can use a BDC or LSMW.
    LSMW is a ready  tool provided by SAP and you have to follow some 17 steps to migrate data. In batch input method ,you need to do recording for the transaction concerned.BDCs Session method is the better choice because of some advantages over call transaction. But call transaction useful to do immediate updation of small amount of data. (In call transaction developer has to handle errors).
    Thanks & Regards
    Subathra

  • Dead lock error while updating data into cube

    We have a scenario of daily truncate and upload of data into cube and volumes arrive @ 2 million per day.We have Parallel process setting (psa and data targets in parallel) in infopackage setting to speed up the data load process.This entire process runs thru process chain.
    We are facing dead lock issue everyday.How to avoid this ?
    In general dead lock occurs because of degenerated indexes if the volumes are very high. so my question is does deletion of Indexes of the cube everyday along with 'deletion of data target content' process help to avoiding dead lock ?
    Also observed is updation of values into one infoobject is taking longer time approx 3 mins for each data packet.That infoobject is placed in dimension and defined it as line item as the volumes are very high for that specific object.
    so this is over all scenario !!
    two things :
    1) will deletion of indexes and recreation help to avoid dead lock ?
    2) any idea why the insertion into the infoobject is taking longer time (there is a direct read on sid table of that object while observed in sql statement).
    Regards.

    hello,
    1) will deletion of indexes and recreation help to avoid dead lock ?
    Ans:
    To avoid this problem, we need to drop the indexes of the cube before uploading the data.and rebuild the indexes...
    Also,
    just find out in SM12 which is the process which is causing lock.... Delete that.
    find out the process in SM66 which is running for a very long time.Stop  this process.
    Check the transaction SM50 for the number of processes available in the system. If they are not adequate, you have to increase them with the help of basis team
    2) any idea why the insertion into the infoobject is taking longer time (there is a direct read on sid table of that object while observed in sql statement).
    Ans:
    Lie item dimension is one of the ways to improve data load as well as query performance by eliminationg the need for dimensin table. So while loading/reading, one less table to deal with..
    Check in the transformation mapping of that chs, it any rouitne/formula  is written.If so, this can lead to more time for processing that IO.
    Storing mass data in InfoCubes at document level is generally not recommended because when data is loaded, a huge SID table is created for the document number line-item dimension.
    check if your IO is similar to doc no...
    Regards,
    Dhanya

  • 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/Update date into Dictionary Table?

    Dear Experts,
    I have created a Dictionary Project and Deployed.I think the table had created in portal database.
    now i want to insert some data into that table?
    Can you plz tell me how to access the table using Abstract Portal Component using DynPage.
    Waiting for ur replies...
    Thanks and Regards,
    Visweswar.

    Hi
    Can u share the Logic???

  • Update data into Cube from 2 ODS

    Hello Guys !
    I have error in updating data from my 2 ODS to Mu infoCube.
    I get this error :
    10 records sent (0 received)
    Any one have some idea why it doesn't work.

    I have 2 ODS, I need to update my infocube with these 2 ODS.
    on the ods context Menu : Update ODS data into Target ...
    I get a Yellow Icon on the monitor.
    on the details tab under Extraction, I get a yellow warning :
    it says : 10 records sent (0 records received)
    I'll check out the updates rules between ODS and my Cube.
    thanks for your help.

  • Problem updating data into ms access database

    Hi! I need to update a database based on user's entries. But I have a problem with the updating code. Can some1 help? Here is my whole servlet's code :
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class editstaff extends HttpServlet
      static Connection link;
      static Statement statement;
      static ResultSet results;
      public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException
        response.setContentType("text/HTML");
        PrintWriter out = response.getWriter();
        out.println("<HTML>");
        out.println("<HEAD>");
        out.println("<TITLE>Edit Staff Particulars</TITLE>");
        out.println("</HEAD>");
        out.println("<BR><BR>");
        out.println("<BODY>");
        String staff = request.getParameter("name");
           try
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            link = DriverManager.getConnection("jdbc:odbc:occ","","");
          catch(ClassNotFoundException e)
            System.out.println("Sorry! Unable to load driver. Pls try again later.");
            System.exit(1);
          catch(SQLException e)
            System.out.println("Sorry! Unable to connect to the database. Pls try again later.");
            System.exit(1);
         try
            statement=link.createStatement();
            String select = "SELECT * FROM Staff WHERE Name =  '" + staff+"'";//name taken from html page
             results = statement.executeQuery(select);
            out.println("<table border=1>");
            out.println("<tr>");
            out.println("<th bgcolor=orchid>Name</th>");
            out.println("<th bgcolor=orchid>IC</th>");
            out.println("<th bgcolor=orchid>Staff_ID</th>");
            out.println("<th bgcolor=orchid>Date_Joined</th>");
            out.println("<th bgcolor=orchid>Address</th>");
            out.println("<th bgcolor=orchid>Date_of_Birth</th>");
            out.println("<th bgcolor=orchid>Designation</th>");
            out.println("<th bgcolor=orchid>Driving_License</th>");
            out.println("<th bgcolor=orchid>Mobile</th>");
            out.println("<th bgcolor=orchid>Home_Tel</th>");
            out.println("<th bgcolor=orchid>E-mail</th>");
            out.println("<th bgcolor=orchid>Section</th>");
            out.println("<th bgcolor=orchid>Department</th>");
            out.println("<th bgcolor=orchid>Course</th>");
            out.println("<th bgcolor=orchid>Date_Trained</th>");
            out.println("<th bgcolor=orchid>Recurrent_Date</th>");
            out.println("<th bgcolor=orchid>Proficiency</th>");
            while (results.next())
              out.println("<tr>");
              out.println("<td>");
              out.println(results.getString(1));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(8));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(9));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(16));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(4));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(6));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(10));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(7));
              out.println("</td>");
              out.println("<td>");
              out.println(new Integer(results.getString(2)));
              out.println("</td>");
              out.println("<td>");
              out.println(new Integer(results.getString(3)));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(5));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(17));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(11));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(12));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(13));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(14));
              out.println("</td>");
              out.println("<td>");
              out.println(results.getString(15));
              out.println("</td>");
              out.println("</tr>");
            out.println("</table>");
            out.println("<BR><BR><BR>");
            out.println("<table border=1>");
            out.println("<tr>");
            out.println("<th>Name</th>");
            out.println("<td><input name=nam type=text id=nam></td>");
            out.println("</tr>");
            out.println("<tr>");
            out.println("<th>IC number</th>");
            out.println("<td><input name=ic type=text id=ic></td>");
            out.println("</tr>");
            out.println("<tr>");
            out.println("<th>Staff ID</th>");
            out.println("<td><input name=ID type=text id=ID></td>");
            out.println("</tr>");
            out.println("<tr>");
            out.println("<th>Date Joined</th>");
            out.println("<td>");
            out.println("<select name=jday size=1 id=jday>");
            out.println("<option>1</option>");
            out.println("<option>2</option>");
            out.println("<option>3</option>");
            out.println("<option>4</option>");
            out.println("<option>5</option>");
            out.println("<option>6</option>");
            out.println("<option>7</option>");
            out.println("<option>8</option>");
            out.println("<option>9</option>");
            out.println("<option>10</option>");
            out.println("<option>11</option>");
            out.println("<option>12</option>");
            out.println("<option>13</option>");
            out.println("<option>14</option>");
            out.println("<option>15</option>");
            out.println("<option>16</option>");
            out.println("<option>17</option>");
            out.println("<option>18</option>");
            out.println("<option>19</option>");
            out.println("<option>20</option>");
            out.println("<option>21</option>");
            out.println("<option>22</option>");
            out.println("<option>23</option>");
            out.println("<option>24</option>");
            out.println("<option>25</option>");
            out.println("<option>26</option>");
            out.println("<option>27</option>");
            out.println("<option>28</option>");
            out.println("<option>29</option>");
            out.println("<option>30</option>");
            out.println("<option>31</option>");
            out.println("</select>");
            out.println("<select name=jmth size=1 id-jmth>");
            out.println("<option>January</option>");
            out.println("<option>February</option>");
            out.println("<option>March</option>");
            out.println("<option>April</option>");
            out.println("<option>May</option>");
            out.println("<option>June</option>");
            out.println("<option>July</option>");
            out.println("<option>August</option>");
            out.println("<option>September</option>");
            out.println("<option>October</option>");
            out.println("<option>November</option>");
            out.println("<option>December</option>");
            out.println("</select>");
            out.println("<select name=jyear size=1 id=jyear");
            out.println("<option>2004</option>");
            out.println("<option>2005</option>");
            out.println("<option>2006</option>");
            out.println("<option>2007</option>");
            out.println("<option>2008</option>");
            out.println("<option>2009</option>");
            out.println("<option>2010</option>");
            out.println("<option>2011</option>");
            out.println("<option>2012</option>");
            out.println("<option>2013</option>");
            out.println("<option>2014</option>");
            out.println("</select></td></tr>");
            out.println("<tr><th>Address</th>");
            out.println("<td><textarea name=add id=add></textarea></td></tr>");
            out.println("<tr><th>Date of Birth");
            out.println("<td>");
            out.println("<select name=bday size=1 id=bday>");
            out.println("<option>1</option>");
            out.println("<option>2</option>");
            out.println("<option>3</option>");
            out.println("<option>4</option>");
            out.println("<option>5</option>");
            out.println("<option>6</option>");
            out.println("<option>7</option>");
            out.println("<option>8</option>");
            out.println("<option>9</option>");
            out.println("<option>10</option>");
            out.println("<option>11</option>");
            out.println("<option>12</option>");
            out.println("<option>13</option>");
            out.println("<option>14</option>");
            out.println("<option>15</option>");
            out.println("<option>16</option>");
            out.println("<option>17</option>");
            out.println("<option>18</option>");
            out.println("<option>19</option>");
            out.println("<option>20</option>");
            out.println("<option>21</option>");
            out.println("<option>22</option>");
            out.println("<option>23</option>");
            out.println("<option>24</option>");
            out.println("<option>25</option>");
            out.println("<option>26</option>");
            out.println("<option>27</option>");
            out.println("<option>28</option>");
            out.println("<option>29</option>");
            out.println("<option>30</option>");
            out.println("<option>31</option>");
            out.println("</select>");
            out.println("<select name=bmth size=1 id=bmth>");
            out.println("<option>January</option>");
            out.println("<option>February</option>");
            out.println("<option>March</option>");
            out.println("<option>April</option>");
            out.println("<option>May</option>");
            out.println("<option>June</option>");
            out.println("<option>July</option>");
            out.println("<option>August</option>");
            out.println("<option>September</option>");
            out.println("<option>October</option>");
            out.println("<option>November</option>");
            out.println("<option>December</option>");
            out.println("</select>");
            out.println("<select name=byear size=1 id=byear>");
            out.println("<option>1946</option>");
            out.println("<option>1947</option>");
            out.println("<option>1948</option>");
            out.println("<option>1949</option>");
            out.println("<option>1950</option>");
            out.println("<option>1951</option>");
            out.println("<option>1952</option>");
            out.println("<option>1953</option>");
            out.println("<option>1954</option>");
            out.println("<option>1955</option>");
            out.println("<option>1956</option>");
            out.println("<option>1957</option>");
            out.println("<option>1958</option>");
            out.println("<option>1959</option>");
            out.println("<option>1960</option>");
            out.println("<option>1961</option>");
            out.println("<option>1962</option>");
            out.println("<option>1963</option>");
            out.println("<option>1964</option>");
            out.println("<option>1965</option>");
            out.println("<option>1966</option>");
            out.println("<option>1967</option>");
            out.println("<option>1968</option>");
            out.println("<option>1969</option>");
            out.println("<option>1970</option>");
            out.println("<option>1980</option>");
            out.println("<option>1981</option>");
            out.println("<option>1982</option>");
            out.println("<option>1983</option>");
            out.println("<option>1984</option>");
            out.println("<option>1985</option>");
            out.println("<option>1986</option>");
            out.println("<option>1989</option>");
            out.println("<option>1990</option>");
            out.println("</select></td></tr>");
            out.println("<tr><th>Designation</th>");
            out.println("<td><input name=designation type=text id=designation></td></tr>");
            out.println("<tr><th>Driving License</th>");
            out.println("<td>");
            out.println("<select name=license size=1 multiple=multiple id=license>");
            out.println("<option>Class 3</option>");
            out.println("<option>Class 4</option>");
            out.println("<option>Class 5</option>");
            out.println("</select></td></tr>");
            out.println("<tr><th>Mobile</th>");
            out.println("<td><input name=mobile type=text id=mobile></td></tr>");
            out.println("<tr><th>Home Tel</th>");
            out.println("<td><input name=home type=text id=home></td></tr>");
            out.println("<tr><th>E-mail Address</th>");
            out.println("<td><input name=email type=text id=email</td></tr>");
            out.println("</tr><th>Section</th>");
            out.println("<td>");
            out.println("<select name=section size=1 id=section>");
            out.println("<option>Ramp</option>");
            out.println("<option>Baggage</option>");
            out.println("<option>Service Asisstants</option>");
            out.println("<option>Flight Coordinators</option>");
            out.println("</select></td>");
            out.println("<th>Department</th>");
            out.println("<td>");
            out.println("<select name=dept size=1 id=dept>");
            out.println("<option>PAX</option>");
            out.println("<option>Ramp</option>");
            out.println("<option>Cargo</option>");
            out.println("</select></td>");
            out.println("<th>Course</th>");
            out.println("<td>");
            out.println("<select name=course size=1 multiple=multiple id=course>");
            out.println("<option>Ramp Safety</option>");
            out.println("<option>Dangerous Goods</option>");
            out.println("<option>Security Training</option>");
            out.println("</select></td></tr>");
            out.println("<tr><th>Date Trained</th>");
            out.println("<td>");
            out.println("<select name=tday size=1 id=tday>");
            out.println("<option>1</option>");
            out.println("<option>2</option>");
            out.println("<option>3</option>");
            out.println("<option>4</option>");
            out.println("<option>5</option>");
            out.println("<option>6</option>");
            out.println("<option>7</option>");
            out.println("<option>8</option>");
            out.println("<option>9</option>");
            out.println("<option>10</option>");
            out.println("<option>11</option>");
            out.println("<option>12</option>");
            out.println("<option>13</option>");
            out.println("<option>14</option>");
            out.println("<option>15</option>");
            out.println("<option>16</option>");
            out.println("<option>17</option>");
            out.println("<option>18</option>");
            out.println("<option>19</option>");
            out.println("<option>20</option>");
            out.println("<option>21</option>");
            out.println("<option>22</option>");
            out.println("<option>23</option>");
            out.println("<option>24</option>");
            out.println("<option>25</option>");
            out.println("<option>26</option>");
            out.println("<option>27</option>");
            out.println("<option>28</option>");
            out.println("<option>29</option>");
            out.println("<option>30</option>");
            out.println("<option>31</option>");
            out.println("</select>");
            out.println("<select name=tmth size=1 id=tmth>");
            out.println("<option>January</option>");
            out.println("<option>February</option>");
            out.println("<option>March</option>");
            out.println("<option>April</option>");
            out.println("<option>May</option>");
            out.println("<option>June</option>");
            out.println("<option>July</option>");
            out.println("<option>August</option>");
            out.println("<option>September</option>");
            out.println("<option>October</option>");
            out.println("<option>November</option>");
            out.println("<option>December</option>");
            out.println("</select>");
            out.println("<select name=tyear size=1 id=tyear>");
            out.println("<option>2005</option>");
            out.println("<option>2006</option>");
            out.println("<option>2007</option>");
            out.println("<option>2008</option>");
            out.println("<option>2009</option>");
            out.println("<option>2010</option>");
            out.println("<option>2011</option>");
            out.println("<option>2012</option>");
            out.println("<option>2013</option>");
            out.println("<option>2014</option>");
            out.println("<option>2015</option>");
            out.println("</select></td></tr>");
            out.println("<tr><th>Recurrent Date</th>");
            out.println("<td>");
            out.println("<select name=rday size=1 id=rday>");
            out.println("<option>1</option>");
            out.println("<option>2</option>");
            out.println("<option>3</option>");
            out.println("<option>4</option>");
            out.println("<option>5</option>");
            out.println("<option>6</option>");
            out.println("<option>7</option>");
            out.println("<option>8</option>");
            out.println("<option>9</option>");
            out.println("<option>10</option>");
            out.println("<option>11</option>");
            out.println("<option>12</option>");
            out.println("<option>13</option>");
            out.println("<option>14</option>");
            out.println("<option>15</option>");
            out.println("<option>16</option>");
            out.println("<option>17</option>");
            out.println("<option>18</option>");
            out.println("<option>19</option>");
            out.println("<option>20</option>");
            out.println("<option>21</option>");
            out.println("<option>22</option>");
            out.println("<option>23</option>");
            out.println("<option>24</option>");
            out.println("<option>25</option>");
            out.println("<option>26</option>");
            out.println("<option>27</option>");
            out.println("<option>28</option>");
            out.println("<option>29</option>");
            out.println("<option>30</option>");
            out.println("<option>31</option>");
            out.println("</select>");
            out.println("<select name=rmth size=1 id=rmth>");
            out.println("<option>January</option>");
            out.println("<option>February</option>");
            out.println("<option>March</option>");
            out.println("<option>April</option>");
            out.println("<option>May</option>");
            out.println("<option>June</option>");
            out.println("<option>July</option>");
            out.println("<option>August</option>");
            out.println("<option>September</option>");
            out.println("<option>October</option>");
            out.println("<option>November</option>");
            out.println("<option>December</option>");
            out.println("</select>");
            out.println("<select name=ryear size=1 id=ryear>");
            out.println("<option>2005</option>");
            out.println("<option>2006</option>");
            out.println("<option>2007</option>");
            out.println("<option>2008</option>");
            out.println("<option>2009</option>");
            out.println("<option>2010</option>");
            out.println("<option>2011</option>");
            out.println("<option>2012</option>");
            out.println("<option>2013</option>");
            out.println("<option>2014</option>");
            out.println("<option>2015</option>");
            out.println("</select></td></tr>");   
            out.println("<tr><th>Proficiency</th>");
            out.println("<td><input name=prof type=text id=prof</td></tr>");
            out.println("</table>");
            out.println("<p align=right>");
      out.println("<input type=submit name=submit value=Submit>");
      out.println("<input type=reset name=reset value=Reset>");
      out.println("</p>");
            String nam = request.getParameter("nam");
            String ic = request.getParameter("IC");
            String jday = request.getParameter("jday");
            String jmth = request.getParameter("jmth");
            String jyear = request.getParameter("jyear");
            String mobile = request.getParameter("mobile");
            String home = request.getParameter("home");
            String add = request.getParameter("add");
            String email = request.getParameter("email");
            String day = request.getParameter("day");
            String mth = request.getParameter("mth");
            String year = request.getParameter("year");
            String designation = request.getParameter("designation");
            String dept = request.getParameter("dept");
            String ID = request.getParameter("ID");
            String license = request.getParameter("license");
            String course = request.getParameter("course");
            String tday = request.getParameter("tday");
            String tmth = request.getParameter("tmth");
            String tyear = request.getParameter("tyear");
            String rday = request.getParameter("rday");
            String rmth = request.getParameter("rmth");
            String ryear = request.getParameter("ryear");
            String prof = request.getParameter("prof");
            String sect = request.getParameter("job");
        String dob = ""+day+"-"+mth+"-"+year+"";
        String train = ""+tday+"-"+tmth+"-"+tyear+"";
        String date = ""+jday+"-"+jmth+"-"+jyear+"";
        String recurrent = ""+rday+"-"+rmth+"-"+ryear+"";
            String name = request.getParameter("name");
            String change = "UPDATE Staff  SET Name='"+nam+"',Mobile='"+mobile+"',Home='"+home+"',"
                                    +"Address='"+add+"',E-mail='"+email+"',DOB='"+dob+"',Driving License='"+license+"',IC='"+ic+"',"
                                    +"Staff ID='"+ID+"',Designation='"+designation+"',Department='"+dept+"',Course='"+course+"',"
                                    +"Date Trained='"+train+"',Recurrent Date='"+recurrent+"',Proficiency='"+prof+"',"
                                    +"Date Joined='"+date+"',Section'"+sect+"' WHERE Name='"+name+"'";//name taken from html page
            results = statement.executeQuery(change);
          catch(SQLException e)
            System.out.println("Sorry! Unable to update data. Pls try again later.");
            e.printStackTrace();
            System.exit(1);
          try
              out.println("<br />");
              out.println("</font></BODY>");
              out.println("</HTML>");
              out.flush();
              link.close();
          catch(SQLException e)
            System.out.println("Sorry! Unable to execute query. Pls try again later.");
            e.printStackTrace();
            System.exit(1);
      

    hi,
    For Select Query there is Method executeQuery();
    For insert, update, delete executeUpdate() is use
    so try with executeUpdate()
    and it will return how much row are updated.

  • Update records into ZTABLE

    Hi frnds,
    I want to update two records in ZTABLE. But in my ZTABLE three fields are there and only MANDT field is unique how to update this two fields in ZTABLE.
    Eg: ZTABLE
    FIELD1, FILED2, FIELD3.
    I want to update con1 = Field1, con2 = Field2.
    Regards.

    Hi,
    You can do it by following way.
    Like use loop on internal table & READ statement on Database table & modify column of database according to your internal table.
    It will solve your problem.
    SELECT  matnr                       " Material Number
                  werks                       " Plants
                  lgort                       " Storage Location
                   FROM mard
                  INTO TABLE i_mard
                  FOR ALL ENTRIES IN i_marc
                  WHERE matnr EQ i_marc-matnr
                   AND werks EQ i_marc-werks
                    AND lgort IN s_lgort.
                    ENDIF.                               " IF i_mara[] IS NOT INITIAL
      IF sy-subrc EQ 0.
        LOOP AT i_output INTO wa_output.
          READ TABLE i_mard INTO wa_mard WITH KEY matnr = wa_output-matnr.
          wa_output-lgort = wa_mard-lgort.
          MODIFY i_output FROM wa_output.
          CLEAR wa_output.
        ENDLOOP.                           " LOOP AT i_output
      ENDIF.                               " IF sy-subrc EQ 0
    Thanks&Regards,
    Naresh

  • Regarding fetching data into internal table from D.B Tables, D.B View

    Hi All,
    I Have following 5 tables in my Database.
    LTAP
    TABNAME
    FIELDNAME
    KEYFLAG
    LTAP
    MANDT
    X
    LTAP
    LGNUM
    X
    LTAP
    TANUM
    X
    LTAP
    TAPOS
    X
    LTAP
    VLPLA
    Z0MNH
    TABNAME
    FIELDNAME
    KEYFLAG
    Z0MNH
    MANDT
    X
    Z0MNH
    WERKS
    X
    Z0MNH
    ZMANNO
    X
    Z0MNH
    LGNUM
    X
    Z0MNH
    AENAM
    Z0MNH
    BUDAT
    Z0MNH
    CPUTM
    Z0MNH
    LAEDA
    Z0MNH
    STATUS
    Z0MNH
    USNAM
    Z0MNH
    ZARDAT
    Z0MNH
    ZARTIM
    Z0MNH
    ZCLDAT
    Z0MNH
    ZCLTIM
    Z0MNH
    ZDPDAT
    Z0MNH
    ZDPTIM
    Z0MNH
    ZDRIVR
    Z0MNH
    ZINDAT
    Z0MNH
    ZINTIM
    Z0MNH
    ZLOAD
    Z0MNH
    ZNOTES
    Z0MNH
    ZPRDAT
    Z0MNH
    ZPRTIM
    Z0MNH
    ZSUPR
    Z0MNH
    ZTRAILR
    Z3MANBOXIDHDR
    TABNAME
    FIELDNAME
    KEYFLAG
    Z3MANBOXIDHDR
    MANDT
    X
    Z3MANBOXIDHDR
    WERKS
    X
    Z3MANBOXIDHDR
    ZMANNO
    X
    Z3MANBOXIDHDR
    EXIDV
    X
    Z3MANBOXIDHDR
    NLPLA
    Z3MANBOXIDHDR
    NLTYP
    Z3MANBOXIDHDR
    VLTYP
    Z3MANBOXIDHDR
    Z0PAL
    Z3MANBOXIDHDR
    Z3COMENT
    Z3MANBOXIDHDR
    Z3RECPT_FLAG
    Z3MANBOXIDITM
    TABNAME
    FIELDNAME
    KEYFLAG
    Z3MANBOXIDITM
    MANDT
    X
    Z3MANBOXIDITM
    WERKS
    X
    Z3MANBOXIDITM
    ZMANNO
    X
    Z3MANBOXIDITM
    EXIDV
    X
    Z3MANBOXIDITM
    ITEM_NO
    Z3MANBOXIDITM
    MATNR
    Z3MANBOXIDITM
    VEMEH
    Z3MANBOXIDITM
    VEMNG
    Z3MANBOXIDITM
    Z_CARTON
    Z3MANBOXIDSERIAL
    TABNAME
    FIELDNAME
    KEYFLAG
    Z3MANBOXIDSERIAL
    MANDT
    X
    Z3MANBOXIDSERIAL
    WERKS
    X
    Z3MANBOXIDSERIAL
    EXIDV
    X
    Z3MANBOXIDSERIAL
    ZMANNO
    X
    Z3MANBOXIDSERIAL
    ITEM_NO
    Z3MANBOXIDSERIAL
    SERNR
    Based on all the above tables i need to fill in below internal table field as given below:
    <b>Internal Table I_TAB
    ZMANNO
    LGNUM
    WERKS
    EXIDV
    ITEM_NO
    MATNR
    SERNR
    VEMNG
    VEMEH
    VLTYP
    NLTYP
    VLPLA
    NLPLA
    ZLOAD
    USNAM
    STATUS
    BUDAT
    CPUTM
    ZINDAT
    ZINTIM
    ZARDAT
    ZARTIM
    ZCLDAT
    ZCLTIM</b>
    Extract data from Manifest header <b>Z0MNH, Z3MANBOXIDHDR,
    Z3MANBOXIDITM, Z3MANBOXIDSER and LTAP</b> tables based on selection parameter.
    Selection Screen will have folowing Select-option fields-
    <b>LGNUM
    WERKS
    ZMANNO
    USNAM
    ZLOAD
    EXIDV
    MATNR
    SERNR
    VLTYP
    NLTYP
    VLPLA
    NLPLA
    BUDAT
    ZINDAT
    ZARDAT
    ZCLDAT</b>
    Based on above selection criteria i need to fetch above internal table fields data.
    Then need to Move corresponding header and item data in ITAB_RESULT internal table.
    I need to fetch above fields based on above 5 tables and put in final Internal Table.
    Can anybody tell me the logic how can i write the same.
    Also can anybody tell me i am trying to create a DataBaseView for
    Z0MNH, Z3MANBOXIDHDR, Z3MANBOXIDITM, Z3MANBOXIDSERIAL and LTAP tables.
    <b>Note:
    1. Z3MANBOXIDITM table may contain multiple material[MATNR] for same box-id[EXIDV] (with another line item).
    2.  Z3MANBOXIDSERIAL table may contain multiple record for one box id[EXIDV]+item_no[ITEM_NO].</b>
    But what are the <b>TABLE/JOIN Conditions</b> i need to write while creating <b>DB View</b> for above <b>5</b> tables.
    Can anybody solve above 2 issues!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep,
    While creation of DB view just make sure abt the key relation between the tables. Based on that u can join the tables...First fetch the data from header table then by using for all entries u can fetch the line items data.
    Hope this helps you. Reply for queries, shall post the updates.
    Regards. 
    Kumar.

  • 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