Nested structure and FCC problem (Header Problem)

Hi all,
I have a target structure like this:
MT
-Recordset (0..unbounded)
--field1 (1)
--field2 (1)
Record (0..unbounded)
field6 (0..1)
field7 (0..1)
After mapping:
MT
-Recordset (0..unbounded)
--field1 (1)
--field2 (1)
Record (0..unbounded)
field6 (0..1)
field7 (0..1)
-Recordset (0..unbounded)
--field1 (1)
--field2 (1)
Record (0..unbounded)
field6 (0..1)
field7 (0..1)
-Recordset (0..unbounded)
--field1 (1)
--field2 (1)
Record (0..unbounded)
field6 (0..1)
field7 (0..1)
I need header like this after FCC:
field1,field2, field6,field7
But Iu2019m getting something like this:
field1,field2,Record (Because of the nested structure, I can't change the structure)
I have used xml.addHeaderLine = 1 it didnu2019t work it gives something like the above structure.
I have also used xml.HeaderLine = field1,field2,field6,field7  and xml.addHeaderLine =3
Nothing is working is there any option.
Thanks,
Srinivas
Edited by: Srinivas Davuluri on Jul 17, 2008 10:13 PM

Hi,
one option could be
RecordSet.addHeaderLine = 3
Recordset.headerLine = field1<ur seperator>field2<ur seperator> field6<ur seperator> field7
Edited by: Progirl Progirl on Jul 18, 2008 9:50 AM

Similar Messages

  • XML structure and FCC parameters

    Hi Experts,
    Kindly help me with the XML structure and  FCC parameters for the following sample of text file
    I am new to Text Files and FCC.
    =================================================================================
    Header
    " name of the company " ,1   
    " abc 2,10/01/1972",4
    Line items
    "ADFERT",KARNATAKA,CHIPS,G,45.560000,72.190000,100.983000,76.266000,J
    "GHTJEN",KERALA,BANANAS,G,1.135000,0.714850,1,0.755000,J
    Trailer
    DDDDDDDDD,B
    ================================================================================
    It is a CSV
    Header 1st line , first field is Variable length and 2nd field is 1 char
    Header 2nd line , first field is Variable length and 2nd field is date and last field is 1 char
    Line items
    first field fixed length 6 char but
    2nd field can be of any length
    3rd field can be of any length
    4th field 1 char
    5th field can be of any length
    6th field can be of any length
    7th field can be of any length
    8th field can be of any length
    9th field 1 char
    and then the Trailer
    Please help in the structure and content conversion parameters
    also following questions :
    a)  I have to pick up this file and pass to a proxy in AbAP on target side , so do i just create a service interface and in ECC --> Sproxy and identify my SI and do a Create Proxy ? or is there anything else required ?
    b) The Date in the header needs to be passed onto ECC as a parameter so in my XML structure in the data type do i include that as a field in the mapping ..Can any one please guide me to create the Data type structure for the above file ?
    c) DO I NEED A MAPPING FOR THIS ?? THERE ARE NO CONVERSIONS required ? what are the IR and ID steps required
    if it is a FILE to Proxy scenario with no mappings 
    Please help
    thanks
    Dev

    Hi Dev,
    Full Data type is as follows
    Sender_DT
    order_recordset  0..1
    order_header                 0..1
      header-1    0..1
      date            0..1
    order_Item                      0..unbound
      item-1          0..1
      item-2          0..1
      item-3          0..1
      item-n          0..1
    order_Trailer                    0..1
      trailer-1  0..1
      trailer-2  0..1
      trailer-n  0..1
    > What about the File Content conversion parameters , can you help me with those
    order_header.fieldNames     : f1,date
    order_header.fieldSeparator : <give the fiels separater , [if it is comma])
    order_header.endSeparator   : 'nl' (if it is new line characters)
    order_item.fieldNames     : i1,i2,.....
    order_item.fieldSeparator : :
    order_item.endSeparator   : 'nl'
    order_Trailer.fieldNames     : t1,t2,.....
    order_Trailer.fieldSeparator : :
    order_Trailer.endSeparator   : 'nl'
    If any of the two structures (header, item or trailer) in the field name is same then we have to use the key field
    Check this link
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417600)ID1157374550DB11273870171440820710End?blog=/pub/wlg/3228
    > b) In FCC what will be the values for fieldnames ?
    Check this link
    https://wiki.sdn.sap.com/wiki/display/XI/XI_File_Content
    Regards
    Ramesh

  • How to define the Structure and FCC parameters for EDI file format.

    Hi All,
    I have a  EDI file(FTP)-->XI-->IDOC
    the source file content is as follows
    PR H01PHUPS         
    FH   SHP  0.0.5    
    H1   S0022323                            
    W6   7752508853                     D
    PT   1Z58R7070341111111           
    PT   1Z58R7070342222222           
    PT   1Z58R7070353333333          
    N1ST ZZ 142222                            
    N3ST 8827 D OLD
    N4ST MARCY                        
    N1WH ZZ 2070                              
    N3WH 401 QUALITY
    N4WH HARRIS
    DTENT20111206
    DTSHP201112061754
    N9LL BN20700033333333                               
    N9NT
    CD   CP      UPS
    IT026
    P1GD    VN A1111 
    PD   Product ID 1                   
    QTORD000000000000010CA
    QTSHP000000000000010CA
    AM U  000000000000000000M
    AM X  000000000000000000
    LTLT 1112811111                                       
    AM G  000000000000000000
    AM N  000000000000000000
    AM TAX000000000000000000
    AM SVC000000000000000000
    AM COD000000000000000000
    ST   00000000100000000010000000000000000000000000008500LB
    Can any body share me how to declare the structure in DataType.
    The first two characters in each record is constant , so this would be the keyfields right?
    ex:- PR,FH,H1,W6,PT,AM,N1,N3,N4......
    In Comm channel the FCC parameters
    i need to go for fieldFixedLengths?
    Thanks&Regards
    Sai_SHA

    Hi.
    if you need to convert an EDI to XML you need to use an Adapter specific (e.g Seeburger) because PI doesn't support EDI files.
    Also if you use a FCC , this configuration is for  two level Header and Detail.
    Check this.
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    Regards
    Luis Ortiz

  • Message Mapping Nested Structure to key node in JDBC XML SQL Structure

    Hello everybody,
    I'm facing the next problem, I have the following nested structure
    <ns0:MT_Irdoc_ArchivoNested xmlns:ns0="http://ref.pemex.com/PI/FI/ArchivoIrdoc">
       <Header id_consecutivo="">
          <Transaction/>
          <Header2/>
          <Header3/>
          <Header4/>
          <Header5/>
          <Detail>
             <Transaction/>
             <Detail2/>
             <Detail3/>
             <Detail4/>
             <Detail5/>
          </Detail>
       </Header>
       <NombreArchivo/>
    </ns0:MT_Irdoc_ArchivoNested>
    as you can see, Detail is a nested Node from Header Node, and Detail is with occurrence 0...unbounded, I need to generate a SELECT XML SQL Structure as follows
       <StatementName>
              <dbTableName action=u201DSELECTu201D>
                  <table>realDbTableName</table>
                  <access>
                     <col1/>
                     <col2/>
                     <col3/>
                  </access>
                  <key1>
                     <col4>val4</col4>
                     <col5>val5</col5>
                     <col6>val6</col6>
                  </key1>
              </dbTableName> 
       </StatementName>
    now my problem is that col4 and col6 are values mapped from Header fields values, and col5 mus be mapped from Detail2 field of Detail Nested Structure, and Detail is 0...unbounded so it can contain any number of values and must included in the key structure, I tried by mapping the Detail Node to the key1 node, so it will generate n numbers of key1 nodes to include in the query, and the Detail number of nodes are not constant so I can't generate key2, key3, keyn...., so what I need is to create n numbers of instances of key1 node, but the problem is that when the mapping try to generate the second instance of key1 node it gives an error in the fields that comes from Header structure, maybe I'm trying to solve my problem wrong, could anyone give some advices or direction?, thanks in advance.
    Regards,
    Julio Cesar

    Julio,
    After placing the below logic in the mapping editor
    Details2 > SplitByValue> col5
    Right click on the Details2 node and choose Context. By Default you will see Details, because Details2 is the child of Details node. I want you to choose the Parent of Details node, I believe that would be HeaderID, am I right?
    If you don't want to do that then,
    Details2 ---> Remove Context > SplitByvalue> col5 will do the trick!
    raj.

  • BAdI - AC_DOCUMENT / data passing for nested structures

    Hi all.
    I need your help for this scenario:  
    I used this to pass value of MM field to FI field from transaction MIGO.
    Our company placed field in EKKN-WEMPF to BSEG-ZUONR.
    For this one option was:  BAdI AC_DOCUMENT
    Questions: 
    1.  Nested structures - passing of data:
    First problem encountered was with the reading of data from nested structures and passing them to nested structures as well.  How to do this?  I have used a certain declaration but any input will be much appreciated. 
    2.  When I activated my BAdI, it says error on FI Interface,
    specifically on AWREF and AWORG fields. 
    It is currently blank.  Can I use the values in IM_DOCUMENT to pass to EX_DOCUMENT? 
    (What is a good way to do it since simple syntax does not allow for passing of data bec. structures are incompatible, and added complexity, it has nested structures.)
    If you have sample code for this, it would truly be helpful. 
    Thanks and God bless!

    Hi,
    Check that for which condition the message is triggering.
    Try to check the condition.
    Regards
    Sandipan

  • Receiver File content conversion with nested structure

    Hi Guys,
    I have the below nested structure and have to convert it using receiver file content conversion.
    <Header> [o, unbounded]
       <A>a</A>
       <B>b</B>
    </Header>
    <record>   [0, unbounded]
       <field1>
            <X1>x</X1>
            <Y1>y</Y1>
       </field1>
       <field2>
             <X2>x</X2>
             <Y2>y</Y2>
       </field2>
    </record>
    The file is a comma separated one. Please let me know how to configure the content conversion.
    Thanks

    Hi Mukesh,
    Have a look at the Shabz's blog for the receiver File content conversion : File Adapter (Receiver) - Are we "really" sure about the concepts?
    Thanks,
    Pooja

  • Help!! - File to Idoc Mapping with Nested structure

    Scenario:
    I have an inbound file that has three nested records.
    eg. A00, B00 and C00. C00 is nested structure of B00 and B00 nested structure of A00. All these structure can repeat N number of times in a file.
    How do I map this to IDoc structure that have one segment each for the three structures in the file and nested in the same way.
    Question: How is the parent child relationship established?
         Suppose I have a file
         A00 1234 Sam 29
              B00 london LE3 XYZ
              B00 US 123456
                    C00 2 XYZ
               A00 5678 Joe 22
            B00 US 23456
         If I make a nested structure and then say in the file conversion properties that A00 go to segA and then B00 go to segB, but then when I come back to A00, how do I move the data to the A00?
    Thanks in Advance
    Rgds

    From what you have layed out, you can create a data type with 3 children, all 1..unbounded cardinality, each containing their own elements.  You say they are nested, but the example you gave isn't nested... it's just A's followed by B's followed by C's.  If that is the case, you can then use a data type w/ 3 subelements (A, B & C) and each of those is actually a container with the real attributes of that line in your file.  (I can email you a schema quickly if you need it)
    If you are saying they can occur like this:
    A00 1234 Sam 29
    B00 london LE3 XYZ
    B00 US 123456
    C00 2 XYZ
    B00 US 23456
    C00 2 XYZ
    THEN they are nested - ie B's & C's repeat under any A.  Then you must create segment B as a subelement of segment A instead of on the same level, then bury C under B. (I find this easiest w/ a text tool rather than inside XI, as I can cut/paste segments where I want them to belong...)
    Good luck with setting up content conversion on that file adapter... We have done this a few times, and it can be quite interesting.
    If you have trouble with the schema, you can post your email & I can give you a quick example.
    Message was edited by: Amanda Derringer

  • Problem to transform Flat file to Data Type Structurated and map to IDOC

    Hi all,
    I have a file to idoc scenario.
    The information is like this:
    1#!445#!AI12#!1#!20070214#!DVXXXXR#!201#!31GINHG876#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    where 1, 2, ... = key segments for the file adapter and #! are the field separator.
    this must go to a Data Type with substructures like this:
    (xml)
    .1
    ......2
    .3
    ......4
    ......5
    where 2 is inside 1 and 4-5 inside 3.
    The reason of this is we can get unbounded replays of 3/4/5 for one header.
    But XI reads the information like if all segments are headers.
    .1
    .2
    .3
    .4
    .5
    So the IDOC is bad created.
    Where is the issue?  At Message Mapping all substructures are mapped with his default and at TEST option it works fine.
    Thanks in advance for your help.
    best regards
    Message was edited by:
            Federico Martin
    Message was edited by:
            Federico Martin

    Dear people,
    according to license problems at client, it's impossible to get the convert agent.
    so now we come back to try to solve with normal mapping.
    the next step is try to convert it using 2 message mappings: dt (flat xml) to dt (structurated) and this one to the idoc.
    i suppose it can be done adding program at interface mapping.
    I created the no hiereachical Data Type for load the information and it's fine. But i am unable to get the first mapping OK, because XI has problems with unbounded segments.
    If you agreed and has time, i copy here the information and his structure.
    I receive (#! defines separation and key segment fields are 1,2,3,4,5):
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    5#!pos5
    5#!pos5
    The destination must be:
    CHASE A
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    3 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    5 (1..unbounded)
    5 (1..unbounded)
    5 (1..unbounded)
    CHASE B
    Or, in another case with 5 as child of 3 (like example in last mail)
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    Questions:
    How i do for map Data Type (no hierachical) -to-> Data Type (hierachical) and  Data Type (hierachical) -to-> IDOC? Is any loop or context object required?
    Thank you in advance for your help and sorry the long thread.

  • Huge problems with my MacBook:  Invalid Node Structure and More!

    A couple days ago I was browsing the internet, and when I closed Safari, the system froze. I couldn't even force quit out of anything, so I had to shut it off manually. When I tried to turn my computer back on the next day, I couldn't get past the Apple screen. The little wheel would keep spinning, but I could never get anywhere.
    Then, I tried to boot from the Leopard DVD to possibly reinstall Leopard, hoping it would work. At first, no drives would show up to install to, but for some reason, they eventually showed up. Problem is, I don't have enough free memory to reinstall Leopard. Furthermore, I've tried to fit it on the space I have, and it says that the install failed, so I can't reinstall Leopard.
    I also went to Disk Utility from the DVD and tried to repair the disk. The only option available was to Verify Disk, but when I go there, that fails, and it says "invalid node structure."
    I'm not sure what happened to my computer because it seemed to come from nowhere. To sum up, I cannot log in to OS X, or even XP on a separate partition, I can't reinstall Leopard, and I can't repair the disk. I've read about how DiskWarrior might help, but I can't get in to OS X. Does anyone have any idea what happened or what I can do? I haven't backed anything up, so if I'm screwed, then so be it, I guess. Just wondering if anyone has any explanations or suggestions. Thanks.

    Interesting how many people have this same issue. A friend of mine has brought me her white Macbook Intel Core 2 with Leopard and it had a folder with a question mark instead of the apple at startup. I was able to boot using the Mac Install DVD and ran Disk Utility. It said something like "Invalid Node Structure" and "Cannot Repair". Unfortunately DiskWarrior will not fix this. I tried it to no avail. I'm resigned to the fact that a new hard drive is necessary.
    The HD in there is a Hitachi 120GB.
    It also wouldn't let me erase the disk nor partition it. Then, one morning I woke up and it was able to erase! So I erased, then installed Tiger. It seemed to be working fine. So I rebooted from the Leopard drop-in disk and installed Leopard. Then I restarted, and BAM! back to the question mark folder. Now I'm back to where I started. Other threads
    I forgot to mention that my friend had photos and music on the HD that she couldn't do without and I was able to recover that data using Data Recover II. First I had to use SuperDuper to clone my own computer onto an external drive so I could use it as a boot drive.
    For now the only solution is to buy a new internal hard drive and reinstall the OS. And regularly backup!!
    So I guess this issue has not really been solved, but hopefully you have warranty. Unfortunately for my friend, this happened a week after her warranty expired.
    Good luck.

  • Help please! - Hard disk Volume Header problems and 'Beach Ball' hangs

    Hi all
    I was wondering if anyone can help me out with my hard drive problems. Until recently, everything was going fine with my Powerbook after upgrading to 10.4.2. Then all of a sudden, one day, at the login screen I got a beach ball hang which lasted around 4 minutes. When the dock is launched, I get another beach ball hang for an additional 3 or 4 minutes.
    When it finally finishes logging in everything is fine, I can access all my files and do whatever I want to do at full speed, that is, until an app asks me for my administrators password which welcomes back the beach ball and a system hang for another 3-4 minutes or so.
    Disk Utility says that I have minor Volume header problems but will not fix it as it abruptly quits before it finishes diagnosing the drive.
    I have Disk Warrior 3.0.3 and have tried to use it but when I boot off the CD it does not recognise my hard drive for fixing puroposes but still displays the hard drive in the Hardware tab.
    The SMART status of the drive is verified and there doesnt seem to be any problems in that respect.
    I have repaired permissions, ran all the processes in Onyx and still no joy.
    Finally, I have tried to use TechTool Pro but on a surface disk check it fails halfway through after shifting a few bad sectors around.
    Everything seems to be fine if you ignore all these beach ball hangs but I'm worried about a very imminent hard drive fail. I am now in the process of zeroing all the empty spaces on my hard disk to see if the badsector problems can be fixed in this way.
    When the beach ball appears I can hear the hard disk making a scraping sound if this helps at all.
    Please help me! Its driving me nuts! I am also currently working abroad hence I don't have my Mac OS X Tiger install disks on me otherwise I'd just do an archive and reinstall.
    Is this a physical problem? Volume header problem? I'm so confused!
    Any help greatly appreciated! Many thanks...

    It sounds as if you've attempted the appropriate fixes for your drive... Disk Utility, Disk Warrior, TechTool Pro and Onyx. If none of these utilities have repaired the problem then perhaps there is a hardware failure of some sort... perhaps a head crash has done some physical damage.
    How old is this hard drive? Is it the original?
    It's unfortunate that you don't have your Tiger install discs as a reinstall of the OS might relieve the problem. But I doubt it since, as you say, "the disc makes a scraping sound". That suggests to me the problem may be physical damage or wear of the hard drive.
    If I were in your shoes, I would backup any critical files now, before the drive fails completely.
    I'd replace the drive, and probably buy an external enclosure (USB or Firewire) for the old drive to allow for data retrieval until it failed.
    Unfortunately, replacing the drive will require your software install discs... =( ... can't help you there.
    TiBook G4 1G, PMac G4 dual 1G, MacPlus   Mac OS X (10.4.4)  

  • Problems copying and pasting a head from one photo onto a body of another photo

    I used the magnetic lasso tool in PSE8 to trace around the head
    and then copied it from the edit menu.  Opened the new photo with the
    body I wanted and pasted the head into the photo.  Instead of just the head, a
    white margin was around the head and it covered up part
    of the shoulders on the body and background of the picture.
    How do I just copy the head without the added white margin around it?  My last
    PSE version was 3 so 8 is a big jump for me.

    Hi,
    Select the head via any ool and create a layer via copy from right click.
    Now open the destination image and drag this layer to that image and move around it using the move tool. It works fine on me. If this doesnot fix the issue, please let me know the exact steps.
    ~V

  • Problem w/ Nested Datasets and Master/Detail regions

    Hi, I'm being using spry for a couple of applications and
    really love it. This is the first time I've tried to utilize a
    nested dataset and I'm having some difficulty loading the nested
    data. I'm getting a js 'Object does not support this property or
    method' error in IE and a 'Failed to retrieve data set (dsCreds)
    for spry:repeat' in FF.
    I've tried to map examples to my application but of course
    it's slightly different. I have a master/detail region dynamically
    generated from a .php file and part of the detail region has the
    nested dataset. Maybe (hopefully) it's something obvious. I've
    broken out a test case that demonstrates what's happing - If anyone
    could take a look I would be extremely grateful!
    The .htm file is on:
    htm
    file
    The .PHP file that generates the dynamic XML is on:
    PHP
    file
    A sample .XML (generated from the .PHP file is
    Sample XML
    file
    Even without the Nested set getting generated the
    Master/Detail section works fine.
    Thanks so much for any help!
    Edit - Apologies for all the inline css - still developing
    :)

    Hi,
    The dataset name in the NestedDataSet constructor does not go
    in quotes.
    Try var dsCreds = new Spry.Data.NestedXMLDataSet(dsAgents,
    "credentials/cred");
    and see if that helps.
    Don

  • Nested Repeater and Binding Problem - Please Help

    I have nested repeaters and binding seems to work with the
    outer repeater, but not with the inner repeater. I have boiled it
    down to a pretty concise case. If someone could offer hints I would
    be most appreciative!
    I understand the objects I am using to store data could be
    different, but it only looks strange because I had to boil down a
    complex case to a simple case.
    Type a user and then an email address then click to add them,
    the user TextInput and label gets created, but not the email
    address label and text input.
    Basically I want users in an ArrayCollection, and their
    multiple email addresses in an ArrayCollection stored in an Object,
    where I get that email ArrayCollection using the user as the key to
    the object acting as an associative array.
    The attached code should compile fine, so please have a go at
    this. Thanks!

    "Greg Lafrance" <[email protected]> wrote in
    message
    news:gn5p1k$cv9$[email protected]..
    >I have nested repeaters and binding seems to work with
    the outer repeater,
    >but
    > not with the inner repeater. I have boiled it down to a
    pretty concise
    > case. If
    > someone could offer hints I would be most appreciative!
    >
    > I understand the objects I am using to store data could
    be different, but
    > it
    > only looks strange because I had to boil down a complex
    case to a simple
    > case.
    >
    > Type a user and then an email address then click to add
    them, the user
    > TextInput and label gets created, but not the email
    address label and text
    > input.
    >
    > Basically I want users in an ArrayCollection, and their
    multiple email
    > addresses in an ArrayCollection stored in an Object,
    where I get that
    > email
    > ArrayCollection using the user as the key to the object
    acting as an
    > associative array.
    I wouldn't bind to methods like that...I'd make properties
    and bind to
    those.

  • Nested Ago and Todate function problem

    Hi,
    in my rpd i have following Time hierarchy:
    Year
    Quarter
    Month
    and a fact table Fact Shop which contains Monthly measure "Number of Hearing Aids Delivered".
    I must calculate PY_QTD, PY_YTD versions of above measure.
    I have tried to use built-in Time Functions Ago and ToDate in the following way:
    PY_QTD
    Todate(Ago("Number of Hearing Aids Delivered",1,"Time.Year"), "Time.Quarter")
    PY_YTD
    Todate(Ago("Number of Hearing Aids Delivered",1,"Time.Year"), "Time.Year")
    but when i check consistency i have error which says approximately "You can nest Ago and ToDate functions".
    There's another way, to calculate it? Can you help?
    Thanks
    Giancarlo

    So u r referring PY as previous year ;)
    Here u go;
    it’s a combination of AGO and TODATE.
    You create a value – let’s say Sales MTD by just following normal process…then you create a logical column with the following formula AGO (Sales MTD, Month Dim, 12)
    that should give you a MTD measure you’re looking for. I hope this is useful. Just dont use both function in single logical column....use seperate by first creating YTD n then AGO function to create previous year data.
    For ur case use to calculate PY_YTD use below:
    Create logical column
    Aids Delivered YTD with formula as TODATE("Number of Hearing Aids Delivered"), "Time.Year")
    and then create another logical column as
    Aids Delivered PY_YTD with formula as AGO("Aids Delivered YTD","Time.Year",1)
    This will work for sure....

  • 6.1.2 and still wifi signal problem

    I bought iphone 5 yesterday in London.I update my iphone to 6.1.2 and i saw a problem.My wifi signal is too weak and its drops the connections few time later.I restore my phone but still same.What can i do for this problem.Is it a hardware problem ?

    I had problems with wifi in 6.1.2 on my 4S. Namely, I'd go to my general/wifi settings page and get to watch the checkmark cycle visible/invisible (wifi on/off) every few seconds. After a while it would apparently go permanently off for that connection. I scoured the net and found I should:
    Toggle WiFi off then back on.(on phone)
    Forget network for my home network and then log back in (on phone)
    Reset network settings (on phone)
    Reboot router
    And perhaps a few more. I tried them all with no positive results.
    I got frustrated and visited the local Apple store genius. She said I'd pretty much covered the whole enchalada and so it was time for the dreaded FULL RESTORE. God I hate that. I was hoping she could wave a magic apple over the phone and it would start to work or something.
    She asked about backups etc. so as to not totally ruin my life. I was good and told her it was ok to infantalize my phone. A few minutes later I was walking out of the store with a "brand new" phone. At least my phone was behaving that way.
    In a weird way this was a good experience. My phone was in such a state of new phoneitis that the only stuff on it was my cell data to let me make calls and get on line and a few things that I store in the cloud (I don't fully backup to the cloud, only contacts and my calendar). So I had lost all my apps, my nice directory structure, all my folders segregating my apps into neat categories etc.
    So, why a good experience? Well when I got home I first restored the backup, then restored the apps and media previously stored on the phone. I've never done this before and I was TOTALLY Delighted to see that the phone was basically indistinguishable from its state prior to the wipe. All the apps were back in their designated spots and all the useless Apple stuff had been moved to purgatory on the last screen. Why can we NOT put newsstand and such into a folder or better yet simply dump it from the phone? How lame is it that Apple is so un-confident they force us to stare at those Icons in the desparate hope we start to use stuff that some of us simply are not interested in? Anyway it was nice to get my phone back to its original state.
    Now the test, I turned on WiFi and selected my network, gave the wpa2 password and voila, the checkmark beside my home network started to blink again. Oh well, 2 to 3 hours of restoration was needed anyway but I was really hoping a fresh virgin install of the OS would have cured this problem.
    SOLUTION:
    You know, I'm fairly certain I didn't try much beyond toggling wifi on and off and doing the forget network thingies before I stumbled across a series of reports online about this problem that changing wifi network security from one type to another might do something good. So, I started with the most benign router network change, I simply changed my wifi wpa password on the router. I didn't even start with a switch from wps2 to wep or whatever else might be available as an alternate security protocol. Back to my phone and I tried to connect to wifi and entered the new password and I got access. I watched the checkmark beside my home network. No cycling on and off. I went to safari and visited a bunch of bookmarks. No starting and stopping the network connection. It appeared to have been healed. I went back into the router and reverted the password to the original.  I loaded up a couple of my security cams. Everything was working. I checked my "Nest" thermostats and they were working.
    So far it's been around 18 hours and things are still good with my 6.1.2 IOS iPhone. Hopefully they will stay that way.
    Although the iPhone is so locked down as to not really qualify in my mind as a true computer, it's important to remember all the disabling Apple does on the phones doesn't mean they aren't computers. Just that we can't use them that way most of the time. And with computers there are unending interactions between different services that are running in the background where we can't interact with them on the phone but are totally able to keep an eye on them on a true computer with full access by the user allowed. So... point is, it really is a computer hiding under the covers and  all kinds of stuff is happening in there. So, while one person may find a simple toggling of the wifi on and off will solve this problem others may have to do really strange things to get things working again. In my particular configuration I'm guessing that the install of the new OS somehow messed with the prefs file for wifi and perhaps did something funky to my wifi password. changing the router password and requiring me to thus create a brand new connection to it may have cleared up this problem. It's a good thing there wasn't something inherently wrong with my standard wpa password. I have BUNCHES of stuff running on wifi around the house and I seriously would hate to have to connect to everything besides the router and enter in new passwords.
    Anyway, so far for me, a happy ending. Luck to you all.

Maybe you are looking for