Update a block without navigating to it.

I have a table with several integers in it and a Form that reads the table. The Form has to translate the integers into things the user wants to see, so I hide the actual database field, do a translation into the user friendly string and display it in a display item. In some cases 0 means OFF, 1 means ON, in other cases I have to do a calculation to convert the integer into a float, I use a formula in these cases. This is all very easy and straight forward.
The problem is that a query puts the cursor into my database connected block but the formulas do not calculate and display until I navigate into the display block. I wrote a when-new-record-instance trigger on my database block to jump to the display block and then back. That seems kind of ugly and besides I just want display items in my display, I don't want anyone to navigate to them, the user can't directly update the table. Is there a better way to cause the display block to be updated when the database block is?

Hi,
did you try :blockname.itemname to assign values to teh fields?
Frank

Similar Messages

  • How to process records in a block without navigating (forms45)

    Hi.
    I use multi-record block with check boxes to allow operator select row they want to update. How can I process this task? Do I have to use:
    First_Record;
    loop
    when../*record doesn't exist */... exit;
    If /*checkbox selected */ then process_record
    end if
    Next_Record
    end loop
    But after that I have to navigate to the row I was before and I don't know how to do it.
    Or maybe (it would be much better) there is some way to silently process all rows in a block without employing the navigation process. Any advice?
    Thanks,
    Gregor

    DECLARE
    currentRecord number := get_block_property('YourBlock', CURRENT_RECORD);
    BEGIN
    First_Record;
    loop
    when../*record doesn't exist */... exit;
    If /*checkbox selected */ then process_record
    end if
    Next_Record
    end loop
    go_record(currentRecord);
    END;

  • How to find out the current number of rows in a form without navigation

    Hi.
    Is there any way to count the rows in a form (block) without navigation to the last record?
    I am modifying CUSTOM.pll and have to count the rows before user commits changes.
    All records are new in this case. Can anyone halp me? Thanks.
    Regards
    Tomáš

    Magoo wrote:
    no, such a block-property ^unfortunately^ does not exists.
    you can just go to to the block, call the last_record build-in and find out, where the cursor is.
    But with this you call restrictred procedures and their are not everywhere allowed ...
    If you execute a query on a block, may not all records getting retrieved from database.
    For this forms does not know, how many records are really in the block and
    for this there is no build-in like get_block_property ( records_count ).It does exist indeed. GET_BLOCK_PROPERTY('BLOCK',QUERY_HITS);
    Of course, this will return the number of records that would get fetched to the block (based on the where condition), but not the records with NEW status (i.e new records which are not yet committed).
    -Arun

  • User exit for updating delivery block of Sales order before Delivery

    Hi  Folks,
    Need to have an user exit for updating Delivery Block indicator for a Sales order Before creating its delivery
    I have got an exit in Program SAPMV45A
    MV50AFZ1
    FORM USEREXIT_REFRESH_DOCUMENT.
    that hits before processing the delivery block fro delivery (Correct me if i m wrong with this )
    Now i want now how to change the Delivery Block indicator of Sales order in that exit
    any FM available ?
    Thanks n regards
    Sonal...

    Hi  ,
    How did you solved this issue?
    I am having similar scenario in which while pressing the save button  delivery block should update if multiple schedule line exist.
    Tried by two different approaches in various user exit without any success.
    AFAIK we have two ways to achieve this functionality.
    1) Count the no of rows in vbep. If greater than 1 then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
    This is not correct. If there are two line items both with single schedule line . This case total no lines in vbep will 2 and above condition will true which is incorrect.
    2) There is a indicator for multiple schedule line (VBAPD-EPMEH , xvbap-epmeh ) if it is check then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
    If I write code in USEREXIT_SAVE_DOCUMENT_PREPARE.
    Multiple schedule line indicator is not populate so can not use 2nd approach.
    If I write code in  USEREXIT_SAVE_DOCUMENT it of no use as vbak is updated before reaching this user exit.
    If I write code in USEREXIT_MOVE_FIELD_TO_VBAK as this user exit is also called while pressing the enter key for this I have use
    the condition of fcode but it also fails in some condition.
    If fcode eq 'SICH'.
    Read table xvbap with key epmeh = 'X'.
    IF SY-SUBRC = 0.
    VBAK-LIFSK = '03'.
    Else.
    VBAK-LIFSK = ' '.
    Endif.
    Endif.
    Please help me to get the desired functionality working for all cases.
    1) One line item with multiple schedule line                                              
    2) Two line item with multiple schedule line                                             
    3) One line item having one schedule line and second one having multiple
    4)Two line item both with single schedule line.

  • Execute query without navigation

    hi all,
    My problem today that I want to execute query without navigation.
    I create a global variable
    (:global.usr := :block.username;)
    as you see the global variable takes the value of the current user accessing the system.
    I want the user to be able to change his password without any privilage to see the other users.
    when_new_form_instance
    execute_query;
    that what I did but what I want is to restrict his access only according to the value in the global variable

    I tryed to run the following code but I dont know why the condition in the else clause always execute.     
    if :global.usr = :global.usr = upper('ADMIN') or
         :global.usr = upper('SYS_ADMIN') then
         set_block_property('SYS_USER', DEFAULT_WHERE, '');
         execute_query;
         else
                   set_block_property('SYS_USER', DEFAULT_WHERE, 'USER_NAME = :global.usr');
                   execute_query;
         end if;

  • IPod Touch Won't Update to iOS5 without error message (-43) stating all contents will be deleted. How can I update without everything being deleted?

    Hi there,
    I have an iPod Touch 3rd generation (Model A1318). For the last several months I keep trying to update to iOs 5 and it gets stuck during the backup phase and an error message pops up:
    As half of my songs are not iTunes purchases, therefor not on the cloud, I do not want to start from scratch and have everything deleted. Also, Apple does not allow you to extract songs back off the pod easily to backup, so it would present a serious hassle reuploading hundreds of songs from CDS etc. Can anyone help explain this message? Has anyone hit continue with the update occurring smoothly without anything being erased? Any guidance much appreciated. I tried several times disabling my anti virus software during the process like others have said on the boards and in the Apple store but the same message and outcome. For reference, I'm using Windows Vista and the most recent iTunes 10.6.1.

    See my response to your other post.
    The automatic iTunes backup does not contain any synced items like apps, music (either iTunes purchases or not). There is no difference in what is backed up. See:
    iTunes: About iOS backups

  • How to update delivery block in delivery(vl02n) using BAPI

    hi all,
    i have to update delivery block of a delivery using a BAPI. can any one suggest which bapi i have to use. and if possible let me know what are the mandatory fields that i have to fill in that bapi.
    thank you all in advance

    HI,
    Use the BAPI BAPI_OUTB_DELIVERY_CHANGE..
    Pass the delivery number DELIV_NUMB in both HEADER_DATA and HEADER_CONTROL..
    In HEADER_DATA-DLV_BLOCK pass the delivery block.
    In HEADER_CONTROL-DLV_BLOCK_FLG pass 'X'
    Thanks
    Naren

  • I have a used mac computer. I want to sync and update my iphone. Currently itunes tells me that my iphone is connected to a different itunes account. How do I make itunes sync and update my phone without deleting all the current information on my phone?

    I have a used mac computer. I want to sync and update my iphone. Currently itunes tells me that my iphone is connected to a different itunes account and will sync, but delete everything from my phone. How do I make itunes sync and update my phone without deleting all the current information on my phone?

    Iphone will sync with one and only one cpomptuer at a time.  Syncing to another will erase the current content and replace with content from the new computer.  This is the design of the  iphone.
    It will erase the content when you sync.
    Why not update from the comptuer with which you normally sync?

  • I can no longer buy, download, or update apps/iTunes without being asked for apple ID and billing information to be declined

    I can no longer buy, download, or update apps/iTunes without being asked for apple ID and billing information. Even if apps are free or updating I'm asked for billing information. It's been like this for a couple of weeks after the purchase of a movie off iTunes and the purchase was successful but afterwards my App Store and iTunes stopped working properly. Help me please, thanks.

    Go here:
    https://expresslane.apple.com/Issues.action
    Ask for assistance.

  • HT4972 How the heck do I stinken update my Ipod without losing ALL OF MY DATA!!!

    Hello, I would like to know how to update my ipod without losing all of my data (apps, music, ect.) could someone tell me please?

    All that is required is to sync your iPod Touch with iTunes. This creates a complete backup of all its content.
    If you read the instructions for updating iOS it cautions you to back up first.

  • Is it possible to update my apps without money in my payment card because I don't really have money and I need to update

    Can I update my apps without verifying my payment information

    If you have an unpaid balance or payment due, you can't select None as your payment type.
    To see which order you need to pay for, view your purchase history.
    When you sign in to the store, you may see a message that there was a billing issue with your last order.
    Click the Billing Info button to see the order.

  • My itunes says that my ipod is synced with another library when it is not and cannot update or sync without wiping it and all its data

    My itunes says that my ipod is synced with another library when it is not and cannot update or sync without wiping it and all its data
    Can anyone help me

    Syncing to a new iTunes library or computer will erase your ipod. Only if you back up your iPod manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your iPod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    All media content will be erased during the first sync, but you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the ipod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread:http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0

  • HOWTO: Avoid go to detail block without fullfill the master block?

    Hi:
    I have a master detail form with 2 blocks. When the user open the form the focus is on the first text item (required = yes) of the master block. If the user tries to get out of that item with keyboard (tab or enter), it gets the correct message saying that the item is required and must be filled. But the problem starts when the user click with the mouse on another item of the detail block. Here, I will have 8 or 9 messages saying that is impossible to create records without a master record. This is really annoying. This message has no ID (FRM-XXXXX), and I really must get a way to forbide users to go to the detail block without filling required items in the master.
    Anyone?
    Best Regards
    Joao

    Hello,
    if there is a relation between the two blocks double click on that rel.and mark the check box property:prevent Masterless operation try this option and tell me what's ur feed back..?
    Regards,
    Abdetu..

  • How to display total in a block without total showing up in relevant detail block

    Hi there,
              I create a worksheet, including two block, one of which have detail information with multiple characts and one key figure, another block only have sumerization information takes one cell, which is summarized key figure for that detail information block.
             I implement this summary cell with formula 'GETDATA', but it is only effective after I show total for detail block.
            such as for detail block:
                         employee_no,  wage type,  earning_amount.
                         overall result                        total for earning_amount
            for summary block:
                         summary of earning_amount for all employees in the detail block.
    please tell me how to display summary block without pulling in overall result for detail block.
    Many Thanks,

    Hi bo zhang,
    This can be a work around
    As Michael Tocik suggested
    goto components tab, right click on data source and select copy
    do not insert cross tab
    then use the formula for DS_2 like
    =SAPGetData("DS_2","earning_amount","employee_no=TOTAL")
    this should work.
    and if you do any drill down for DS_1, the above total will not chnage because that is dependent on DS_2
    Hope it helps
    Best Regards,
    Subhash

  • I need to update my iPod without charging it.

    I would like to update my songs without actually charging the iPod at the moment. Is that possible?

    "My room mate told me that it's bad to charge the iPod if the battery doesn't need it"
    That's completely wrong. Charge you battery whenever you feel like it.
    See this link (question 8). http://docs.info.apple.com/article.html?artnum=62018
    And anyway, as I said, it's desirable for the battery to get power whilst updating from iTunes.

Maybe you are looking for