ActiveX Adapter, SafeArray parameter

HI,
I want to call the Engine.DisplayFileDialog Method directly with ActiveX Adapter in TestStand but I encounter problems with parameter selectedPaths define As SAFEARRAY(BSTR) Type :
=> TS Error
Details: An error occurred calling 'DisplayFileDialog' in 'IEngine' of 'NI TestStand API 3.0'
Invalid argument. Expected SAFEARRAY of BSTR.
Source: TSAPI
Error Code -17308; Specified value does not have the expected type.
What is the best and easiest way to pass a TestStand variable compatible with SafeArray format ?
Thanks in advanced,
     Emmanuel

Emmanuel,
You should use a string array property for the selectedPaths and absolutePaths parameters.
These paramters are output parameters:
selectedPaths As String Array
[Out] Returns the array of pathnames of the files or directories that the user selected. The pathnames may be relative or absolute depending on the dialog box settings.
absolutePaths As String Array
[Out] Returns the array of absolute pathnames of the files or directories that the user selected.
I am attaching a TestStand 3.0 Sequencee File that uses the ActiveX adapter to call Engine.DisplayFileDialog.
Hope it helps.
If you have any question let me know.
Antonio Lie
Attachments:
DisplayFileDialog30.seq ‏18 KB

Similar Messages

  • In my integration directory adapter engine parameter was not appear forJ2EE

    In my integration directory adapter engine parameter was not appear forJ2EE engine.It appears for IDOC and HTTP Adapters.
    Please clarify ASAP..
    Thanks

    Hi Chiru,
    You mean to say that, In ur Communication channels based on J2EE Engine like File, RFC,etc u are not able to see Adapter Engine Type Parameter Value as Integration Server.
    Reimport SAP BASIS Software Component once again in to repository and restart the Application Server and check.
    Regards,
    Sudharshan

  • Sender file adapter missingLastFields Parameter

    hi all,
    i have a wierd problem...
    i use a sender file adapter with content conversion to read the data of a file.
    all is fine until he get to a record when the last couple of fields are not in the file (and it's ok that they don't appear). i want the adapter to put no data in the last couple of fields but convert them to the XML tags.
    i am using the parameters: missingLastFields and keepIncompleteFields to keep the fields although they don't appear in the file.
    the parameters i am using are these:
    SA140.fieldNames:
    ActionCode,UpdateType,IDNumber,Filler1,RecordCode,Filler2,ExteriorColour1,Filler3,ExteriorColour2,Filler4,ExteriorColour3,Filler5,ExteriorColour4,Filler6,ExteriorColour5,Filler7,ColourArea1,Filler8,ColourArea2,Filler9,ColourArea3,Filler10,ColourArea4,Filler11,ColourArea5,Filler12,TireCode1,Filler13,TireCode2,Filler14,TireCode3,Filler15,TireCode4,Filler16,TireCode5
    SA140.fieldFixedLengths:
    2,2,10,4,3,41,5,1,5,1,5,1,5,1,5,1,2,1,2,1,2,1,2,1,2,1,6,10,6,10,6,10,6,10,6
    SA140.keyFieldValue:
    140
    SA140.missingLastFields:
    Ignore (i used the parameter "add" too and it still didn't work)
    SA140.keepIncompleteFieids
    true
    the row i am trying to read is:
    024018837002186 21140         1799    KW16    RW17    1010    9147                                         F18L19     7503 F18L19     7502 F18K27     7508
    as you see a couple of the last fields are showing in the text.
    could you please tell what am i doing wrong?
    maybe there is another parameter i missed?
    regards,
    roi grosfeld

    sorry but it still doesn't work...
    i am getting the same error:
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 5 according to structure 'SA140':java.lang.Exception: Consistency error: last field in structure 'SA140.' is incomplete - specify 'keepIncompleteFields' parameter accordingly to allow this
    regards,
    roi grosfeld

  • File Adapter--Processing parameter configuration

    Hi Experts,
    I need to configured the sender and reciever FTP Adapter to Archive a 37 MB text file within a FTP server.
    It is taking 20 min to archive the file.
    does this requirement requires any change in Parameter configuration(like transfer mode, channel availabilty planning( i am using daily with duration 30 min) to make it fast.
    Thank you,
    MK

    Hi Experts,
    To archive huge files using FTP adapter, i looked at the Michal weblog to zip the file :
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    please explain how and where to write the below file
    @ECHO OFF
    7za.exe a -tzip D:\file_cat\%2.zip %1
    del %1
    and also explain
    Zipping a file can also be done with jar.
    For example,
    jar cvf m.zip m.txt
    will zip m.txt into m.zip
    No need for any other software as jar is highly likely to be on the XI/PI server...
    and how to implement it in the FTP  adapter configuration.
    Thanks in Advance.

  • JDBC Adapter debugging parameter

    Dear gurus,
    We wanna activate the debugging parameter for the JDBC adapter to generate logs in XI 3.0.
    Please comment !!!!
    Regards,

    I cannot find how to set the parameter for activating the trace for JDBC adapter.
    The exact path is given in the question here in this thread
    JDBC adapter trace logs
    help me in activating the parameter logSQLStatement
    As already been suggested refer note:801367
    I think this parameter is available in XI3.0 also.Just go to the advanced mode of the JDBC channel and select it.

  • File adapter  - fieldSeparator parameter

    Hello everyone!
    I've configured an FTP sender adapter that picks up CSV files. The fields in the file are separated by a spaces, eg. <b>DTL  1     14800575110370 12 0000003</b>
    What do I indicate in the "fieldSeparator" parameter of the Content Conversion to indicate that the fields are separated by a 'space'?
    Warm regards,
    Glenn

    Hi,
    The Hexadesimal notation for space is '0X20' and fro TAB separator is '0X09'.
    for more details check this link.
    http://help.sap.com/saphelp_nw70/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards,
    Phani
    Reward points if helpful

  • ID RFC Adapter Engine Parameter Unstable~

    Dear Expert:
    I configure an Business System RFC Adapter to connect with R/3.
    But weird thing always happen in RFC Adapter parameter "Adapter Engine"
    the default setting should be "Integration Server",but sometimes the default value
    will disappear,and after i restart xi server the default show up again.
    but after a while it happen again.
    Can any one tell me what's going on ?
    is it a setting problem or hardware problem?
    Regards
    Jack Lee

    >
    RAJEEV GUPTA wrote:
    > Hi,
    >
    > But weird thing always happen in RFC Adapter parameter "Adapter Engine" the default setting should be "Integration Server" - No, the default value for the Adapter engine in RFC comm channel should be Central Adapter engine or Adapter engine but not Integration Server.............
    >
    >
    > Regards,
    > Rajeev Gupta
    Hi Rajeev,
    The Integration server option for Adapter Engine in any Adapter means that we are using Adapter Engine installed in the Integration Server. The concept you explained is correct. But the way we choose in channel configuration is different.............:)
    Regards,
    - Gujjeti.

  • File adapter configuration parameter for "hexadecimal conversion"

    (File adapter for XI 2.0)
    Does anybody know the exact File adapter configuration parameters for reading a file with hexadecimal control characters as seperators. My file has
    3 types of seperators - i.e "2F", "05" & "0D2F"
    Eg: xml.fieldSeparator= "2F"
    When I specify this the file is getting split into fields
    at all the seperators in the file. I guess I am not using the right format in my defination ?
    Dorai

    Is there any special format for reading a file containing hexadecimal control characters?
    The file to be processed has hexadecimal separators:
    Field Delimiter        : '09' or '05'
    End of record delimiter: '0A' or '25'
    End of Table delimiter : '07' or '2F'
    Initially i would like to read the file into XI as it is i.e without any split by using "xml.fieldFixedLengths= "
    However, everytime I process the file(with hexadecimal contol characters), I have noticed that my file is getting split, even when I did not specify anything for field separator(i.e when i used fixed field length).
    Thanks,
    Dorai

  • HTTP adapter URL Parameter

    HI we are currently integrating a http to rfc connection with the URL in the format of
    http://sdn.sap.com?name=Joe&country=India
    we want to pass the url parameters name and country to a rfc in sap but we are having difficulties using the apply URL Parameters on the sender http adapter when it comes to message mapping.  can you give a sample xml that will be generated when we received the said URL and how we can map these on the receiver RFC.  Thank you in advance'

    Hello,
    we want to pass the url parameters name and country to a rfc in sap but we are having difficulties using the apply URL Parameters on the sender http adapter when it comes to message mapping.
    You need to tick ASMA and then under apply URL parameters your entry should be like this:
    Parameter1       name
    Parameter2       country
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/43/64db4daf9f30b4e10000000a11466f/content.htm
    And then retrieve the name and country via dynamic configuration in message mapping using the technical name specified by SAP Help above
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey name = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/HTTP","URLParamOne");
    DynamicConfigurationKey country = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/HTTP","URLParamTwo");
    String uName = conf.get(name);
    String uCountry = conf.get(country);
    PS: You cannot test dynamic configuration in ESR. You have to do at least the HTTP to PI testing on your part to see if your config works.
    Hope this helps,
    Mark
    Edited by: Mark Dihiansan on Apr 7, 2011 7:27 AM

  • File adapter "Directory" parameter

    Hello colleague,
    While going through the documentation of file adapter the statement regarding directory of the file was not
    clear -> "The directory specified must be accessible by the service user of the Adapter engine, with appropriate read/write permissions".
    Where can i find the service user of adapter engine and how can i set its permissions. I want to use a directory on my local pc. But when i specify the absolute path -> //<pc name>/<location>/ the file is not picked up.
    Could you pls. help.
    Regards,
    Gajendra.

    Hi Gajendra,
    If u place a file in ur local pc, then giving the absolute path in the communication channel configuration wont help.
    For enabling XI to pick up a file from ur pc u should first install an FTP server in ur system.
    These servers are easily available on net. Foe ex u can download the GOLDEN FTP Server and install it on ur pc.
    Once this is done u need to create a folder in ur system where u will place all the files to be polled by XI. This folder needs to be added to the server with full control enabled.
    Next step is while configuring the communication channel, the file protocol should be FTP. Give the IP address of ur pc here.
    This will help xi in picking up files from ur local pc.
    Regards
    Neetu

  • Dynamic File name for File receiver adapter

    Hello,
    I am doing Proxy sender to File receiver scenario.
    Filename is generated in SAP R/3 program and I want to create the file with this same name
    on target location.
    please suggest me how to use this file name in Receiver file adapter?.
    Thanks & Regards
    Jagesh

    Hi,
    you have to enable the adapter specific parameter --> file name in both the sender and the receiver CC to get the input file name as output file name.
    Refer this blog:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Also you need to use this udf
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Also refer this blog:
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Regards,
    Nithiyanandam

  • ASMA in HTTP adapter

    Hello All,
    I'm want to use the ASMA in http adapters.
    I tried in file adapters and  got the expected result but in HTTP couldn't get it.
    In file adapter:
    I have selected the ASMA option in sender communication channel and selected the filename so that filename is included in message header.
    When selected the ASMA in receiver communication channel and selected the filename so that the filename which is added in message header is getting reflected here by overwriting the constant file name given in filename schema.
    In HTTP adapter:
    In sender communication channel i'm selecting the ASMA. But i have doubt in using the
    HTTP Header Fields .
    Field 1, …, 6: (technical name: HeaderFieldOne, .... HeaderFieldSix)
    URL Parameters
    Parameter 1, …, 6: (technical name: URLParamOne, …, URLParamSix)
    here url parameters implies what? is it the optional parameters like msgguid, party....etc other than mandatory parameters namespace,interface,senderservice?
    What is this HTTP fields...? is it any additional fields other than above optional and mandatory fields, which are coming in HTTP reuest url.
    I have used the HTTP client tool to send payload to my PI system. I sent the xml payload to pi by providing the mandatory fields. it's fine. when i gave the optional parameters in the input filed, automatically it is including in xi message header(without selecting the option URL parameters).
    Also i have added two input fields  and entered value in them, they got added in fields in URL. But they are not reflecting in messgae header inspite of selecting HTTP Header Fields and gave that input field.
    Please give detail description. I have checked in several blogs but didn't get enough info.
    Please help me.
    Regards,
    Ch.Venkat

    Hi Venkat,
    Please refer the SAP Note 1386621 - Plain HTTP Adapter: Dynamic parameter.
    here url parameters implies what? is it the optional parameters like msgguid, party....etc other than mandatory parameters namespace,interface,senderservice?
    URL parameter is to create or retrieve URL. for receiver HTTP adapter you can set this parameter on UDF and create dynamic HTTP url at run time.
    What is this HTTP fields...? is it any additional fields other than above optional and mandatory fields, which are coming in HTTP reuest url.
    HTTP fileds is to create or retrieve HTTP header values (If present).
    Please check the SAP note for more detail.
    regards,
    Harish

  • Adapter-Specific Message Attributes

    Hello,
    I have this configuration in a sender file adapter:
    File adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleXMB2File
    mode=XMB2FILE
    ##Adress for XMB endpoint
    XMB.httpPort=8000 <- Para XI desarrollo
    XMB.httpService=/tmp <- Directorio de XI
    ##File Adapter specific parameters
    file.createDir=1
    file.targetDir=/DATOS/INTERFACES/RRHH <- Directorio de R/3
    file.targetFilename=XXXX0*.txt
    #file.writeMode=addTimeStamp
    ##xml conversion properties if mode XMB2FILEWITHCONVERSION is specified
    #xml.addHeaderLine=0
    #xml.headerLine=
    #xml.fieldFixedLengths=15,25
    #xml.fieldSeparator=;
    I just wanted to add the Adapter-Specific parameter but I do not how to do it, for keeping the Filename.
    Can anyone help me?
    Thanks in advanced,
    Luis

    Hi Moorthy,
    I know I can do it like that, but for some reasons I can not use that way, so the only way for me for moving one file from R/3 to XI, was the one described above, and it works fien if I set a Filename in my file receiver channel in XI.
    But if I set adapter specific options in the receiver I got an error, because there is no dynamic configuration in the xml message header...So I need to configure the sender adapter in the R/3 for setting that parameter up .
    Michal in the help link that u give I couldnt find anything useful...
    Thanks anyway,
    Luis

  • Sender File Adapter Not Showing in Decentral Adapter Engine

    Hi,
    We have recently implemented a Decentral Adapter Engine on a windows box. The adapter engine seems to be working fine because my adapters show and seem to work fine in it.
    However, when I define a Sender File Adapter that uses File Content Conversion message protocol instead of just File messaeg protocol, the adapter does not show up in the decentral adapter engine.
    I made sure that Adapter Engine parameter in the Sender File Adapter shows the new adapter engine but that does not seem to be working. If change the Adapter Enginer parameter to show the Central Adapter Engine, then I can see the Sender File Adapter on the Central Adapter engine and it works fine. (Note: The Central Adapter Engine is installed on a Unix box) 
    Here are the paramters I defined for the Sender File Adapter:
    - Transport Protocol: File System (NFS)
    - Message Protocol: File Content Conversion
    - Adapter Engine: (new Adapter Name)
    Source Directory: (
    server/drive/path)
    File Name: purchaseOrder.txt
    Quality of Service: Exactly Once
    Poll Interval (secs): 60000
    Poll Interval (msecs):
    Retry Interval (secs):
    Processing Mode: Archive
    Add Time Stamp (checked)
    Archive Direcotry: (
    server/drive/path/archive)
    Process Read-Only files: (not checked)
    Processing Sequence: By Name
    Fiel Type: Text
    File Encoding:
    Operating System Command:
    Additional Files (not checked)
    Content Conversion Parameters
    Document Name: MT_Request_File_Data
    Document Namespace: http://nxy.tots/fg_admin
    Document Offset:
    RecordSet Name: Purchasing
    RecordSet Namespace:
    RecordSet Structure: Purchase_Record,*
    RecordSet Sequence: Ascending
    RecordSets per Message: 1
    Key Field Name:
    Key Field Type: String(Case-Insensitive)
    Purchase_Record.fieldFixedLengths: 8,4,2,10,10,12,18,12
    Purchase_Record.fieldFixedType: char
    Purchase_Record.fieldNames: Request_Action,Request_PO_Num,Request_PO_LN,Request_PO_Date,Request_Purchasing_Org,Request_Purchasing_GName,Request_Created_By,Request_Vendor_Name
    Purchase_Record.fileContentFormatting: trim
    Adapter Status: Active
    Advanced Mode: (not checked)
    Your help is much appreciated.

    Hi Alaa,
    look into this document:
    http://service.sap.com/nw-howtoguides -> Exchange Infrastructure -> Troubleshooting: Adapter Engine 3.0 (Expert Call slides)
    If the File Adapter works without conversion, then you should count the number of fields in a row. If it differs from the configuration, then it runs on error.
    Another idea is to check the content type of the file. When you do not enter a File Encoding, then the file adapter assumes utf-8. If the file is for example latin-1, then the number of characters in a row are not counted correctly.
    Regards
    Stefan

  • How to update row by row  in   Jdbc Adapter sender  ?

    Hi friends ,
                      No i am reading data from a table using select query and resulting data i am keeping in the FTP folder as XML File.
                      I want to
                     1. to  know how many rows i read ? 
                     2. Update the  read completed time in each row of the sender side table . 
               (   I am  using <b>select * from a table where tag='n'  </b> . I am giving this in <b>Query SQL Statement</b> of JDBC Sender adapter processing parameter .
    I am writing update query as update table set tag='y' where tag='n' .
                         Will it perform row by row ?
                     3. Insert in to another R3 System  table  the rows which i read  as a log  .
                          Can  you please give  procedure to do that .
                        Expecting your reply asap .
                        Thank you
    Best Regards.,
    V.Rangarajan

    Hi raj ,
                 Thanks for ur reply .   I am new to xi . Just i am doing a scenario . I can able to read  the ms-sql server table data using jdbc Sender  adapter .
                   Can i use RFC Adapter to insert the values to R3 table ?   
                    If  i have mapped  to rfc fields will it store into the table once we read  the data from ms_sql server table using select query of JDBC Sender  Adapter ?
    Best Regards
    V.Rangarajan

Maybe you are looking for

  • GR/IR Slip Number_MB0A

    Hi The req is, We need to give internal and plant wise number ranges to this GR/IR Slip No. How this can be done? Vijay

  • SAP APO and WM

    Hello All, Is it possible to put some warehouse related controls and limitations in SAP APO (SCM) without having EWM? For example, a certain warehouse can only process 300 orders and if anyone tries to place order beyond 300 then it automatically pus

  • Pixelation when copying to desktop

    hi all when copying items to my desktop i get a sort of grphics type pixcellation as shown in photo. anyone have idea what is causing this.

  • Tried everything i can find, ipod nano not recognized by win explorer or itunes.

    ipod nano not showing in windows explorer or itunes. tried every fix i can find, still won't connect. It will connect to another computer, but don't want try a factory restore, it may not work and i lose all my music.

  • TS4009 saving mail on icloud

    all of a sudden i can't drag and drop pop email into an icloud folder. Anyone know why not.