Adapter file receiver command line dynamic

Hi everybody,
In the adapter file receiver, I'd like to put the command line dynamically depending of informations of the payload of the message.
Do you have ideas ?
Thank you in advance for your collaboration.
Regards

Eric,
Why not work with Parameters (adapter Specific)
Enable Adapter Specific attributes and fill them with data from the Payload. Be aware that this need to be filled via the Dynamic Configuration
See SAP Help
Dynamic Conf
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
Sender File/FTP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Receiver File/TFP Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
PS: the option Command line execution can also be filled with parameters. This in order to make dynamic cmd line executions
Greets and Success

Similar Messages

  • Adapter file Receive - conversion file problem

    Hi everybody,
    In an adapter file receiver, I want to convert an XML structure to a "flat file".
    here is my xml structure
    <ns1:MT006_blabka>
      <RECORD>
        <LIGNE>TEST1</LIGNE>
        <LIGNE>TEST2</LIGNE>
      </RECORD>
      <FILE>
         <FILENAME>fichier.dat</FILENAME>
         <DIRECTORY>//server1/root/</DIRECTORY>
       </FILE>
    </ns1:MT006_blabla>
    and the text file I want to receive is
    <BOF>
    TEST1
    TEST2
    <EOF>
    The problem is with the paramter of conversion I use I receive
    <BOF>
    TEST1
    TEST2
    <EOF>
    I always receive an empty line at the end
    The record set define in conversion are "RECORD,FILE"
    in parameter i put
    RECORD.fieldSeparator      value :  'nl'
    FILE.fieldFixedlengths  value : 0,0
    My problem is to eliminate the empty line at the end of the file.
    Is there someone who can help me ?
    Thank you in advance for your collaboration.
    Regards
    Eric.

    Hi,
    You will have to modify your target structure from this
    <ns1:MT006_blabka>
    <RECORD>
    <LIGNE>TEST1</LIGNE>
    <LIGNE>TEST2</LIGNE>
    </RECORD>
    <FILE>
    <FILENAME>fichier.dat</FILENAME>
    <DIRECTORY>//server1/root/</DIRECTORY>
    </FILE>
    </ns1:MT006_blabla>
    To this
    <ns1:MT006_blabka>
    <RECORD>
      <Struct>
          <LIGNE>TEST1</LIGNE>
           <LIGNE>TEST2</LIGNE>
    </Struct>
    </RECORD>
    <FILE>
    <FILENAME>fichier.dat</FILENAME>
    <DIRECTORY>//server1/root/</DIRECTORY>
    </FILE>
    </ns1:MT006_blabla>
    use the content conversion as
    recordset structure = RECORD,Struct,File,
    Record.fieldSeparator = 'nl'
    Struct.fieldSeparator = 'nl'
    file.fieldFixedLengths =  0
    file.fixedLengthTooShortHandling = Cut

  • Adobe Reader 11 (XI) won't open file via command line

    Hello,
    I have posted this question to probably inapropriate topic earlier today, so I am repeating it again.
    I installed newest Adobe Reader XI today and when I tried to open certain pdf file via command line, it reported a syntax error. Now, this syntax worked so far on versions 9 and 10  (I checked today with them and it is working), so my question is - where can I find new syntax, if there is any? Googling didn't help. Or what else could wrong?
    In previous versions I was able to open pdf file (on page 5) like this (all was taken from Help file "Open parameters")
    "CompletePathToAdobeReader"/A"page=5""CompletePathToPDF",
    ie
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"/A"page=5""d:\V2\DataSheet.pdf"
    but now - not that it doesn't open specific page, but it doesn't want to open file at all.
    edit:
    Operating systems running: Windows 7, Windows XP
    Thank you.
    Message was edited by: v604

    Yes, it reported correctly becuase there is a syntax error in your command. Try spaces between the /A switch and open parameter. Try this:
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A "page=5" "d:\V2\DataSheet.pdf"
    Hope this helps.
    -Sumit

  • How to specify xml file to populate form fields in the PDF file via command line?

    Hi,
    I would like to specify xml data file to populate my pdf file using command line.
    The form was Reader extended.
    I've tried the following syntax :
    Acrobat.exe /A "zoom=100" "C:\example.pdf"#xml="C:\example.xml" but got an acrobat error: "the file name, directory name or volume label syntax is incorrect".
    Where am I wrong?
    Thanks!

    >If I understand correctly you propose something like this
    Something like, yes.
    >
    >Acrobat.exe /A "zoom=100" "xml=C:\example.xml" ....
    Certainly, neither will work. /A is followed by a single quoted
    string. There must be some separator, but I don't know what it needs
    to be (as I was alluding to in my first reply).
    To see if there is any hope, just try without the zoom= completely. In
    any case you can set the zoom in the document properties.
    Aandi Inston

  • How To Run An External .exe File With Command Line Arguments

    Hiya, could anyone tell me how I can run an external .exe file with command line arguments in Java, and if possible catch any printouts the external .exe file prints to the command line.
    Thanks.

    Using the Runtime.exec() command. And read this:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • HT3924 Target display mode connects but only displays desktop background, no files or command lines

    I have connected my early 2014 MacBook to a late 2012 imac and connected them via Thunderbolt cable.  Pressing Command F2 causes the screen on teh iMac to change to teh MacBook background screen, but does not display any desktop files or command lines.  Any ideas how to fix this?

    Hi tdmone,
    Welcome to the Support Communities!  The resource below may help you with the Target Display Mode options for connecting your Macbook and iMac:
    Target Display Mode: Frequently Asked Questions (FAQ) - Apple Support
    http://support.apple.com/en-us/HT3924
    The table below shows iMac computers that support TDM, the required cables, and the port of the computer to which you are connecting the iMac.
    iMac Model
    Cable Supported
    Port on Source Computer
    iMac (27-inch Late 2009)
    Mini DisplayPort to Mini DisplayPort
    Mini DisplayPort or Thunderbolt
    iMac (27-inch Mid 2010)
    Mini DisplayPort to Mini DisplayPort
    Mini DisplayPort or Thunderbolt
    iMac (Mid 2011)
    Thunderbolt to Thunderbolt
    Thunderbolt
    iMac (Mid 2012 and later)
    Thunderbolt to Thunderbolt
    Thunderbolt
    Are you connecting via the Thunderbolt ports on both computers?
    How do I enable TDM?
    Make sure both computers are turned on and awake.  
    Connect a male-to-male Mini DisplayPort or ThunderBolt cable to each computer. 
    Press Command-F2 on the keyboard of the iMac being used as a display to enable TDM. 
    Note: In Keyboard System Preferences, if the checkbox is enabled for "Use all F1, F2, etc. keys as standard functions keys," the key combination changes to Command-Fn-F2.
    Can I use a third-party keyboard or older Apple keyboard to enable TDM?
    Some older Apple keyboards and keyboards not made by Apple may not allow Command-F2 to toggle display modes. You should use an aluminum wired or wireless Apple keyboard to toggle TDM on and off.
    I hope this information helps ....
    - Judy

  • Undeploy an sda file through command-line

    Hi All,
          I want to undeploy an .sda file through command-line,what is the procedure to undeploy an sda file through command-line and send me the procedure for this
    Thanks & Regards,
    guru

    Hi
    Please find below the steps to undeploy thro command line :
    Shut down the sdm server
    1)SDM shutdown "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program" "sdmguiport=50018" "sdmhostname=<hostname>" password="<password>" "shutdownmode=abort"
    2)sdm jstartup "mode=standalone" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    3) sdm undeploy "sdmhome=D:\usr\sap\J2E\DVEBMGS00\SDM\program" "compname=c:\test.sda"
    4)sdm jstartup "mode=integrated" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    5)start the sdm server again
    SDM server "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program"
    Hope this helps. do not forget to reward points
    regards
    rajeshkr

  • How to undeploy an .sda file through command line

    Hi,
    How to undeploy an .sda file through command line.send me the related command to do it.and related information and links.

    Hi
    Please find below the steps to undeploy thro command line :
    Shut down the sdm server
    1)SDM shutdown "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program" "sdmguiport=50018" "sdmhostname=<hostname>" password="<password>" "shutdownmode=abort"
    2)sdm jstartup "mode=standalone" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    3) sdm undeploy "sdmhome=D:\usr\sap\J2E\DVEBMGS00\SDM\program" "compname=c:\test.sda"
    4)sdm jstartup "mode=integrated" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    5)start the sdm server again
    SDM server "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program"
    Hope this helps. do not forget to reward points
    regards
    rajeshkr

  • Compiling FLA and AS files to SWF file using command line

    I need to encorporate the .as sources and .fla file, into my
    build environment, to compile the SWF file.
    Right I have to Open Flash 8 to perform this and copy the SWF
    created through the compilation process.
    Compiling FLA and AS files to SWF file using command line is
    my main purpose. If there such a utility there, does it exist for
    Linux and Windows.

    Try
    Flash
    Command or
    Flash
    Shell Extension
    We use an enhanced version of Flash Command internally, of
    which we fixed the bug of Mike Chamber's Flash Command which cannot
    be run in .NEt 2.0 and added some other functionality. Once we are
    comfortable with it, we will release it to the public.

  • In making .ard file what command line argument

    In making .ard file what command line argument  must be kept

    Taken form SAP Business One Development Environment Project.
    .bat file:
    "SAPAddOnRegDataGenFileFolder\AddOnRegDataGen.exe" "YourAddOnInstallXMLFolder\YourAddOnInstall.xml" "1.1" "YourAddOnInstallFolder\YourAddOnInstall.exe" "YourAddOnInstallFolder\YourAddOnInstall.exe" "YourAddOnFolder\YourAddOn.exe"
    .xml file:
    <AddOnInfo partnernmsp="YOU" contdata="Your Name" addonname="YOUR ADD-ON" addongroup="M" esttime="60" instparams="" uncmdarg="/x" partnername="YOU" unesttime="30" />
    Hope it helps.
    D.

  • Run PDF File from command line and goto a bookmark

    Hi,
    I need to open a pdf file vi command line (WinXP / Win7).
    Till this I do not have a problem.
    But I need to go to a bookmark in the file direct after opening the file.
    I tried "acrord23.exe /a nameddest=BOOKMARK file.pdf" but this opened only the file.
    "acrord23.exe /a zoom=50 file.pdf" works fine.
    Is there another parameter to go to a bookmark after open a file?
    Where is my mistake?
    Thanks in advance
    Regards
    Marc
    Message was edited by: mgemmerich - reason: typo

    Hi,
    I read the PDF Open Parameters reference. So I tried the nameddest. I think the nameddest is a bookmark, or is this wrong?
    The background is, that we have the dokumentation for our application in word. So we save the word as pdf. Each chapter is now a bookmark.
    In the application we want to call the pdf and jump to the bookmark. Each frame were you can call "help" is a chapter/bookmark.
    Or is there another way to do this?
    Regards
    Marc

  • Import biar file with command line

    Hi
    I am trying to import biar file with command line on unix environment with BOXI R3.1 and Oracle DB
    The biar file include one universe and it's connection (eFashion), one report and one user
    when I run the command line:
    java -jar /BO/boxi/bobje/java/lib/biarengine.jar /BO/boxi/test.properties
    I recive the following error:
    Failed to commit objects to server : Undefined Info Store error
    An error occurred at the server during security batch commit:
    Request 6 of type 36 failed with server error : Object not found (1433)
    Request 11 of type 36 failed with server error : Object not found (1433)
    Request 20 of type 38 failed with server error : Object not found (1433)
    Request 26 of type 38 failed with server error : Object not found (1433)
    Do you have any idea , what is the problem?
    Thank you

    Hi Denis
    I found out after I create a biar file ,with only the user, through a command line. that the user did import since it was in a concurrent connectiontype , a type that not exit in the target environment.
    But after I fix this in the source environment and saw that a biar file with only the user is loaded , I recreate the biar file with all the objects as before (user, universe, report , folder) and I still got the same error message as before.
    So now I try to create the biar file with all those object through the command line. and I get a new errer message "Required dependencies not found on target system : '[AZK_.9sbf_lMgdQRpsbZfVw]"
    I check it , and understand that the object is the report , but I do not see what missing..... : (
    Those are the quries in the properties file:
    exportQuery= SELECT * FROM CI_APPOBJECTS where si_kind = 'Universe' and si_name='eFashion'
    exportQuery= SELECT  * FROM CI_APPOBJECTS WHERE SI_ID in ( 894,926)
    exportQuery= SELECT * from CI_SYSTEMOBJECTS WHERE SI_KIND = 'user' and SI_Name='repadmin'
    exportQuery= SELECT * FROM CI_INFOOBJECTS WHERE si_kind= 'Folder' and SI_name = 'test'
    exportQuery= SELECT * FROM CI_INFOOBJECTS WHERE      SI_ID IN (2188)
    Can you tell what is missing?

  • Executing jar file on command line [windows]

    Hi,
    I am trying to run .jar file "senthil.jar" . It catures systems screenshot.
    http://sensaran.wordpress.com/2010/06/04/screen-shot-utility-using-air-2-0/
    I am using it in AIR application. I want to execute this file from  command line. I am not sure how to pass command line arguments.
    Currently i am trying to do it like :  java -jar senthil.jar
    I need to provide a parameter as "Print Screen"
    Its corresponding Flex Code is :
                var arg:Vector.<String> = new Vector.<String>;
                arg.push("-jar");
                arg.push(File.applicationDirectory.resolvePath("senthil.jar").nativePath);
                 var file:File = new File();
                file = file.resolvePath(javaPath.replace(/\//g, File.separator));
                var npInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
                npInfo.executable = file;
                npInfo.arguments = arg;
                nativeProcess = new NativeProcess();
                nativeProcess.start(npInfo);
                nativeProcess.standardInput.writeMultiByte("Print Screen" + "\n", "utf-8");
    Thanks

    Did you give the -jar option with javaw? And the "%1"? See the file associations of some other extensions for example of how to do this
    For example on my machine,
    W:\>assoc .mp3
    .mp3=Winamp.File
    W:\>ftype Winamp.File
    Winamp.File="C:\Program Files\Winamp\Winamp.exe" "%1"Now I can
    start song.mp3Or doubleclick on mp3 file in explorer to open it in winamp.

  • File Adapter 7.11 - set operating system command line dynamically

    Hi,
    is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute?
    I need to set  a command line exec depending on some XSL mapping values.
    thx
    holger

    hi,
    >>>is there any way to set the "Operating System Command Line" in the file adapter as ASMA / dynamic attribute?
    >>>I need to set a command line exec depending on some XSL mapping values.
    think about this approach:
    you put the XSL values into the filename after the real name of the file
    in the batch script you use those values in order to execute a dynamic exe command
    after processing you just change the name of the file in the script by removing the xsl values
    simple ? I think so
    Regards,
    Michal Krawczyk

  • Create biar file with command line for link universe

    Hi
    I am using boxi 3.1 and I am trying to create 2 biar files with the command line
    One file for " main" universe and it's reports and another is for a link universe and it's reports
    The problem that on "main " biar file that been created , the link universe and it's reports also appear in it.  Even so in the queries only the relevant objects are selected
    I try to remove from the properties file the parameter 'exportDependencies=true ', and then when I check the xml of the biar I so that the link universe and it's report no longer appear. But when I importing the file I receive the error message 'Required dependencies not found on target system : '[ARgp0DCiBRBOsL3EHYQaHBY, AdfkNagAE59Nsbazh40nwTU]'
    Does anyone have an idea what I need to do , in order to see in the main biar bust the main objects?

    I have done it before on BOXI R2 with the IW, and it works fine
    But any how, this is the way that we have to work with, since it is part of a customer product and the link universe and it's reports  is an additional part of the product.
    So is there a way that I can pull just the main universe and it's reports?

Maybe you are looking for

  • How do I save a scanned image as a pdf file w/ my MG5420?

    I just installed my MG5420 printer and when I scan an image I do not see an option to save the file as a .pdf file.  Is there a scan utility to assist in scanning documents?  There was a utility for my MP800 printer that made this very easy.

  • Graph Error in Analysis

    I've created a Decision Tree Datamining analysis in APD, When I click on View Model Results in context menu of active Training Set the graph screen appears blank and the message below thrown. Default type 0 is not available in link group INST Message

  • I can receive MMS messages but cannot open the file sent...

    I can receive MMS messages but cannot open the file sent. It is just blank. Please help. Thank you.

  • Problem with my Macbook Finder Bug/ Problème avec mon MacBook Finder Bug

    Hi, two days ago I took my Macbook Pro with me for my holidays, since then, the finder can't stop glitching (I'm on Mavericks) : every time I try to open a file, a document, even my preferences the finder bug and show me the colorful circle. Even whe

  • User registration portlet

    Hi I want to develop a custom User registration portlet in JSP. I'm using iAS 902. Everybody can give me a starting point, or a sample. I developed Java API-s, which receives user information from LDAP, but I think my portlet must invoke Portal API-s