How to find out the file name

Hi,
In selection screen (parameter) user will give input TXT file from presentation server to upload to SAP. I need to capture the file name only but not the path and need to concatenate with date stamp and need to download error log in XLS file to presentation server.
How to find out the file name from selection screen?
I searched SCN threads but not found relavant solution.
Thanks,
R Kumar

Hi
This code gets only filename from selection screen :
REPORT x.
PARAMETERS p_file(100).
DATA : gv_full_path LIKE  ibipparms-path,
       gv_full_path_string TYPE string,
       gv_filename(100),
       gv_file_ext(3).
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Ask user to select file with a popup :
  CALL FUNCTION 'F4_FILENAME'
    IMPORTING
      file_name = gv_full_path.
Get filename from path :
  gv_full_path_string = gv_full_path.
  CALL FUNCTION 'CH_SPLIT_FILENAME'
    EXPORTING
      complete_filename = gv_full_path_string
    IMPORTING
      extension         = gv_file_ext
      name              = gv_filename.
  CONCATENATE gv_filename '.' gv_file_ext INTO gv_filename.
  p_file = gv_filename.
I hope it helps.

Similar Messages

  • How to find out the table name

    hi,
    how to find out the table name in which the data from a particular structure in a particular screen is saved,
    please tell me the procedure to find out the table name for saving the structure data that is inputted at runtime.
    Thanks,
    chinnu

    Hi Chinnu,
    Below are the tables that are referred to find out the table names
    DD02L Table contains the SAP Tables.
    DD02T Table contains the SAP Table Texts.
    DD01L Table contains the Domains
    DD01T Table contains the Domain Texts.
    DD03L Table contains the Table Fields.
    DD03T Table contains the Table Field Texts. (Language Dependent)
    DD04L Table contains the Data Elements.
    DD04T Table contains the Data Element Texts.
    DD05s Table contains the Foreign Key Fields
    last words with L and T only. L->Database Fetch T-> Text
    And the procedure to retrive the table name is as follows
    1. Go to se11
    2. Enter table name DD03T and execute
    3. In the next screen you can find Tables, fields, test etc. there you can enter the field name in the fields 
      and execute.
    4. you can get all tables which contains the field.
    I hope this will solve your problem
    Regards,
    Chandru

  • Transaction IW32.How to find out the person name.(Last changed By)

    Hi all,
    When i executed the transaction IW32.Its displays changed by and created by fields. please any body can tell me how to find out the person  name who had made last change with respect to the field changed by.
    Please tell me the table and field name for the field last changed by......
    Regards,
    Munna.

    hi,
    check the table AUFK field AENAM for the order number(AUFNR) in IW32..........

  • How to find out the infospoke name for an existing infoobject?

    Hi,
    Could any one pls tell me how to find out the existing infospoke name for an infoobject?
    i've tried with where used list but its not coming....can any one pls suggest
    Thanks,
    Suri

    Hi,
        Check in metadata repository for that infoObject.
    If you are still not able to identify, goto RSBO tx and press F4.
    You will get the list of Infospokes available.
    Go in each and chk from the General Tab, if the infoObject is available in the source system.
    Regards,
    Balaji V

  • How to find out the printer name for the Idoc

    Hi guys
    I want to find out the printer name for the Idoc,,some default printer is attached for one idoc,then how can we see the printer name for this idoc.
    Regards
    Madhoo

    Hi,
    For ALE/IDOC the  medium will be either ALE or EDI but not printer.So it might be wrongly attached.As such there won't be any printer attached to idoc.
    Regards,
    Nagaraj

  • How to find out the administrator name

    How to find out my administrator name to unlock the parental control .

    Look in the Apple Menu, in System Preferences, under the Users & Groups pane.
    It should list all your users, by name.

  • Hi, How to find out the program name with short description?

    Hi Experts,
      I've a doubt regarding reports.
       I've some short descriptions.I've to find out the Technical Name of the program    using that Short descripns.Is there any transaction code available to check this
      I've tried in t.c se80.But i could not find the respective program names.
      Please help me in this regards.Its an urjent issue.
      Thanks in advance.
    Regards,
    Rekha.

    hi rekha,
    1)Goto SE84(Repository InfoSystem) tcode.
    2)In Repository Info System node, Select Program Library.
    3)Then Select Programs.
    4) And enter ur description and u press F8.
    5) u can search program name based on description, package and many othet options. check it out.
    U can find many programs with ur entered pattern.
    Select ur program.....
    Reward me if useful,
    Harimanjesh AN

  • How to find out the user name and email address from SAP user id?

    Hi experts,
    In sto3n I find out the the user id with most navigations. I like to know his name or email address to contact him. Which table stores the user details? how to do it?
    Thanks in advance.
    Sharat.

    hi,
    The below tables will give only the name .
    USER_ADDRS
    USER_ADDR
    USER_ADDRP
    USR02
    i think you need email address .
    you can use this Tcode : su01d
    and give the user name and excute it
    i hope it will help you.
    Ram
    Edited by: Ram velanati on Jun 30, 2008 6:57 PM

  • How to find out the script name used in driver program

    Hi Folks ,
                 I want to find out the Scripts(print program) used in my driver pogram .
    How is it possible any Tcode availble for this ?
    Thanks ,
    Jaga.D

    Hi Jagadish,
    Go to transaction SE38 and open the program RSNAST00. There search for the subroutine TNAPR_LESEN.
    Set a break point at that subroutine and leave. When printing the data from a transaction to a script or form (Like VA01 or VL02N), debugger is started when the processing reaches the subroutine in RSNAST00. There double click on the field TNAPR-FONAM. continue step-by-step execution. The field will display the name of the script or form that is currently being used.
    Another way to do this is to go to transaction NACE and check the transaction for which you want to find out the script. There you will find the script and print program that have been set for a particular transaction.

  • How can find out the User name?

    Hi Gurus,
    I have created one sales order with my user name. some one has changed order quantity in that sales order, so can u tell how can v find out thier user  name?
    CHeers,
    Sumith

    Hi Sumith,
    Go to VA02 and click on Environment at the top and click on changes. Now based on your line item where you feel changes have been made give your item number and tick overview , and additional info and execute.
    Now double click where you want to drill down and find out for the user name.
    I am sure this will help you. If it does dont forget to reward points for contribution.
    Regards
    Ravi

  • How to find out the Responsibilty name

    Hi All,
    I have this query which retrievs the request_id.
    SELECT DISTINCT fcp.user_concurrent_program_name,
    fcp.concurrent_program_name,
    fcr.request_id,
    fcr.request_date,
    flv.meaning status,
    fcr.status_code,
    fcr.completion_text,
    fcr.logfile_name,
    fcr.outfile_name,
    fcr.argument_text
    FROM apps.fnd_concurrent_programs_vl fcp,
    apps.fnd_concurrent_requests fcr,
    apps.fnd_lookup_values flv,
    apps.fnd_request_group_units frgu
    WHERE fcr.concurrent_program_id = fcp.concurrent_program_id
    --AND trunc(fcr.last_update_date) = trunc(SYSDATE)
    AND flv.lookup_code = fcr.status_code
    AND flv.lookup_type = 'CP_STATUS_CODE'
    AND flv.language = 'US'
    --AND FCP.CONCURRENT_PROGRAM_ID=FRGU.REQUEST_GROUP_ID
    --and fcp.user_concurrent_program_name like '%DHL%'
    and fcp.concurrent_program_id='228284'
    but i need to find out the responsibilty assign ed to it.
    so it need to findthe request group.
    Could any one please find out.
    thankx..

    Pl post details of OS, database and EBS versions.
    FND_CONCURRENT_REQUESTS table has a RESPONSIBILITY_ID column that should help
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_REQUESTS&c_owner=APPLSYS&c_type=TABLE
    HTH
    Srini

  • How to find out the table names related to fields of Transactions

    Hi All,
       My Task is to extract the data from diff tables whose names i need to find out . I was given with the transactions like Me31k,Me32k,Migo,Miro etc. Can anyone Plz suggest me on how to do this apart from debugging the transaction or runnig the SQl Tracer .

    <b>Go to SE93-> give ->msc3n double click program -> in top include you`ll find the tables OR search key word "tables" in program .</b></u>FYI
    tables: dfbatch, " Dynprofelder
    bncom, " allg. Kommunikationsstruktur
    mtcom, " Kommunikations-WA Mat.stamm
    makt, " Materialkurztexte
    mbew, "#EC NEEDED
    t001w, " Werke
    t001l, " Lagerorte
    mara, " Konzerndaten zum Material
    marc, " Werksdaten zum Material
    mard, " Lagerortdaten zum Material
    mch1, " Chargendaten
    mcha, " Chargendaten werksbezogen
    mchb, " Chargenbestände
    mchx, " Bewert.arten zu werksübergr. Ch
    mchuwl, " Arbeitsvorrat Charge Benutzer
    thead, " SAPscript: Text-Header
    cdhdr, " Header Änderungsbelege
    cdshw, " Positionen Änderungsbeleg
    t148g, " Feldauswahl Sonderbestände
    t148zt, " Texttabelle Zustandsschlüssel
    t149c, " globale Bewertungstypen
    t005u, " Provinzschlüssel Texte
    t005t, " Bezeichnung der Länder
    tvfmt, " Materialgruppe Export Bezeichn.
    bwtty, " Bewertungstyp
    rmclm, " E/A Felder Klassifizierung
    inob, " Umschlüsselung Klassif.objekt
    kssk, " Zuordnung Objekt <-> Klasse
    klah, " Kopfdaten Klassen
    t134, " Materialarten
    prdkzt, " Texte zum Periodenkennzeichen
    *prdkzt. "#EC NEEDED
    Hope this’ll give you idea!!
    P.S award the points.
    Good luck
    Thanks
    navjot

  • How to find out the InfoPackage name using job name BI_BTCH....

    Hi Expert,
    Can anyone please let me know how do i find the name of the InfoPackage using the Job name BI_BTCH.
    Thanks in Advance

    Hi,
    Change the Start Date and End Date of the Job in the SM37 (Date interval shoul be chnged so that the Job is run atleast once during that time period). Now Enter the Job Name BI_BTCH*  and User name as *.
    Now it will display the list of all the jobs .check the job details of the finished job and check for ZPAK* in th job log whcih will give the InfoPackage Name.
    Thanks,
    Nagarjuna

  • How to find out the customer name

    I m making a report for qm I need the customer name against the KUNNR field I have tried to find the customer name but i didnt plz anyone can tell me where can i find the customer name and address.
    thanks

    Hi,
    Try like this.
    Select single * from kna1 into wa_kna1 where kunnr = '0001012'
    if not wa_kna1-adrnumber is initial.
    CALL FUNCTION 'ADDR_SELECT_ADRC_SINGLE'
        EXPORTING
          addrnumber              = wa_kna1-adrnumber
       TABLES
          et_adrc                 = it_adrc
    EXCEPTIONS
      ADDRESS_NOT_EXIST       = 1
      PARAMETER_ERROR         = 2
      INTERNAL_ERROR          = 3
      OTHERS                  = 4
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endif.

  • How to find out the timezone name

    hi,
    i am trying to findout the timezone name. In windows xp operating system it return timezone name sucha as "IST" but in windows 2000 it just return "GMT+5:30".
    plz help me for this.
    thanks in advance.

            System.out.println("TimeZone: "+TimeZone.getDefault().getDisplayName());
            System.out.println("TimeZone: "+TimeZone.getDefault().getID());

Maybe you are looking for

  • How to print from top of the page?

    Hi all, This is Narendra. I am facing following problem in report. My report contains 4 groups in datamodal. All groups have same parameters. In report out put when second group goes to second page it is printed from middle of the second page,insted

  • Firewire copy from PC to MacBookPro

    I need to copy the files from my PC to the MacBookPro, without having to take the extra time to copy and paste from an external drive. I have found instructions on some forums, but I must not be doing all the proper settings. The seller's tech people

  • Show cells that match specific words

    Hi Team, I have the following data in excel sheet on column B and C. I have to write a function in column D to mark TRUE if it finds the following texts "DC", "SQL", "APP" and if not FALSE. I am able to do for a single value "DC" but not for multiple

  • Catalog backup (only catalog) question

    I have been using PSE 9 on Win7 64-bit for more than a year, but just recently I have started using Organizer.  Actually, I haven't started using it, but I have been experimenting with it using a test catalog that only has about 25 photos in it.  Bef

  • Why is it my contacts in iphone 4s was almost all deleted?

    please help me recover all my contacts that was deleted for some reasons i don't know