Activate Tab page and set cursor on field!

Hi All,
I have a requirement to mimic SAP standard functionality like whenever a mandatory field is not enetered in a transaction, the control activates particular tab page and set the cursor on mandatory field.
My requirement is as below.
There is a main screen 1 with many tab pages.
But when I click on save button, the control goes to different screen. When a partular field is not enetered, then I should put my control to a particular tab page and cursor on that initial field.
Please help me to get this done. Al I think is SET SCREEN but not sure how I can eneable the control to a particular tab page and cursor on a field from the different screen.
Many thanks.
-Pratyusha
Edited by: pratyushasdn on Jun 24, 2010 2:07 PM

Hi chandrasekhar find my code below
this code i am writing under  at selection-screen.
*&      Form  Z_VALIDATE_TVKOV
FORM z_validate_tvkov .
  DATA: i_vtweg LIKE vbak-vtweg.
  IF NOT s_vtweg-low IS INITIAL.
    SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
                 WHERE vtweg = s_vtweg-low.
    IF sy-subrc <> 0.
    set cursor FIELD 'S_VTWEG-LOW'.
    MESSAGE e000(z_sd) WITH text-052.
    ENDIF.
   ENDIF.
  IF NOT s_vtweg-high IS INITIAL.
    SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
                        WHERE vtweg = s_vtweg-high.
    IF sy-subrc <> 0.
      MESSAGE e000(z_sd) WITH text-052.
    ENDIF.
  ENDIF.
ENDFORM.                    " Z_VALIDATE_TVKOV

Similar Messages

  • Is there a way to create multiple New Tabs pages and name them?

    This feature is great but I would like to be able to create multiple new tabs pages and label them. This would be more useful than tabs groups that all load at once.

    No that is (currently) not possible.
    It will be possible in future Firefox version to specify the number of rows and columns.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=752841 bug 752841] - [New Tab Page] make the number of tabs adjustable
    <i>([https://bugzilla.mozilla.org/page.cgi?id=etiquette.html please do not comment in bug reports])</i>

  • Tab page and customization keeps disappearing

    For the last two days, my tabs page and customization keep disappearing. When I open a new tab, it is completely blank, with no preloaded sites. When I try to add items such as bookmarks, home, search, adblock, etc to the address bar, they appear as if they have been added but do not appear on the page, nor do they appear after I shut down and restart Firefox. I have refreshed multiple times in the last few days. At that point, I can see the tabs page, see the settings gear, and can populate tabs, pin them etc. I can also get the customization to work. Most recently, the tab page was there, and I could see sites loaded, but the images were missing and never appeared. Sometimes when I shut down the computer, the settings are all saved, but other times they all disappear and the process starts all over again. This includes when I close Firefox with the Exit command under File rather than using the red X option.

    Other users have reported problems with FoxTab recently: the reviews for it over the last 9 months are pretty blistering: [https://addons.mozilla.org/firefox/addon/foxtab/reviews/]. I don't know enough about that extension to help with that.
    But regarding the built-in main toolbar, those are changes that Firefox itself should save. Our support article "[[How to fix preferences that won't save]]" covers many of the reasons that there might be glitches with that. Another common issue is utility/privacy/security software like Advanced SystemCare that has a home page protection/browser protection feature. This can roll back your changes between sessions of Firefox. You may need to disable that feature if any of your software has it.

  • On a web form, I used to be able to insert info, hit enter and then Back Page and the cursor would "remember" where I was.

    On a web form, I used to be able to enter info. Then when I got the info I needed, I was able to Back Page and the cursor would "remember" where I left it last.
    Now, when I Back Page, the cursor goes to the beginning of the form which means that I must replace the cursor at the proper place and enter in new info.
    Using FF 4.0 with Vista 64 on my Desk Top.

    This is probably due to a problem with an add-on. For details of how to troubleshoot that see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    The AVG Safe Search add-on has caused this problem for some.

  • Error message and set cursor field in subscreen

    hey ,
    i have a program with main screen 500 and many subscreens 501,502 and so own .
    when i  want to validate wrong input in a field and set message type 'E' in the PAI of the subscreen the program
    raise the message and exit from the program .
    if i try to put the message in the PBO of the subscreen it dosn't exit but after the message the program dosn't flow to
    command SET CURSOR FIELD that i wrote after the message .
    how can i solve this ?
    is there somthing that i'm missing in the basic code flow of the program ?
    ( screen 500 PBO - PAI ->  SUBSCREEN 50x PBO - PAI )
    best regards
    ASA

    hello and thanks for the answer
    let me  clarify my problem :
    i want to issue a message ( type e or i ) only if some fields are null and the user pressed on SAVE .
    when i'm in the tab-strip and writing error message in :
    PAI :
    chain.
    field XXX
    field YYY
    module issue_warning_message on chain-request.
    endchain.
    in  module issue_warning_message :  if XXX is initial --> message type E --> set cursor field XXX.
    here i get the message and cursor is set.
    when i try to post the message in without chain or any events :
    module user_command_tab502 .
    the message is issued and it exit the program if the type is e and if type message is I the cursor is not set .
    please advice
    ASA

  • How to submit a page and set the focus on the next field?

    Hello,
    I have a form with some fields and below this a report with a column link. If I change values in the form fields and I click the on a column link the changes in the fields are lost because the page is not submitted.
    I try this: I set on the fields in HTML Form Element Attributes the following:
    onchange="doSubmit('AENDERUNG_UEBERNEHMEN');"
    And I create a branch to the same page. This works great, I dont lost the changes in the fields and I can use the column links.
    But: If I want to walk through the form with the key "TAB" I have to press the key 2 times to come to the next field.
    How can I submit the page and go to the next field?
    Regars,
    Mark

    Hello Mark,
    how about submitting the page when the column link in the report is clicked. To do this, create a column link with an URL target and specify a target like
    javascript:doSubmit('#ID#_AENDERUNG_UEBERNEHMEN').After that I would create a process, that checks if
    substr(:REQUEST,instr(:REQUEST,'_')+1) (or something like that)
    equals 'AENDERUNG_UEBERNEHMEN'. If so, save the change, set the PK value of your target page to
    substr(:REQUEST,1,instr(:REQUEST,'_'))  (to extract the ID)
    Afterwards, create a branch that jumps to the target page.
    Hope that helps
    Stephan

  • Data network locked down when usb tethering with a lot of request (i.e. 3 to 4 tab pages and IRC)

    Hi, i am currently using the usb tethering on my ubuntu desktop(this also happened in win8 desktop) which the data network will be locked down when open 3 to 4 tab pages in 3-4 seconds or requesting large amount of data traffic (i.e. downloading movie)
    This locked down will be recovered only  after a few minutes (4 minutes at least) when there is no more request maked.
    OR reboot the phone again. 
    This doesn't affect receiving calls, only the data network is locked down
    I do see this is a software problem as i have asked for a exchange for phone, the same thing happened again.
    Does anyone get the same problem as i experienced?
    The firmware is v.114 
    Thanks for help

    Hi z1CUser
      based on your information, i believe there is not problem with the phone, since even second phone is doing same thing as first, what I can suggest is
    >check with different phone if possible and see whether it does same, incase 'Yes" then its might be with the internet connection i believe, you can give a call to Internet Service Provider, stating the issue faced in 2 different phones
    >if possible Refresh the Router and try to connect it again
    >Last you can try to restore the phone once
    Manjuboyz
    NOTE:
    Rate me(Kudos) If you are happy with my Resolution, Thanks

  • Redirect to another page and set the error or success message from process

    I have a process that runs when a page is submitted. In the process I am catching an exception and if an exception occurs I want to redirect to a different page and display the error message of the exception. How can this be done?
    Below is my code. The redirect works but I want to set an error message to display on page 765 which is a different page to the one with this process on.
    begin
        -- some code here
    exception when others then
        owa_util.redirect_url('f?p=&APP_ID.:765:&SESSION.::NO:::');
    end;

    >
    Please update your forum profile with a real handle instead of "973239".
    I have a process that runs when a page is submitted. In the process I am catching an exception and if an exception occurs I want to redirect to a different page and display the error message of the exception. How can this be done?
    Below is my code. The redirect works but I want to set an error message to display on page 765 which is a different page to the one with this process on.
    begin
    -- some code here
    exception when others then
    owa_util.redirect_url('f?p=&APP_ID.:765:&SESSION.::NO:::');
    end;
    Use the <tt>f</tt> function's <tt>notification_msg</tt> parameter to pass the error message in the URL:
      owa_util.redirect_url('f?p=&APP_ID.:765:&SESSION.::NO:::&notification_msg=' || apex_util.url_encode(l_error_msg)); 
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)

  • Active tab page and tab

    I would like to know how to make active tab page stands out from other tab pages. For example, tab page background color and tab background color in light gray. Tab text in white. Any ideas?
    Thanks in advance for any suggestions.

    Xiaoling,
    as far as I know this is not possible. One way to do what you want is to use all uppercase letters for teh active / selected tab and all lower case for the other.
    Frank

  • Tab Page and Username

    Is there a way to make the user's name appear as the Tab Page name. Here's the issue: We have several tabs on a page that are fixed (the user cannot change them). One of the tabs is labeled 'My Tab' (The user has full control of this tab, but since this is a fixed tab, he cannot edit the name). What we would like to do is, programmatically change the name of 'My Tab' to something like 'Gary's Tab' when the user logs in. Is this possible?
    We are developing an Intranet site, so the only customization takes place within 'My Tab', because of our environment, we do not allow the user to add their own tab page, which would fix the problem.
    Thanks,
    Gary
    We are running Portal 3.0.9.8.2 JPDK 3.0.9.0.5

    Hi Gary,
    The user level customization of the tab page label is not supported. Also, there is no public API to update the label.
    And even if there was an API, your updating routine needed to be called each time the page is rendered to make sure that the tab is correctly rendered for that particular user.
    When multiple users are accessing the page the label needs to be changed with each request... Not very elegant.
    Is there any other way you could implement the navigation?
    Peter

  • DETT: Set Cursor (Cursor ID) and Set Cursor (Icon Pict) VI Reference Leak

    Hi, 
    Using LV 2011 and the Desktop Execution Trace Toolkit to analyze my application, it has identified a reference link in the 2 above stated VIs. It's not a huge deal but is there any possibility I'm missing something here? Whether I use them individually or as subVIs in the Set and Unset Busy Icon VIs, it always report a reference leak. The block diagram is locked so I'm guessing there is not much I can do to correct it, but I just wanted to ask. Is this fixed in later versions? I am not calling this VI continually in a loop or anything, but I do use it quite a bit as my app is pretty user interface intensive.
    Thanks,
    Erin

    What version of LabVIEW are you using?  For LabVIEW 7.x, there was a bug in the Cursor VIs where they would only work with a certain number of created VI windows, after which point they would start returning errors (might have been error 26, I don't recall).  This bug was fixed in LabVIEW 8.0.  If you are using LabVIEW 8.x, I'm not sure what the problem might be.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How to calculate a date in the future and set it as field value?

    I'm trying to set the value of a read-only field to a date and time 72 hours from the current date and time. Here's how I'm doing it now:
    var futureInMilliseconds = new Date().getTime() + 259200000; // current date and time + 72 hours in milliseconds
    field.value = new Date(futureInMilliseconds);
    The field is formatted as "m/d/yyyy h:MM tt". When I test this in the debugger I see it listing the correct date and time in the future, but the value applied to the field is always the current date and time. So, I'm having a difficult time getting this to work for something that should be fairly straight forward and simple. I'd appreciate any suggestions.

    What is the "field" object?
    What happen when you use "event" for the object and not "field"?
    Even if this script is placed at the document level or any other location, it is still a calculation. It just not a field Custom Calculation Script. You are adding one value to another to get a new value.

  • How to load the same jsp page and set user id to 0 when checkbox is selecte

    I hope this question isn't too amateurish to answer, but it is something that has been troubling me.
    I have a jsp page page that display information about a user and has the userID passed in the link. So something like user.jsp?userID=12 for example.
    On the same page I have a form with a checkbox, and a submit button, the html code is as follows:
    <form name="form1" method="get" action="user.jsp">
    <p><input name="userID" id="userID" type="checkbox" value="0"></p>
    <p><input name="Submit" type="submit" value="Submit"></p>
    </form> What I want to do is, if a user ticks the checkbox and presses Submit, I want to load the same page again, but
    set the userID to zero and so the top url has the following: user.jsp?userID=0
    How can I achieve this.
    Thanks for all the help
    Zub

    actually I need a check code which on submit checks if the checkbox is ticked then set the value of UserID to zero. so when I press submit and before the page loads to simply does a check if its ticked? I can write the if statment but I do not know what how to check if the checkbox is ticked and were to include the code

  • Getting and setting dynamic y-field for flex chart

    I'm pulling data from a amfphp service for
    a series of charts. My client now wants the the chart's fields to be label and display data dynamically so they can change the service with out breaking the charts.
    For example  {Month:"January", Flex:39, Flash:71.8, Photoshop:23.7},
    They'd like to be able to change the software names and the charts would still work without having to go into the code and change the yfield property.
    A code sample would be great. Thanks in advance.

    You can declare a bindable string variable that you can use as title in your axis:
    [Bindable]
    private var labelForAxis:String="";
    <mx:verticalAxis>
                    <mx:LinearAxis baseAtZero="false" title="{labelForAxis}" />
                </mx:verticalAxis>  
    Every time you change the string variable you label will also change.

  • I have an email validation script on my page and a populate form fields script that doesn't work unless it's the only script written. Here are the scripts. Thanks

              <script type="text/javascript"><!--
    function validateForm() {
    with (document.drbrake) {
    var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
    if (fullname.value == "") alertMsg += "\nfullname";
    if (emailcheck.value == "") alertMsg += "\nemailcheck";
    if (telephone.value == "") alertMsg += "\ntelephone";
    if (selectproduct.value == "") alertMsg += "\nselectproduct";
    if (problem.value == "") alertMsg += "\nproblem";
    if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") { alert(alertMsg);
    return false;
    } else {
    return true;
    // -->
    </script>
            <script language="JavaScript1.2">
    //Advanced Email Check credit-
    //By JavaScript Kit (http://www.javascriptkit.com)
    //Over 200+ free scripts here!
    var testresults
    function checkemail(){
    var str=document.validation.emailcheck.value
    var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$ /i
    if (filter.test(str))
    testresults=true
    else{
    alert("Please input a valid email address!")
    testresults=false
    return (testresults)
            </script>
                                <script>
    function checkbae(){
    if (document.layers||document.getElementById||document.all)
    return checkemail()
    else
    return true
    </script>

    I do see issues with the script, but do you realize that HTML5 has all this capability build in, so not a single bit of the code you posted is needed? Of course there may be a reason you are doing it the way you are, but I don't know what that reason would be.
    In your forms, you can simply add "required" to an input field to make it required. And by making an email field the email type, it will automatically be validated for correctness. See below:
    <input type='text' value='<?php echo last_name ?>' name='last_name' required />
    <input type='email' value='<?php echo email ?>' name='email' required />
    Assuming that your form is processed by PHP, you would then use further validation in PHP. But the HTML5 validation is just as good as javascript validation and easier to use.
    With the HTML5 validation, all fields remain populated and the form cannot be submitted if anything fails validation.  I added the value attribute to the input examples because normally, if the PHP validation fails, you want to re-populate the form with what is stored in the POST array.

Maybe you are looking for

  • Which field stores the Cancelled Sales Order Status

    Hi,       I am checking for duplicate PO No in sales Order header VBAK. The criteria is Slaes Order must not be a cancelled one. I am searching VBAK to find the status field to determine the whether its cancelled or not. Thank U for Ur time. Cheers,

  • How do I create a new emkey for Enterprise Manager Database Control?

    Hi, I just installed 11gR2. I am evaluating it. How do I create a new emkey for Enterprise Manager Database Control? I tried various combinations of this command: emctl config emkey I did find a probable bug: $ emctl config emkey -emkey -emkeyfile em

  • Since upgrading to Lion, I can no longer view my previews in Aperture.

    Since I updated to Lion, Aperture has been sluggish and annoying and keeps quitting on me... However, the worst problem I have is that I cannot view the previews of most of my photos. The files are all referenced and kept on an external hard drive. I

  • XML output in java

    I have a problem with my java program! I have a xml file that looks like this: <command type="Hello"> <name id="Peter"> </name> </command> Now I want to get just the Hello and Peter out of the file. The other stuff I don't need. Haven't found anythin

  • Changing the Decimal in the currencies

    Hi, We have an issue related to our SAP Production system. At the time of raising Billing invoices to customers in USD currency, we are using currency SAR with  two decimal places currently. Now our requirement is to bring three decimal places to USD