OVS for two fields in the same selct Option?

Hi Experts,
I am using select options in my view. I am using OVS for one field. I would like to use same OVS for another field in the same select option.
I tried "case ovs_callback_object->context_attribute". Which return the field for which we press F4.
But IT did not work here probably because this we can use only for context attributes fields.
but But here I dont get the select option field.
But in my case I have select options which are not mapped to any context attribute.
How can I find , for which field in select options F4 help has been requested?
Regards,
Vishal.

Hi,
You can find which field in select options F4 help has been requested using I_OVS_DATA-M_SELECTION_FIELD_ID.
        CASE I_OVS_DATA-M_SELECTION_FIELD_ID .
             WHEN 'PERNR'.
             WHEN 'ENAME'.
             WHEN OTHERS.
        ENDCASE.
If you are using one OVS for more than one fileds, please remember that you need to provide different code for each fields at phase 0 (configuration) and phase 3 (apply result).
Regards,

Similar Messages

  • How can I have two fields with the same name if it makes sense?

    Hello, folks :)
    I have a pretty hard time figuring out how I can have two text fields with the same binding name.
    The whole problem is that when I need two fields with the same binding name they are still differnent coz they have the same name but differnt indices.
    I should make a form filled at runtime by merging a pdf form file and an fdf file data file. And I have no choice to do it differently. And my form file needs some data like customerName, companyName twice in one form. But there's only one possible buinding name indexed zero.
    How can I create a field with absolutely the same name or is it just impossible due to possible name conflicts? And is there a workaround to this problem? I just need one piece of data repeated in different places.
    Thanks for your replies :)
    P.S. if u think that the problem is not clear enough let me know. I'll supply you with more details. But the general process can not be changed.
    One pdf should be mergred with an fdf with as the result of their merge a new filled and flattened form. I have no control over fdfs their are generated by Oracle and I can not fill the form using XML files coz this process should be integrated in a working application.

    I just thought about a really ugly workaround with a server-side script adding values to fdf files but it's a bit of work and tests and personally i think it's a bad idea :-(

  • Two fields on the same line in sreen programming

    Hi All,
    I need to create a selection screen which would have two fields (their texts and their irespective input fields) in the same line, on the screen.
    I was able to achieve this by using code--
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-a04.
    PARAMETERS: sch_begd LIKE qppnp-begda.
    SELECTION-SCREEN COMMENT 52(22) text-a05.
    PARAMETERS: sch_endd LIKE qppnp-endda.
    SELECTION-SCREEN END OF LINE.
    This could allign the fields - start date (text-a04) and end date (text-a05) in the same line along with their input fields.
    But I am facing two issues with this code-
    1. I am not able to get the underline same as we get when we create selection screen using 'select-options' and 'parameters'.
    2. This is causing accessibility issues, as the field text and the input field are no more linked (since I am using text element to display the field text, like for start date), it cannot find the text to be read for the input field and hence the checkman errors.
    Please suggest how to achieve the same.
    Thanks and Regards,
    Arpita.

    Hi Arpita,
    Are you trying to have select-option field in your screen in dialog programming?
    If yes than you can use the following approach else ignore this.
    Create one screen (100) and create subscreen area on this screen and call this subscreen in PAI and PBO of screen
    Using call subscreen check F1 help for calling subscreen in PAI and PBO.
    Now you should create your selection screen on the subscreen use selection screen begin of screen (100) option of defining
    selection screen and then add your selection options here.
    Regards,
    Pawan

  • How to use the TableSorter for two tables at the same view?

    Hello,
    I am using the TableSorter object in order to sort Dynpro tables.
    Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
    I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...

    Hi Roy,
    Constructor of TableSorter
    public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
    So, you have to create instance of TableSorter class for each table on the view.
    best regards, Maksim Rashchynski.

  • How to compare two fields from the same table in the select statement

    Hi, friends
    I try to compare tow fields from the same table, but no result,
    For example, this
    data: cptotchek tyep i.
    select count(*) into cptotchek
    from aufk where erdat = aufk-idat2 .
    The result is  cptotchek = 0, but there are the records in aufk , where,  aufk-erdat = aufk-idat2.
    Please, help me, i don't use the loop statement for optimize my program.
    Regards

    Hi  ,
           it will not return  any value   when you are using   column of same table 
           such as Date Field   , Because  while Using Aggregate Function  it will not check with self column
    .      For that you have to take data in one internal table and then you can work on it  .
         And if you are worried about Performance  it will not affect  , untill you are selecting only required data  .
    you can try this way  .
    data: cptotchek type i.
    types : begin of  w_aufk.
            include structure aufk  .
          types : end of  w_aufk .
    data : it_aufk type standard table of w_aufk with header line  .
    select * into corresponding fields of table it_aufk
    from aufk  .
    loop at it_aufk .
    if it_aufk-erdat  = it_aufk-idat2 .
    write : / it_aufk-erdat , it_aufk-idat2 .
    else .
    delete it_aufk .
    endif  .
    endloop.
    Regards
    Deepak.

  • How to generate a value to field in a row based on another two fields in the same row ???

    I have a quantity and unit price and there is also a field in the same row called total price. I want to get the value automatically of total price from multiplying quantity and unit price.

    Here you go:
    page code
                            <af:panelGroupLayout id="pgl2" layout="horizontal" styleClass="AFStretchWidth">
                                <af:inputText label="Quantity" id="quantity" value="#{bindings.quantity1.inputValue}" autoSubmit="true"
                                              valueChangeListener="#{SetItemBean.valueChangeListenerItem}"/>
                                <af:spacer width="10" height="10" id="s1"/>
                                <af:inputText label="Price" id="price" value="#{bindings.price1.inputValue}" autoSubmit="true"
                                              valueChangeListener="#{SetItemBean.valueChangeListenerItem}"/>
                                <af:spacer width="10" height="10" id="s2"/>
                                <af:inputText label="Sum" id="total" value="#{bindings.total1.inputValue}" partialTriggers="quantity price" readOnly="true"/>
                            </af:panelGroupLayout>
    page bindings
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="12.1.2.66.68" id="SetItemPageDef" Package="de.hahn.blogtest12c.view.pageDefs">
      <parameters/>
      <executables>
        <variableIterator id="variables">
          <variable Name="quantity" Type="java.lang.Number"/>
          <variable Name="price" Type="java.lang.Number"/>
          <variable Name="total" Type="java.lang.Number"/>
        </variableIterator>
      </executables>
      <bindings>
        <attributeValues IterBinding="variables" id="quantity1">
          <AttrNames>
            <Item Value="quantity"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="variables" id="price1">
          <AttrNames>
            <Item Value="price"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="variables" id="total1">
          <AttrNames>
            <Item Value="total"/>
          </AttrNames>
        </attributeValues>
      </bindings>
    </pageDefinition>
    and bean code
        public void valueChangeListenerItem(ValueChangeEvent valueChangeEvent) {
            String comp = valueChangeEvent.getComponent().getId();
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            // get an ADF attributevalue from the ADF page definitions
            AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("quantity1");
            Number q = (Number) attr.getInputValue();
            if (q == null)
                q = 0;
            attr = (AttributeBinding) bindings.getControlBinding("price1");
            Number p = (Number) attr.getInputValue();
            if (p == null)
                p = 0;
            if ("price".equals(comp)) {
                p = (Number) valueChangeEvent.getNewValue();
            } else {
                q = (Number) valueChangeEvent.getNewValue();
            // set new value
            attr = (AttributeBinding) bindings.getControlBinding("total1");
            Number t = q.doubleValue() * p.doubleValue();
            attr.setInputValue(t);
            // update Total
            FacesContext facesCtx = FacesContext.getCurrentInstance();
            UIComponent ui = facesCtx.getViewRoot().findComponent("total");
            if (ui != null) {
                // PPR refresh a jsf component
                AdfFacesContext.getCurrentInstance().addPartialTarget(ui);
    Timo

  • How to create a field in an OAF page which sums two fields in the same page.

    Hi,
    In the HRMS appraisal page, I have two fields in different regions.
    1. One field shows the total score of the competencies.
    2. Another field shows the total scores of the objectives.
    The problem with the appraisal total score is it returns only the rating level id. (It does not take decimal values)
    Hence I want to add the above two fields which is displayed in the same page and show as a new field in the top of the page as the final appraisal score.
    [Something similar to what is mentioned in the metalink document 1315431.1 ]
    We are in 11.5.10.2.
    I am new to OAF and have no idea as to how to achieve the above step. Can anyone guide me in doing it?
    regards

    Hi,
    Went through the steps to do a VO substitution.
    But normally in all the examples given the page will belong to the application where we are modifying.
    Eg. in this case the "about this page" shows /oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG
    This is coming under fnd top where all the appraisal VOs and other pages comes under PER_TOP.
    Should I bring all the files from FND_TOP of the server to my PC where jdev is installed.
    I have already taken all the files under $PER_TOP to my PC.
    regards

  • Data Sets - Is there a way to put two fields in the same row?

    I am working on my first Spry Data Set (in Dreamweaver CS4) which, if I can get it figured out, will eventually be used as a calendar on a client's web site. You can see the beginning of the project here:
    http://www.rieradesignco.com/calendarlist_spry.html
    My question is, can I put two or more fields on one row? Specifically, I would like the part that looks like this...
    3
    [WED]
    Fusion
    ... to look like this:
    3   [WED]   Fusion
    I tried simply moving the fields (in Design View) so that they looked like they would be in the same row, but as you can see, that didn't do the trick. (You can see what I did here, in the highlighted part of the screenshot:  http://www.rieradesignco.com/spryquestion.jpg). I also tried nesting a table within the table on my html data document that contained the three fields I needed - it worked okay, but that just makes the table more difficult to work with. I don't want to simply type the three items into one field, because it will be a long list and they all need to line up perfectly.
    Is there another way to do it?

    Change the following line to include the red coloured parts
    <div class="MasterColumn" spry:repeat="ds4" spry:setrow="ds4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
      <span>{Dsp_#}</span><span>{Dsp_WkDay}</span><span>{Dsp_Event}</span>
    </div>
    The add the following style rule to your document:
    .MasterColumn span {
        display: inline-block;
    I hope this helps.
    Ben

  • Double click event to be captured for multiple fields in the same screen

    Hi all,
    I am doing one module pool development in which the requirement for one screen is like when I click on a particular field (BP number), it should go to a particular transaction and when I click on Loan number on the same screen, it should goto another transaction. I had set PICK for F2 in GUI status and also used GET CURSOR FIELD <field>. The ok code is coming as 'PICK' but GET CURSOR FIELD is not working and I am not getting the field that is been double clicked, because here I need the field that is been double clicked. Is there any other settings to be made or is there any work around for this. Please Help.
    Regards,
    Harikumar

    Thanks everyone. I have solved it.

  • Can I have two seperate iTunes lists for two iPods on the same computer?

    I have two nanos, one for me and one for my daughter. Can we manage two seperate download lists when we plug in to the same computer.
    The additional complication...her nano has a smaller memory than mine, so her's wouldn't hold all the songs anyway.
    Assistance would be appreciated!
    Happy holidays
    Nordic Squirrel

    Have a look at this article in the Apple Knowledge Base.

  • % DB increase differs for two system from the same landscape

    Hi all ,
    I have done upgrade and then unicode conversion for the two system- sandbox and development  from 4.6 C to ECC 6.0 with oracle 10 G and AIX 5.3
    On sandbox % db( used db size in DB02 ) increase is 60 to 80 which is as per SAP figures after unicode conversion however on dev it is almost 150 % .
    Has anybody faced the same problem before or can you suggest somthing for this tremendous data growth
    Also what I have observed is threre are 7 tablespace on sandbox and 8 on Dev with "PSAPSR370" as the additional one on DEV ( PSAPSR3700 is different )
    Please help me on this
    -Ganesh

    Hi Ganesh,
    the database growth depends heavily on the content. Which languages do you have installed in your system and which  modules are used by your company?
    I think the normal growth should be in a range of zero to 30 percent. The lower end comes from the reorganization effect due to the migration and 30 percent comes due to the fact that most data is normally numeric and numbers are the same with or without Unicode. But in rare situations it could be possible to see much higher values. The reason is, that Oracle, and also DB2, are using UTF-8 encoding if you're running your system as Unicode system. In UTF-8 a two byte Unicode character could be encoded in up to four bytes. That means if your systems contains lots of double byte characters it could grow much more than 30% but it seems unusual to me.
    Are you sure that nothing was wrong with your migration?
    Best regards
    Ralph Ganszky

  • Using the same itunes account for two users on the same macbook pro

    Hi all.  I purchased a macbook pro in september (which I have absolutely adore), but because my semester was so jam packed with work, I wasn't able to take it in for my data transfer until the Christmas season.  Everything was transferred correctly, but for some reason the transfer leaves me with two different users on the same macbook.  I don't really have any problem with this, except I want to access the music from the "old user" with the new user that I have been using since I purchased the macbook.  Is there any way that I can move my music from one user to another?  Bear in mind that I only have one itunes account, and almost all of this music was purchased legally through itunes (I had some old cd's that I transferred back when I first bought the original macbook back in 07).  Thank you!

    I'm assuming that you want to get both your purchased music AND your ripped CD's back into the New iTunes Library.  If you use iCloud to re-download all your purchased music, TV, apps and books you wont get your CD's or movies back; and you'll use up a lot of internet bandwidth and time to re-download everything.  So, I'm going to give you a way to get the music and everything else off the hard drive into your new iTunes Library.
    But, I need some clarification here.  I'm assuming that you recently used Migration Assistant to move your old Mac's user account to the new Mac, so when you turn on the new Mac you have a choice to log in as either the "Old_User" or the "New_User", or something like that.  And both user acounts are using the same iTunes music store Apple ID, right?
    And, I'm assuming that you have both accounts set up with your iCloud or MobileMe information, so they have the same info in the contacts, calandars, bookmarks, and notes.  If you didn't use iCloud to load this info to the new user, then importing your old contacts, calendars, bookmarks and such will require an extra few steps, and is a different process entirely (composed of exporting the data from each of those apps while logged in as the Old User, and then importing them while logged in as the New User). 
    I'm assuming that the main differences in the two accounts will be that your old documents, old downloads, old email, old iPhoto and old iTunes library are not merged with the new ones, right? Apples Migration Assistant would have merged the Mac Apps folder and copied over all the Shared Users documents if it was done right. I'm also assuming that you kept your old iTunes Library in your Old User account and not in the Shared Users folder, right?
    If that's the case, first decide which account will become the primary account that you you will use all the time from this point forward.  You may want to choose the account that has the most recent work that you have done with the computer over the past semester since it's set up the way you like it, or the account that has the largest amount of data and history that you don't want to move.  The next step will be done by first logging into whichever account you wont be using in the future (except to access old info that can't be moved).
    If you are happy with how it's working now and just want to move your old documents, photos, and music over to the new account, then it seems to me that it would help things if you first log in as your "Old User" name" and move (or copy) your old documents, downloads, iPhoto Library, and iTunes library to the Shared Users folder. 
    I would basically move everything important in the Old User's home folder to the Shared Users folder, keeping the files in the proper subfolders like "Music" "iTunes" "Pictures" "Movies" "Documents" "Downloads" etc...  However, if your New iTunes Library or New iPhoto Library and such are already in the Shared User's folder, make sure you don't replace them with the old ones, by renaming the old ones first (maybe add the word "old" to the name.
    Mind you, when you have moved everything, and you log out of the Old User acount, and then log in as the New User, you will usually have to enter any administrator's User name and password whenever you want to make changes to those old documents while logged in as the New User.  Before going forward you should first change the User Permissions of those files to let the New User "own" them, so it will stop asking you for a name and password every time you want to access them in the future. 
    EVERYTHING from this point forward assumes that you are now logged in as the New User, and you should not ever need to log in as the Old User, except to access your old email archives or old Keychain Access to find stored passwords (which I think are stored in the Old User's "Library" folder which is invisible and inaccessable in Lion).  I don't know how to merge old saved emails or keychain passwords into the new account (mobile me can sync the keychains or mail rules/accounts, but iCloud can't, and mobile me doesn't sync the actual emails that were downloaded since 2007).
    First, to change the "Sharing & Permissions" to the New User just select "Get Info" for any old document or enclosing folder that need their permissions changed to the New User, click on the little lock icon at the bottom right of the Get Info Window, authenticate with any Administrator's Name and Password, and click okay.  If it shows your New User name as "Read Only" change that to "Read and Write".  If your New User name is not in the list, click the "+" icon on the bottom left and select the New User name, and set it for Read and Write.  Sometimes you have to do this "+" user step more than once to get it to stick. 
    Then, after your New User name shows it's set for "Read & Write", with your New User name still selected, click on the little "cog-wheel" icon next to the +/- buttons, and choose "Apply to Enclosed Items".  The computer could take a long while to finish changing the permissions if there are a lot of files in the folder you changed, so be patient.  When it's done you should "own" all the files in that old folder as the new user.  You are now ready to proceed with importing the old music into the New iTunes library.
    First launch iTunes (still as the New User), and go to File > Preferences > Advanced.  Make sure iTunes is set to "keep itunes media folder organized" and "copy filkes to itunes media folder".  Click okay.  It may open a small window showing that things are being moved and organized, with a progress bar, and then it's done.  It wont do that if you are already organized and copied. 
    At this point, you could simply locate your old iTunes music folder in the Finder and drag the Finder folder onto the open iTunes app window and let go of the trackpad button when the cursor changes to a green "+" sign, and it will import and copy everything into the new iTunes Library.  When it's done you can delete the old Music folder in the Finder (not in iTunes).  However, you may not have enough hard drive space to make the copies, and it will be much slower than if you move the files in the finder before you import them.  You may still have duplicates of your ripped music that you added to the new iTunes Library, and can delete those from within iTunes.
    My step to get the old music to show up in the New iTunes Library by moving them instead of copying them will be done in a particular way, that will avoid having the entire old music folder left behind to take up space on your hard drive, and it will make the import process significantly faster.  You are basically going to use the Finder to move the old music folder into the New iTunes Media folder, but you need to do it in such a ways as to not overwrite the new stuff.
    So, before you move your old iTunes Music folder into the new iTunes media folder, rename the old Music folder with the word "old" in it, then move that folder into your current iTunes Media folder.  Move it, don't copy it.  If the Mac forces you to copy it, once it's done you can delete the old music's original folder, after you confirm it's all there in the copied folder.  This sometimes happens when you move files from Shared Users that you haven't changed the ownership properly before the move.  Now when you drag the old music folder onto the iTunes App window, since the files are already in the iTunes Media Folder it will not copy the files but will simply move them around and organize them inside the new iTunes Music folder.
    You can repeat these steps with the old Movies, TV shows, Apps and Books, or whatever you want to move to the new iTunes Music Library.
    I don't know how to "merge" the old iPhoto Library with the new one, but when you click on iPhoto in the dock while holding down the option key while you click, it will let you choose which iPhoto Library to open.  From a dialog box you can choose the old one, which you copied to the Shared Users folder earlier.  It's possible that a similar technique of dragging the old iPhoto library older on top of the iPhoto App window would import things, but you'd need to research that first.
    I wish I had more time to proof-read this answer, but I have to go to a meeting, but can check back later for questions.

  • How do I use the same profile for two users on the same computer

    I use my laptop both at home and at work. And in each venue I use a different user log on. But I wish to have firefox use the same profile for each user log on. How can I get firefox to point to the same profile for each user?

    Note that only one user (Firefox instance) can use a profile folder at the time, so if you would switch the Windows user to another account then you would first have to close Firefox.
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    * http://kb.mozillazine.org/Bypassing_the_Profile_Manager

  • Two fields in the same location?

    I have a form that has been upgraded to 10g R2 from 4.5. A key enter query trigger activates a field that is normally not diplayed (display=no) that is in the same position as another field. In Forms 4.5 activating the non-displayed field allowed the user to enter some data in that field however in 10g the other field is taking precedence, what do I need to do to make the normally non-displayed field the active field?

    Actually what's a little strange is the 2 fields are in different blocks. The field that is normally displayed is in the 2nd block while the non-displayed field is in the 1st block. In client server mode everything works fine but on the web the field doesn't work so I'll probably have to turn the normally displayed field off as was previously suggested. Thanks.

  • Sync does not make my two computers have the same Firefox Options settings

    Bot FF ver 5 are "connected". The SYNC message was that it worked. I say 'sync now' on both. However, when I look at , for example, Privacy and 'Cookie Exceptions' , the two iterations of FF are absolutely not the same table of Allow and disallowed sites.

    You can use Firefox Sync to keep the bookmarks, passwords and history synchronized. For details on using it see http://support.mozilla.com/en-US/kb/what-firefox-sync?

Maybe you are looking for