Target file

Hi,
My scenario is a simple file-2-file scenario but want to create target file name based on element of the payload without any udf?
thanks
sai

hi,
My scenario is a simple file-2-file scenario but want to create target file name based on element of the payload without any udf?
We have 3 approaches to create target file based on element
1. Using dynamic configuration set the attribute value of payload dynamically to ASMA
2. Using AF module, write the value of ASMA in a variable
3. Using the variable substitution (with out udf)
Please refer below WIKI:
http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
thanks,

Similar Messages

  • Variable subsitution for target file names

    Hi All,
    I am using variable subsitution for dynamic file names. I am using the multimapping for multiple files in the target.So i coluld not able to use the dynamic configuration for file names. Now i want to replace all the spaces in the filename to underscore.
    For example
    My payload filed value "file name in the target file".
    Now my filename  "file_name_in_the_target_file".
    How to achieve this using Variable subsitution.
    Regards,
    Ramalakshmi.G

    Use replaceString Function.
    file name
    Constant (" ")               --> replaceString -------> TargetField
    Constant ("_")
    Regards
    Ramesh

  • RACF Standard connector "LookupField Target File" parameter

    Hi!
    I'm configuring RACF Standard connector (Release 9.0.4.12). and im not an expert in RACF so i need some specification regarding the file used as parameter "LookupField Target File" in the " Scheduled Tasks for Lookup Field Synchronization". In other words i need to know if the file to be created into RACF must be like SYSTMDAT , which has a length 80 and record format Fixed Block. Or it must be Variable Blocked?.
    Thanks and Regards.

    Well this file InitialLoginSequence.txt contains all the commands in a proper sequence which is equivalent to opening a emulator window in the interactive mode. So for example:
    1) When I open the window first, I see the following prompt -> *@@@@* & it waits for a Application Name
    Hence the first text in my file would be Wait(@@@@);
    & for your case, this is not true, so you can skip it.
    2) Then I need to pass in application Name. so lets say xyz
    Hence the string to be followed would be *Send(xyz[enter]);*
    3) Then I wait for the prompt to throw next question. Let's say it shows ENTER USERID.
    Now, the string would be Wait(ENTER USERID);
    4) Then I enter my User ID.i.e. *Send(myuserid[enter]);*
    5) Then Prompt Password.i.e. *Wait(Password);Sendmask(${Password}[enter]);* and so on.
    For your case what do you see as prompt after the company Logo. That would be your first string. If it is Userid then try to do like below:
    Wait(Userid);Send(myracfuser[Enter]);Wait(Password);Sendmask(${mypassword}[enter]);Wait(Command ===>);Send(TSO50[Enter]);Wait(IKJ56700A ENTER USERID);Send(myracfuser[Enter]);Wait(Password===>);Sendmask(${mypassword}[enter]);Wait(***)
    Thanks
    SRS

  • Issue with Target File structure

    Hi Experts ,
                              Mine is a proxy to file scenerio. please suggest me on the below req. My target file structure should be as follows.
    HDR:PARTNER,CHDAT,NEW_TEL,OLD_TEL,PREF_CONTACT_NO,TEL,EXXX_ID
    1029382,28.02.2011,0782191829,049829329,Y,3,0
    1029382,28.02.2011,0783484311,077383738,N,2,0
    1029382,28.02.2011,01972383934,0113938393,N,,0
    1039385,28.02.2011,0782133829,079829310,Y,3,0
    10245748,28.02.2011,N,,,,DAVID.WHITAKERattheYAHOO.CO.UK
    112928393,28.02.2011,01183393843,01123839388,N,,Tom.HanksattherateSKYdotCOM
    FTR:UPDATE_VENDOR_CONTACTS_SRM_TO_EIS,01.03.2011 02.18.29,6
    This structure has 3 parts , header , body and trailer.
    I am planning to create a target  structure . Is it possible to get the field names of the structure in it
    Header
         HeaderInfo :  HDR:PARTNER,CHDAT,NEW_TEL,OLD_TEL,PREF_CONTACT_NO,TEL,EMAIL_ID
    Body
    1029382,28.02.2011,0782191829,049829329,Y,3,0
    1029382,28.02.2011,0783484311,077383738,N,2,0
    1029382,28.02.2011,01972383934,0113938393,N,,0    
    Footer
         Footer Info :FTR:UPDATE_VENDOR_CONTACTS_SRM_TO_EIS,01.03.2011 02.18.29,6
    I will take care of the comma and the single line for header/footer and multiline for body in content conversion ,
    In the footer I need date and time stamp along with total number of rows for the body.
    How do I get the same  .
    Please suggest .
    Arnab.

    Hi,
    Yes you can get the timestamp and count of no of records in the footer.
    Please define your target structure like below
    MT_
    Records
      Header ( o to 1)
        Headerdata
      Items(0 to unbounded)
        field1
        fielld2
    Footer
      Footerdata
    And in the mapping get the current dat using data function.
    And then pass the Item node to the function count
    Concat both of them along with the constants you need and assign to footer data..
    Thanks
    Suma

  • Target file of the same name as source file

    Hi,
        I am working on a file to file scenario. I need the target file name to be same as the source file name.
        I checked the adapter specific message attributes in the sender as well as receiver file adapter,and also checked the file name.
        Now am using variable substitution for the file name in the receiver file adapter.
        I defined the variable value as :
        message:FileName
       But no file is getting created in the destination folder.
       Can anyone help me out with this.
    Thanks and regards,
    Pravesh Puria.

    Pravesh,
    If you have selected  File adapter --> Adapter Specfic Attribuest --> File name in the sender and receiver file adapter , then do not go for variable name substittutuion.
    Just make a dummy file name in the receiver file adapter for the file name field and XI will automatically use the same file name as the source when creating the file.
    Regards,
    Bhavesh

  • How to create variable record length target file in SAP BODS

    Hi All
    I have a requirement to create target file which will have various record layout; meaning different record length (similar to cobol file format), but this is for the target. Please let me know what is the best practice and how to solution this requirment.
    Thanks
    Ash

    Hi Shiva,
    Thanks for your feedback. My issue is that I have 10 different detail records (each record type is fixed length).
    For each customer account, I have to write to file the header record, the detail records in the exact order, then continue with next account and so on and then write the trailer record. I have given sample layout below. Highlighted text is the record identifier in this exmaple while the underlineds are account numbers. Fields are fixed length right padded with space or 0.
    220700000000SA00    Wednesday     2014-12-12  ASA00034 334 000   ---> (this is header)
    220700000010SA10 AAb   00000+000000+ Akab xxxx bb   0000000000943 3433 --> (detail rec)
    220700000010SA14 AAA  00034354 DDD 000000000+    --> (detail rec)
    220700000010SA15 888e a88 00000000+            --> (detail rec)
    . . . . . remaining detail records
    220700000012SA10 AAb   00000+000000+ Akab xxxx bb   0000000000943 3433 --> (detail rec)
    220700000012SA14 AAA  00034354 DDD 000000000+   --> (detail rec)
    220700000012SA15 888e a88 00000000+           -->  (detail rec)
    . . . . . remaining detail records
    220700000000SA99    Wednesday     2014-12-12  d334 000   --> (trailer is header)

  • XSLT Issue : Without the target file mapping is happening

    Hi,
    In one of my composite, which is a provider abcs transforms source to target, where in the transformation file, source and target are mentioned as usual, both are pointing to MDS locations.
    Source file is physically present in the MDS, but the target file is not present but still the transformation happening.
    The flow is like below.
    ProviderABCS -> Adapter service which will write the file.
    Some time the file is created with data and some time only the file is created without data.
    My question is how come there is no exception caught ? If i keep the target schema or wsdl file in MDS will this issue get resolved ?
    Thanks,
    Vijay

    When i try to open the xslt file with designer view its complaining that the target file is missing, but when i deploy, iam able to deploy and run with some instances.
    Still investigating.. wll update you.. soon. In the mean time if any body have any other idea.. plz update the thread.
    Thanks,
    Vijay

  • Need to genereate Target file name same as Source File Name thru Local J2SE

    Hi Everyone,
    I want to genereate Target file name exactly same as Source File Name. I know how to handle this in Central Adapter Engine(Sender & Receiver Communication Channel).
    But I need to do this in Local J2SE adpater engine.
    Please help me in this regard.
    Thanks & Regards,
    Nagaraju

    U can use the parameter to save the filename in the message header
    file.messageAttributes=<name,directory>
    This is similar "Adapter-Specific Message Attributes" concept.
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/frameset.htm
    Regards,
    Prateek

  • New Finder bug in 10.7.2 - overwriting file w/authenticated move fails and zeroes out target file too

    I have found a new bug in the Finder for Lion 10.7.2
    In 10.7 and 10.7.1, if I downloaded a new version of an application, and wanted to drag it to /Applications or /Applications/Utilities, here is what happened:
    1) Try to drag to one of these protected directories, in order to copy it over the old version.
    2) Get a dialog box saying "The item XXX could not be moved because "Utilities" couldn't be modified." This dialog would have two choices: "Authenticate" or "Cancel"
    3) Click "Authenticate"
    4) Get another dialog: "An older item named XXX already exists in this location. Do you want to replace it with the newer one you're moving?" Choices would be "Keep Both Files" "Stop" and "Replace"
    5) On clicking "Replace", the OS would ask for an admin password.
    6) You would give it, and then the OS would copy the new file. Done.
    Now, in Lion 10.7.2's Finder, after steps 1-5, there is a new dialog:
    "This operation couldn't be completed because some files had to be skipped. For each item, chose File > Get Info, make sure "Locked" is deselected, and then check the Sharing and Permissions section. When you are sure the items are unlocked and not designated as Read Only or No Access, try again."
    "OK is the only choice to exit this dialog.
    AND
    the target file is in fact overwritten with an empty file! So your folder now contains a nonfunctional app, while the new version can't be copied over it!
    You can, in fact, go in and delete the zeroed-out app and drag the new copy into the folder. But authenticated overwriting appears dangerously broken.
    (And what an error message! Sounds like someone from the Windows 2000 team thought that one up...")
    I'm not a developer, but if any registered developers would care to replicate this and file it as a bug, I'd be very grateful.

    Yup. Thomas, have you tried replicating this in the other direction? In Terminal you can make a folder, chown it to root, get the permissions to the same as those of /Applications/Utilities,  then as a normal user, try dragging something
    into that folder? I have - this is replicable.
    This is a real bug - worked ok until 10.7.2, then broke.
    I have worked around this bug by changing the permissions on my Applications and Applications/Utilities folders so that my account has write permission there without authentication. But that not ideal from a security standpoint.
    If any developer out there could fire a Radar report off on this, I'd be much obliged.

  • ABAP CLASSES - XI don't create the Target File..

    Hallo,
    I have a problema in XI when I use an ABAP Class.
    This is My FLOW:
    1) R/3 SEND an IDOC DEBMAS to XI un idoc DEBMAS(Customer data)
    2) XI have this Interface Mapping: Interface_Mapping_Anagrafica_Cliente.
    It si composed on:
    - Input: IDOC (DEBMAS)
    - 1° Mapping      ==> named: Message_Mapping_Anagrafica_Cliente
       This mapping, from IDOC DEBMAS, create the message type Message_Type_Anagrafica_Cliente.
    - 2° Mapping      ==> Classe ABAP
       This mapping, from Message_Type_Anagrafica_Cliente create the message type Message_Type_Click.
    - Output: Message_Type_Click
    3) I want that this Message_Type_Click will be in the file.
    But, if I execute the transaction SXMB_MONI in XI, I can see the IDOC OK .. but if I make double click on it, I don't see the Payload for the target file. Infact the target file is not be created by XI...
    I have made debug after my class and I found a Problem in the Trace with type E with message: CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV.
    What is this?
    Can you help me?
    Thanks.
    Monia

    Hi Monia,
    first put your trace to 3: SXMB_ADM, Integration Engine Configuaration, Specific Configuration, Runtime/Trace Level
    Second delete your abap mapping from your interface mapping and look in the monitoring for the output. Is it what you expect? Is it the datatype the abap mapping can work with?
    Copy the result as source for the next test. Now you put the ABAP mapping inside and delete the message mapping from your interface mapping. Test with transaction SXI_MAPPING_TEST. Look to the weblog <a href="/people/sameer.shadab/blog/2005/09/29/testing-abap-mapping ABAP Mapping</a> how to test an ABAP mapping.
    The problem with more than one mapping program in one interface mapping is that you see only the result of both!
    Regards,
    Udo

  • Override One Property in a .targets file

    Hello,
    I have a question about MSBuild (asked on
    Stack Overflow) that seems to have stumped the community. I was wondering if someone here might be able to give some advice. Thank you!
    The question is as follows:
    Background: I have several solutions with roughly 300 C++ projects across them, most of them shared across solutions. We are using Visual Studio 2013 and have a build script that compiles
    all of the projects in the correct order, ensuring dependencies are resolved ahead of time. Our development/engineering team builds all of the code through the build script and then attempts to test/debug using Visual Studio 2013.
    Issue: The "build then debug" process results in Visual Studio telling us that the Projects are out of date. This stems from the ProjectEvaluationFingerprint property (in Line 39 Microsoft.CppBuild.targets)
    including a $(SolutionDir) in
    the output file. The recommended
    fix from Microsoft suggests removing the $(SolutionDir) from
    the file. As our developers tends to transition back and forth between projects, I do not want to manually change this .targets file on every developer's machine (and remember to change it back when they leave the project). I would like to override the property
    in the .vcxproj by using a .targets file explicitly for this.
    The property in Microsoft.CppBuild.targets looks like:
    <!-- Global up-to-date check support -->
    <PropertyGroup>
    <ProjectEvaluationFingerprint>$(Configuration)|$(Platform)|$(SolutionDir)|$(ProjectEvaluationFingerprint)</ProjectEvaluationFingerprint>
    </PropertyGroup>
    Generally, I have been following
    Microsoft's How to: Use the Same Target in Multiple Project Files. I have created a .targets file (test.targets) that contains the following code (note the TEST text was to test evaluation of the property in both the build script and building the project
    in Visual Studio):
    <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
    <ProjectEvaluationFingerprint>$(Configuration)|$(Platform)|TEST|$(ProjectEvaluationFingerprint)</ProjectEvaluationFingerprint>
    </PropertyGroup>
    </Project>
    I then import it using the following line in the .vcxproj
    <Import Project="..\..\Config\VSPropertySheets\test.targets" />
    The project.lastbuildstate file now reads:
    #TargetFrameworkVersion=v4.0:PlatformToolSet=v120_xp:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit
    Debug|Win32|D:\views\devbranch\Products\SLN\|Debug|Win32|TEST|
    It is appending the new ProjectEvaluationFingerprint to the existing one, so it is not
    overriding (I can understand this to a degree, but I'm no MSBuild expert).
    Question: How can I override this one property using a .targets file? Do I need to use a replaceregexp
    task or do I have an easier option?

    Hello K.Kennedy,
    The replaceregexp task is not the MSBuild task, I'm afraid you cannot use it in your MSbuild project.
    I know you may have use the solution listed on MSDN, but I'm not so sure of your steps, could you please make sure you've done everything mentioned on the following blog:
    http://blogs.msdn.com/b/jomo_fisher/archive/2004/09/16/230631.aspx
    Here the keypoint seems to be this "MSBuild chooses the last target seen", which may helpful on your issue.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Target file creation error

    Hi All,
    I ‘m working on XML file to-Fixed length scenario.
    MY target file should have following structure.
    I’m mapping xml file content to the target structure.
    Recordset
        REC 1 to n
        A(3)
        B(5)
        C(6)
    MY content conversion is as follows.
    Recorset structure: REC
    Content conversion parameters:
    REC.fieldFixedLengths 3,5,6
    REC.endSeparator : ‘nl’
    Result:
    I’m getting only one first field information in target file.
    Thanks in advance.
    Venu.

    Hi Krishna,
    I foundall fields are coming with exact length
    I'm passing spaces if there is no value.
    xml message is generated correctly in the sxmb_moni after mapping ..shown all the fieldsunder REC structure .
    Audit log information also correct.
    <u>Attribute mapping</u>
    I'm using the attribute fields of source XML message to target message.
    Is there any effect with this?
    Thanks,
    venu.

  • Target File Size Too Large?

    Hello,
    We have an interface, that takes a Source File-> Transforms it in the Staging Area ->and outputs a Target File.
    The problem is the target file is way too large than what it is supposed to be.
    We do have the 'Truncate Option' turned ON, so its not duplicate records..
    We think its the Physical and Logical Lengths that are defined for the Target files.
    We think the logical length is way too large causing substantial 'spaces' between the data columns thereby increasing the file size.
    We initially had the Logical Length for the data columns as 12 and we got the following error:
    Arithmetic Overflow error converting numeric to data type numeric.
    When we increased the Logical Length from 12 to 20 the interface executed fine without errors. But now the target file size is just way too large 1:5
    Any suggestions to prevent these additional spaces in the target columns??
    Appreciate your inputs!
    Thanks

    Since 'File-system' does not have a property 'column length', ODI will automatically set a standard 'column length' according to the datatype of the column. In your case, as both your source and target is File, check the max length of each column in your source ( Ex: if your file is huge then open the file in excel and verify the lengths) and set the same 'Logical length' for your target file datastore.
    drop the temporary tables (set the 'delete temp objects' option to 'true' in the KMs) and re-run the Interface. hope this helps.
    Thanks,
    Parasuram.

  • Extra Blank line inserted at the end of the target file

    Hi,
    This is File to File senario and target files created with a extra blank line at the end of the file.
    Below is the source file structure and the content.
    <ns0:MT_MOD_FL xmlns:ns0="http://file2file/MES">
       <EMPLOYEE>
          <ID>12</ID>
          <Name>SREENI</Name>
          <Designation>M2</Designation>
       </EMPLOYEE>
       <EMPLOYEE>
          <ID>121</ID>
          <Name>RAJA</Name>
          <Designation>M3</Designation>
       </EMPLOYEE>
    </ns0:MT_MOD_FL>
    Below is the generated target file
    12     SREENI     M2
    121     RAJA     M3
    Here Generated target file suppose to have only two line instead of 3.
    What exactly do i need to change to generate the file with 2 line.
    I am not using any mapping as both source and target message structure are same.
    IN FCC i used only fieldSeparator, even i have not used endSeparator.
    Thanks in Advanace...

    Hi! Raghu,
    Just go through the below Help..documantation
    [http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm]
    NameA.endSeparator
    To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).
    NameA.fieldSeparator
    If you make an entry here, the system expects that the structure contains the specified character string (one or more characters) as a separator between the individual columns.
    If you have not made an entry for fieldFixedLengths, this is the only specification to identify the individual columns in a row.
    If you made a specification for fieldFixedLengths, the extra length of the separator is taken into account, but no further consistency checks are performed.
    Regards::
    Amar Srinivas Eli

  • File name in the target file field

    Hi,
    In this below particular blog we are creating the UDF and assigning the output of UDF to a filed in the target file structure.
    /people/sravya.talanki2/blog/2006/12/20/accessing-system-parameters-in-mapping-runtime
    And even we are entering the target file name manually in the UDF. Whatever the filename that we enter in the UDF that will also be displayed as the target file name. To do this even we are selecting the adapter specific attributes.
    Please correct if my understanding is wrong.
    thanks
    kumar

    Hi Kumar,
    <i>Whatever the filename that we enter in the UDF that will also be displayed as the target file name</i>
    Yes
    <i>To do this even we are selecting the adapter specific attributes.</i>
    "We could be" instead of "we are". If u want to access sender metadata, u should use ASMA.
    Check this out
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    <i>[Reward if useful :)]</i>
    Regards,
    Prateek

Maybe you are looking for