Regrdin file transer from al11 to archive directory  URGENT

HI ,
my actual require ment is
in BDC inbound interface i have to read data from applcation server .i did that.
but now i have to send that file to archive directory after succefully reading that.
can anybody help on this
wt is archive directory?
how to send that application server file to archive directary after succesfull reading it? .......
is there any function module for this....
wt is archive directory?

Hi,
An archive directory is just a concept where one directory on the operating system holds files that have been processed.  You don't need to do anything special, either take the internal table you already have and write it to a file in this directory or call an operating system command to move the file.
You just need to find out for your system which directory is the archive directory.
Regards,
Nick
P.S. Please consider the rules of the forum and do not mark your post as URGENT.

Similar Messages

  • Moving file from Target to Archive Directory

    Hi All,
    My Scenario is that we have a .txt file in Target directory in SAP PI (AL11) and when an arching Script is run this file is moved from Target folder to Archive Folder and also uploaded in R3.
    Now the requirement is that the file is transffered from Target to Archive folder without being processed.Now the user want the file back in Taget folder from Archive Folder also user also wants to know who has run the Script.
    Please let me know how to put file back from Archive to target folder and check the log as who Run the Script.
    Regards,
    Nidhi

    Hi Nidhi,
    I think i am not getting your question
    >>when an arching Script is run this file is moved from Target folder to Archive Folder and also uploaded in R3.
    Now how the script is run? using OS commands of File adapter or by some other means
    >>Now the user want the file back in Taget folder from Archive Folder also user also wants to know who has run the Script.
    For getting it back in Target folder, you can manually copy it. Also to see who has done this you need to check how the scripts run. If it runs as a standalone one then you need to see whether in the system you have some log files of the run. If file adapter runs this scripts then check the Communication channel monitoring log (BTW it if was File communication channel which invoked this Scripts then the message would have sent to PI. Need to recheck that too)
    Regards
    Suraj

  • Unable to see the logical path and file created in FILE tcode from AL11 and unable to upload the file to this path from front end

    Hi Experts,
    I have created the logical path and filename in FILE tcode.I am trying to upload the pdf file to application server by using this path.But
    I am getting message like "Unable to open the file".Even I cannot find the this path in AL11 tcode.Kindly anyone advise how to upload pdf file using
    custom path and file created from FILE tcode.
    Thanks & Regards,
    Anusha.

    Hi Anusha,
    Please give as below.
    I forget to say you cannot open the PDF in AL11 and for that you need some configuration, i think it can be done using content server,not sure completely please wait for some more suggestions.
    Regards,
    Pavan

  • File copy from AL11

    Hi Experts,
      I generated a Extract from BW and placed it in a file in <b>AL11</b>  by using function module/program.
    for some reasons i can't use infospoke.
    The generated file is in AL11,How can i copy the file to by desktop
    Thanks

    Hi,
    you need to make an abap program.
    Try this code:
    *& Report  ZBAJARARCH
    REPORT  ZBAJARARCH.
    TABLES:
        sscrfields. "Campos en las imágenes de selección
    DATA:
        it(5000) OCCURS 100 WITH HEADER LINE.
    *-parameters----
    SELECTION-SCREEN:
        BEGIN OF BLOCK b1 WITH FRAME TITLE text-004.
    PARAMETERS:
        sfn(128) OBLIGATORY LOWER CASE MEMORY ID z0s   " server file name
                 DEFAULT 'C:',
        pfn(128) OBLIGATORY LOWER CASE MEMORY ID z0p   " pc file name
                 DEFAULT 'C:'.
    SELECTION-SCREEN END OF BLOCK b1.
    *-events----
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pfn.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           CHANGING
                file_name     = pfn
           EXCEPTIONS
                mask_too_long = 1
                OTHERS        = 2.
    START-OF-SELECTION.
      PERFORM getfrsrv.
          FORM getfrsrv                                                 *
    FORM getfrsrv.
      REFRESH it.
      PERFORM borrar_file_si_esixte.
      PERFORM dsopen_input_text
          USING sfn.
      PERFORM xfer2it.
    ENDFORM.
          FORM xfer2it                                                  *
    FORM xfer2it.
      DATA: cont TYPE i.
      WHILE sy-subrc = 0.
        CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
             EXPORTING
                  percentage = cont
                  text       = 'Espere por favor'.
        PERFORM dsread
            USING    sfn
            CHANGING it.
        IF sy-subrc <> 0.
          EXIT.
        ELSE.
          ADD 1 TO cont.
        ENDIF.
        APPEND it.
        IF cont = 100.
          PERFORM download.
          REFRESH it. CLEAR it.
          CLEAR cont.
        ENDIF.
      ENDWHILE.
      PERFORM download.
      REFRESH it. CLEAR it.
      PERFORM dsclose
          USING sfn.
    ENDFORM.
          FORM dsclose                                                  *
    -->  DSN                                                           *
    FORM dsclose
        USING dsn TYPE c.
      CLOSE DATASET dsn.
      IF sy-subrc <> 0.
        MESSAGE e001(zk) WITH 'Error closing' dsn 'rc=' sy-subrc.
      ENDIF.
    ENDFORM.
          FORM dsopen_&1_&2                                             *
    -->  DSN                                                           *
    FORM dsopen_input_text USING
            dsn  TYPE c.
      DATA msg(80).
      OPEN DATASET dsn FOR INPUT IN TEXT MODE MESSAGE msg encoding default.
      IF sy-subrc <> 0.
        MESSAGE e001(zk) WITH 'Error opening' dsn msg.
      ENDIF.
    ENDFORM.
          FORM dsread                                                   *
    -->  DSN                                                           *
    -->  REC                                                           *
    FORM dsread
        USING    dsn TYPE c
        CHANGING rec.
      STATICS: rctr TYPE i.
      READ DATASET dsn INTO rec.
      CASE sy-subrc.
        WHEN 0.
          ADD 1 TO rctr.
        WHEN 4.
          MESSAGE s001(zk) WITH rctr 'records read from' dsn.
        WHEN OTHERS.
          MESSAGE e001(zk) WITH 'Error reading' dsn 'rc=' sy-subrc.
      ENDCASE.
    ENDFORM.
          FORM download                                                 *
    FORM download.
      DATA: ls_file TYPE string.
      ls_file = pfn.
      CALL FUNCTION 'WS_DOWNLOAD'
           EXPORTING
                filename            = pfn
                mode                = 'A'
           TABLES
                data_tab            = it
           EXCEPTIONS
                file_open_error     = 1
                file_write_error    = 2
                invalid_filesize    = 3
                invalid_table_width = 4
                invalid_type        = 5
                no_batch            = 6
                unknown_error       = 7
                OTHERS              = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.
    *&      Form  borrar_file_si_esixte
          text
    -->  p1        text
    <--  p2        text
    FORM borrar_file_si_esixte.
      DATA: ls_file TYPE string,
            res,
            rc TYPE i.
      ls_file = pfn.
      CALL METHOD cl_gui_frontend_services=>file_exist
        EXPORTING
          file            = ls_file
        RECEIVING
          result          = res
        EXCEPTIONS
          cntl_error      = 1
          error_no_gui    = 2
          wrong_parameter = 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.
      IF res = 'X'.
        CALL METHOD cl_gui_frontend_services=>file_delete
          EXPORTING
            filename           = ls_file
          CHANGING
            rc                 = rc
          EXCEPTIONS
            file_delete_failed = 1
            cntl_error         = 2
            error_no_gui       = 3
            file_not_found     = 4
            access_denied      = 5
            unknown_error      = 6
            OTHERS             = 7.
        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.
    ENDFORM.                    " borrar_file_si_esixte
    Hope this helps.
    Regards,
    Diego

  • How can I change the default "Print to File" location from the Mozilla Firefox directory?

    I have looked all over the Internet to find the solution to change the default of the location Firefox create the files created from the Print to File option. I have modified all of the instances of "print_to_filename" as one forum suggested. But, that was unsuccessful.

    Autre façon : Ouvre un nouveau document. Il va être en A4. Dans le menu Fichier--->Format d'impression. Une fenêtre apparaît. Dans la ligne... Taille du papier, tu choisis... Lettre US; tu fais OK. Ensuite tu sauves ce document comme modèle. Menu Fichier----> Enregistrer comme modèle et tu lui donnes le nom, par exemple... USLettre.
    Ensuite, va dans le menu Pages, va dans préférences et dans la fenêtre qui s'ouvre - Préférences générales - tu choisis : Utiliser le modèle... et tu cliques sur Choisir... à droite un peu en bas de Utiliser le.... et là, dans la fenêtre qui va apparaître, tu trouves le modèle que tu viens de faire...USLettre.
    Voilà. Chaque fois que tu vas ouvrir Pages, ce sera USLettre qui sera là par défaut.
    J'espère que ça va te satisfaire.
    Évidemment l'idéal serait de pouvoir changer la template Vierge par une template Vierge US... mais j'ai pas encore réussi.
    Message was edited by: BenwaR

  • Files missing from library after archive and install

    Hi forum folk
    any help you could give would be much appreciated.
    I can't seem to verify my permissions on HD. I have run disk utility both from finder and from my OSX startup disk and consistently get the error message "Disk Utility has lost its connection with the Disk Management Tool and cannot continue." I then reinstalled the operating system all together making sure to archive and install as well as archive previous network and preference settings. This means I am running 10.3.4 at the moment (and I can't verify any of the software updates at the moment). After reinstalling I still cannot verify my permissions, so now I am trying to back up all my files so that I can reinstall the OSX again, erase everything, and start from scratch. But I'm running into some very strange problems while doing this. select files are missing from ~/library. there is no Safari file, for example. I tried looking in HD/previous systems/library where my library files were saved before I reinstalled the operating system but there is no such folder in there either. this means all of my bookmarks are gone. additionally, under library/preferences (in both the old and new library folders) there is no file named com.apple.itunes.plst. so all of my itunes playlists are gone as well. these are the only missing files I have found thus far and i can't explain why they selectively would not have been saved after the archive and install. Everything else seems to be intact. Any ideas?
    thanks
    jb
    powerbookG4   Mac OS X (10.3.9)   running 10.3.4 at the moment - can't verify permissions on 10.3.9

    jbeep:
    my HD has a capacity of 8.85 GB available. When I reinstalled panther I had little more than 3 GB available (I deleted a bunch of unneeded things since then)
    Thanks for this update. What is the total formatted capacity of your HDD? I ask because I suspected that you might be cutting it pretty close. The rule of thumb is that you should have 10-15% of your total capacity available as free space. My personal rule is 15%-20%. This allows for more efficient perfomrance of OS X.
    I am in the process of backing up everything on my seagate combo USB 2.0/firewire 200 GB external (I am using the firewire cord)
    Having an up-to-date backup is one of the primary rules, often observed more in the breach than not. Since you have an HDD that supports Firewire, I suggest that you make a bootable clone of your entire HDD using SuperDuper. You can then use this backup as an emergency boot drive. However, it must be Firewire, as PPC Macs don't boot from USB devices.
    I also have heard that it is advisable to reinstall the OS "every now and again" and I hadn't done this for at least two years. was I ill-advised?
    Most experienced Mac users never re-install, except under dire circumstances. Since installing my new HDD in this computer I have never re-installed. Re-installation is the utlimate intrusive measure, and it exposes one to all kinds of issues, from lost data, to flawed installaton, to installations that fail midstream. Re-installation is not an effective maintenace procedure. Here are some helpful links in terms of maintenance:
    Mac OS X 10.3/10.4: System maintenance
    Macintosh OS X Routine Maintenance
    Maintaining OS X.
    I'm going to restart now and try and verify my permissions again using the procedure on the above link. I'll let you know what happens.
    Instead of verifying permissions, just go ahead and Repair Disk Permissions. Verifying permissions does nothing, and wastes your time, as it is difficult to tell whether you need to repair, and you have to repair anyway.
    Do post back with an update of your progress and any further questions or comments.
    Good luck.
    cornelius
    Message was edited by: cornelius

  • File extract from AL11

    There are files which are sitting on production R3 directories - they can be accessed on R3 via transaction AL11
    How can I extract these to BW production?
    Thanks

    Hi,
    Yes normally it should be avaialble in SAP BW AL11,but you can also check couple of points
    1. If basis can give you folder in R/3 that can be accessed via BW ,your and business life will be eaier.
    2. Once files are placed in one folder you need to give path of same in Infopacakge and you have to also write file name next to the path.
    3. Execute Infopacakge to get data to PSA
    4. Execute DTP to get data from IP to data target.
    I hope it is clear.
    need vto select correct option not from local workstation in Infopacakage.
    Thanks and regards
    Kiran

  • Deleting file from Al11

    Hi,
    How to delete a file manually from AL11 or Application server.
    Thanks,
    Sravanthi

    Frame ur directory path by defining a variable and use the DELETE option for data set to delete ur particular file.
    Example below:
    data:w_outfile(50).
    concatenate '/' sy-sysid '/abc/xyz/'
    into w_outfile.
    concatenate w_outfile 'FileName.txt' into w_outfile.
    delete dataset w_outfile.
    Hope this will help you!
    Rahul

  • Archive directory on overload

    Hi,
    I've configured a Sender File Adapter.
    It archives messages and adds a timestamp.
    Files are succesfully put on the integration engine and archived.
    However the files are not moved from the input directory, but are only copied
    So the files stay in the input directory. They are not processed again into the integration engine, BUT the archiving doesnt stop. It just keeps archiving the same file again and again.
    Because of the timestamp this means that we have a new file each time.
    This causes an overload on the archive share (file of 2 kb produced 16 gigabyte on archive)
    Is this a setting of the adapter that i have to change or does it mean that the pi-user who does the moving and archiving does not have sufficient rights on the directory?
    Thx
    Robert

    Hi
    In usual case if you give processing mode as Archive the files will be moved from source to Archive directory.
    And also are you getting any error in the Channel?
    But in your case if this is not happening then please check the User ID which you are using in the file channel if it has the access to
    delete the file once its processed.to check this login with that ID  to the FTP and check if you are able to delete.
    If nothing works , i think you can have a batch job to clear the source folder.
    Regards,
    Srinivas

  • Hierarchy update from AL11

    Hi SDNs
    We have a Date hierarchy updated from a flat file data source and the path of the file was from AL11. Now we cant see that file in AL11 directory any more and we want to update the Date history for our Fiscal Year 2011. As we do not have the file available , we are looking for alternate approach of loading these date hierarchies using a flat creation. But before doing that , can we retrieve the files deleted from AL11? If so please explain how...also we already have the Hierarchies loaded till 2010, so can we get the format of Flat file using RSH1 ? Please let me know how to create Hierarchy flat file...
    Thanks
    Sam

    Hi Ravi
    I downloaded the heirarchy using Z program and now I'm trying to update the Fisc Year 2011 data by manually entering the data. But when I downloaded the heirarchy in to flat file, Fisc weeks are not coming in the same format as it existed in Heirarchy. Eg: Our hierarchy has SO/01.2010 as descr amd 201001 as the fisc week node . But when I down loaded it appears like this: SO/20/1001 as the descirption and node name as SO100120. Is there any setting I have to do  (may be in SU01) to download this in same format as it existed in heirarchy ?
    Please advice...

  • 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

  • Reg:File adapter archive Directory

    Dear team,
    Our requirement is to read a csv file from a directory and archive the file in archive folder specified in the file adapter.
    If any exception is caught,then we need to read the archieve file from archive directory rename the archive file with source file name and place it in source directory.
    On the receive activity we are able to get the source file name and source file directory.
    <receive name="Receive1" createInstance="yes"
    variable="Receive1_Read_InputVariable" partnerLink="fileRead"
    portType="ns1:Read_ptt" operation="Read">
    <bpelx:property name="jca.file.FileName" variable="srcFileName"/>
    <bpelx:property name="jca.file.Directory" variable="srcDrFolder"/>
    How to get the archive file name and archive file directory from the receive activity so that we can store in local variables.
    Pls do help.
    Thanks

    Hi,
    Another way you can accomplish your scenario. Instead of deleting or archiving in beginning just move the file from inbound to archive location after business flow completion.
    In case of error, the file will remain at original position as moving operation is at the end.
    First read the file using read operation, then at the end create a file adapter with sync read operation. Change the entries in .jca generated with below sample.
    Sample jca file.
    <endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileIoInteractionSpec">
    <!-- Below properties are dummy except Type , it will be changed in runtime -->
    <property name="SourcePhysicalDirectory"
    value="srcdir"/>
    <property name="SourceFileName" value="abc.txt"/>
    <property name="TargetPhysicalDirectory"
    value="targetdir"/>
    <property name="TargetFileName" value="abc.txt"/>
    <property name="Type" value="MOVE"/>
    </interaction-spec>
    Then,in you bpel flow at the invoke for sync read add these two properties.
    <bpelx:inputProperty name="jca.file.SourceFileName"
    variable="varInputFileName"/>
    <bpelx:inputProperty name="jca.file.TargetFileName"
    variable="varArchiveFileName"/>
    <bpelx:inputProperty name="jca.file.SourceDirectory"
    variable="varInputDirectory"/>
    <bpelx:inputProperty name="jca.file.TargetDirectory"
    variable="varArchiveDirectory"/>
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    Thanks,
    Durga

  • How to Archive/move  a file in Tcode AL11

    Hi Experts,
    How to arvhieve a file or move the file from one path to other path in AL11. For one of the inbound file, i need to archive it after preocessing the data.
    Appreciate your response,
    Preetham

    Hi Preetham,
    Create a new report for this, first read data from first path and then transfer that data to the new path.
    Sample code...
    Wf_filename1 = file path on application server.
      IF file_type = 'BIN'.
        OPEN DATASET wf_filename1 FOR INPUT IN BINARY MODE.
      ELSE.
        OPEN DATASET wf_filename1 FOR INPUT IN TEXT MODE.
      ENDIF.
      DO.
        CLEAR : wf_row.
        READ DATASET wf_filename INTO wa_output.
    Enddo.
    wf_filename2 = new path in al11(for archiving).
    OPEN DATASET wf_filename2 FOR OUTPUT IN TEXT MODE.
          TRANSFER wa_output TO wf_filename2.
      CLOSE DATASET wf_filename1.
      CLOSE DATASET wf_filename2.
    Reward points if helpful.
    Regards,
    Sachin M M

  • FTPAdapter - logical directory name - file not moved to archive directory

    I created a simple ftp service to read the file from remote inbound directory and archive it to an "archive" directory using logical directories. I supplied the input and archive directories. The process reads the file from the input directory, but doesnt move it to archive directory. In the opmn logs i see the following message
    File Adapter::Outbound> Since file could not be copied to specified archive directory, file : CUST__20081113002951.xml is being copied to a default archive directory :/apps/oracle/product/10.1.3.1/OracleAS_1/j2ee/home/fileftp/defaultArchive/
    I checked the a) directory permission - this is the ftp users home directory , so it has all the bits set rwxrxrx- I even tried rwxrwxrwx, but same issue
    b) there is enough space on the box
    c) I can manually move the files around as the same user.
    Secondly, the files under the default archive directories are being created as root. Not sure why. Our server is running as "oracle" user.
    We are on 10.1.3.4
    any idea how to troubleshoot this ?
    Edited by: user9514124 on Nov 13, 2008 5:27 PM

    Just a thought. You are trying to archive to an FTP user's home directory. I assume that you want to archive remotely (on the source server)? If so you need to specify UseRemoteArchive="true" in the WSDL file for the adapter. If you forget that the adapter archives locallly on the SOA Suite server and perhaps there the directories are indeed missing or have the wrong rights?
    If you are using remote archiving and it doesn't work, have you tried to login with an FTP client and upload a file to the archive folder with FTP (as the FTP adapter user)? That is what the FTP adapter will do.
    If you are using local archiving, check all the parent directories and make sure that they are fine as well as the target directory. Also look into the file ownership issue, the files should not be created as root if everything really runs as oracle! Perhaps someone has accidentally started something as root?
    Good luck!

  • Delete the file from AL11

    hi all,
    how to delete file from application server(al11)?
    apart from using EPS_DELETE_FILE
    and writing a code  any other go to acheive it
    regards
    venkat

    Hi,
    AL11 is a tool to view files that exist on the operating system of the SAP instance (which I think is Rainer's point). 
    The only way to delete this files is either programatically (with the function module you mention or other ways) or to log onto the operating system directly and delete the file.  In either case you are not deleting them from AL11, you are deleting them from the operating system.
    Regards,
    Nick

Maybe you are looking for

  • Moving audio files around that are not in the iTunes library

    Hi, Can someone please confirm some behaviour for me. This is regarding iTunes (on OS X naturally) and moving files around that aren't located within the iTunes library. Most of the files I use are located within the iTunes library, they are fine. Ho

  • How to reload changes using Entity Framework POCO?

    I have my WPF app using EF on loading, save etc. my problem is if someone make changes on SQL table directly and if my app is open, I am not able to see those changes. I know that EF caches the table and i have force to reload or refresh. But how thi

  • Office 7 and PDF maker

    My lovely IT department have upgraded my office to version 7 (Yuk). Anyway, the acrobar PDFmaker has now dissapeared as a function. I have downloaded the office plug in for saving and printing to PDF but it is different. Previously on the PDF maker b

  • SQL Server Stored Proc/Database Permissions

    First of all, I'm not sure that I'm posting this in the correct place.  I'm a Windows/Active Directory Engineer, looking for some guidance on how other companies are managing/maintaining what I'm about to describe. We have a rather complex SQL Server

  • Normal behavior in Start Up Manager?

    I have several volumes in use at any time, so I boot into the Start Up Manager (option key) quite a bit. In the past, this screen displayed the names and corresponding icons of the available volumes (e.g., Macintosh HD, Media, whatever), but in 10.6.