Create Filename from Data within IDOC

Good afternoon, All
In PI 7.0 we are sending an IDOC to a File.  The XSL mapping between the two creates a structure like the following:
<resultset>
  <row>
  <fieldOut>xxxxx</fieldOut>
  </row>
<resultset>
Content Conversion is then used on the outbound File adapter to create a .TXT file that is picked up for further process.
I now have the requirement to NAME the resulting .TXT file based upon information within the original IDOC.
I've tried Variable Substitution but it appears that this only applies to the resulting mapped results and not the original payload.
Any help that you could give me would be greatly appreciated.
Regards,
Chad

Hi,
You can do this with usage of Dynamic File configuration
Please refer step by step process for it
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2161. [original link is broken] [original link is broken] [original link is broken]
IDoc-To-xml File Dynamic Configuration
IDoc-To-xml File Dynamic Configuration
Dynamic  File Name for Receiver File Adapter
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
Use below UDF as mentioned in above links
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//get Key of Directory File name
DynamicConfigurationKey keyF = DynamicConfigurationKey.create( URLFile, "FileName");
//get Key of Directory
DynamicConfigurationKey keyD = DynamicConfigurationKey.create( URLFile, "Directory");
//Replace value of Filename
conf.put(keyF,file);
//Replace value of Directory
conf.put(keyD,dir);
Thanks
Swarup
Edited by: Swarup Sawant on Jun 3, 2008 9:30 PM

Similar Messages

  • File Receiver - Dynamically create filename from data in payload

    Hi there.
    Can anyone tell me the approach I need to take to be able to use the data in one field to determine the filename in the file receiver adaptor.
    I have a requirement that requires that I save a file with the following mask:
    xxxx_xxx<b><date extracted from field in payload></b>.csv
    I would appreciate any help on this.
    Thanks in advance.
    Mick.

    Hi Mick,
    you just need to use adapter specific parameters
    and you will be able to set the name in your mapping
    (from your payload)
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Choose File Form Data Create Spreasheet From Data Files

    I am following the tutorial for LC 8 and when I get to the topic titled "Collecting the data in a spreadsheet" it says to "Choose File > Form Data > Create Spreadsheet From Data Files".
    However, when I try to follow that path I do not see a "Form Data > Create Spreadsheet From Data Files" menu option.
    What am I not doing properly? How do I accomplish this task?
    Thanks!

    Thank you so much Paul. I have been trying all day to locate the method by which I could create a spreadsheet using the pdf submit route. I suppose the tutorial in CS4 should have been changed to reflect the changed explanations, but I guess that would be difficult to do. Anyway it worked and I can now do the analysis I need from my customers (lots of pupils!).
    Best wishes,
    Kevin Palmer

  • Creating spreadsheet from data files

    Why do I get the numbers in square brackets e.g. f[0].p1[0].Name[0], when I collate data using the 'Create spreadsheet from data files' command. I only want to export object names as column titles in Excel. This driving me mad!

    I got the same problem as Zali.I really need some one help regarding regarding this topic.

  • Who know how to reach Create SO from PO Output (IDOC)

    Hi,  experts,
           I have met a problem that need create SO from PO output using IDOC, anyone knows how to reach it? please give me detail steps, thanks very much!
      we need to create an SO in company code XYZ from the PO output IDOC( Message NEU ) of another company code ABC.
    Im trying to create the SO in the same System and same client , but in a Different Company code.
    Edited by: zheng michael on Mar 14, 2011 3:55 AM

    Hi,
    Take help of ABAPer,
    In my project I had done this with help of ABAPer, but not on basis of output.
    When P.O saved in one company code,system create sales order in another company code.
    Kapil

  • Extra zeros in numeric fields when I create spreadsheet from data files

    I created a form with Live Cycle, and then in Adobe I use the option "create a spread sheet from data files" to import the answers to a xls file.
    I have two problems with this action: the first one is that I get 8 extra zeros in each numeric field, the second one is that fields are ordered by type and not by appearance.
    I tried a different approach importing directly in Excel, in that way there are no extra zeros and the order is correct, but I get just one form each time, and in a "stairways" fashion (i. e. first field in A1, second in B2, and so on)
    I'd appreciate any help

    Where do you find the command "create a spread sheet from data files"?
    Anyway i have a similar problem: when i export data in a .csv file and than i import it in excel, i always get 8 extra zeros... how can i solve the problem?

  • Create printouts from data submitted in a form.

    Long story short:
    I'm looking to set up a system that automatically creates a document from data submitted in a form. So imagine I type "Jason" in the name field, "Orangutans" in the favorite animal field, and when I click print I'm presented with an A4/Letter document that says "my name is Jason and I love Orangutans" and the background is covered in cute orange apes. Where do I start?
    Long story long:
    I work at a computer store and due to my experience with Adobe products* I've been tasked with creating all the signage in the store. I've been doing all the signs for a year now and now we have a bunch of different signs that need printing every day. The most in-depth and time-consuming ones for me are signs for Trade-In computers. Unlike new computers, the specs are always different based on the particular model we buyback from the client. There are all kinds of fields that are different in each case.
    As it stands, I have an illustrator file with all the information in the right place, and when a computer comes in I take all the specs, fill in the right boxes and unhide the image layer so I get an image of the corresponding model on my document. This takes considerable time, and means the process is specific to me, i.e if I'm not in the store, the computers don't get put up for sale beacuse we can't add a spec/price sheet.
    What I want to do is automate the process so that anyone in the store can make these signs. All they will have to do is fill in a form (online or locally) that asks for model, year, RAM, HDD, etc**. Then when they click submit it returns a completed sign that they can print and put up next to the computer.
    I'm not entirely sure how to accomplish this. I've looked at Adobe's free online FormCreater***, and I like the simple data output that it creates. However, I'm uncertain as to my next steps. I imagine I'll need it to send the results to a computer with blank templates for the Trade-In computers. It would then need to populate the applicable fields and automate all the work I usually do.
    Where should I start? I'm willing to learn anything to get this working.
    Thanks,
    Jason
    *Illustrator, Photoshop, Flash, inDesign
    **Total of ~18 text and 4 image fields need to be changed per sign.
    ***http://www.adobe.com/ca/products/acrobat/form-creator.html

    I'm willing to learn anything to get this working.
    Excellent! Right attitude.
    Where should I start?
    With my favorite "graphics program": FileMaker Pro. (Yep. My favorite graphics-project tool is a relational database program.)
    You see, you've discovered something that graphics people are discovering with increasing frequency all the time: Your project is not a graphics problem. It's a data problem.
    Note how little of your problem has to do with graphics. Emphasis mine:
    ...we have a bunch of different signs that need printing every day.
    the specs are always different based on the particular model
    automate the process so that anyone in the store can make these signs
    All they will have to do is fill in a form (online or locally)
    an image of the corresponding model
    See if this scenario sounds appealing:
    You have on your computer a single file, named TradeIns. You or one of your authorized users doubleClick it. It opens to a nicely organized form that is completely self-explanatory; requires absolutely no training to use.
    It's completely idiot proof. The user doesn't have to know anything about any graphics program. He can't break anything.
    Consistency is maintained because everything that can be automated is. Dependency intelligence is built in. Popup menus limit data entries to legitimate choices (ex: Models). Subsequent data entry choices are automatically filtered based on data already entered (ex: RAM configurations limited to those possible for Model). User prompts and hints (highlighting, event-driven messages, tooltips, data validation, etc.) make sure that all required information is entered.
    When the data entry is done, the user clicks a button labeled Print Preview: A3 Poster. The display automatically changes to a pre-defined A3 formatted layout with all the data graphically styled (Headline, descriptive blurb, bullet list of features, price, etc., etc.), the company logo and contact info in place, and a graphic of the appropriate model appears in the background. The user clicks a button labeled Print Poster. Next to it, by the way, is a button labeled Email Poster To...
    If you want, you can enable up to five people concurrently to access and interact with the solution in their web browsers from anywhere. So the data entry can be performed by staff members who logon (according to access priviledges you define and control down to the individual field level if need be) in the office, from home, or even on their iPhone. Multiple users can enter/edit data at the same time.
    It's 2:00 Tuesday when Customer leaves with his new machine. You clean up his trade-in a little; put it on the display shelf. Pull out your iPhone and take a photo of it. Tap the specs in. The data, including the photo, are simultaneously entered into the database. You lock the door and go home at 5:00, confident that a formatted sales flier of "Just Arrived" trade-ins will be automatically emailed to your mail list before you get home.
    You, having admin priviledges, can add to, alter, elaborate upon the functionality (ex; add an automatic price calculator) anytime you need, with no downtime on the system.
    How difficult, time-consuming is this?
    Once the requirement details are nailed down, and the raw beginning data for populating values lists is provided, an intermediate level FileMaker developer could build the above-described solution and have it up and running, ready for data entry, in less than a day, easy.
    Cost? $500 for one copy of FileMaker Pro Advanced. That's it. (And...*achem*...it's not rented; it's a normal perpetual license.) And with it you can build an unlimited number of other data-driven solutions for your business. You can even bind them as fully-functional standalone applications which you can distribute without royalties.
    Based on what you've described so far, the solution's starting data schema would be very simple:
    Create a new database with three related tables:
    Models
    Trade Ins
    Specs
    The fields for each table would be something like this:
    Models
    Model ID (primary key; text; unique)
    Model Name (text)
    Brand (text)
    Image (container)
    Trade Ins
    Trade In ID (primary key; text; computer's serial number)
    Model ID (foreign key; text; value list)
    Specs
    Spec ID (auto-enter serial number)
    Model ID (foreign key)
    Trade In ID (foreign key)
    Spec Name (value list)
    Description (text)
    You'd have two Layouts (screens): Data Entry and A3 Poster. You could build as many additional Layouts to display whatever combinations of the data you want for as many purposes as you may encounter. Export to PDFs or Excel spreadsheets any time. Build automated reports with live graphs, use conditional formatting, automate with scripts, etc., etc.
    Marvelous program. Every business should have it.
    JET

  • Create sequence from Data Modeler?

    Hi,
    I started using SQL Developer Data Modeler to model my first APEX application, but there are one thing I don't understand.
    From the logical model, I can create all my application model, but I don't find anywhere I can define thath my PK must be populated from a squence.
    From APEX is a step in the wizard, creating the sequence and trigger, but If I model from Data Modeler, then, I "loose" this important feature common to mostly all my table objects.
    There are something I'm missing?
    Regards.

    Philip Stoyanov wrote:
    You can set surrogate key to be generated for entity during engineering to relational model - in DM 3.3 available here http://www.oracle.com/technetwork/developer-tools/datamodeler/downloads/datamodeler-33-ea-1869055.html
    PhilipHi again,
    Sorry sir, but I downloaded 3.3 and can't find what you point in your last message.
    Regards.

  • Create SO from PO Output (IDOC)

    Hi
    we need to create an SO in company code XYZ from the PO output IDOC( Message NEU ) of another company code ABC.
    Im trying to create the SO in the same System and same client , but in a Different Company code.
    I have already configured in this way:
    we have maintained VENDOR partner role to PO output type NEU
    **Partner profile:
    Vendor Outbound:
    Partner no.           272xxxx
    Partn.Type            LI
    Partn.funct.          VN
    Message Type      ORDERS
    Outbound parmtrs.
    VN     ORDERS               
    Receiver port        SAPEDI
    Basic type           ORDERS05
    Transfer idoc immediately
    Message Control:
    EF     NEU        ME10
    Customer Inbound:
    SP Orders 
    Partner no.           254XXX
    Partn.Type            KU
    Partn.funct.          SP
    Message type      ORDERS
    WE45 Transaction :
    Logical address
        DSN 00002725XX
    Application                         EF
    Destination in SAP system           GMC 00002541XX
    But the IDoc created from the Outbound is having status '03'. so the Inbound function module is not receiving this IDOC.
    Am i missing something here , to connect the Outbound to Inbound.?
    Regards
    Dp

    I have created a new partner profile for the Inbound process under Partner Type 'LS', and the Outbound IDOC is forwarrded to the INBOUND with status "62", Which is what i wanted to achieve.( Same IDOC is forwarded to inbound process)
    I suspect that you're saying that you still have two IDocs (this is what I would expect). Status 62 is kind of odd, because this should be at best a transitional status. So once IDoc is created and ready for processing it should be in status 64 and then move to some status like 53, 51 or something like 56 etc.
    My question here is , My outbound partner profile is maintained under the Partner type Vendor, but why is the system expecting the Inbound partner profile to be maintained at partner type Logical system( LS)
    Let's take a step back and try to see what happens. So your output type on the PO generates an outbound IDoc and you are using condition records that specify the vendor as the receiving partner (on the IDoc control record). So when SAP generates the IDoc it uses the partner you specified as the recipient (and thus expects a corresponding outbound partner profile based on this recipient) and by default SAP enters itself as the sending partner (i.e. LS with logical system name assigned to client).
    Now your outbound port points back to the same system and thus generates basically an almost one-to-one copy of your outbound IDoc. Thus your inbound IDoc has still the vendor as the receiving partner and the logical SAP system name as the sending partner. Since for inbound partner profile only the sending partner matters, you have to create an inbound partner profile using the logical system name assigned to your SAP client.
    If you prefer to utilize a different sending partner on your inbound IDoc, you could for example for outbound initial orders implement customer exit EXIT_SAPLEINM_001 and overwrite the default sending partner filled in by SAP.

  • Steps to create SO from PO using IDOCs..

    hi frnds..
    i have to create a SO from PO with in same client.
    PO>IDOC>SO..
    IDOC is of type orders05..
    regards..

    Hi,
    >>>Now when we create the PO and check the status in WE02 we get the error status 56 , EDI: Partner profile inbound not available.
    this means that the partner profile was not created correctly
    I'd suggest using logical system as a partner profile
    my book contains PO and SO partner profile creation
    http://www.sappress.com/product_basic.cfm?account=&product=H3059
    Regards,
    Michal Krawczyk

  • How to create Exe From Data files

    my requirement is very much similar to registration of file extension.
    lets say if you have a file with extension .xyz then you can decide which program should invoke .xyz but instead of any other extension i need that extension of my file should be .exe
    and when user double clicks on this exe files the file should get opened with my own program, but if the file is true .exe (i.e. Created by some other program) then it should not get invoked by my program...
    i dont know how to do this but i know this is possible
    e.g. Flash can create an exe files from their .swf files which when opened run using flash player (but it doesnt get fooled by any .exe file. also flash exe files have different icons)
    similarly winzip can create self extracting exe files from .zip files
    can anybody help me out
    the files i am trying to create will have numeric data in spreadsheet format and when launched the player will show the data in animated format.
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

    i think i will briefly describe the things; what exactly i want to acheive
    my client will have one application which will acquire data and log them into files. but he want to distibute these files to other people who will not have the application developed by me.
    he wants that file should show the reports in specific way. but to see those reports end user should not be required to install any specific application.
    i know that this thing is possible. as per msdn developer can include any data (text, graphics, audio, video etc.) inside exe in the form of resource file. (and there are programs are avaiable on internet which allow to extract, edit, add resource files inside exe)
    what i dont know right now is how i can access the resource file inside exe
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • Unable to use B2B Document Editor tool to create guideline from data file

    Does anyone successfully used the B2B Document Editor tool to generate the guideline doc from an HL7 data file ?
    I attempted to use the SpecGenerator feature of this tool to create a guideline from the "a01.xml" sample file in the HL7 tutorials (came with the B2B installation" and the wizard kept on giving me "parsing errors" message below
    "The data in the file could not be parsed. Please check the file to verify that it is valid and formatted correctly. This error can occur for one of the following reasons: A) The data file may be a Word document or have some other binary format. B) The envelope data may not be formatted properly. If this is an X12 data file, please verify that the ISA segment is the correct size (exactly 106 characters). If this is an EDIFACT data file, it must have either a UNA or begin with UNB. For other standards, verify that the envelope segments conform to the specified rules. C) The segment/record delimiters in the file are incorrect."
    Any idea why ? I did not alter the sample file in anyway -- its format is exactly the same as when it was installed.
    Any helps are appreciate !!

    Hi,
    I would suggest that you learn the B2B product starting with the HL7 tutorial. Start by importing the export files and follow the instructions to make the system work end to end.
    Next, you want to configure for the HL7 tutorial manually using the ecs and xsd files provided in the HL7 tutorial directory. Again, ensure that the system work end to end after you have done the manual configuration.
    Next, you create a new ecs and xsd file using the Document Editor from scratch and use them in your manual configuration. You can use the same doctype and version as in the tutorial so that you can be familiar with the Document Editor and at the end of this exercise, you know you have done things properly if the system works end to end. The documentation for Document Editor is mainly in the Windows Help section.
    After the incremental steps above, you will have the knowledge to implement the document type and version of your project. Going straight into the requirements in your project makes it difficult to debug because they are too many moving parts.
    Hope this helps,
    Eng

  • Auto Create Filename from Form Fields

    Hello all,
    I am trying to find a way that I can save a form with a certain filename. I have the form create and all set to go. The user will be input some information into boxes. For instance I will have a Name box and a Date box. After the user is done filling out the form I would like the filename to be these two input boxes. Is there a way to do this? So basically I need to take these two form fields and have them be saved as the filename. Any help would be great. Thanks alot.

    You can export the data form the PDF using the FormDataIntegration service.
    Once you have the data in xml format, you can use a setValue and concatenate the value of the two nodes you're interested in.
    Jasmin

  • Create Document from Data Load and Link to Transaction Record for Long Text

    Hi,
    I have a DBConnect Oracle datasource which contains a large text field.  I would like to build a process that will, as part of the load, create a text file from the content of this large field, upload the file into BW and create the document association with the transaction record.
    Is anyone aware of a HOW-TO to create the BW document entries and upload the files using ABAP?  I thought that I had seen a HOW-TO or instructions approx a year ago, but cannot locate them now.
    Thanks in advance,
    Mel W.

    Hi,
    I hope this is the how to document you were looking for:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8046aa90-0201-0010-5e99-962948c83331
    -Vikram

  • Create PDF from data in database

    Hi together,
    I want to create a PDF file during a database trigger execution
    and want to save the result in a BLOB column.
    I have no idea what to do.
    Can someone give me a hint what to use to create the PDF?
    Thanks for help

    I've found this site
    http://plpdf.com/index.html
    but I don't know if It's free.
    So, if you programming in asp code, there's a class called fpdf (derivated from the same class in php).
    If you need, I can give you the referred.
    Adios
    Paolo from Madrid

Maybe you are looking for

  • LaCie 1TB Drive on it's Death Bed?

    Hello all, I've got a LaCie 1TB drive that I've had now for about 4 years- It's got a little space left on it ~36GB. I can copy files off of it fine but I can't copy files to it, nothing. Not even a single .jpg file without getting the following mess

  • I cannot export a slideshow from Iphoto to iTunes

    I am trying to export a slideshow from iphoto to itunes so that I can burn it to a dvd.  The automatically sent to itunes is checked but the export button is not highlighted.

  • User did not specify local data drive, MSATA drive

    SCCM 2007 R2 SP2 windows 7 x64. Hi,    I am trying to image Dell M6800 with MSATA drive, but imaging is failing to User did not specify local data drive Volume C:\ is not a fixed hard drive Volume D:\ is not a fixed hard drive Volume X:\ is not a fix

  • Revenue generate from CRM Territory management

    Hi, can u give me the details about this issue How can we know about the revenue genarate about perticular territory in crm territory managemeny if there is any settings pls give me the information points will reward Thanks&Regards kishore kumar

  • Unable to launch SXMB_IFR

    1.) When trying to run SXMB_IFR the followng message is coming. 2.) When trying to run the transaction SPROXY I am getting a mesage " No connection with Integration Builder." Most urgent.........