File to AS2 File Name?

Hi Guys,
I have File -> AS2 scenario. I want to have the file name on the AS2 receiver same as sender File adapter.
1. I have checked the ASMA on the sender side with the File name option checked
2. I have checked the dynamic attributes in the AS2 receiver with the file name option checked.  I have also checked the     option Fail the message if ASMA is missing.
Currently I dont have any IR objects so i can't do a UDF.  The message is failing with the below error
Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.seeburger.xi.connector.queue.TaskBuildException: Mandatory attribute dtAS2FileName is not present in XI message., Mandatory attribute dtAS2FileName is not present in XI message
How can i get the same file name from the file sender to the AS2 receiver? any help or suggestions would be appreciated
Thanks,
Srini

Hi Hari,
You need to use the attribute mapper module to map the sender file name.
1. set the ASMA in the sender channel
2. check dynamic attributes in the receiver AS2 adapter and check the file name
3. use Attribute Mapper in the module tab
4.  Map the received file name to the dtAS2 file name is the configuration
Please let me know if anything is not clear so that i can explain you more briefly.
Thanks,
Srini

Similar Messages

  • Loading as3 swf files into as2

    im having a problem..i,e. i need to load an external swf which is in as3...and need it to be played in my as2 swf layout. with a time slider ,play, pause ,next, previous for that swf movie clip. pls give ur mail id i can sent my original files....................pls help me
    pls give ur mail id i can sent my original files.................[email protected] pls help me am doing my final year college ..........download tis jpg image and convert to rar r zip file.....project

    You'r not able to load as3 files into as2 files.

  • AS2 File name preseve - can we force the file name to be in Content-Type

    Ref: http://www.b2bgurus.com/2007/11/as2-file-name-preserve-feature.html
    Our TP wants file name to be part of Content-Type of MIME rather than Content-Disposition. is this possible in Oracle B2B?
    Thanks,
    Kalyan

    Hi Ramesh,
    Older applications still use "name" parameter of content-type to identify and further process the document
    I think B2B should provide a way to include "name" parameter as part of content-type for backward compatibility
    Expected by our TP
    Content-Type: application/pdf; name="example.pdf"
    Content-Transfer-Encoding: base64
    few links to throw some more light on the topic
    http://osdir.com/ml/ietf.rfc822/1996-03/msg00000.html
    http://pear.php.net/bugs/bug.php?id=4057
    h3. expert from wiki
    The original MIME specifications only provided a means to associate filenames with application/octet-stream parts. This was done through the use of a name= parameter on the content-type. The theory here was that filenames were mostly used for type information and therefore did not need to be present in most cases. It was a mistake. The specification of content-disposition attempted to provide a more general means of providing file name information by defining a filename parameter as part of the content-disposition field

  • Need help to find link to external AS2 file

    I have purchased an image gallery program that works fine but I am struggling to make a very minor modification. I have asked the author for assistance but previous requests have met with no response so I am also asking my question here.
    This program has most of its logic in an external AS2 file. I have made some small changes to this file and want to save it under a new name. However, that would also require me to change the reference to the external AS2 file from within the fla file. That's where my problem lies. I can't find any code in the fla that contains such a reference.
    If I try to publish an swf without this file in the required location it causes a compiler error thus proving that there must be a reference somewhere to that file. However, doing a search for this AS2 file in the 'current document' when viewing the fla file in Flash CS4 produces no results. Where else could this reference be hidden?
    David

    Unfortunately, the Movie Explorer window does not show class references of the type under discussion. I guess an alternative way to reference this external file might be via an include statement in an action, which would make it a lot easier to find than when it is hidden in the properties box of a library symbol.
    However, the Movie Explorer appears to be a useful facility for finding and searching timeline actions so thanks for bringing it to my attention. I used it for a brief exploration of another fla file with lots of code scattered all over the place.
    Thanks again for all your help.
    David

  • My Script Saves My Files In Incremental file names but can't save to original folder?

    hi everyone,
    so after a few hours of browsing the forum, was able to scotch tape this script together so it allows me to save my files in incremental file numbers.
    - i create an action to edit the file and then in that action, i run this script x-amount of times.
    - it works as i tested it a few times.
    but here are my questions that i can't figure out.
    1. right now it says to a folder that i have to designated. how would i edit this code so it'll save in the same folder as the file i am editing?
    2. so far it saves as a jpeg. does anyone know the syntax to use for a gif?
    and if you're kind enough...let's say i have an animated gif file, i can't edit it in photoshop so i have to use imageready but how do i replicate the above in imageready since we're on the same topic.
    THANKS!!! code is below:
    // This script will save the active document to a folder with an incremental sufix
    // Change the options below to match your needs
    var saveFolder = new Folder( 'C:\\test' );
    var saveExt = 'jpg';
    var saveSufixStart = '_';
    var saveSufixLength = 3;
    jpgSaveOptions = new JPEGSaveOptions();
    jpgSaveOptions.embedColorProfile = true;
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    jpgSaveOptions.matte = MatteType.NONE;
    jpgSaveOptions.quality = 8;
    // End of user options
    //==========================================
    function zeroPad ( num, digit ){
       var tmp = num.toString();
       while (tmp.length < digit) { tmp = "0" + tmp;}
       return tmp;
    var docName = decodeURI ( activeDocument.name );
    docName = docName.match( /(.*)(\.[^\.]+)/ ) ? docName = docName.match( /(.*)(\.[^\.]+)/ ) : docName = [ docName, docName, undefined ];
    var saveName = docName[ 1 ]; // activeDocument name with out ext
    var files = saveFolder.getFiles( saveName + '*.' + saveExt );// get an array of files matching doc name prefix
    var saveNumber = files.length + 1;
    //alert("New file number: " + zeroPad( saveNumber, saveSufixLength ));
    var saveFile = new File( saveFolder + '/' + saveName + '_' + zeroPad( saveNumber, saveSufixLength ) + '.' + saveExt );
    activeDocument.saveAs( saveFile, jpgSaveOptions ,true ,Extension.LOWERCASE);

    ImageReady? Which version of Photoshop do you use?
    1. right now it says to a folder that i have to designated. how would i edit this code so it'll save in the same folder as the file i am editing?
    You need to amend the line
    var saveFolder = new Folder( 'C:\\test' );
    accordingly.
    2. so far it saves as a jpeg. does anyone know the syntax to use for a gif?
    There are examples on the Forum, for example
    http://forums.adobe.com/message/3928843#3928843

  • How to delete the file with space in name

    Hi
    I want to delete the file "test ex.txt" file.
    i run the following command in command prompt.i can delete the file successfully.
    /bin/rm -f /mnt/"test ex.txt"
    I want to run the command from java.So i am using the following code
    String cmd = "/bin/rm -f /mnt/\"test ex.txt\"";
         Runtime rt = Runtime.getRuntime();
    process = rt.exec(cmd);
    The file was not deleted.
    How to delete the file with space in name?
    Help me

    Use the form of exec that takes an array of command + args.
    arr[0] = "/bin/rm"
    arr[1] = "-f"
    arr[2] = "/home/me/some directory with spaces";Or use ProcessBuilder, which is the preferred replacement for Runtime.exec, and which Runtime.exec calls.

  • Oracle SQL Developer  error - "The file-based source procedure Name is not present in the database."

    I recently started working on the Oracle SQL developer. I have 'select' privileges on the QA schema and when tried to execute proc in QA. It is giving the error as 'The file-based source <procedure Name>  is not present in the database.  Was it compiled?'
    instead 'you do not have sufficient privileges to execute this procedure'. Did research on internet but with no luck.What configuration changes needed to be done to make it work.Guide me.

    Sounds like you do not have the correct privileges.  What should have been granted to you by the QA user, or some other user with appropriate privileges, is...
    grant EXECUTE on "QA"."<PROCEDURE_OF_INTEREST>" to "<YOUR_USERID>" ;
    Note that a grant of execute on a procedure has nothing to do with grants of select on some or all of QA's tables and views.
    So, as Vadim suggests, from your connection node in SQL Developer's Connections view, if you expand the Other Users node, then expand QA and look in the Procedures node, do you see the procedure of interest?  If not, you cannot expect to be able to execute it from your userid's connection. And even if you do see it, you may have some other privilege that permits viewing but not executing, like...
    The role SELECT_CATALOG_ROLE
    The system privilege SELECT ANY DICTIONARY
    And even if you do not see it there, then having certain other privileges granted to you could permit executing it in general, like...
    The role EXECUTE_CATALOG_ROLE
    The system privilege EXECUTE ANY PROCEDURE
    Also, note that the 3.0 release is a bit dated nowadays. Upgrading to 4.0.3 production or even the 4.1 EA2 (early adopter) release will, in general, give you a better experience.
    Best wishes,
    Gary

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • How can I overwrite a file with the same name in Content DB?

    Hi All,
    In Content DB if I upload a file with the same name as a previous one, the application shows the warning message:
    " ...You cannot upload "XXXXXX.doc" to "Test 1" because an item with the same name already exists ..."
    And the alternatives are "Create Version" or "Cancel" the operation. Is there any way to overwrite a previous file as we can do it in Oracle Files ?
    Regards
    Harvey

    Hi All,
    Can anybody from the Content DB product development answer this question?
    Regards
    Harvey

  • After installing latest update Realplayer recording no longer works, I think Mozila is using a library file with the same name

    After installing the latest update to Firefox onto Vista operating system the record part of real player no longer works, I think Mozila and Real are using a library file with the same name and the Mozila update is overwriting a Realplayer library file.

    I was giong to say, "Help me, Adobe Joe Kenobi", but it looks like you're growing a beard waiting for an answer, too.
    The same thing happened to me today. I trusted the "update" message since it was from Adobe, and apprently did so at my own peril. Now I get the "failed to load Core dll" message with a secondary reference to a memory address.
    Just an observation, but what good are these forums when there are no answers? I see this problem as "Caused by Adobe Update", and would expect them to troublshoot and offer up a remedy. Since you've been waiting over two months with no response, I suppose it's time to trek off wasting more of my precious time to fix their problem. If I find the solution, I'll post it back to you.
    May the Force be with you.
    Mark

  • Issue in Download file - If the file name is same

    Hi Experts,
    I have a requirement to download the company code hierarchy data into a file. On selection screen I am giving the file path along with the file name If I run the report it is downloading the data into the particular file in the file path this is expected result but if i am running the report with same filename which is already exists in the same path then instead of replacing the file with new data it is appending the data to that file.
    But my expected result is: If the file name is same, file should be replaced with the Current Data instead of Appending the file.
    And this issue is happening for the file formats TXT and CSV and also this issue is happening only when i am saving to the local drive.
    I executed  the report by giving the file name Eg: " XXXX.xls" extension even in this case the records getting replaced with the new data, problem is when the file extension is with TXT and CSV formats.
    FYI... to download the data i am using the below funtion module and i am passing the below parameters: Please correct me if i am wrong.
       CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
           FILENAME                        = G_LFILE
           FILETYPE                        = G_FILETYPE
           APPEND                          = 'X'
           WRITE_FIELD_SEPARATOR           = GC_FIELDSEP    " Passing X
           TRUNC_TRAILING_BLANKS           = GC_TRUNCBLNKS " Passing X
           DAT_MODE                        = GC_DATMODE                 "Passing X
           CODEPAGE                        = G_LCODEPAGE
          TABLES
            DATA_TAB                        = GT_ITAB_HIER1
         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.
          G_FNAME = G_LFILE.
          MESSAGE E043(ZFI) WITH G_FNAME.
        ENDIF.
    Can any one please provide me the solution.
    Thanks in advance.
    Koushik

    Hi all,
    Issue got resolve. I have used the class CL_GUI_FRONTEND_SERVICES
    and the methods file_delete and file_exist. below is the sample code :
      1)  Write the below code in subroutine “PEFORM FILL_DATA_FILE” to check the given file exists in the directory or not.
    DATA: lv_FILENAME TYPE STRING,
               lv_RESULT  TYPE C,
               lv_rc TYPE i.
               lv_FILENAME = g_lfile.
        CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST
          EXPORTING
               FILE                 = lv_FILENAME
          RECEIVING
               RESULT               = lv_RESULT
          EXCEPTIONS
               CNTL_ERROR                          = 1
               ERROR_NO_GUI                     = 2
               WRONG_PARAMETER          = 3
               NOT_SUPPORTED_BY_GUI  = 4
               OTHERS                                   = 5.
        IF lv_RESULT = 'X'.
          lV_RC = '1'.
        ELSE.
          lV_RC = '0'.
        ENDIF.
      2)  If the given file is exists in the directory(or in the given file path) delete or modify that file with the current data
          for that add the below code :
             IF lv_rc = 1.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
          EXPORTING
            FILENAME             = lv_FILENAME
            CHANGING
            RC                           = lv_RC
          EXCEPTIONS
            FILE_DELETE_FAILED   = 1
            CNTL_ERROR                = 2
            ERROR_NO_GUI           = 3
            FILE_NOT_FOUND       = 4
            ACCESS_DENIED           = 5
            UNKNOWN_ERROR      = 6
            NOT_SUPPORTED_BY_GUI = 7
            WRONG_PARAMETER      = 8
          OTHERS               = 9.
        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.
    Thanks,
    koushik

  • How to copy a files spotlight comments for an entire folder and place them in a different file with that same name

    I have the same question in a different discussion but I already marked it as solved because one of the questions was answered. Here's the linke to the other discussion if your interested https://discussions.apple.com/thread/5970421 
    I have movie covers saved as a jpeg for every movie my family and I own. There is about 700 and they each have a comment of the main actors, release dates, and descriptions. This makes it easy to find what to watch.Is there an applescript, automator, program I can download,  or program code supported in xcode that will do the following set of inscructions?
    Take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments to a file with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste
    and do this for all 700 files

    Clendenen02 wrote:
    where should I run the code? in the terminal, or an applescript, or should put it in xcode and run it from there or the terminal.
    What MrHoffman said.
    But if it's easier, you can wrap it in Automator and have Automator ask for the Folders: (Test on a sample of your files before running on all 700 files)
    (do you really own 700 movies??)
    The Workflow is:
    Put this in the Run Shell Script Action (and pass input as arguments":
    PicDir=$1
    MovDir=$2
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" = "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [[ -e "$MovDir"/$movname ]]; then
    osascript <<-EOF
    tell application "Finder"
    set comment of file (POSIX file "$MovDir/$movname") to  "$comment"
    end tell
    EOF
                   fi
              fi
         fi
    done
    (BTW, I know that this is a bit of sloppy scripting (wraping an osascript in a Bash Script wrapped in Automator, but it does what you need)

  • In LSMW while executing the specify file step logical file name and path.

    Hi ,
    In LSMW , while executing the specify file step, logical file name and path is mandatory field to entry, but in some of other LSMW objects, these fields are not mandatory one, i want to know is it possible for me to do hide the logical file name and path field in specify file step.
    thanks
    Md nisar

    Hi,
    For some Transactions while executing the Specify file step Logical File and Logical Path are mandatory.
    In this case Converted file will be stored in the application server. According to the specified Logical File and Logical path.
    Hope this will help you....
    Regards,
    Tirumala Reddy

  • Information about file Id, Logical file name and Physical file name

    Hi All,
    I am testing one program. Selection screen has 3 parameters, File Id, Logical File Name and Physical file name. In Physical File name, i am giving complete file name with path. But it is giving error. Please tell me, what is File id and what all information i need to enter for logical file name and physical file name.
    Thanks
    Puneet Aggarwal

    hi,
    try using this for filename.
    parameters : p_file like rlgrap-filename.
    Thanks,
    Gaurav

  • Name zip file and zipped file in File Receiver

    Dear experts,
    I have a "RFC to File"-scenario. So I have a File Receiver and the received XML needs to be zipped. I have a XSLT mapping that hands over a dynamic file name to the File Receiver. Now when I use the PayloadZipBean my resulting ZIP-file gets the dynamic name. But the zipped XML gets the name "untitled.xml". But I also want the zipped file to get the dynamic name!
    I had a look at Stefan Grube's blog /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    and also at the WIKI http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20Module%20PI%207.0%20Set%20Attachment%20Name?bc=true
    Do you know if there is any way I can avoid writing my own adapter module? I would like to stay with SAP standard modules!
    If not, will the module described in that WIKI also work with a File Receiver instead of a Mail Receiver? (I think it should)
    Thank you for any ideas and best regards,
    Peter

    Hello Amit, Hello Abhishek Salvi,
    Thank you again for your advice and the links to the NWDS. I downloaded it and everything went well until the deployment.
    I followed How-to-Guide: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?quicklink=index&overridelayout=true
    Then I got the error: The DOCTYPE declaration in the ejb-jar.xml deployment descriptor is missing.
    I looked at thread: The DOCTYPE declaration in the ejb-jar.xml deployment descriptor is missing
    I am using PI 7.0, JDK version 1.4.12.
    My local JDK Version 1.5.0_22, NWDS 7.1.
    Could the JDK version on the server be a problem? Or NWDS 7.1 and PI 7.0?
    I used all the libraries mentioned on this page under PI 7.0:
    http://wiki.sdn.sap.com/wiki/display/XI/Where%20to%20get%20the%20libraries%20for%20XI%20development
    When I create the Enterprise Bean I have to specify "Component and Local Interfaces", e.g. "com.sap.aii.af.lib.mp....."
    But in my PI system I cannot find JAR files with the name "aii.af.lib.mp..."
    Could that be the problem?
    Do I have to specify different "Component and Local Interfaces" when creating the Enterprise Bean?
    Thank you again for any help!
    Best regards,
    Peter
    Edited by: Peter Wallner on Apr 21, 2011 10:13 AM

Maybe you are looking for

  • Problems about deploying Oracle web application (Forms, Reports)

    I am going to deploy Oracle web applications (Forms and Reports) and plan to use the same server machine for both Application web server and Database server. 1. How can I enable SSL (for data encryption) on Application web server for Oracle Forms ? 2

  • 1 hour and 2 minutes on PAL DV tape always = 52 minutes on Hard Drive, why?

    Every time I copy my I hour DV tapes to my firewire hard drive and it finishes, it always says "About 52 minutes of video was recorded". If this was due to dropped frames I could understand but it always says the same thing. If frames are being dropp

  • My MacBook Air and my new Apple ID

    I recently changed my Apple ID, but iMesagge, iCloud and others apps not registered it. What can I do?

  • Cs5 won't load since yosemite update

    Since I updated with Yosemite I can't open my Photoshop cs5. I get the error message ... To open "Adobe Photoshop CS5" you need to install the legacy Java SE 6 runtime. I have updated my Java, verified it and it all seems up to date. I have also unin

  • Captivate Crashes When Editing Question Pool

    Captivate v5.5 I have a project with 36 questions in a question pool. I need to edit some the these QP questions but as soon as I start doing this I get the message that Captivate has encountered an error...very sorry...and must close down. I have tr