Comapare the string value in the selection screen

In the selection screen input field
there is an option of selecting the directory and file name and not the extension .
This is used to download the datas
Extension can be selected by using the option button
rtf
csv.
the user has to give only  the filename and not the extension.
suppose if the user input is C:\temp\file1.doc.
Either i should take only the filename
or i should display the message give only the filename and not the extension . its already been selected!!!!
I want to compare the input string contains  .doc
how to do the comparison and to get the above results mentiond
Thanks
ABAPer

hi,
I have already done using the method given by you.
Because the requirment is there are two option buttion for selecting the download file format
But unknowingly if the user gives the filename along with the extension. I need to handle that error
giving some error message or information message
By comparing the last 4 letters of the filename.. either.doc or rtf or csv or watever
so how to do that
then after comparing that i should give the user a msg doc type is already selected give only the filename
I hope u understand my req
thanks

Similar Messages

  • Reports--  to  validate the  field values in a selection screen

    How to validate a  Particular field ..... in the selection screen ...!
    that is how to  determine the values of the  field in the  selction screen .....

    Hi,
    Check the code below:
    <b>at selection-screen</b>.
      SELECT SINGLE * FROM MSEG WHERE
           MBLNR = IMBLNR.
      IF SY-SUBRC <> 0.
       MESSAGE E016(PG) WITH 'Please select valid Material Document Number'.
      ENDIF.
    I used it in my program.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • How to get the string value from the RichSelectBooleanCheckBox component?

    I added a validator to a RichSelectBooleanCheckBox component which is binded to a String attribute of a View Object.
    I defined the mapping of boolean value to corresponding String value in the corresponding attribute binding in the page definition.
    When the validate() method of my validator was invoked, the new value passed to the validate method() was a Boolean value instead of the converted String value.
    I need to write validate() method generically so that it can handle more than one way of mapping boolean values to String values.
    How can I get the converted String value in my validator method() from the RichBooleanCheckBox component that was also passed to the validate() method as a parameter?

    use:
    int num = Integer.parseInt(s);

  • Getting the string value of a step in Test stand 3.1

    Hi All , can anyone advise whicn control I use to retrieve the string value of the STEP name using v3.1.
    It was the sequence context in earlier versions.
    thanks dht

    I'm assuming you want the step's name as a string? Inside TestStand there is the NameOf function that can be used with any TestStand object. i.e.
    Locals.mystring = NameOf(RunState.PreviousStep) or something like this� You can access this function outside of TestStand by using the PropertyObject.Evaluate() method.
    You could also use the TS API (in TS or in LV or someplace else) to start with a Step object, turn it into a PropertyObject, and then get its property �Name� which will return the string name of the step.
    Third option off the top of my head is to explore the Hidden Properties of TestStand, that you have to enable by going through the Configure menu. There�s a knowledge base about it somewhere on the NI website if you�re curious. If you remember browsing fo
    r the step name via a sequence context/expression browser before now, it was probably hidden properties that you were using.
    Cheers!
    Elaine R.
    www.bloomy.com
    Cheers,
    Elaine R.
    www.bloomy.com

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • How to schedule the background job using current selection screen field val

    Hello Friends,
    How to schedule the background job using current selection screen field values.
    after completion of the job the spool should be sent as a mail to SAP Inbox.
    Is there any way to create the variant dynamically by reading the current selection screen values.
    Thanks,
    Ravi

    Hi,
    To get the variant details you can use teh following FM.
    'RS_VARIANT_CONTENTS'.
    Regards,
    Ankur Parab

  • Clearing the displayed value for a SELECT-OPTION

    How do I clear the displayed value of a SELECT-OPTION? 
    I have 2 SELECT-OPTIONs on my screen (standard basic report program screen).  I use code like this to populate the drop-down boxes for each one. 
    =====
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prgrp-low.
      PERFORM fill_prgrp_values.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
      PERFORM fill_prctr_values.
    =====
    The value the user picks for the first SELECT-OPTION will affect what values I put in the drop-down list for the second SELECT-OPTION. 
    If a user enters a value for the second SELECT-OPTION, and then goes back and changes the value of the first SELECT-OPTION, then I want to do two things:
    1.  Create a new set of values for the drop-down list for the second SELECT-OPTION (no problem; working fine);
    2.  Clear the displayed value from the second SELECT-OPTION that the user entered previously.  That value became invalid when the user picked a new value for the first SELECT-OPTION. 
    How do I clear that second displayed value? 
    I have tried CLEAR and REFRESH for the second variable using the formats s_prctr, s_prctr[], and s_prctr-low.  They will erase the values of the internal table or part(s) of it, but the displayed value stays on the screen. 
    I need to clear out the displayed value so the user will either leave it blank or enter or select a new value. 
    I am using F4IF_INT_TABLE_VALUE_REQUEST to build the drop-down lists, and it works fine, but I do not see any function module to clear the displayed value off the screen. 
    Thanks for your help.

    Sorry, but calling DYNP_VALUES_UPDATE did not work.  This is how I coded it. 
    fld_reset_rcd-fieldname  = 'S_PRCTR'.
      fld_reset_rcd-stepl      = sy-stepl.
      CLEAR fld_reset_rcd-fieldvalue.      "  re-initialize s_prctr
      CLEAR fld_reset_rcd-fieldinp.        "  what goes in here?
      APPEND fld_reset_rcd TO fld_reset_tbl.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname = 'ZFI_GL_BALANCE_NGL'
          dynumb = '1000'
        TABLES
          dynpfields = fld_reset_tbl
    <Added code tags>
    I have discovered that CLEAR and REFRESH of s_prctr will clear it somewhat.  If I enter multiple values, ranges, etc., they will all be cleared, EXCEPT for the one single value that is displayed on the main screen.  It is not cleared and it remains if you push the button to display the pop-up to enter ranges, etc. 
    To devrath.sampat  --  Thanks for your example for building the drop-down list, but that is not the problem I am having.  I am already able to build it just fine. 
    To repeat my problem, if I: 
    1.  first enter / select a value for the first SELECT-OPTION s_prgrp
    2.  then enter / select a value for the second SELECT-OPTION s_prctr
    3.  And finally go back and select a new value of the first SELECT-OPTION s_prgrp from its drop-down list,
         when I do, the program needs to clear the value displayed on the main screen for the second SELECT-OPTION s_prctr (any additional values, ranges, etc., are cleared by CLEAR and REFRESH, if I go look; but not the value shown on the main screen).
    Edited by: Scott Crosby on Feb 14, 2012 4:20 PM
    Edited by: Suhas Saha on Feb 15, 2012 12:03 PM

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • How to align a String value to the right side inside a table column?

    Hi,
    I have a text view inside a table column which is mapped to a string attribute. I need to align the text in the text view to the right hand inside the table column. But its always getting aligned towards the left side. I have tried by setting the <b>hAlign</b> property of Element properties of Text View to <b>right / forced right</b> but still the text is getting aligned to the left side.
    How do I align the String values in Text View towards the right hand side inside a Table Column?
    Thanks and Regards,
    Sayan Ghosh

    Hello Sayan,
    if i do get it right, you are adding an TextView element to a Table Cell. Then you should consider setting aligment within the particular cell. By calling:
    YourCell.setHorizontalAlignment(CellHAlign.RIGHT)
    regards.
    mz

  • How to retrieve query string value from the URL in my portlet

    Hi,
    When user clicks on "Advance Search", i am redirecting to page in the community. At the same i am adding some more values to the query string (to the URL).
    My URL will look like this.
    http://ctp-mc0149/portal/server.pt?space=CommunityPage&parentname=CommunityPage&parentid=0&in_hi_userid=200&cached=true&control=SetCommunity&PageID=202&CommunityID=200&searchType=2
    Now in one of my portlet in that page, i want to retrieve the query string values from the URL.
    Please help me regarding this.
    Thanks in advance.
    Thanks,
    sreekanth.

    Hi,
    Look at the following threads,
    For programmatically getting the iview properties,
    Programmatically getting iView Properties
    Also,
    Get Properties of IView Programmatically
    Permanent change of iView property programmatically
    Hope these threads help u.
    Regards
    Srinivasan T

  • How to capture the string values

    Hi Gurus,
    Could you plz suggest me how to capture the string value.
    My requirement is.
    I have a structure field called  cnj_stat-sttxt_int and it is storing a value like "REL CDRT AVAC". AND the moddile value CDRT will change according to condtions. now i required to write a logic like if cnj_stat-sttxt_int field contain 'REL' and 'AVAC'.  I HAVE TO THROW SOME ERROR.
    SO please give some idea about on it...
    Its urgent..
    points will be rewarded...
    Thanks in advance!!!!
    Thanks & regards,
    Kranthi.

    if cnj_stat-sttxt_int field contain 'REL' and 'AVAC'. I HAVE TO THROW SOME ERROR.
    if cnj_stat-sttxt_int CS 'REL' and cnj_stat-sttxt_int CS 'AVAC'.
    THROW SOME ERROR.
    endif.

  • Is it possible to rearrange the order of SAP STD Selection Screen?

    Hi.
    Is it possible to rearrange the order of SAP STD Selection Screen?
    Example:
    IW69 has Location data selection at bottom of screen. 
    Is it possible to move that to top of the selection screen?
    We are on ECC6.0.
    Thank you,
    Brett.

    Hello Brett
    You may try to use GuiXT:
    [Adjusting Transactions Using GuiXT|http://help.sap.com/saphelp_sm32/helpdata/en/89/91b9db194f11d5b3a30050dae02d7c/content.htm]
    Regards
      Uwe

  • Setting the value of a textbox to be the display value of a selected item

    I have two seperate regions on the same page. In the top region I have a select list with submit and in the bottom region I have a textbox. I can get the value of the textbox to be set to the RETURN value of the select list, but it is merely a number. I would like for the value of the textbox to be set to the DISPLAY value of what the user has selected from the select list. How can I accomplish this?
    Thanks,
    BoilerUP

    Hi BoilerUP,
    Can’t you create an item based on a select, that returns the value you want?
    select text from mytable where id = :myselectlist_id;
    Regards Pete

  • How to put the null value at the last of  a select list

    Hello,
    I have a select list with a null value, I want the null value to be the last value in the list. It always appears in the top of the list, Desc and Asc order is not working.
    Thank you in advance!
    Edited by: Najla on Apr 1, 2013 10:37 PM

    Hi,
    Edited by: Howard (... in Training) on Apr 2, 2013 1:xx PM
    The statement - I don't think it is possible to arrange the order of the null option in a select list.- is close. You can't control the order of the Null value if you add the Null value through the GUI. However, it can be added and controlled as part of a SELECT ...
    One way is to add NULL to the "SELECT". Here the Yes/No are hard-coded but they could have been selected from a table:
    select d, r from
    select 'YES' d, 'Y' r from dual
      union all
    select 'No' d, 'N' r from dual
      union all
    select Null d, '<Null>' r from dual
    ) order by 1 desc NULLS lastHoward

  • How to edit the records value fetched by select statement query in sqldever

    How to edit the records value fetched by select statement query in sqldever 2.1.1.
    EX-
    SELECT * FROM emp WHERE ename like 'Jaga%'
    Edited by: user9372056 on Aug 31, 2010 2:16 AM

    Hi,
    Although some forum members may be using that tool, there is still a dedicated forum for SQL Developer.
    SQL Developer
    Maybe your chances are better there.
    Regards
    Peter

Maybe you are looking for

  • Contract account as Business Agreement not updated till baug_main reloaded

    Contract Acount is replicated as business agreement only after i re-load the baug_main object. I have to re-load this object each time i create a contract account and want to see in as business agreement in CRM. Does Anyone know a way around this pro

  • Patchadd stuck in infinite loop -HELP!!

    Hi all, Iam trying to install some OS patches in SunOS 5.8 machine[sun4u sparc SUNW,Sun-Fire-280R] But after the process starts, it seems to get stuck in an endless loop. I get the following messages. Checking installed patches... Verifying sufficien

  • Data missing in InfoView report but Crystal Report runs fine on my PC

    I have created a Crystal Report (XI) which combines data from 2 datasources. Firstly from a postgres db (connected to by ODBC) and second from an Informix db (connected to by ODBC). The report runs fine on my PC but when I publish the report into Bus

  • CX_BGRFC_INVALID_DESTINATION during outbound abap proxy call on 7.1

    Hi guys, I'm trying to set up a scenario with outbound abap proxy call using the new WS adapter and when I execute the report with the proxy call I'm getting the CX_BGRFC_INVALID_DESTINATION exception. I've generated proxy w/o problems, I've set up e

  • Removing a Control Interface Assigment

    Hello, I was assigning controls for a plug-in when I found that my slider (cc 07) is already assigned to controlling the volume in a track. I have searched all over the MIDI settings for the control surfaces and I just cant find where to delete this