Using Conversion file

Hi friends,
I am using a Conversion file to load a data file. In my data file, dimension member is like "0001234" while loading i want to skip frist three digits "000". could you please help me..
Thank in advance

For a simpler solution, probably you could just set the mapping in your transformation file:
*COL(A, B:C)
A = column index in the data file
B:C = the start and end positions within the column
This function defines a dimension for a subset of a field in the data file.
EXAMPLE
Account=*COL(3,1:4)
Please refer to: http://help.sap.com/saphelp_bpc75_nw/helpdata/en/5d/9a3fba600e4de29e2d165644d67bd1/content.htm
Hope this helps...
Thanks,
Yen Li

Similar Messages

  • Conversion File - Getting one record and skip the rest

    Hi Experts,
    I have one issue using conversion file. Is it possible to get only the records that we want without using SKIP? Example below:
    Product
    Partner
    Invoice No
    P1111
    PA1
    INV1
    P2222
    PA2
    INV2
    P5555
    PA3
    INV3
    P9999
    PA1
    INV4
    Let's say I want to get all the product number for partner - PA1.
    Instead of using skip in the conversion file as below, is there another way to do in conversion file?
    Internal
    External
    PA2
    *SKIP
    PA3
    *SKIP
    The reason is because I might have partner PA4, PA5 in future and i will need to modify the conversion file to include to SKIP PA4 and PA5.
    Is there a way to get the data for partner PA1 only?
    Appreciate your advice.
    Thank you!
    Best regards,
    Ng

    Hi Bishwajit,
    Thank you for the response. I actually tried to use java script previously but I can't get it working. I am not really good at it. I tried several ways using if condition and SKIP but it keeps on fail with error saying "Java scription JS:IF(%EXTERNAL%!=PA1 THEN *SKIP) evaluation error".
    Followings are the list of sample I have tried so far:
    Internal - *
    External - JS:IF(%EXTERNAL%!=PA1 THEN *SKIP) or
                   JS:IF(%EXTERNAL%.string!=PA1 THEN *SKIP) or
                   JS:IF(%EXTERNAL%!=PA1 THEN SKIP) or
                   JS:IF(%EXTERNAL%.string!=PA1 THEN SKIP) or
                   JS:IF(%EXTERNAL%.string()!=PA1 THEN *SKIP) and etc.
    I am not sure if we can use SKIP in that way. Appreciate if you can advice on this.
    Thank you.
    Best regards,
    Ng

  • In a Conversion file, Using Java Script - IF statement with Greater,Less definitions

    Hail to All Gurus,
    Well, I've been trying to make a conversion file by using if statement of Java script with < , > definitions. unfortunately i got "Evolution error" over and over again.
    Actually i want to convert all dates before 2009 as 2008.12. And the dates which is greater than 2009 will be converted as they are (e.g. 2009.01 or 2010.02 etc.).
    Code is:
    js:if(%external%.toString().substring(0,4)<"200900"){"2008.12"}else{%external%.toString().substring(0,4) + "." + %external%.toString().substring(4,6)}
    SAP EPM version 10.0 SP15 Patch 2
    Build 8586
    Thanks for your help in advance

    Sadi,
    You can write if Statement in transformation not conversion.
    Look at this docs,
    How to Import Master Data and Hierarchies into SAP BusinessObjects BPC 7.5 from SAP NetWeaver BW
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c02d0b47-3e54-2d10-0eb7-d722b633b72e?QuickLink=index&…
    Thanks

  • BPC : Using Dimension Property in Formula of a Conversion File

    Hi,
    I want to export data using Package Export from Fact Table. I have transformation and conversion files.
    I want to use the property of a dimension in Formula Column of a Conversion file.
    I want to lookup the property and based on property I want to either skip record or have internal value.
    I am looking for something like follows..
    =iif([%external%].TYPE = WBS,*SKIP,D2113)
    So if my Dimension 's TYPE property is WBS , I would like to skip that record else I want the value from fourth column.
    I am running the Export from Fact Table with various combinations in formula column , but it is only returning null in the export file.
    Please let me know how I can make this work.
    Thanks,
    Sanjay

    Sadi,
    You can write if Statement in transformation not conversion.
    Look at this docs,
    How to Import Master Data and Hierarchies into SAP BusinessObjects BPC 7.5 from SAP NetWeaver BW
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c02d0b47-3e54-2d10-0eb7-d722b633b72e?QuickLink=index&…
    Thanks

  • Amount Conversion File error using VALUE keyword in BPC 7.5M

    Hi Experts,
    We just migrate from BPC 7.0M to BPC 7.5M. We also change the server to multi-server arquitecture 64-bit (Application server and BD Server).
    When we try to Import or Validate Transformation File with Amount conversion file using VALUE keyword, the system returns: "Error: Validate with data file failed". The content of conversion file columns:
    EXTERNAL= *
    INTERNAL= *
    FORMULA = VALUE*0.001
    At first, we thogut that was a problem with 0.001 but we tried diferent formulas with the same error:
    FORMULA = VALUE*1
    FORMULA = VALUE*2
    FORMULA = 0.001*VALUE
    We also tried to use VALUE keyword with case sensitive and the result was the same. And when we don't use VALUE keyword the validation is OK.
    Any idea? Thanks in advance.
    Best regards,
    Albert

    Hi everybody,
    First of all, thanks for your replies.
    The trasformation file is:
    FORMAT = DELIMITED
    HEADER = NO
    DELIMITER = ;
    AMOUNTDECIMALPOINT = ,
    SKIP = 5
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=-1
    ROUNDAMOUNT=
    *MAPPING
    ACCOUNTP=*COL(4)
    BRANDS=*COL(6)
    CATEGORY=*NEWCOL(ACTUAL_YTD)
    CUSTOMERP=*COL(7)
    DATASRC=*COL(4)
    ENTITY=*COL(2)
    GROUPS=*NEWCOL(LC)
    INTCO=*NEWCOL(INONE)
    MARKETP=*COL(8)
    TIME=*COL(3)
    AMOUNT=*COL(9)
    *CONVERSION
    TIME=TIME.xls
    ENTITY=ENTITY.xls
    DATASRC=DATASRC.xls
    MARKETP=MARKETP.xls
    BRANDS=BRANDS.xls
    CUSTOMERP=CUSTOMERP.xls
    ACCOUNTP=ACCOUNTP.xls
    AMOUNT=AMOUNT_TEST.XLS
    The data file has the first column empty and the 5 firsts row are skipped.
    21.12.2011                      Salida din?ica de lista                              1;;;;;;;;
    ;Company;0FISCPER;0ACCOUNT;ZIMP_TYPE;...FIT_CTR;N? cliente;ZRAMO_P;        Importe
    ;ES0;2020012;PCAJ;D;AX028;E4291;ZAS2;26,04000000
    ;ES0;2020012;PCAJ;D;AX028;E5145;ZNEA;2,48000000
    ;ES0;2020012;PCAJ;D;AX028;E5361;ZNE1;1,86000000
    ;ES0;2020012;PCAJ;D;AX028;E0889;ZMI2;1,24000000
    ;ES0;2020012;PCAJ;D;AX028;E0824;ZLAN;12,40000000
    ;ES0;2020012;PCAJ;D;AX028;E0801;ZMI2;25,42000000
    ;ES0;2020012;PCAJ;D;AX028;E1273;ZTS1;3,10000000
    ;ES0;2020012;PCAJ;D;AX028;E6163;ZLAN;60,14000000
    ;ES0;2020012;PCAJ;D;AX028;ORGUS00;ZSHL;96,10000000
    The conversion file AMOUNT_TEST.XLS has only one line. With this conversion we want to change value from u20AC to Ku20AC.
    You should think that we used these transformation and conversion files in BPC 7.0M and it works fine.
    I'd like to remember that if we don't use AMOUNT_TEST.XLS or delete VALUE keyword, these transformation file works fine too.
    nilanjan, I tried to validate data file with one record and the system show me the same error.
    Roberto, our first migration was from BPC 7.0M to BPC 7.5M SP3, but we didn't test it. Then we apply SP7 because to solve other issues, and when we try to validate data load we detect that issue.
    Thank you for your help, I hope we can solve that problem soon.
    Best regards,
    Albert

  • .xml file into .txt file using Conversion Agent

    Hi All,
    I am working on a sceanrio in which the input to the XI is <b>abc.xml</b> file and the output is <b>sdf.txt</b> using <b>Conversion Agent</b>. The XML data should change in txt format.
    Please tell me the steps involved on XI side as i have configured the Conversion agent and deployed in XI server.
    Thanks
    Regards,
    Vikas

    Hi..
    Go through this Blog..
    /people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    The module name must be
    localejbs/sap.com/com.sap.nw.cm.xi/CMTransformBean.
    The parameter name must be TransformationName
    Might Help you...
    Regards,
    Colin.

  • Building PDF file using Conversion Agent

    Hello Experts,
    Is it possible to build a PDF from XML using Conversion Agent?
    Best Regards,
    Artsiom Anichenka

    Hi,
    This might help you
    /people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield
    /people/alexander.bundschuh/blog/2006/03/14/integrate-sap-conversion-agent-by-itemfield-with-sap-xi
    /people/paul.medaille/blog/2005/11/18/conversion-agent-a-free-lunch
    /people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    https://websmp102.sap-ag.de/~sapdownload/011000358700001090982006E/ConvAgentDocSP16.zip
    https://websmp102.sap-ag.de/~sapdownload/011000358700004921152005E/ConversionAgent.pdf
    Regards
    Agasthuri Doss

  • How to use .mod files from a JVC camcorder?

    Hi All,
    I'm trying to find the proper workflow for using .mod files from a JVC Everio model camcorder. I was able to transfer the files onto my system by simply using the included usb cable from the unit. It simply mounted the camera's flash card on my desktop and I was able to drag all of the files from it.
    As others have posted, the .mod files are not accessible using the Import function in FCP. I am able to open them with MPEGStreamClip as other have suggested. My question is, how should the files be converted to use with FCP and/or DVDSP? In MPEGStreamclip the file shows the video stream as: 224 MPEG-2, 720 × 480, 16:9, 29.97 fps, 8.40 Mbps, upper field first. I tried a few of the demux functions. The straight demux to .m2v & .ac3 yields a file that opens in QT, but it shows up as a 640x480 file and is noticably squeezed. Using the demux unscaled yields a file that opens in QT as a 720x480 file and looks somewhat better. And using the demux to headed yields as file that opens in QT as 720x404 and presumably is the correct 16:9 ratio.
    Trying to use those same files in DVDSP didn't get me very far. If I create a new HD project in DVDSP I can import the straight demuxed file and the headed file. The unscaled file won't import. If I add the imported files to tracks the straight demuxed one will play in the simulator but the headed one simply shows a green screen.
    I'm hoping that since MPEGStreamclip can play the files, its just a question of figuring out the proper export/conversion settings. My end goal is to produce a dvd of the footage (not exactly sure if I should be using an HD project or a SD project set to letterbox). I also need to produce a web-ready version of the footage. I haven't tried this yet but I'm assuming that one of the QT exports from MPEGStreamclip will get this done correctly.
    Hopefully someone has a workable solution for these files.
    Thanks,
    Chris

    Hi all,
    I looked further on this forum and found others that had the same problem. One suggested connecting the cam corder first, then start iMovie, then wait for a few minutes. I did this and it worked!!!!!
    Problem solved.
    Thanks.

  • Cannot process a Fixed Field Length file using the File Adapter (Sender)

    Hi -
    I have checked throughout these posts and blogs but I still have not been able to find a solution to my issue.  When using the File Adapter (Sender) I get a Conversion initialization failed with "xml.keyfieldName", no value found.  Why would I require a key field when I am using fixed field lenghts?  The file is comprised of 2 structures - 1 header and multiple details (see below).  There are no key fields in the flat file that I would be able to use.  Any suggestions?
    011000390      Customer Americas        20080605164317 000000000000000800000008000000000016000000                              
    12345678          100500       100500       Supplier 1                         0000000000030000002008040400                    
    12345678          100501       100501       Supplier 2                         0000000000052000002008042100 
    The File Adapter is configured as follows:
    Document Name = Rfchke00
    Document Namespace = 'my namespace'
    Recordset Name = Rfchke00
    Recordset Structure = Dtachkh,1,Dtachkp,*
    Recordset Sequence = Ascending
    Recordsets per Message = 1
    Key Field Type = String (Case-Sensitive)
    Dtachkh.fieldFixedLengths = 15,25,8,6,1,8,8,8,15,3,31
    Dtachkh.fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11
    Dtachkh.processFieldNames = fromConfiguration
    Dtachkp,fieldFixedLengths = 18,13,13,35,15,3,8,2,21
    Dtachkp,fieldNames = F1,F2,F3,F4,F5,F6,F7,F8,F9
    Dtachkp,processFieldNames = fromConfiguration
    Thanks,
    Dave

    Hi,
    you can use the module from which u can convert your structure to
    H011000390 Customer Americas 20080605164317 000000000000000800000008000000000016000000
    D12345678 100500 100500 Supplier 1 0000000000030000002008040400
    D12345678 100501 100501 Supplier 2 0000000000052000002008042100
    Please note the extra H,D in the struture added by the module.
    You can then use them as your key fieldValues.. The module should be deployed in Visual Admin and then can be used in the Module tab of your adapter CC
    While writing the content conversion after that please dont forget about the added new characters
    Please note also that i can find that the word supplier kept repeating in all the Dtachkp records
    Please use that
    Also if you feel that the field is of 13 characters and that would cause a problem dont worry... create a dummy field eg split tht 13 to two fields and use the common one as key field Value and identifier... as i see in ure case its like 500 Supplier , 502 Supplier . u can split the first 4 char and the remaing 9 char are key field value.
    try this out
    Rgds
    Aditya

  • File Content Conversion : File to File Scenario

    hi all,
    I have a Input file
    It has the following structure:
    <?xml version="1.0" encoding="utf-8"?>
    <n0:rfc_proxy_message_type xmlns:n0="http://kpr.com/sample">
    <Name>abhishek</Name>
    <Age>10</Age>
    </n0:rfc_proxy_message_type>
    I use a File to File Scenario,  with Sender and receiver FTP adapters.
    I would like to convert this file at the recieveing end into a flat file  as follows:
    Name     Age
    abhishek  10
    How can I do so?
    Can anyone please help.
    Thanks,
    Best Regards
    Abhishek

    Hi,
    Your Xml file should be like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Employee_MT xmlns:ns0="http://sap.com/demo">
       <Recordset>
          <item>
             <Name>vinod</Name>
             <Id>12</Id>
             <Age>30</Age>
             <***>male</***>
          </item>
       </Recordset>
    </ns0:Employee_MT>
    In the content conversion parameters mention the following
    Document name:    Student_MT
    Document Namespace:   enter your namespace
    RecordsetName:    Recordset
    Recoedset Structure:   item,*
    item.endSeparator = 'nl'
    item.fieldSeparator= ,
    item.fieldnames= Name,Id,Age,***
    Hope this helps you.

  • How to READ/SAVE Transformantation / Conversion File in BPC with ABAP

    hi Experts
    I would like to READ/SAVE Transformantation / Conversion File in BPC with ABAP
    When I interface Transaction File From Other Cube,
    I want to run Interface test from ABAP using Transformantation / Conversion File before run DM.
    and, l want to Manage files with ABAP Program ,if need to modify Transformantation / Conversion File
    Thank you.

    Hi Young,
    In addition to the above suggestions, would like to inform you that, if your requirement can be met by running those files in BPC Excel itself, what is the point in running ABAP program for the same?
    It would be much more easier for you to run those files in BPC Excel itself and that is how BPC is designed.
    Hope this clarifies further.
    Rgds,
    Poonam

  • Multiple files in different directory using single FILE adaptor

    Hi Guys,
    How can we handle multiple files having different format(PDF,TXT,EXCEL) and in different directory with the single FILE adaptor.
    I know by using "." we ca get mutilple files, but here tthe files are of different format and in different directory.
    Could you please explain as to how we can handle this scenarios?
    Thanks
    Sahil

    Hi,
    The short answer is - "No".
    The Long Question - "Why do you want to use a SINGLE channel".
    If your idea is to reuse the interface then dont worry... Except for the Senderchannel and Sender agreement all your other objects can be reused ...provided your sender apter converts the different files into the same XML format..
    For TXT you can use the simple file adpater..
    For excel see if you can use save the file as .CSV format...then you can use it directlky by the simple FIle adapter..
    For PDF use conversion agent... Here a blog to get u started on that ->
    /people/shabarish.vijayakumar/blog/2009/05/17/trouble-writing-out-a-pdf-in-xipi
    regards
    Arvind R

  • PI needs to obtain a zip file via FTP using the File adapter

    I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
    Regards,
    Raul Alvarado

    Hello Raul,
    you can do it in futher way ...
    pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
    @ then Use another sender communication channel to pickup all these text file .
    for further clarification you can use these links also. -
    Process txt files in zip file
    Accessing File using FTP from Java Mapping
    File Sender Adapter with FTP protocol
    BR
    Raj

  • SFTP to File Scenario using multiple files

    Hi All,
    I have a scenario wherein 2 separate CSV files ex a.csv and b.csv has to be picked up from the SFTP folder and the same has to be mapped and send to one single file ex c.csv.
    Say a.csv contains fields Name,Address and b.csv contains Phone,Mobile and I need to map them as per FSD into c.csv which will then have Name,Address,Phone,Mobile
    I am bit confused on how to do it.
    Shall I use Additional File name option in SFTP sender channel configuration? In that case how will I use the FCC as we have 2 separate csv files and both the files are CSV files and needs to be converted to XML.
    Any related threads will help.
    Regards,
    Shaibayan

    Hi Inaki,
    Thanks for your reply.
    BPM is not an option in our case as we are told not to use BPM.
    However as per the thread from Michael
    "pick both files in one run (one as file, the other one as attachment - so one communication channel )
    inside the mapping you can get the values from the attachment and do the mapping"
    This part is fine and we can do the mapping by creating N:1 mapping but since our files are .csv files so a content conversion is required for both the a.csv and b.csv. How to go through with this.
    The structure will be something like below in the message mapping after we add both the source structures in Signature Tab:
    Message
         Message1
              MT_FILE_A
                   RecordSet1
                        Name
                        Address
                        Field3
         Message2
              MT_FILE_B
                   RecordSet2
                        Phone
                        Mobile
    Can I use the below values for Content Conversion?
    Document Name:MT_FILE_A,MT_FILE_B
    Recordset Structure:RecordSet1,*,RecordSet2,* or we have to use MT_FILE_A.RecordSet1,*,MT_FILE_B.RecordSet2.*
    And in the Name Value for Name do we need to use dot for each Document Name i.e.
    MY_FILE_A.RecordSet1.fieldSeparator?
    Regards,
    Shaibayan

  • Increase number of rows in a Conversion File

    Hi Experts,
    I´m setting up a huge conversion file (around 25000 rows), and when I`m going to validate it, Only the first 3568 rows are safe.
    Does anybody know how to modify the conversion file, in order to allow more rows?
    Thank`s in advance.

    Hi,
    Isnt it very tedious to maintain such a huge conversion file? Can you consider to use some java scripts or some wild characters to reduce the number of rows in your file.
    Hope this helps.

Maybe you are looking for

  • Old printer/New mac

    I have an old LaserWriter Select 360 I would like to use with my new ProMac but I can't seem to "add a printer" through the Printer Utility program. I am using a Belkin parallel to USB adapter to connect to the Mac. Since Mac is plug & play, I was to

  • How do I open a ZIP file?

    I received a ZIP file (.xlsx) from a PC user, dragged it to a folder on the desktop, and used my downloaded Unarchiver to open it. It created a new folder within the original folder. The new folder has a file (.xml) and three folders in it. I don't k

  • Table name where query variables stored

    Hi All, can any one please tell me in which data base table all the custom query variables are stored???

  • Date Function to get Previous week

    Is there a date function to get Let us say today is 23rd of Jun 2009 I want a date function to get previous Thursday 18 Jun 2009 and another function which get 7 days before which is Friday 12 Jun 2009. FYI: For the current week, I was able to use: s

  • I want to delete the transactional record from database table

    Hai, I want to delete the transactional data from database table with out using the dialog programming is it there any trancation for this. for master data we have the transaction code for delete the records. The t.code is 'OBR2'. Plz help in that cs