Regarding Updation of ZTable

hi all,
      I want to update ZTable from Internal Table.
I write like this.
Update <ztable> from table <internal table>.
but error is coming like this.
"the work area gt_final(internal table) is not long enough.
What will be the problem.
Please suggest.
Regards
Reddy

HI,
plz declare internal table as following :
types: begin of type_itab,
          matnr type mara-matnr,
          end of type_itab.
data: itab type standard table on type_itab,
         wa_itab like line of itab.
this will help.
thanx.

Similar Messages

  • Creation of function module for updating the ztable

    Hi,
    I am sending the requirement for ceation of function module for updating the ztable.
    Requirement----
    Table Updation rule (New record)
    While creating a new record the calling function will export the following to the table handling function.
    Table field     Probable Values
    ZORDERNO------->     Sales Delivery no in case of sales orderShipment no in case of transfer order
    UNAME----
    >     User ID
    ZORDTYPE----
    >     SALEOR in case of sales orderTRANSF in case of transfer order
    ZREFDOCNO----
    >Sales Order no in case of sales orderPurchase Order no in case of transfer order
    ZREFDOCNO1----
    >Delivery no in case of transfer order
    The table handling function will calculate the following fields
    Table field     Probable Values
    ZREQNO----
    >Running serial number (incremented by 1 for each new record)
    ZREQDAT     -
    >System date
    ZREQTIME----
    >     System time
    ZSTATUS----
    >OPEN (for all new records)
    Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
    Table Updation rule (Status Update)
    While updating a record the calling function will export the following to the table handling function.
    Table field     Probable Values
    ZORDERNO----
    >Sales order no in case of sales orderShipment no in case of transfer order
    ZSTATUS----
    >CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
    The table handling function will calculate the following fields
    Table field     Probable Values
    ZSTATDAT----
    >System date
    ZSTATTIME----
    >     System time

    Do you have to create/update new record in Ztable through Function Module ?
    or you need to write FM only for validation?
    Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
    Let me know clearly what exactly u need ?
    Regards,
    Kiran

  • How to update the Ztable using modulepool Tablecontrol...

    Hi All,
    could anyone help me how to update the Ztable using modulepool Tablecontrol...
    if it is possible give me a example with code..
    Many thanks in advance...!!
    Rajesh

    Hi,
    For that pls refer to the link:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbac3735c111d1829f0000e829fbfe/frameset.htm
    Also refer the sample program:
    RSDEMO02
    Then for updating:
    modify the internal table(which u used to populate the tabcntrl) from the table control.
    Then update database table like:
    update dbtab from table itab.
    Regards,
    Renjith Michael.

  • Query regarding updation thru a Procedure

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru my Java application.
    The submit procedure saves the XML data in the database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by adding new elements to the same row.This row now contains additional XML elements.
    I would like to display the new row with the new elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,

    Hi,I have a query regarding updation.
    1.I invoke a procedure in Oracle called submit thru
    my Java application.
    The submit procedure saves the XML data in the
    database
    and displays this data in a Front End GUI.
    2. Now,I make a change in my Java application by
    adding new elements to the same row.This row now
    contains additional XML elements.
    I would like to display the new row with the new
    elements in the GUI.
    What is a better option for doing the above?
    1.Delete the row being shown,save the new row with
    the changes in the database,and re display it?
    2.Or,Update the row dynamically and refresh?
    Any suggestions
    Thanks,If you delete (it seems to me yours this process is regular and frequent) and re insert the new updated one record then High water mark will cause to scan yours table which may cause to degrade the performance.AFAIK you should go with update.But hold down dont implement it as i suggested lets see what are others solution here which may be more precious then mine.
    Khurram

  • Auto update of Ztable when ever BSID or BSAD tables updated

    Auto update of Ztable when ever DB table updated     
    Hi experts
    I want my Ztable get updated automatically when ever a record is created or updated in BSID or BSAD tables.
    Here clear requirement
    Generally using Company code & Allocation number  ( 18 char ) my programs access BSID & BSAD tables it is taking very long time for execution almost more than 30 minutes ( data in millions ).
    Step 1.
    I created a new Ztable with limited fields Company Code, Customer, Document, Allocation Number and Posting date.
    Step 2.
    Before look into BSID or BSAD my program searches Ztable for Customer number & Document number using Allocation field and Company code.
    Step 3.
    Once get the Customer & Document numbers accessing BSID & BSAD table is very easy (now just taking less than 1 minute).
    Created a new program to update Ztable every day but BSID and BSAD are live table so I want my Ztable get updated immediately when any entry posted in BSID or BSAD
    Please help me
    Satya
    Singapore

    You need to check what is the procedure (T-Code) from which the data gets updated into these tables.
    For example
    when we craete a material from MM01 the data gets updated in the corresponding table i.e. EKPO.
    In same way you need to find the process and then you can use BTE (Busineess transaction events) for that process. BTE are only for FI module and these tables are also related to FI .

  • Query regarding updating rows in JTable

    Query regarding updating rows in JTable
    Hello,
    I have a JTable with 6 columns and 1000s of rows (which are data read from flat files)
    I can select 1 or more rows and change the values of the
    columns. each time I do this I need to update the values
    in the flat file.
    Currently I assign the updated Jtable values to a vector
    Vector rowVector = (Vector)defaultModel.getDataVector();
    then I iterate over the vector and compare the values with the (old) data
    in the JTable.
                for(int rowCount = 0; rowCount<rowVector.size(); rowCount++){
                    Vector v = (Vector)rowVector.elementAt(rowCount);
                        //smsList is the Vector that contains the old JTable values
                        for(int i=0; i<smsList.size(); i++){
                                //If colums values have been changed; add that
                                //vector value to another vector
                                selectedsmsList.add(smsList.get(i));
                for(int i=0; i<selectedsmsList.size(); i++){
                         //Update the values in the flat file
                }This works fine except that it takes ages to iterate over the updated vecor and un-updated,old vector; is there any way to directly get the list of rows that were updated in the jtable; so that I can directly do an I/O operation to update the jtablke values?

    Just a suggestion.
    You could add a listener and use a vector of booleans to keep track of the rows that have been changed. You could then iterate through this boolean vector and update the changed rows.
    See
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#modelchange
    Don't know whether this will be helpful.
    Regards, Darryl

  • Updation of Ztable clicking on submit button in adobe interactive forms

    Hi all,
    In my adobe interactive form i have student details and one SUBMIT BUTTON.After clicking on that button i need to update the details in my Ztable. How Can I do?Where Can I write the code?
    Please reply me.
    Thanks in advance.

    Hi, I'm afraid I think there is no place where you can "catch" click on button in interactive form in sapgui, but you can:
    use http submit button and send data to your web service, which receive dataa and update your ztable,
    or you can create webdynpro, where you can catch click on submit button a in this event you can update yout ztable (my previous post).
    Please remember, that you can run your webdynpro application in sapgui:
    REPORT  DEMO_START_WD_IN_PLACE1 MESSAGE-ID SWDP_RUNTIME.
    start-of-selection.
      CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
        EXPORTING
         PROTOCOL               = 'HTTP'       " HTTP | HTTPS
        INTERNALMODE           = 'X'    "SPACE - browser is started
        PARAMETERS             =
          APPLICATION            = 'your_webdynpro_application
         CONTAINER_NAME         = 'SAP Formuláře'
        EXCEPTIONS
          INVALID_APPLICATION    = 1
          BROWSER_NOT_STARTED    = 2
          OTHERS                 = 3.
      IF sy-subrc EQ 1.
        MESSAGE a400.
      ELSEIF sy-subrc = 2.
        MESSAGE a401.
      ELSEIF sy-subrc = 3.
        MESSAGE a667.
      ENDIF.

  • How to update the ztable by using table handling function

    how to update the ztable by using table handling function
    It is very urgent ...............................
    thanks in advance

    see the  below code for the direct   ztable update
    Report  ZUPDATE_PRPS.
    tables: zprps.
    parameter: p_wbs like zprps-pspnr,
               p_value like zprps-fakkz default 'X'.
    data: wa_fakkz type zprps-fakkz.
    *START-OF_SELECTION
    start-of-selection.
    call function 'CONVERSION_EXIT_ABPSP_INPUT'
         exporting
             input     = p_wbs
        importing
             output    = p_wbs
        exceptions
             not_found = 1
             others    = 2.
    select single fakkz
      into wa_fakkz
      from zprps
    where pspnr eq p_wbs.
    if sy-subrc eq 0.
       update zprps set fakkz = p_value where PSPNR eq p_wbs.
       if p_value is initial.
         message i999(za) with 'Billing element field has been unchecked'.
       else.
         message i999(za) with 'Billing element field has been checked'.
       endif.
    else.
      message i999(za) with 'WBS element not found'.
    endif.
    reward  points if it is usefull .....
    Girish

  • How to update the ztable using screen.

    hi experts,
    i have one ztable with 8 fields
    and i created one screen with 8 fields
    how to update the ztable using this screen menas when i press the some push button in my screen the table should update.
    Devi

    hi
    check the link shown below
    Coding & screen shots of how to update a database table from screen(Module poool)
    http://www.scribd.com/doc/15628693/moduleprog090311165111phpapp011
    in the attachment u will find
    data  : begin of i_ysrtmm occurs 0,
            sno type ysrtmm-sno,
            sname type ysrtmm-sname,
            scity type ysrtmm-scity,
            sedu type ysrtmm-sedu,
            spercent type ysrtmm-spercent,
            select(1),
            end of i_ysrtmm.
    in the SE51 click on layout & in that menu goto - secwindow- enter the internal table i_ysrtmm
    and click on get from program.u will get all the fields of the internal table select all of them except
    SELECT  field  and then drag and drop on table control . double click on the table control u see the attributes screen there in the w/colselect enter i_ysrtmm-select for tab selection of table control.
    Regards

  • SUN advice/information regarding update 5

    Hi Sun,
    I, and all the other users as well I think, need some advice on what we shall do regarding update 5.
    I have read in the news group that it has major performance issue regarding the ide.
    Because of this I have not downloaded update 5.
    Are these issues solved or do they only appear if the project uses the getContext() method, as our project do ?
    If these issues are not solved, is it possible give us a date when a new patch is released and the ide problems are solved ?
    Is it possible to skip the ide part of Update 5 but take the rest of the jar files, so we can continue with development ?
    Or is that not a god idea ?
    Are there some other methods like getContext() that needs to be replaced before we download Update 5 ?
    I need advice how to carry on in a safe way without having to redo my application.
    /Regards Krister

    Don't update, I have a small project which dosen't use getContext()
    Under windows it crashes.
    Under Linux it crashes.
    I have gone back to the previous patches. I would wait for it to be resolved.
    Jonathan

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

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

  • One issue regarding update open Qty. of PO in PP/DS after goods receipt through interface.

    Dear experts:
    We are implementing APO-PP/DS integrated with Non-SAP ERP system, as the standard CIF can’t be used between ERP and APO, we have to use BAPI to transfer data.
    Now we are facing a problem, after final confirmation & goods receipt of production order in ERP, the open quantity of production order should be updated in PP/DS, but we can’t find any BAPI can help on this.
    We’ve tried BAPI_MOSRVAPS_CONFHEADMULTI and BAPI_MOSRVAPS_CONFOPRMULTI for production order confirmation, but failed, as SAP said, confirmation without goods receipt will not update the order open quantity. We also tried BAPI_MOSRVAPS_SAVEMULTI3 to change the receipt quantity, but failed, as after partial confirmation, the quantity of production order can’t be changed, but we can’t find a field of “open quantity” (open quantity = total quantity – delivery quantity) in the BAPI. So how can we update the open quantity of production order in PP/DS after goods receipt from ERP?
    Appreciate for your input, thanks.
    Regards
    Kevin

    Dear Uli
    Thanks for your information, we tried it again according to your
    instruction via Function module /SAPAPO/CIF_ORDER_INBOUND, but failed.
    For import parameters:
    OBJECTTYPE = 6
    LOGSYS = “Our logical system”
    The screenshot is as following:
    In the IT_OUT table:
    ORDNR = “Production order number in our ERP system”
    ORDERGUID = “Internal order number of this production order in
    APO” (we also tried to keep this field blank)
    METHOD = C
    GR_QUANTITY = 2
    The screenshot is as following:
    The ET_RETURN has no response
    And nothing gets update in product view.
    Is there anything wrong in my parameters?
    Thanks & Regards
    Kevin
    Best Regards

  • Regarding update of Service Entry Sheet Number

    Hello SAP MM Experts,
        In one of our Non-Valuated Service PO, one particular Service Entry Sheet(SES) Number and GR Number are generated. This particular SES number is  updated in ESSR, EKBE, ESKN tables but it is not updated in ESLH Table. I also executed the program RMESSRK2 in se38(ABAP Editor). But still its not updated in ESLH Table. Can anybody guide me with this problem.
    Thanks and Regards,
    Satvik

    Hello Dev,
    Sorry for delay. Attaching screenshots:

  • Regarding "Update .. From Table" Statement

    Hi,
    I have an existing piece of code which I'm trying to understand.
    There are two scenarios regarding the UPDATE statement.
    1) Scenario 1:
    There exists a database table with around 100 or more fields/columns [Eg: DB_TABLE1].
    An Internal Table exists with the same key as the above database table [EG: I_TABLE1].
    code:
    loop at I_TABLE1.
      update DB_TABLE1
      set kf1 = I_TABLE1-kfa
       kf2 = I_TABLE1-kfb
       kf3 = I_TABLE1-kfc
       kf4 = I_TABLE1-kfd
      where key1 = I_TABLE1-keya AND key2 = I_TABLE1-keyb.
    Endloop.
    In the above scenario the records in database table [DB_TABLE1] with matching condition are updated and the rest of the fields are not touched.  - Correct me if I am wrong.
    2) Scenario 2:
    There exists a database table with around 100 or more fields/columns [Eg: DB_TABLE1].
    Two Internal Tables exist with the same key as the above database table [EG: I_TABLE1 And  I_TABLE2].
    Code part a:
    SELECT * FROM DB_TABLE1 INTO TABLE I_TABLE2
          WHERE  KF1 <> 0.
    Internal Table 1 has some data.
    Code part b:
    loop at I_TABLE1.
      update DB_TABLE1
      set kf1 = I_TABLE1-kfa
       kf2 = I_TABLE1-kfb
       kf3 = I_TABLE1-kfc
       kf4 = I_TABLE1-kfd
      where key1 = I_TABLE1-keya AND key2 = I_TABLE1-keyb.
    Endloop.
    Code part c:
    update DB_TABLE1 FROM TABLE I_TABLE2.
    In the second scenario what will be the final effect of DB_TABLE1?
    As i understand it, there is no use of Code part b. Am I right?
    I thought that the records in I_TABLE2 with matching key in DB_TABLE1 will be updated and the rest of the records will be deleted.
    But actually there is not change in the DB_TABLE1 when the above code is executed.
    Help is appreciated.
    Thanks.

    Hi Joey,
    Scenario 1: In the above scenario the records in database table DB_TABLE1 with matching condition are updated and the rest of the fields are not touched.
    - That's right.
    Scenario 2: As i understand it, there is no use of Code part b.
    - Exactly because of the following reasons:
    1. Code part a shows data selected from DB_TABLE1 INTO TABLE I_TABLE2.
    2. Code part c shows DB_TABLE1 updated from TABLE I_TABLE2 whereas Code part b uses ONLY internal table I_TABLE1.
    3. If there are any operations performed in Code Part b on 'I_TABLE2', then this would have been different.
    Regards,
    Pranav.

Maybe you are looking for

  • Bytecode class names (nested classes)

    Hi, with my JVMTI agent on a 1.5 JVM I found class names like this: Lsun.misc.URLClassPath$JarLoader Ljava.util.HashMap$Entry which show nested classes inside of other classes. The point is, that those nested classes (behind '$') here have a name. Bu

  • Text in shopping cart

    hi, Could any on tell me how to clean up the vendor text that is coming from a punchout external catalog into the Shopping cart.. it is replacing some special charecters with # and every next line with ~. Regards Sunny

  • How can I make a copy of my book project?

    I made a book for myself with photos from our summer holidays. Now I want to make a slightly different version for my mum, with more photos of HER in it. So I wanted to make a copy of my book album, so I can have one version that's the book I made fo

  • NID Command Error in Clone

    Hi, Please help me in this regarding. Am getting the same error when i do clone every time. I have clone a EBS database using rman backup. Restore got completed and when i try to change the DB name using NID command am getting an error. After that wh

  • Changing details of schedule line agreement-T.code ME38

    Hi Abapers!!!             Is there any function module to change the details of schedule line agereement.. .....if GR quatity is less than the scheduled quantity i want to make scheduled quantity as gr quantity.           Can't we change this using B