Compare the input filename 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.rtf.
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 in advance

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

Similar Messages

  • Setting only the TO field on the Created on Field in Selection screen to Current date

    Hello,
    We have a requirement to Set only the To date in the Created on Field in Selection screen to the Current date, I have tried through Dynamic variable option to set the Date calculation but I am able to see Options to set the Current date to From or From and To Created on Date fields instead of setting the Current date only to To created on Field.
    We are in 4.7 and are not supported with user defined variables, Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    >
    sunitha j wrote:
    > Hi ,
    >
    > It would br gr8..if u could give some more info about the usage of this class..i mean if i hav to implement it in my program....wat is the necessary data that needs to b copied...
    >
    > Thanx,
    > Sunitha
    what Text field you want to change.
    Since you are working with Dynpros , you have to split the screen in two parts, and one for the Showing differenet fonts and other your normal Dynpro information.
    you need to use the Method ADD_TEXT Did you check the program DD_STYLE_TABLE.

  • 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

  • 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

  • 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

  • How to get the input details on the output screen in T code KCR0

    Hi All,
    How to get the input details on the output screen in T code KCR0, the issue is that we need to get the input details like Company code and payment date on the output screen while executing the report painter via t code KCR0.
    I tried to chane the settings via t code KCR6 but still didn't get the required output details.
    Regards,
    Ajay

    This is the asset accounting forum.  You should post your question in the proper forum.

  • Filename disappears on selection screen -BDC

    Hi all,
    I have an issue with my BDC,the seleection screen for picking up the file using parameters doesnt comes up in my parameter box. following is the code i'm using :
    DATA: g_filename TYPE string.
    **************FILE UPLOADING/DOWNLOADING**************************************
    SELECTION-SCREEN BEGIN OF  BLOCK block WITH FRAME TITLE text-001.
    PARAMETERS : in_file LIKE rlgrap-filename OBLIGATORY.
                SUC_FILE LIKE RLGRAP-FILENAME OBLIGATORY,
                SUCI_FIL LIKE RLGRAP-FILENAME OBLIGATORY,
                ERR_FILE LIKE RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK block.
    For Browsing the Input File Name on the Presentation Server         *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR in_file.
    CALL FUNCTION 'C13G0_GET_FILENAME_F4'
        CHANGING
          x_filename    = in_file
        EXCEPTIONS
          mask_too_long = 1.
    PERFORM get_filename USING in_file.
    Using call function for uploading a file                             *
    START-OF-SELECTION.
    g_filename = in_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename            = g_filename
          filetype            = 'ASC'
          has_field_separator = 'X'
        TABLES
          data_tab            = it_bdc.
    END-OF-SELECTION.
    NEED HELP GURUS !
    EAGERLY WAITIN FOR REPLIES,
    SACHIN

    i guess the FM u had used should contain one more exporting parameter,
    but use his
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR in_file.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = v_repid
                dynpro_number = syst-dynnr
                field_name    = 'IN_FILE'
           IMPORTING
                file_name     = in_file.

  • Add input parameters to ik07 selection screen..enhancement spots

    hello experts,
    Help required..
    Please tell me how to enhance the tcode ik07 for putting the input parameters on the selection screen I think there are no badi and exits we have to use enhancement spot.
    How can i... Please reply...screenshot for reference

    Since i am adding a select option of type ekko-ebeln, i have to add a statement TABLE ekko.

  • How to get the sender filename in the mapping

    hi
    I want to get the name of the target file placed by XI at the target into a mapping.I need this to correlate this file with the acknowledgement file to be received later by Xi from the target, which has the same name as the target file.
    I have gone through the following link:[Sender Filename in BPM]
    however i'm unable to understand the precise steps involved in it.
    am using a BPM.
    as of now, my BPM has 3 step:receive , transform and send.
    please help

    In ID sender communication channel
    check the checkboxes for
    setadapter- specific message attributes
    filename
    in message mapping---- create one target elemt for the filename
    Write a UDF to pass the sender filename to the target element
    The UDF is as below
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    I think this may help you.

  • I created boolean references in my main vi block diagram and copied them to my sub vi front panel. when wire my reference in my main vi to one the input node of the sub vi the wire is broken. the error says its a class conflict why?

    i created boolean references in my main vi block diagram and copied them to my sub vi front panel. when wire my reference in my main vi to one the input node of the sub vi the wire is broken. the error says its a class conflict why?

    Expanding and clarifying what BJD said;
    After you create the temporary sub-VI that BJD mentioned, open its front panel and copy the reference control that LV created when it created the sub-VI.
    This reference control will be correct class etc that you need. Use the control to replace the original control that you were attempting to wire up.
    The technique of "create sub-VI...copy" always works for me.
    There is one more thing that you should watch out for.
    The mechanical action of the boolean can not be set for latch action when attempting to read the value using a value property node.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can i pass the Input value to the sql file in the korn shell ??

    Hi,
    How can i pass the Input value to the sql file in the korn shell ??
    I have to pass the 4 different values to the sql file and each time i pass the value it has to generate the txt file for that value like wise it has to generate the 4 files at each run.
    can any one help me out.
    Raja

    Can you please more elaberate., perhaps you should more elaberate.
    sqlplus is a program. you start it from the korn shell. when it's finished, processing control returns to the korn shell. the korn shell and sqlplus do not communicate back and forth.
    so "spool the output from .sql file to some txt file from k shell, while passing the input parameters to the sql file from korn shell" makes no sense.

  • Not able to display the values in the input fields of the view

    Hi All.
    I am facing an unique issue.
    My custom element created in my custom node getting a null value
    from a Get Vendor Details RFC written in RFC.
    The values are getting populated in the custom element but not coming in the
    input field of the corresponding view.
    Then, I wrote this code
    wdContext.nodeCustom.setLeadSelection(1);
    and all the output came in the input field.
    Now, after a build it is not coming in the input fields of the view.
    All my custom nodes are Singleton and values are coming in the custom elements
    as I can print them by wdComponentApi.getMessageManager.reportSuccess(""+customnode.getField());
    All my nodes are Singleton.
    Please give your valuable inputs.
    Regards
    Kaushik Banerjee

    Hi
    Check the node property
    initializeLeadSelection     true
    if not make it true , I would suggest to make a value node of the same structure as in RFC after execuation of the RFC populate the value manually.Dont bind it directly to the UI element.
    BR
    Satish Kumar

  • Error while executing SSIS package - Error: 4014, Severity:20, State: 11. A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)

    Hi,
    We are getting the following error when running our SSIS packages on Microsoft SQL Server 2012 R2 on Windows Server 2008 R2 SP1:
    Error: 4014, Severity:20, State: 11.   A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)
    SQL Server Data Tools and SQL Server Database Engine reside on the same server.
    We tried the following:
    Disabling TCP Chimney Offload
    Installed Windows Server 2008 SP1
    Splitting our SSIS code into multiple steps so it is not all one large continuous operation
    The error occurs during a BulkDataLoad task.
    Other options we are investigating with the engineering team (out-sourced, so delayed responses):
    Firewall configurations (everything is local, so this should not make a difference)
    Disabling the anti-virus scanner
    Are there other things we can try?
    Any insight is greatly appreciated.
    Thanks!

    Hi HenryKwan,
    Based on the current information, the issue can be caused by many reasons. Please refer to the following tips:
    Install the latest hotfix based on your SQL Server version. Ps: there is no SQL Server 2012 R2 version.
    Change the MaxConcurrentExecutables property from -1 to another one based on the MAXDOP. For example, 8.
    Set "RetainSameConnection" Property to FALSE on the all the connection managers.
    Reference:
    https://connect.microsoft.com/SQLServer/feedback/details/774370/ssis-packages-abort-with-unexpected-termination-message
    If the issue is still existed, as Jakub suggested, please provide us more information about this issue.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Report error with the input form using the VC BI integration wizard

    Hello All,
    I've created a report using the BI integration wizard in visual composer. I've configured the query with the 'Free Form' query template also I've defined the filters there. This is working fine and giving me the report output. When I deploy this , I could see
    a start point for the data service.
    But instead of the start point with the default values for the filters , I want to have an input form for the users to enter the field values. I added the input form in place of start point. But it's not working even though it doesn't give any error while deploying this report. It gives the following error when I run this report.
    " Data service error occurred,cannot execute OLAP queryCannot get data set: Cannot get data set".
    Could anybody help on this.
    Thanks
    Alok

    Hi Sandeep,
    I'm already draging it from the query input port. Are you referring a different way? How I could have the input variables in the query which I'm creating using the BI integration wizard.  To get this input variable I'm trying to add the input form.
    Am I doing anything wrong here ?
    Pls help.
    Thanks
    Alok

  • How to get the input data on the arbitrary draw event ?

    Hi all,
    I'm trying to draw a histogram on a arbitrary parameter (just like the "Levels" effect). The draw part is well, but I have a problem with the input layer data (param[0]).
    All I have to do now is read the input data on the arbitrary draw event. But there's not the input pointer on the draw event. So I called the PF_CHECKOUT_PARAM() function to get the input data, and it works!
    When I test in AE, I created a layer A, and added some color correction effects to the layer A before added my effect to the layer A. The problem is the input layer my effect read is not the result of previous effects I applied before.
    Has anyway to read the latest input data in the arbitrary events ?
    Thanks.

    Hi shachar, nice to meet you!
    In another way, I created a sequence data like this:
    typedef struct {
        bool didRender;
        <some histogram data>;
    } Histogram;
    typedef struct {
        Histogram*  histograms;
    } my_sequence_data, *my_sequence_dataP, **my_sequence_dataH;
    my_sequence_data.histograms is an array with in_data->total_time / in_data->time_step items initialized during the sequence setup.
    During the render call, I cached  the calculated histogram at this current_time to the sequence->histograms[in_data->current_time / in_data->time_step], set the didRender = true.
    In this way, I have another problem with the AE cached image. I disabled a random previous effect on the effect panel, then the AE re-rendered my effect, the histogram changed (good). I enabled the effect again, and nothing change (bad )
    I try to force the AE re-rendering after the custom UI changed ( I tried with the event_extraP->evt_out_flags = PF_EO_HANDLED_EVENT; and params[HISTOGRAM_UI]->uu.change_flags |= PF_ChangeFlag_CHANGED_VALUE; on the click, drag events...) but it seem not works!
    Am I on the right way ?
    Thank you so much!

Maybe you are looking for

  • Error while invoking Webservice API ItemService_GetItemInformation

    The following error is encountered while invoking Webservice API "ItemService_GetItemInformation" <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header/> <env:Body> <env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004

  • Preview of Website in Different Browsers in Function!

    I created this website : http://www.ubik-agency.com/ but I want to test it in different browser and this in function not just have a preview image! How can I do it? How could I see the errors on Dreamwaver?

  • How Direct Import .AVI file in to Final Cut Pro 6

    How can i Direct import .AVI Files in to Final Cut Pro 6.. Please Tell me Any kind of plugin or application or codec..... thankyou very much

  • Problem in Date format display at table leve in 3.1i System

    Hi Team, I am facing an issue in 3.1i Prod System. When i go and check at SE16 transaction and table name is TCURR. Execute the same i am getting date displayed in an unknown format. For Eg: Valid From Date 79908769 When i double click the same recor

  • Logon screen buttons missing

    I installed Lion when it came out... so far, so good.  Little quirks but it's all working out. I just put it on my second Mac and discovered that the logon screen should have 3 buttons on it (Sleep, Shutdown, Restart).  My first install is missing th