Picking file in AL11

hiii
i have several file in AL11 in the following mail.
FILE_V1
file_v2
file_v3
etc....
i have to pick up the latest version please advise how to do that in al11

Hi,
transaction code FDTA

Similar Messages

  • How to delete a  file from AL11??????

    Hi Friends,
    how can i delete a file from AL11 directory....
    i have found FM's like EPS_DELETE_FILE, EDI_PORT_DELETE_FILE and some more from SAP system but those are not deleting the files....
    let me know if i can write a program for this and if yes then guide me for writing the same....
    Thanks,
    Nagesh.

    reference:http://saplab.blogspot.com/2007/10/sample-abap-program-to-delete-file-from.html
    REPORT ZDELETE.
    Delete a file on the application server.
    PARAMETERS: P_DIR LIKE RLGRAP-FILENAME
    DEFAULT '/usr/sap/trans/', *it will delete files from this dir
    P_FILE1 LIKE RLGRAP-FILENAME.
    DATA: P_FILE(128).
    DATA: W_ANS.
    START-OF-SELECTION.
    CONCATENATE P_DIR P_FILE1 INTO P_FILE.
    check file exists
    OPEN DATASET P_FILE FOR INPUT.
    IF SY-SUBRC NE 0.
    MESSAGE E899(BD) WITH P_FILE 'does not exist'.
    EXIT.
    ELSE.
    CALL FUNCTION 'POPUP_CONTINUE_YES_NO'
    EXPORTING
    DEFAULTOPTION = 'N'
    TEXTLINE1 = P_DIR
    TEXTLINE2 = P_FILE1
    TITEL = 'ARE YOU SURE YOU WANT TO DELETE'
    START_COLUMN = 25
    START_ROW = 6
    IMPORTING
    ANSWER = W_ANS
    EXCEPTIONS
    OTHERS = 1.
    ENDIF.
    CLOSE DATASET P_FILE.
    CHECK W_ANS = 'J'.
    delete
    DELETE DATASET P_FILE.
    IF SY-SUBRC NE 0.
    MESSAGE E899(BD) WITH 'Invalid file name' P_FILE.
    ELSE.
    CLOSE DATASET P_FILE.
    MESSAGE I899(BD) WITH P_DIR P_FILE1 'DELETED'.
    ENDIF

  • How to download a file from AL11 inot Excel format without collapse the col

    Hi,
    Please suggest how to download a file from AL11 to Excel sheet.currenlty all field are merging into single column.I writing this file via using DATASET.
    Regards
    Ricky

    Hi,
       Try this code,
    ==============================================
    TYPES : BEGIN OF ty_emp,
              empno(2) TYPE c,
              empid(10) TYPE c,
              empname(3) TYPE c,
            END OF ty_emp.
    DATA : it_emp TYPE TABLE OF ty_emp,
            wa_emp TYPE ty_emp.
    DATA : pbk TYPE string.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS : p_file TYPE rlgrap-filename.
    PARAMETERS : p_asfile TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b1.
    pbk = p_file.
    OPEN DATASET p_asfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      DO.
        READ DATASET p_asfile INTO wa_emp.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        APPEND wa_emp TO it_emp.
      ENDDO.
    CLOSE DATASET p_asfile.
    Filling the already created file with download PS radiobutton
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                  =
          filename                      = pbk
      FILETYPE                      = 'ASC'
         append                        = 'X'
         write_field_separator         = ' '
      HEADER                        = '00'
      TRUNC_TRAILING_BLANKS         = ' '
      WRITE_LF                      = 'X'
      COL_SELECT                    = ' '
      COL_SELECT_MASK               = ' '
      DAT_MODE                      = ' '
    IMPORTING
      FILELENGTH                    =
        TABLES
          data_tab                      = it_emp
    EXCEPTIONS
      FILE_WRITE_ERROR              = 1
      NO_BATCH                      = 2
      GUI_REFUSE_FILETRANSFER       = 3
      INVALID_TYPE                  = 4
      NO_AUTHORITY                  = 5
      UNKNOWN_ERROR                 = 6
      HEADER_NOT_ALLOWED            = 7
      SEPARATOR_NOT_ALLOWED         = 8
      FILESIZE_NOT_ALLOWED          = 9
      HEADER_TOO_LONG               = 10
      DP_ERROR_CREATE               = 11
      DP_ERROR_SEND                 = 12
      DP_ERROR_WRITE                = 13
      UNKNOWN_DP_ERROR              = 14
      ACCESS_DENIED                 = 15
      DP_OUT_OF_MEMORY              = 16
      DISK_FULL                     = 17
      DP_TIMEOUT                    = 18
      FILE_NOT_FOUND                = 19
      DATAPROVIDER_EXCEPTION        = 20
      CONTROL_FLUSH_ERROR           = 21
      OTHERS                        = 22
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ==============================================
    Regards,
    Krrishna

  • How to generate a empty file in AL11 using ABAP and unix command

    Hi Experts,
    when load infopackage triggers it will search file from AL11 if file is available it will get loaded successfully.  When there is no file in AL11 error while opening file (orgin A) and the load will fail.  At this level i have to write a abap code using unix command to generate a empty file.
    Is there any way to achieve the above requirement.
    Thanks
    Vara

    Hi,
    If i get your requirement properly then you want to create a blank file if there is no file on the application server so that your infopackage does not fail, am i correct.
    If this is your requirement then this can be easily done if you use process chain to load the file via infopackage. Follow the following steps:
    1. Add a ABAP program before the infopackage and check if the file is present on the server or not. Use a simple ABAP statement OPEN DATASET <FNAME>. Check the SY-SUBRC after this statement if it is not 0 then it means that the file does not exist on the application server.
    2. Once you have established that the file is not present create a flat file using a code similar to the below one
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE D_MSG_TEXT.
    IF SY-SUBRC NE 0.
      WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
      EXIT.
    ENDIF.
    * Transferring Data
    LOOP AT INT_table.
      TRANSFER INT_table-field1 TO FILENAME.
    ENDLOOP.
    * Closing the File
    CLOSE DATASET FILENAME.
    3. Add your infopackage step after this ABAP program in your process chain.
    I hope this helps.
    Best Regards,
    Kush Kashyap

  • Issuse in Uploading a .CSV file from AL11 to Database table.

    Hi All,
    I have a .CSV file (UTF-8 format) which contains Chinese Characters.
    I uploaded the file to AL11 and it shows that all teh data is correct in AL11.
    Now i am using a program to Read file from AL11 and update a ztable but some of the characters are
    modified and some are getting saved as junk characters.
    Kindly let me know what can be done.
    Regards,
    Jose

    Jose,
    The issue is pretty much clear. Ask the IT team to change the regional settings for languages. Normally we don't have
    access to Korean, Traditional chinese....etc.
    You might be getting characters/symbols as ?? ##. Go ahead and change the regional setting.
    This will solve your issue.

  • Download file from AL11 into CSV to load MD into BPC

    Hi All
    I have an issue in downloading file from AL11 which is in the form of CSV.
    1) I have exported the masterdata for Costcenter using a Open hub.
    2) The file is residing at the app server AL11 in the form of CSV.
    3) I want to down load the file into CSV and upload that file into BPC NW for my costcenter diemension.
    When i am downloading the file from AL11 , the total records are merged into one row, i cannot download same as it is available in AL11.
    I have followed the HOW TO GUIED : HOW TO AUTOMATE MD LOADING IN BPC nw.
    I m unable to get the file properly on to my PC.
    could you please help me .
    AK

    You should open your file in AL11, then clicking 'List' then 'Save' you'll be able to download your file. There will be some header lines indeed.
    You'd better use an open hub with your local client as destination if you need the file.

  • Double quotes missing in CSV file but exist in text file from AL11

    Hi I am sending a file to AL11 with one of the fields having double quotes Like "field value" . When i download into Text file  i am seeing the quotes but not when download as CSV file from Al11. Any SAP notes for this . If i add  multiple quotes ' """" ' to have in csv I am seeing more quotes in text file which is not accepted . Please reply if anyone worked on this before . Thanks Kamesh

    The CSV file also has the quotes (check in notepad), but when opened in MS Excel, Excel has a feature to ignore double quotes and consider the comma inside the quotes as part of field, not as a field separator.

  • How to pick files from ECC directory

    Hi All,
    I have to pick files from the directory of ECC. can anyone tell me how to configure the sender File apapter? Can i use NFS for the same?
    Regards,
    Lavanya R

    Hi Lavanya,
    With my knowledge two ways to pick the file from ECC using File adapter.
    1. If you use NFS, mount point should be created in ECC for the Directory to access from PI.
    2. If you use FTP, FTP ports must be opened between PI and ECC.

  • Regarding picking files from sender Adapter

    I want to pick files from multiple directories from the sender adapter.
    Is there any way to write a module fro the above functionality?
    If possible, please provide the solution for the above query

    Hi virkram,
    take a look to this thread
    Re: File Sender Adapter - Multiple Source Directory
    Hope this help
    Francesco

  • How to upload  and download a files into AL11 directory in ABAP

    Hi,
                   How to upload  and download a files into AL11 directory in ABAP
    thanks
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 21, 2011 9:18 AM

    You should try one of these forums for an answer to your question:
    http://swforum.sun.com/jive/forum.jspa?forumID=116
    http://community.java.net/netbeans
    http://linux.java.net

  • How to download a CSV file in AL11 to XL into diferent tabs  ?

    Hello All,
            I have a file in AL11 of type CSV.
    When I download this file into XLS from AL11 all the data is downloaded under one tab itself.
    But I want the data in separate columns wherever there is a comma in the line.
    How can I do this ?
    Regards,
    Deepu.K
    null

    Hello manoj,
           Thanks for ur reply.
    But I forgot to mention that I want this functionality when I directly download from AL11..not thru the Program.
    i.e my job is to place the files in the AL11.
    The end users will check the file name across the appropriate folder and then use the Download option in the AL11 Transaction to download it.
    Now when they see the file in AL11 it is with comma separated.
    When they download it ..it's still comma separated and in only one tab.
    I want to avoid this ..
    Is it possible ?
    Regards,
    Deepu.K

  • Merge files...... pick file dynamically Based on your content

    Hi All,
    In my current scenario I have 2 dependent sources (Proxy and File system) from which data is being sent to a common target service. The sources are dependent on Proxy/ECC to File System. Please let me know how I need to pick the file from File system because lot of files are there in File System. Based on my ECC/Proxy message details on field of ABN, according ABN number I need to be pick the file from the File system but I have lot of files in File system. Please let me know how to pick multiple files from one correct file based on my first file message.
    After that picking the files I need merge the two messages and send to target file system.
    Using fork I can merge files, no issues. But here problem to pick file dynamically Based on content .
    Please provide your input......
    Regards,
    Ramesh

    Hi Ramesh Sir,
    You can go for JAVA Type Message Mapping.
    ECC - >  JAVA BASED MESSAGE MAPPING ( HERE WE WILL PERFORM FILE LOOKUP) - > RECEIVER .
    Is This approach sounds fisible to you ?
    Please provide Sender DataType XML / Receiver DataType XML + any 1 csv file in which lookup has to perform.
    and this approach is only possible , if your Flat file is on FTP Server which is on the same network.
    Regards
    Prabhat Sharma.

  • How to upload file in AL11 transaction

    Hi,
    I have created folder in the directory in AL11 transaction.
    Now I want to upload the file to the folder.
    Can anybody please tell me the procedure?
    Thanks.

    Hi,
    It's not possible to upload a file with AL11...
    Regards,
    Olivier

  • How to check whether a file in AL11 is unicode or non-unicode

    Hi All,
    I have a file in AL11. Now before using open dataset, i need to check whether it is unicode or not. By doing this we will know what encoding format needs to be used with open dataset statement.
    Do we have any way by which we can programatically check whether a file in AL11 is unicode or not.
    Thanks,
    Tirth

    Hi,
    The code is as follows:
    IIndexService indexService = null;
    try {
       indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
    } catch (ResourceException e) {
       if (indexService == null) {
         log.errorT("Error on instanciating the index service");
         return this.renderMessage(this.getBundleString(RES_NO_INDEX_SERVICE), StatusType.ERROR);
    // get index
    IIndex index = null;
    try {
       index = indexService.getIndex("YourIndexID");
    } catch (WcmException e1) {
       log.errorT("Error when trying to get the index");
       return this.renderMessage(this.getBundleString(RES_NO_INDEX), StatusType.ERROR);
    // check if the index is a instance of AbstractClassificationIndex
    AbstractClassificationIndex classiIndex = null;
    if (index instanceof AbstractClassificationIndex) {
       classiIndex = (AbstractClassificationIndex) index;
    } else {
       log.errorT("The index " + index.getIndexName() + " is no classification index");
       return this.renderMessage(this.getBundleString(RES_NO_CLASSIFICATION_INDEX), StatusType.WARNING);
    //give your KM Resource here for which you want to know if it is classified or not
    boolean classified = classiIndex.isDocClassifiedInAnyTax(resource);
    Regards,
    Praveen Gudapati

  • Biztalk 2013 to pick files from webdav

    Hi Guys,
    Can anyone let me know whether Biztalk 2013 will work with webdav to pick files? I am thinking to use webdav and host an endpoint in IIS to store the files created by different applications. The reason would be just to avoid sharing of windows file paths
    and use a consistent authentication mechanism at the IIS level.
    So if any application puts a file in to the webdav, Can we configure Biztalk to pick those files? If so, do we get same message context properties as FILE adapter?
    Thanks
    JB

    Hi Janardhan,
    Before I validate this approach of using WebDav as file share for BizTalk, let me just answer your question directly.
    While configuring WebDav, you would create a file share for WebDAV and map this file
    share to your virtual directory. And if you want to use WebDav as file share (for files created by different applications) then you can use BizTalk file adapter to access the files, so in this case since you have used the File adapter you will have file adapter
    related context properties to the message published in to BizTalk message box db. You have to ensure, BizTalk host instance’s credentials uses by the file Receive location to pick the files from file share of WebDav has access to receive the files.
    Following article can help you on creating file share in WebDav
    MSDN
    Blog:Setting up WebDAV on IIS using Windows Authentication and a UNC, mapped drive or file share
    But instead of considering this option did you consider the following options through which you can still control the access at IIS level.:
    BTSHTTPReceive.dll:
    You can configure virtual directory with BTSHTTPReceive.dl in IIS.
    Once IIS is configured for
    BTSHTTPReceive.dl
    BizTalk listens to this URL and, through the use of BTSHTTPReceive.dll and the HTTP receive adapter message posted to this URL is passed to the BizTalk MessageBox
    Following article shall help to know details about this and how to configure it
    http://tech.movie-stars.us/windows_server/biztalk-2010-recipes---adapters---configuring-http-receives.aspx
    http://soa-thoughts.blogspot.co.uk/2011/07/using-btshttpreceive-in-x64-environment.html
    http://www.biztalkbill.com/Home/tabid/40/EntryId/66/Configuring-BTSHTTPReceive-dll-to-work-on-IIS-7.aspx
    Publish schema as WCF Service:
    You can build a single schema that has a child node of type “any.”  Then, you can use the “publish schemas as WCF service” option of the publishing wizards to create a general
    purpose service which can be used to receive different types of message from different applications. Here different application/customer client call this WCF service upload their data document in the <Any> section of the schema, If you’re using
    WCF receive locations, you can always strip out the wrapper node before publishing to the MessageBox.
    For more options, read the following article:
    Four Ways to Accept Any XML Data Into BizTalk Web
    Services
    I would certainly consider other option before using WebDav as file share for BizTalk to process the file.
    The above methods are suggested since you want to control the access level at IIS, other obvious options are FTP..
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Maybe you are looking for

  • How can i reset an old email , so i can answer my security questions

    i am trying to buy music from itunes , and i cant because iam trying to do it on  my new macbook air. it says to answer security questions ,which i dont rember . the email that is listed on the bottom of the questions is no longer available . how can

  • How to insert Traffic light icon in Table UI column

    Hi Expert, I am not able to put traffic light icon to table UI's column. Can any one help me. Thanks and Regards, Anil

  • Summarize in numbers for ipad

    I do not know how to summarize in numbers for Ipad. I can sort without a problem. However if I want to summarize, I cannot do it. Please help RLK

  • Performance tuning the loop statement

    Hi, I have the following requirement. I have an internal table IT_TEST1 which has values Column1 A B C D consider a second internal table IT_TEST2. It'll have values like as follows:..I need to know which are the entries in column1 that have more tha

  • Problem with Edge XI3.1 SP3 install

    I have Edge XI3.1 SP2 installed and have downloaded SP3 from SAP/BOBJ. When I try to install it the program tells me I already have this version installed. Not sure what to do. Under Programs and Features I see "SAP BusinessObjects Edge BI 3.1 SP2 Up