Xmlparserv2 output file question

I have used the Class Generator to generate XML element classes. The following code sucessfully creates an XML document. However, the output is going to the screen.
How can I capture this to a file?
Thanks
import java.io.*;
import oracle.xml.classgen.*;
import oracle.xml.parser.v2.*;
import com.ecredithub.xml.ssladapter.*;
public class eCreditXML
public static void main (String args[])
try
// Create a new eCredit XML APIMessage
APIMessage APIMessage = new APIMessage();
DTD dtd = APIMessage.getDTDNode();
// UserLogin Information - same for all doc's
UserLogin UserLogin = new UserLogin();
LoginId LoginId = new LoginId("DanBraun");
Password Password = new Password("password");
PrivateKeyFile PrivateKeyFile = new PrivateKeyFile("");
CertificateFile CertificateFile = new CertificateFile("");
// ApiHeader Information - same for all doc's
ApiHeader ApiHeader = new ApiHeader();
APIVersion APIVersion = new APIVersion("2");
SenderId SenderId = new SenderId("121");
EventId EventId = new EventId("222");
EventSubmissionTimestamp EventSubmissionTimestamp = new EventSubmissionTimestamp("20000502 14:23:34");
EventTimeZone EventTimeZone = new EventTimeZone("05:00");
GFNSiteId GFNSiteId = new GFNSiteId("1");
ReturnIPAddress ReturnIPAddress = new ReturnIPAddress("13.2.120.170");
ServiceType ServiceType = new ServiceType("InstantDecision");
CustomerType CustomerType = new CustomerType("Business");
FormFactor FormFactor = new FormFactor("Equipment Financing");
Facility Facility = new Facility("TermLoan");
Transaction Transaction = new Transaction("NewCredit");
Operation Operation = new Operation("GetApplicationForm");
MerchantId MerchantId = new MerchantId("121");
LenderId LenderId = new LenderId("19");
ApplicationNumber ApplicationNumber = new ApplicationNumber("");
APIRequest APIRequest = new APIRequest();
//GetApplication Form
Service Service = new Service("");
RequestOperation RequestOperation = new RequestOperation();
GetApplicationForm GetApplicationForm = new GetApplicationForm();
// Sample from data values above taken from eCredit doc's page 58 7.1.3.1
// GetApplicationForm (Request)
// APIMessage
// --- UserLogin
// --- LoginId
// --- Password
// etc...
// --- ApiHeader
// --- APIVersion
// --- SenderId
// --- etc
// --- APIRequest
// --- Service
// --- RequestOperation
// --- GetApplicationForm
// Create leaf nodes and the create parents (root)
// Add data as tree node to UserId
UserLogin.addNode(LoginId);
UserLogin.addNode(Password);
UserLogin.addNode(PrivateKeyFile);
UserLogin.addNode(CertificateFile);
// Add data as tree node to APIHeader
ApiHeader.addNode(APIVersion);
ApiHeader.addNode(SenderId);
ApiHeader.addNode(EventId);
ApiHeader.addNode(EventSubmissionTimestamp);
ApiHeader.addNode(EventTimeZone);
ApiHeader.addNode(GFNSiteId);
ApiHeader.addNode(ReturnIPAddress);
ApiHeader.addNode(ServiceType);
ApiHeader.addNode(CustomerType);
ApiHeader.addNode(FormFactor);
ApiHeader.addNode(Facility);
ApiHeader.addNode(Transaction);
ApiHeader.addNode(Operation);
ApiHeader.addNode(MerchantId);
ApiHeader.addNode(LenderId);
ApiHeader.addNode(ApplicationNumber);
//Add data as tree node to RequestOperation
RequestOperation.addNode(GetApplicationForm);
// Add data as tree node to APIRequest
APIRequest.addNode(Service);
APIRequest.addNode(RequestOperation);
// Add tree nodes to root node.
APIMessage.addNode(UserLogin);
APIMessage.addNode(ApiHeader);
APIMessage.addNode(APIRequest);
APIMessage.validateContent();
//Send output to the screen...
// I want to send it to a file
//APIMessage (generated from the dtd).print is looking for an Output stream.
APIMessage.print(System.out);
catch (Exception e)
System.out.println(e.toString());
e.printStackTrace();
null

Hi Daniel,
The output could be captured in a file instead of screen by specifying a FileOutputStream and sending that to the print function.
In your code, you are sending System.out as a parameter to the print statement:
APIMessage.print(System.out);
Instead, if you say:
String outputFile = "output_file";
FileOutputStream out =
new FileOutputStream(outputFile);
APIMessage.print(out);
the output will go to the specified file which in this case is "output_file";
Thanks
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Daniel Braun ([email protected]):
I have used the Class Generator to generate XML element classes. The following code sucessfully creates an XML document. However, the output is going to the screen.
How can I capture this to a file?
Thanks
import java.io.*;
import oracle.xml.classgen.*;
import oracle.xml.parser.v2.*;
import com.ecredithub.xml.ssladapter.*;
public class eCreditXML
public static void main (String args[])
try
// Create a new eCredit XML APIMessage
APIMessage APIMessage = new APIMessage();
DTD dtd = APIMessage.getDTDNode();
// UserLogin Information - same for all doc's
UserLogin UserLogin = new UserLogin();
LoginId LoginId = new LoginId("DanBraun");
Password Password = new Password("password");
PrivateKeyFile PrivateKeyFile = new PrivateKeyFile("");
CertificateFile CertificateFile = new CertificateFile("");
// ApiHeader Information - same for all doc's
ApiHeader ApiHeader = new ApiHeader();
APIVersion APIVersion = new APIVersion("2");
SenderId SenderId = new SenderId("121");
EventId EventId = new EventId("222");
EventSubmissionTimestamp EventSubmissionTimestamp = new EventSubmissionTimestamp("20000502 14:23:34");
EventTimeZone EventTimeZone = new EventTimeZone("05:00");
GFNSiteId GFNSiteId = new GFNSiteId("1");
ReturnIPAddress ReturnIPAddress = new ReturnIPAddress("13.2.120.170");
ServiceType ServiceType = new ServiceType("InstantDecision");
CustomerType CustomerType = new CustomerType("Business");
FormFactor FormFactor = new FormFactor("Equipment Financing");
Facility Facility = new Facility("TermLoan");
Transaction Transaction = new Transaction("NewCredit");
Operation Operation = new Operation("GetApplicationForm");
MerchantId MerchantId = new MerchantId("121");
LenderId LenderId = new LenderId("19");
ApplicationNumber ApplicationNumber = new ApplicationNumber("");
APIRequest APIRequest = new APIRequest();
//GetApplication Form
Service Service = new Service("");
RequestOperation RequestOperation = new RequestOperation();
GetApplicationForm GetApplicationForm = new GetApplicationForm();
// Sample from data values above taken from eCredit doc's page 58 7.1.3.1
// GetApplicationForm (Request)
// APIMessage
// --- UserLogin
// --- LoginId
// --- Password
// etc...
// --- ApiHeader
// --- APIVersion
// --- SenderId
// --- etc
// --- APIRequest
// --- Service
// --- RequestOperation
// --- GetApplicationForm
// Create leaf nodes and the create parents (root)
// Add data as tree node to UserId
UserLogin.addNode(LoginId);
UserLogin.addNode(Password);
UserLogin.addNode(PrivateKeyFile);
UserLogin.addNode(CertificateFile);
// Add data as tree node to APIHeader
ApiHeader.addNode(APIVersion);
ApiHeader.addNode(SenderId);
ApiHeader.addNode(EventId);
ApiHeader.addNode(EventSubmissionTimestamp);
ApiHeader.addNode(EventTimeZone);
ApiHeader.addNode(GFNSiteId);
ApiHeader.addNode(ReturnIPAddress);
ApiHeader.addNode(ServiceType);
ApiHeader.addNode(CustomerType);
ApiHeader.addNode(FormFactor);
ApiHeader.addNode(Facility);
ApiHeader.addNode(Transaction);
ApiHeader.addNode(Operation);
ApiHeader.addNode(MerchantId);
ApiHeader.addNode(LenderId);
ApiHeader.addNode(ApplicationNumber);
//Add data as tree node to RequestOperation
RequestOperation.addNode(GetApplicationForm);
// Add data as tree node to APIRequest
APIRequest.addNode(Service);
APIRequest.addNode(RequestOperation);
// Add tree nodes to root node.
APIMessage.addNode(UserLogin);
APIMessage.addNode(ApiHeader);
APIMessage.addNode(APIRequest);
APIMessage.validateContent();
//Send output to the screen...
// I want to send it to a file
//APIMessage (generated from the dtd).print is looking for an Output stream.
APIMessage.print(System.out);
catch (Exception e)
System.out.println(e.toString());
e.printStackTrace();
<HR></BLOCKQUOTE>
null

Similar Messages

  • Examples of Output Files in Adobe CS5.5 - Todd Kopriva Disk Optimization Question

    Hello Todd Kopriva
    Your video on Disk Drive Optimization is excellent. I went out to purchase (2) Raid-5 (8 TB) units. I had a question regarding Read Files going to one Disk and Output Files going to another. Can you give some examples of what type of Output Files you are talking about. Iam fairly new to Adobe CS5.5 Production Premium. I am presently usiung Premiere and Encore as well as After Effects. I just want to make sure as to what files will be going tomy Output Raid Drive.  I am thinking that one of them may the file created when you export out of Premiere wo Media Encoder.
    Thanks for the help and keep up the Tutorials. 
    Thanks,
    Steve
    PS: I missed your Free FAQ Video and cannot seem to find it.  If you or anyone knows, please let me know where I can view it etc.

    > By the way, is there a link to you FAQ video that you made?
    There are links to a couple of video series that I made at the top of the FAQ forum:
    http://forums.adobe.com/community/premiere/faq_list?view=overview

  • Question about creating multiple output  files from same query

    I have a query like this:
    select * from emp;
    ename empno deptno
    Scott 10001 10
    Tiger 10002 10
    Hanson 10003 20
    Jason 10004 30
    I need to create multiple output files in xml format for each dept
    example:
    emp_dept_10.xml
    emp_dept_20.xml
    emp_dept_30.xml
    each file will have the information for employees in different departmemts.
    The reason I need to do this is to avoid executing the same query 200 times for generating the same output for different departments. Please let me know if it is practically possible to do this.
    Any input is greatly appreciated.
    Thanks a lot!!

    You can write a shell script to generate the multiple spools files for the same output. Below script may helps you.
    #====================
    #!/bin/bash
    n=0
    while [ $n -le 20 ]
    do
    n=`expr $n + 1`
    sqlplus -s system/manager <<EOF
    spool emp_dept_$n.xml
    select count(1) from tab;
    spool off
    EOF
    done
    #====================

  • Spool an output file to dynamic filename

    Hi.
    Let say I have an Oracle Script as following:
    spool c:\hms_report\HMS.xls
    SELECT
    field1||chr(9)||field2
    from table1;
    spool off
    exit
    Question:
    Currently the output file will be HMS.xls
    If I run the script thrice a day, the HMS.xls will be overwrite.
    Is there any way to name the output file to be HMS+sysdate ie: If I run the script on 05-Nov-2002 09:00,
    the output file name will be HMS051120020900.xls
    where 05 = dd
    11 = mm
    2002 = yyyy
    0900 = hhmi
    Thanks.

    Have you actually tried what you proposed below? I think not. And I don't see that working. Still, if you do succed like
    you have proposed, please tell me.This works, see this SQL*Plus session:
    SQL> column file_name new_value fname noprint
    SQL> select 'HMS'||TO_CHAR(SYSDATE, 'DDMONYYYYHH24MI')||'.xls' file_name from dual ;
    1 row selected.
    SQL> prompt &&fname
    HMS05NOV20020908.xls
    SQL> spool &&fname
    SQL> select sysdate from dual ;
    SYSDATE
    05-NOV-2002
    1 row selected.
    SQL> spool off
    SQL> exit
    Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
    With the Partitioning option
    JServer Release 8.1.7.4.1 - Production
    C:\TEMP\Test>dir
    Volume in drive C is Windows NT 4.0
    Volume Serial Number is F8F6-BE0C
    Directory of C:\TEMP\Test
    05-11-02  09:19a        <DIR>          .
    05-11-02  09:19a        <DIR>          ..
    05-11-02  09:19a                   378 HMS05NOV20020908.xls
    05-11-02  09:18a                   139 script.sql
                   4 File(s)            517 bytes
                                628,746,240 bytes free
    C:\TEMP\Test>type HMS05NOV20020908.xls
    SQL> select sysdate from dual ;
    SYSDATE
    05-NOV-2002
    1 row selected.
    SQL> spool off
    C:\TEMP\Test>

  • How to create multiple output files using TrAX?

    I am new in this field. I'm trying to create multiple xml output files using TrAX. I have to parse a xml source file and output it to multiple xml files. My problem is that it only creates one output file and puts all the parsed data there. When i use saxon and run xsl and xml files, it works fine and creates multiple files...it has something to do with my java code...Any help is greatly appreciated.
    Here's my XSL file
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"
    <xsl:template match="data_order">
    <data_order>
         <xsl:copy-of select="contact_address"/>
         <xsl:copy-of select="shipping_address"/>
         <xsl:apply-templates select="ds"/>
    </data_order>
    </xsl:template>
    <xsl:template match="ds">
    <xsl:variable name="file" select="concat('order', position(),'.xml')"/>
    <order number="{position()}" href="{$file}"/>
    <xsl:document href="{$file}">
    <xsl:copy-of select="."/>     
    </xsl:document>
    </xsl:template>
    </xsl:stylesheet>
    xml source file
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE operation SYSTEM 'data_order.dtd'>
    <data_order job_id='00-00-000' origin='PM-ESIP'>
         <contact_address>
              <first_name>ssssss</first_name>
              <last_name>sssss></last_name>
              <phone>2323232</phone>
              <email>dfdfdsaf</email>
         </contact_address>
         <ds ds_short_name ='mif13tbs'>
              <output>
                   <media_format>neither</media_format>
                   <media_type>FTP</media_type>
                   <output_format>GIF</output_format>
              </output>
         </ds>
              <ds ds_short_name ='mif15tbs'>
              <output>
                   <media_format>neither</media_format>
                   <media_type>FTP</media_type>
                   <output_format>GIF</output_format>
              </output>
         </ds>
    </data_order>
    My java file
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    public class FileTransform {
    public static void main(String[] args)
    throws Exception {
    File source = new File(args[0]);
    File style = new File(args[1]);
    File out = new File(args[2]);
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer t = factory.newTransformer(new StreamSource(style));
    t.transform(new StreamSource(source), new StreamResult(out));

    Saxon has specific extensions. In this case it is <xsl:document>. That looks like a standard XSLT element, but it actually isn't. The history behind it is this: There was a proposal to create a new version of XSLT, called XSLT 1.1. One of the new features of this version was to be this xsl:document element. The author of the Saxon product, Michael Kay, is one of the people on the W3C committee directing the evolution of XSLT, so he upgraded his product to implement XSLT 1.1. But then the committee decided to drop XSLT 1.1 as a recommendation. So that left Saxon in the strange position of implementing a non-existent extension to XSLT.
    The other outcome of this process was that XSLT (1.0) does not have a way of producing more than one output file from an input file. And so the short answer to your question is "Trax can't do that." However, XSLT 2.0 will be able to do that, although it is not yet a formal W3C recommendation, and when it does become one it will take a while before there are good implementations of it. (I predict that Saxon will be the first good implementation.)
    One of the problems with XML and XSLT is that what you knew a year ago is probably obsolete now, because of all the evolution going on. So being new in the field is not a disadvantage, unless you get stung by reading obsolete tutorials or magazine articles.

  • I have this following problem in Adobe Premiere Elements 11: Error of export: You don't have permissions to create or delete the output file.

    Hey guys,
    I have this following problem:
    When i export my movie to my desktop from premiere elements 11 it fails and says "Error of export: You are not permitted to create or delete the output file."
    This is the first time i had this problem.
    I have no ideas to solve this problem ... I don't found it on this page neither in the whole web -.-
    I look forward to get requests

    S
    QuickTime is a requirement for Premiere Elements (any version). Please download and install it so that we can continue this troubleshooting. Among other things, without QuickTime installed, you will not have QuickTime presets in Publish+Share and will not have available to you codecs supplied by that player.
    Please right click the Premiere Elements 11 desktop icon and apply Run As Administrator. Please review computer permissions..
    In the meanwhile, please reply to all the questions, including
    What is the description for your export choice and does it make a difference if your Export Save In location is the desktop or to Video Folder in Documents?
    What is a description of your computer resources?
    Please consider and supply details need to help us help you.
    We want you to succeed.
    Thank you.
    ATR

  • "Extraction Failed: Cannot Open Output File" error message when installing new drivers

    Hello, I'm trying to install new drivers for my HP Photosmart C4385 Printer.  I downloaded the full feature drivers for Windows XP 32-bit, and when I start to install (extract), I get the error message:
    Extraction Failed
    Cannot Open Output File
    And the process closes.  It happens at about 85% extraction every time.
    Any idea why?  I called HP but since it is out of warranty they wanted money, which I think as absolutely ridiculous - won't even give me basic support??  Poor, poor customer service.
    This question was solved.
    View Solution.

    Hi,
    If you haven't still got the  Full Feature software installer, download it from the link below and save it to your Desktop.  If you already have it, place it on your Desktop.
    ftp://ftp.hp.com/pub/softlib/software10/COL20274/mp-53147-4/100_228_PS_AIO_02_Full_USW_enu_NB.exe
    Make sure the Printer is disconnected from your PC.
    Download and install 7-ZIP.  Once installed, right click on the software installer for your printer, select 7-Zip and choose extract files, then click Ok.
    Open the newly extracted folder and double click the setup application to start the installation ( the setup application will probably have the same icon as the original software installer you downloaded ).  Connect the printer to your PC when the software asks.
    Hope this helps.
    Best wishes,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Hello, How do I tell sql+ to spool output file from windows to Unix server?

    Hello, How do I tell sql+ to spool output file from windows to Unix server?
    I am new to SQL+ and just learned how to spool the file. But file is saved in my local windows enviroment and since it's 2GB in size...I want to spool it directly to another remote unix server.
    Pls answer in detail... I have been to most of the thread and didn't see relevant answer to above question.
    Am I suppose to develope some script which FTP the spool file directly to the server I want to
    or
    i Have to use UTL_FILE Package ?
    Thanks for reply

    You may not be able to...
    SQL*Plus can only spool to the local machine. If you have mapped a directory on the Unix server from your Windows machine, you can specify that directory in your SPOOL command.
    You could telnet to the Unix server, run SQL*Plus there, and spool the file to a local (Unix) directory.
    If the Unix server is also the Oracle database server, you could use the UTL_FILE package rather than using SQL*Plus to spool a file.
    If the Unix server is also an FTP server, you could also FTP the file from your local machine to the server.
    Of course, I would tend to re-examine a requirement to regularly generate a 2 GB text file. It seems likely that there is a better way...
    Justin

  • Modify the output file created by F110

    hi everybody
    I have to modify the output file (in text format) created by tcode F110.
    I have looked in the program rffous_t but could not see where I have to actually change the layout of the display of the fields
    can anybody help me out in this issue?
    thanks a lot for your help
    prema

    Hi vinraaj
    thanks a lot for the information
    One more question, if i have to modify the formats of the file, do i have to modify the event module for payment medium formats
    theres an event module FI_PAYMEDIUM_ACH_20, I have to change the codes, how do i proceed?
    do i make a copy of the event module and then modify the codes or there is other ways to do it
    thanks a lot for your help

  • Output file is different than timeline

    Hello everyone,
    This is my first post here, hope you can help me out with an issue I'm having on Premiere Elements 8.
    What happens is the following:
    I'm creating a video with a mix of movie files and still images. The format is a 16:9 Widescreen. As some files do not fit the size, I have unchecked Scale to Frame Size, and I have streched them out a bit. It doesn't look 100%, but it works fine for what I need. So, I have filled the whole black space in the timeline there with the videos and still images. I have added some pan and zooms in the still images, so it doesn't look so boring.
    Now, when I export the video, I'm doing these settings: WMV format HD 720p 30 fps 1.0 Square Pixels.
    Most of the video (98% I would say) exports perfectly. There are only 3 still images which aren't positioned as they were supposed to be. They are all too much to the right side of the screen, therefore showing the black edge on the left and cutting the right side of the image off-screen. All other still images and video files are positioned exactly as I see creating the video. I have done some tests, like 1.21 Pixels, but then it messed up the whole thing, all out of place.
    One problem is that it takes me about 1 hour to export in this WMV format HD 720p 30 fps, so for testing stuff it takes hours.
    Anyway... any clue of what could be wrong for those images to be wrong in the output file?
    I could also try another format, but this is the only one I could find which the quality was fairly good in the output file (size about 170mb). It's for a YouTube video, so I'm looking for a decent quality for a video there, about 5 minutes long, HQ.
    Well, I say beforehand than I'm a noob with video editing in general and Premiere Elements specifically. So, a little help would be extremelly important.
    Thanks a lot for reading my challenge here.
    Fernando

    Great, it worked fine now. No more weird behavior with the still images. I resized them in Photoshop Elements, and imported again into Premiere Elements. All beautiful and file size is smaller in the end.
    NOW... may I use this same thread for another novice question?
    When I'm starting a project, I'm choosing the following configuration:
    NTSC DV Widescreen
    Would I get a better result if using NTSC HDV 720p 30?
    Because at the end, I'm exporting my movie as Windows Media (.WMV) HD 720p 30.
    Thanks!

  • Custom name to output file of syndication

    Hi
    It may be a dumb question can we control the name of output file while using Syndication server. 
    Regards
    Bala Pochareddy

    Hi,
    No...You can not. May be you can try to use OS level commands to rename the file once it is placed in the folder.
    Regards,
    Rajani

  • How to apply input file name to output file in file adapter

    Hi Friends
    In my file to file scenario,i want to use input file name to output file by using adapter specific attributes,for this i have java code.Please suggest me how can i use this java code in mesg mapping and to which field i need to mapping this.
    Thanks
    pullarao

    Hi Pullarao,
    I have two questions ...
    1. Are u want the static file name in the target file?
    if yes...then follow the Bhavesh instruction.
    2.If u want a dynamic file name in the target file using UDF....then your UDF should mapped to the <b>root element</b> of target structure.
    /**********UDF********/
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
           .getTransformationParameters()
           .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    /*******END UDF*******/

  • Compositing Motion output files

    Hi all-
    I asked a question and many chimed in, but the answers didn't quite rectify the issue. I re-read my post, and I think the issue could have been better explained. Here goes:
    We are producing an animated trailer for our film.
    In Motion, we created a snowstorm (Motion project file #1) and a 3D words that fly over head (Motion project file #2-7).
    The quality of each of these files looks GREAT when viewed in the Motion canvas on my 30" Studio display at 100% (great crisp edges).
    I outputted each of the motion project files to a quicktime movie with an alpha channel using the ANIMATION codec set to 100%
    The quicktime files, when viewed in quicktime look great -- just about as good as they look in the Motion canvas.
    Now I need a solution to composite all of these ANIMATION quicktime files into a movie.....Final Cut, right?
    So I did that and here is the result:
    http://rccm.org/longago.jpg
    The top image is a still exported from quicktime using one of the individual motion project files
    The bottom is a still exported from FCP after the composite...
    WHERE AM I GETTING THIS HORRIBLE LOSS?
    I've read the article on why images look bad on the FCP canvas, but the lower speaks for itself when compared to the upper.
    HOW CAN I BEST COMPOSITE THE QUICKTIME FILES?
    Here's our workflow
    1) Create in Motion
    2) Output each element to a ANIMATION file
    3) compile all output files in FCP (in a 1920x1080 sequence using the Animation codec at 100%)
    4) Output from FCP using (????)
    Using the latest versions of FCS
    Thanks!
    Many thanks!

    OK....I changed the Field Dominence (in FCP's Sequence settings) to Upper (odd) and it now looks good.
    I tested the output.
    I checked and rechecked -- I am outputting from Motion with no field dominance.
    I'm glad we found this solution...but why is this happening???
    Steven

  • Digital Signature & Encryption of an output file

    Hi to all,
    I have the following requirement:
    I need to digitally sign and encrypt a file generated by SAP. The receiver needs that the digital sign has been made with SHA1withRSA algorithms and the envelope with PKCS#7.
    I read many articles about it, but still have a lot of doubts on what really I'm needing to perform the requirement. I already read all the threads in SDN.
    My client gave me a .cer file.
    I try to run the program SSF01, but i don't know how i have to use it.
    My questions are:
    1.- Do any have an example of the utilization of function's modules (function group SSFG)?
    2.- How do i have to use the .cer file? Do I have to run transaction STRUST?
    3.- Who must give me the public and private key?
    Many thanks to all, any help or comment will be apreciated.
    Regards,
    Andrew83.
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Nov 16, 2010 10:29 AM

    Taking up the requirement again (I had to resolved some production issues), I return to perform the test programs to get encrypted and digitally signed.
    I'll comment you the news, so finally I'll can give thanks to whom corresponds. I would be glad, if i could mark this thread as "Answered" at the end.
    Regards,
    News:
    OK, now I'm stuck. I'll give you a list of all the things (files, keys, certificates...) I have, and what I need to do.
    Version of SAP 4.7 with SAP_BASIS and SAP_ABA Release 620.
    Requirement:
    1.- Sign an output file for payments with SHA1withRSA.
    2.- Envelope with PKCS#7.
    3.- This must be done in background mode, so the user doesn't interact with the signing. So I need to perform this in the application server. The problematic of including this on an exit, it's not a big deal, so i only wanted to create some test programs in the first place. 
    The customer gave to me in order to perform this, the followings files:
    1.- File "AAAA.cer" from the receiver, in order to envelope the output file. This I think is the public key of the receiver.
    2.- Files "BBBB.crt", "BBBB.key" and "CCCC.pem" from the customer,
    in order to sign the output file. This seems to be the private key of the customer.
    Now, the questions I have are:
    1.- Is there anything missing to perform the encrypt and the file signing?
    2.- Do I have to use STRUST,  and How? I have already used it, but i think that in the wrong way. Do I have to create 2 PSE files, one for the signing and another for the encrypting?
    3.- I read the help.sap, and found in some cases that the SAPSECULIB only works for signing, and not for encrypting. To Encrypt, do I need to install SAP Cryptographic Library?
    4.- I cannot run report SSF01 succesfully.
    5.- Do I Have to create a SSF Profile?
    I'll really appreciate your help. I have been working with abap, since 2005, but this is driving me crazy.
    Merry christmas for everyone who read my threads!
    Regards,
    Andrew83.
    Edited by: Andrew83 on Dec 21, 2010 10:12 PM
    Edited by: Andrew83 on Dec 21, 2010 10:21 PM

  • I want XSLT do not create any output file

    I have a xslt file.
     <xsl:variable name="var:InValidReceiptCount">
    .... In here. I want xslt do not create any output file, also an empty file
    </xsl:variable>
    Thanks for helping :)

    If you can tell us your application scenario and why you are trying to control the output name only with xslt, then we can drive you towards correct direction. Remember you cannot control output path with xslt. 
    if you are using bizTalk, you have to use xslt with maps and set the output path at ports
    if you are using .net, you have to control it from your dotnet code.
    Xslt alone cannot control the output path.
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Maybe you are looking for