How to update hidden item after submit of multi tab form

Hi everyone,
I have a multi tab form which is being used to insert records into a table. One of the columns I have included in the form source is 'hidden' and i want this item to be populated with the current date and time for each row, when I press the submit button. I have tried to achieve this by creating a PL/SQL process on the Page with the following details:
Process point: 'On Submit - After Computations and Validations'.
Source: :P5_DATE_ENTERED := :SYSDATE_YYYYMMDD;
However, when I test the Page I get the following error on pressing Submit:
'Error ERR-1002 unable to find ID for item P5_DATE_ENTERED...'
So, I'd be very grateful if anyone can advise me as to how to achieve this basic functionality,
cheers,
Kevin.

Hi,
Thanks for the reply, I had considered that and I think that probably is the best approach. However, I'd like to know why my method of trying to do it in APEX doesn't work as it seems such a simple thing to want to do,
regards,
Kevin.

Similar Messages

  • How to make fields required in an updateble multi line form?

    How to make fields required in an updateble multi line form?

    You need to create a validation item that is triggered when the user clicks the submit button.
    Set the validation type to "Function Returning Error Text".
    Then add your validation into the "Validation Expression 1" field. Something like:
    BEGIN
    FOR I IN 1.. HTMLDB_APPLICATION.G_F02.COUNT LOOP
    IF HTMLDB_APPLICATION.G_F02(I) IS NULL THEN
    RETURN 'Please enter in a value for xxxxx on line ' || TO_CHAR(I,'0');
    END IF;
    END LOOP;
    RETURN NULL;
    END;
    As long as the function returns a string, an error is generated - as there is no single field where this error can be displayed, it will need to be displayed "On Error Page".
    If the return value is NULL, then the fields are valid and the submit process can continue.
    Andy

  • How to update the inventory after committing order..?

    How to update the Inventory stock level of a commerce item after committing the order.. in ATG 10.0.1..?
    Thanks in Advance,
    Vishnu & Nithin Kayithi

    you can add the pipeline chain after the processOrder in the commerce pipeline , in the runProcess method call InventoryManager.decreaseStockLevel(String pId, long pNumber);

  • Update Hidden Item In Manual Tabular Form

    Apex 3.2
    I have a column in my tabular form which is used in an update.
    APEX_ITEM.DISPLAY_AND_SAVE(34,f.qtyuser) oldqtyuser
    I do not want the users to see this column, so on my edit report I unchecked the Show checkbox.
    Now I get an error message and my update fails.
    I have tried changing it to
    APEX_ITEM.TEXT(34,f.qtyuser,10,6) oldqtyuser and unchecking the Show checkbox but still it fails.
    I have tried changing it to
    APEX_ITEM..HIDDEN(34,f.qtyuser) oldqtyuser and unchecking the Show checkbox but still it fails.
    How do I achieve this
    Gus
    Edited by: Gus C on Nov 14, 2012 11:56 PM

    Hi Gus,
    Struggling to remember what is available in 3.2. What I did in this version was to append the hidden item to another item in the table. So for example if you have a text box in the table then use:
    APEX_ITEM.TEXT(33,f.othercol,10,6)||APEX_ITEM.HIDDEN(34,f.qtyuser)
    That way there is not extra column, but the hidden item is still displayed in the table.
    Rod West

  • How to Update multiple items in other list using event handler?

    Hi All,
    If i update a item in a list, then i should update multiple items in another list need to be update. How to achive using event receivers?

    Hi Sam,
    According to your description, my understanding is that you want to update multiple items in another list when updated a list item.
    In the event receiver, you can update the multiple item using Client Object Model.
    Here is a code snippet for your reference:
    public override void ItemUpdated(SPItemEventProperties properties)
    string siteUrl = "http://sp2013sps/sites/test/";
    ClientContext clientContext = new ClientContext(siteUrl);
    List oList = clientContext.Web.Lists.GetByTitle("another list name");
    ListItem oListItem = oList.GetItemById(1);
    oListItem["Title"] = "Hello World Updated!";
    oListItem.Update();
    clientContext.ExecuteQuery();
    Best regards,<o:p></o:p>
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • How to update list item metadata?

    I want to implement lists.asmx > UpdateListItems method. In the update method (the caml) i would like to use barcode as a filter instead of item ID. http://msdn.microsoft.com/en-us/library/office/ms440289(v=office.14).aspx 
    How would my caml look like?
    <Batch OnError="Continue" ViewName="CA28BFCC-4CCE-4EF8-B08F-7824535E13FC">
    <Method ID="1" Cmd="Update">
          <Field Name='BarCode'>6061114511</Field>
          <Field Name="Title">New Title 2</Field>
    </Method>
    </Batch>

    Hi  ,
    You cannot use barcode as a filter instead of item ID by using OOTB  list.asmx. You could build your own custom web service that uses the either the SPQuery class or linq and gather the items based on
    a particular field value.
    For more information, please take a look at the thread:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/af23f9f0-2640-474c-9616-522fcb639029/listserviceupdatelistitems-update-reference-field?forum=sharepointdevelopmentlegacy
    I recommend that you  update list items with listdata.svc.
    Reference:
    http://chuvash.eu/2011/12/15/update-list-items-with-listdata-svc/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Tutorial on how to update list items using ListData.svc

    Can you please point me to a tutorial which shows how to update a list item using listdata.svc and C#?
    Sorry if this is FAQ.
    I have found articles on read list... but I haven't found anything on update a list item.
    val it: unit=()

    when i try this I get an error 500
    I created an ASP.NET web application that allows the user to modify data that is stored in SharePoint I rather not go into the reasons why this application was created but focus more on why doesn't the listdata.svc allow me to update a task item that was
    created by a workflow collect data from user action.
    1. The workflow creates the item.
    I collect the item and update the item using the below code. This is not an OOTB approval workflow that is just the name I used. When I get to save changes I received the following error code.
    Dim getApprovalItem As ExpenseApprovalRuleBasedTasksItem = spContext.ExpenseApprovalRuleBasedTasks.Where(Function(i) i.Id = Pam.ApprovalItemID).FirstOrDefault
    If String.IsNullOrEmpty(getApprovalItem.AuditorApprovalValue) Then
    getApprovalItem.AuditingComments = approvalComments
    Select Case approvalDecision
    Case "Approved"
    getApprovalItem.AuditorApproval = ExpenseApprovalRuleBasedTasksAuditorApprovalValue.CreateExpenseApprovalRuleBasedTasksAuditorApprovalValue("Approved")
    getApprovalItem.AuditorApprovalValue = "Approved"
    Case "Rejected"
    getApprovalItem.AuditorApproval = ExpenseApprovalRuleBasedTasksAuditorApprovalValue.CreateExpenseApprovalRuleBasedTasksAuditorApprovalValue("Rejected")
    getApprovalItem.AuditorApprovalValue = "Rejected"
    End Select
    getApprovalItem.Outcome = "Completed"
    getApprovalItem.Status = ExpenseApprovalRuleBasedTasksStatusValue.CreateExpenseApprovalRuleBasedTasksStatusValue("Completed")
    getApprovalItem.StatusValue = "Completed"
    getApprovalItem.Complete = True
    spContext.UpdateObject(getApprovalItem)
    spContext.SaveChanges()
    End If

  • How to check hidden items

    Hi,
    On a existing portal installation (10g Release 1) I've a lot of hidden items. I need to export these items to a new release of portal (10g Release 2).
    The information of hidden object is not define inside table wwv_things. I check on several tables/views of the portal schema but I cannot find the table/view where this information is stored.
    Is there a way to create portal items in 10g Release 2 with pl/sql packages and to hide these items ? I found a recommandation to set the publish date in the future but in our case, this do not correspond to the expected behaviour.
    Thanks in advance for your help,
    Eddy.
    Edited by: acsods on 10 oct. 2008 10:13

    The VISIBLE column in WWSBR_ALL_ITEMS will tell you that:
    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/wwsbr_api_view.html#WWSBR_ALL_ITEMS
    But you're right that there's no API method for hiding items in 10.1.2.
    In 10.1.4 the hide_in_browse parameter of wwsbr_api.modify_item can be used to hide the item:
    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/wwsbr_api.html#function-modify_item
    -John

  • How to update list item using client object model without changing created/modified dates?

    Hello All,
    I want to update list item using the SharePoint Client Object
    Model without updating the created / modified date. Is it possible?
    Please help.
    Thanks.

    Using the SystemUpdate method should do the trick, according
    to its literature.
    Additionally, would something like this be of any use for you?  Taken from this
    Stack Exchange thread: -
    public static class SPListItemExtensions
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void Update(this SPListItem item, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.Update();
    finally
    rh.EnableEventFiring();
    else
    item.Update();
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="incrementListItemVersion"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void SystemUpdate(this SPListItem item, bool incrementListItemVersion, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.SystemUpdate(incrementListItemVersion);
    finally
    rh.EnableEventFiring();
    else
    item.SystemUpdate(incrementListItemVersion);
    /// <summary>
    /// Provides ability to update list item without firing event receiver.
    /// </summary>
    /// <param name="item"></param>
    /// <param name="doNotFireEvents">Disables firing event receiver while updating item.</param>
    public static void SystemUpdate(this SPListItem item, bool doNotFireEvents)
    SPItemEventReceiverHandling rh = new SPItemEventReceiverHandling();
    if (doNotFireEvents)
    try
    rh.DisableEventFiring();
    item.SystemUpdate();
    finally
    rh.EnableEventFiring();
    else
    item.SystemUpdate();
    private class SPItemEventReceiverHandling : SPItemEventReceiver
    public SPItemEventReceiverHandling() { }
    new public void DisableEventFiring()
    base.DisableEventFiring();
    new public void EnableEventFiring()
    base.EnableEventFiring();
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to update child item expense account as master item expense account

    Hi,
    As my master item expense account is not as same as child item expense account, I want to update
    child item through item import program, what should i do, please suggest
    thanks in advance
    Regards,
    Dhananjay

    Actually, here is a better way.
    insert into mtl_system_items_interface
    (process_flag
    ,set_process_id
    ,segment1 ,expense_account
    ,organization_code
    ,transaction_type
    (select
    1,67890
    ,msi.segment1 ,msi2.expense_account
    ,mp.organization_code
    ,'Update'
    from mtl_system_items_b msi,mtl_parameters mp, mtl_system_items_b msi2, mtl_parameters mp2
    where mp2.organization_id = mp2.master_organization_id
    and mp2.organization_id = msi2.organization_id
    and msi2.inventory_item_id = msi.inventory_item_id
    and msi.organization_id != msi2.organization_id
    and nvl(msi2.expense_account,0) != nvl(msi.expense_account,0)
    --and msi.segment1 ='&item_num'
    And then run item import for set_process_id=67890
    Hope this answers your question
    Sandeep Gandhi
    Omkar Technologies Inc.
    Independent Techno-functional Consultant

  • How do I get to the Submit button on my form?

    I have finished my first form but can not find how to get to the submit button on the form to add where I want the form to go - how do I get an email address attached to the form?

    Hi Amy;
    A FormsCentral form can be either a web form users fill out in a web browser, or a PDF form (can also be distributed both ways).
    For a Web form the data is always collected by the Adobe FormsCentral servers and is available to view/analyze in your account on the View Responses tab of the form.  There are also options to set up Email Reciepts (to the form filler) and Email Notifications (to you and other users you specify) that can contain the form data.
    For a PDF form you have the option of the Submit button that submits the data to FormsCentral the same as the Web form, and the same Notifications and Reciept options apply here too.  Alternatively you create a PDF in FormsCentral to use however you'd like and can edit in Acrobat and add your own Submit button that emails the PDF or form data back to you directly.  There are a number of tutorials online for adding email "Submit" buttons to PDF and if you are going to edit a FormsCentral PDF you would want to look at this FAQ as well: http://forums.adobe.com/docs/DOC-3661
    I hope that helps, let me know if you still have questions.
    Thanks,
    Josh

  • How to change action message after submit

    Please advise.
    I'm new to APEX and Oracle for that matter. I've got a form that is being displayed with no data after pressing a <CREATE> button from interactive report(Page 1).
    I fill in the data and when I press <Save Changes> button from Page 2, internally the data is processed on insert and a trigger assigns a new Serial Number. When the screen branches back to same page, all data keyed goes away and is ready for my next add. However, what I would like is to be able to show the new serial number in the action message which defaults to "Action Processed". I'd like to be able to post the serial number followed by "added successfully".
    The item on the screen is P2_SERIALNUMBER and the database column is SERIALNUMBER. The serial number is created by a trigger, therefore the P2_SERIALNUMBER is just a disabled text fiield saving state.
    in the submit process, I tried setting an alert script where the current default message("Action processed") is, referencing the P2_SERIALNUMBER item but I don't think the new serial number generated from the trigger is populating the item.

    Thanks for the expeditious reply Matt.
    Apparently, did not work. I have a dozen or so fields for update on this page(2). There is an autonumber PK called PROBLEMID(hidden on form as item P2_PROBLEMID). The field I want displayed in the action message is P2_SERIALNUMBER. I tried returning the value to a secondary key on the ARP screen and tried using the message you gave me, but upon pressing <Submit Changes> button it just echoed back the message you gave me literally with no data substitution for the argument &P2_SERIALNUMBER. I also tried an alert statement in the message field using <script>alert(html_getElement('P2_SERIALNUMBER').value + " added successfully")</script>. What I got back after pressing the <Submit Changes> button is an alert message that said "false added successfully". So I don't know if the code is wrong or that nothing is getting sent back to item P2_SERIALNUMBER(defined as text field with state) and therefore returned it "false". Any more ideas would be gladly appreciated.

  • How to retain search values after submit in a result table

    Hi, i have search page with a autoCustomizationCriteria query region.
    In a simple search panel there are three messageChoise search items.
    When the search is performed a result table is displayed together with a cancel and a submit button.
    After submitting the changes in the result table a dialogpage is displayed and then returning to the search page.
    The mesageChoise values in the search region are now all reset to default.
    How can i retain the search values so that i can requery the page showing the updated values of the resulttable?
    Code in PFR:
    if (pageContext.getParameter("Submit") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("apply");
    // get message
    OAException confirmMessage = new OAException("XX","XX_SOME_MSG_CONFIRM");
    OADialogPage dialogPage = new OADialogPage(OAException.CONFIRMATION,
    confirmMessage, null, APPLICATION_JSP +
    "?page=/xxx/oracle/apps/xx/xx100/apps/webui/SearchPG", null);
    // Note that we release the root "UI" application module
    // so we can correctly handle any subsequent "Back" button
    // navigation and attempts to resubmit the PO transaction.
    pageContext.releaseRootApplicationModule();
    pageContext.redirectToDialogPage(dialogPage);
    Regards SG

    Thanks but i've already tried to remove the
    pageContext.releaseRootApplicationModule();
    but it does not help.
    Actually after pressing the start button in the query region and the data is shown in the result table, the following can be seen in the URL of the browser:
    192.168.1.151:8988/OA_HTML/OA.jsp?page=/xxx/oracle/apps/xx/xx100/apps/webui/SearchPG&searchType=search&fwkSTSearchrPG__QueryRN=search&_ti=1151125721&retainAM=N&addBreadCrumb=N&oapc=10
    So even before i submit the changes in the result table AM seems to be lost, but I'm not sure where the retainAM=N is initiated and where to override it. Any help would be appreciated.
    Regards SG

  • How to update line items if it exceeds 17 during creation of SO in va01.

    Hi,
    I have implemented one logic in mv45afzz for updating IO (internal order) with respect to line items during creation of SO through VA01.
    It is working fine.
    My problem is: For first 17th line items it is working fine , but those line items which come after 17th not working.
    Please suggest.
    Thanks,
    Sakti

    Hi,
    Pls find the below code for your reference.
    LOOP AT xvbap INTO wa_xvbap.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
          EXPORTING
            input  = wa_xvbap-matnr
          IMPORTING
            output = wa_xvbap-matnr.
        IF ( wa_xvbap-matnr = c_matno_1 OR
           wa_xvbap-matnr = c_matno_2 ) AND
           wa_xvbap-updkz <> 'D'.
    *Before changing container number first check first check the IO attached to
    *this container number fully settled or not.
          IF NOT yvbap[] IS INITIAL.
            SORT yvbap[] BY vbeln posnr.
            READ TABLE yvbap INTO wa_yvbap WITH KEY vbeln = xvbak-vbeln
                                                    posnr = wa_xvbap-posnr
                                                    BINARY SEARCH.
            IF sy-subrc = 0 AND
              ( wa_yvbap-arktx <> wa_xvbap-arktx OR
               wa_yvbap-z_container_no <> wa_xvbap-z_container_no.
              CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
                EXPORTING
                  input  = c_sdi
                IMPORTING
                  output = l_output1.
              CONCATENATE 'ORX'
                          wa_yvbap-z_container_no
                          INTO g_objnr1.
              SELECT SINGLE *
                          INTO wa_cobrb_sdi
                          FROM cobrb
                          WHERE objnr = g_objnr1 AND
                                konty = l_output1.
              IF sy-subrc <> 0.
                CONCATENATE 'ORY'
                              wa_yvbap-z_container_no
                              INTO g_objnr1.
                SELECT SINGLE *
                            INTO wa_cobrb_sdi
                            FROM cobrb
                            WHERE objnr = g_objnr1 AND
                                  konty = l_output1.
              ENDIF.
            ENDIF.
          ENDIF.
    *If the Io is fully settled, then can not change container number.
          IF wa_cobrb_sdi-ersja IS NOT INITIAL.
            MESSAGE s303(me) WITH 'Container can not be changed as IO already settled for' wa_yvbap-posnr.
            CLEAR:wa_yvbap,
                  wa_cobrb_sdi,
                  g_objnr1.
            PERFORM folge_gleichsetzen(saplv00f).
            fcode = 'ENT1'.
            SET SCREEN syst-dynnr.
            LEAVE SCREEN.
          ELSE.
    *Check container number is initial or not
            IF wa_xvbap-z_container_no IS NOT INITIAL AND tcode = c_va01.
              CONDENSE wa_xvbap-z_container_no.
    *Add 'X' to container number and serch for IO exist or not
              CONCATENATE c_x
                          wa_xvbap-z_container_no
                          INTO l_aufnr.
              SELECT SINGLE aufnr objnr
                         FROM aufk
                         INTO (g_aufnr,g_objnr)
                         WHERE aufnr = l_aufnr.
              IF sy-subrc = 0.  " AND wa_xvbap-arktx = l_aufnr.
                l_flag = 'X'.
              ELSE.
    *Add 'Y' to container number and search for IO
                CONCATENATE c_y
                            wa_xvbap-z_container_no
                            INTO l_aufnr.
                SELECT SINGLE aufnr objnr
                          FROM aufk
                          INTO (g_aufnr,g_objnr)
                          WHERE aufnr = l_aufnr.
                IF sy-subrc = 0.  " AND wa_xvbap-arktx = l_aufnr.
                  l_flag = 'X'.
                ELSE.
    *Display error message if Io was not found or forgot to enter IO in description field
                  MESSAGE s083(me) WITH 'IO was not found for' wa_xvbap-posnr.
                  PERFORM folge_gleichsetzen(saplv00f).
                  fcode = 'ENT1'.
                  SET SCREEN syst-dynnr.
                  LEAVE SCREEN.
                ENDIF.
              ENDIF.
           ELSE.
            ELSEIF tcode = c_va01.
    *Display error message if user forget to enter container number
              MESSAGE s083(me) WITH 'container number for' wa_xvbap-posnr.
              PERFORM folge_gleichsetzen(saplv00f).
              fcode = 'ENT1'.
              SET SCREEN syst-dynnr.
              LEAVE SCREEN.
            ENDIF.
            IF l_flag EQ 'X'.
              CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
                EXPORTING
                  input  = c_sdi
                IMPORTING
                  output = l_output.
              CALL FUNCTION 'CONVERSION_EXIT_PERBZ_INPUT'
                EXPORTING
                  input  = c_ful
                IMPORTING
                  output = l_ful.
    *Fetch 1st line of settlement rule
              CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
                EXPORTING
                  input  = c_gl
                IMPORTING
                  output = l_gl.
              SELECT SINGLE *
                    INTO wa_cobrb_gl
                    FROM cobrb
                    WHERE objnr = g_objnr AND
                          konty = l_gl.
              IF sy-subrc EQ 0.
    *Populate values for second line settlement
                wa_cobrb-objnr = g_objnr.            "OBJNR
                wa_cobrb-lfdnr = '003'.
                wa_cobrb-konty = l_output.           "Category
                wa_cobrb-kdauf = xvbak-vbeln.        "Order No
                wa_cobrb-kdpos = wa_xvbap-posnr.     "Item No
                wa_cobrb-prozs = c_percent.          "Percentage
                wa_cobrb-perbz = l_ful.              "Settlement
                wa_cobrb-extnr = c_no.               "No
                wa_cobrb-gabpe = wa_xvbap-erdat+4(2).      "From period
                wa_cobrb-gabja = wa_xvbap-erdat+0(4).      "From Fiscal
                APPEND wa_cobrb TO gt_cobrb.
              ELSE.
    *Populate values for second line settlement
                wa_cobrb-objnr = g_objnr.            "OBJNR
                wa_cobrb-lfdnr = '003'.
                wa_cobrb-konty = l_output.           "Category
                wa_cobrb-kdauf = xvbak-vbeln.        "Order No
                wa_cobrb-kdpos = wa_xvbap-posnr.     "Item No
                wa_cobrb-prozs = c_percent.          "Percentage
                wa_cobrb-perbz = l_ful.              "Settlement
                wa_cobrb-extnr = c_no_1.               "No
                wa_cobrb-gabpe = wa_xvbap-erdat+4(2).      "From period
                wa_cobrb-gabja = wa_xvbap-erdat+0(4).      "From Fiscal
                APPEND wa_cobrb TO gt_cobrb.
              ENDIF.
              IF wa_cobrb_gl IS NOT INITIAL.
                wa_cobrb_gl-gbisp = wa_cobrb-gabpe - 1.
                wa_cobrb_gl-gbisj = wa_cobrb-gabja.
                APPEND wa_cobrb_gl TO gt_cobrb_gl.
              ENDIF.
         ELSEIF wa_cobrb-ersja IS NOT INITIAL.
           MESSAGE 'Container number can not be reassign' TYPE 'E'.
            ENDIF.
          ENDIF.
        ENDIF.
        CLEAR:wa_cobrb,
              g_objnr,
             wa_aufk,
              wa_cobrb_gl,
              wa_cobrb_sdi.
      ENDLOOP.
      IF l_flag EQ 'X'.
    *Create 2nd line for settlement rule.
        SORT gt_cobrb[].
        DELETE ADJACENT DUPLICATES FROM gt_cobrb[].
        IF NOT xvbak-vbeln IS INITIAL AND tcode = c_va01.
          IF NOT gt_cobrb[] IS INITIAL.
            CALL FUNCTION 'K_SRULE_SAVE_UTASK'   "IN UPDATE TASK
              TABLES
                t_cobrb_insert    = gt_cobrb[]
              EXCEPTIONS
                srule_utask_error = 1
                OTHERS            = 2.
    Thanks,
    Sakti

  • How to Update line items in a structure ?

    Hi i am getting 3 line items retrieved from a Function Module. But while displaying in the script it shows only the last line item. How do i update all the line items??
    The code is given below,
        CALL FUNCTION 'FI_PRINT_ZTERM'
             EXPORTING
                  I_ZTERM         = EKKO-ZTERM
                  I_LANGU         = EKKO-SPRAS
                  I_XT052U        = ' '
                  I_T052          = T052
             TABLES
                  T_ZTEXT         = ZBTXT
             EXCEPTIONS
                  ZTERM_NOT_FOUND = 01.
    Loop at ZBTXT.
        READ TABLE ZBTXT.
        IF SY-SUBRC EQ 0.
          PEKKO-ZBTXT = ZBTXT-LINE.
          DELETE ZBTXT INDEX 1.
    *      UPDATE PEKKO-ZBTXT.
        MOVE ZBTXT-LINE TO PEKKO-ZBTXT.
        ENDIF.
    ENDLOOP.
    And also how do i retrieve it in the script ?

    HI Navaneethan,
    please try following code.
    make  PEKKO should be internal table with appropraite structure..
    Loop at ZBTXT.
          MOVE ZBTXT-LINE TO PEKKO-ZBTXT.
          append  PEKKO.
         clear  PEKKO.
    ENDLOOP.
    loop at pekko.
    write : / PEKKO-zbtxt.
    endloop.
    if above code is helpful, REWARD POINTS.
    Regards,
    Ranjith

Maybe you are looking for

  • Use iMac as monitor for a PC laptop

    Can i use my iMac (2009) as a monitor for a Windows 7 Laptop?

  • FCE Not Reopening

    I have read in many places that the way to fix FCE when it does not start is to trash preferences. Yes, this works. But surely I should not be expected to do this EVERY time I want to use FCE. My current scenario. I trash preferences. FCE starts up f

  • HR Report category payroll clusters

    Hi, I have a problem in using the report category which i have created for reading data from payroll clusters. I have attached PNP LDB in my program attributes and have set '900' as the selection screen. In the new report category which i had created

  • Jelly Bean upgrade for AT300 3G model

    Hi. I read an old thread (1 month ago) that JB has not been rolled out to AT300 with 3G due to some modem driver issue. Does anyone know when will this be fixed and when JB update will come for 3G model?.

  • OS X Lion:issue with IPP printers

    Hi, After upgrading to Lion 10.7.3, I am experiencing issue with the IPP printers at University. After installing the printer (XEROX WorkCentre 7755) no passowrd box appear. Is there any workaround for this? Thanks, Giovanni