FCC for Multi-level Hierarchy

Hi Friends,
Can someone please help me out with this.Below is my Sender Data Type which needs to be converted:
DT_TRAC_MESG
(Hierarchy 1)         TRAC_INFO
                  (Hierarchy 2)   TRAC00
                     (Hierarchy 2)GROUP1
                                (Hierarchy 3)TRAC05
                                (Hierarchy 3)GROUP2
                                             (Hierarchy 4)TRAC10
(Hierarchy 4)                                             GROUP3
                 (Hierarchy 5)                                         TRAC11
and my input data is as below :
XXXXXXXXX  TRAC00 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (occurance 1)
XXXXXXXXXXXXXXXXXXTRAC05XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (occurance 1)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC10XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXTRAC11XXXXXXXXXXXXXXXXXXXXXXX
I know Std SAP XI doesnt support more than 3 hierarchies but we are using a JMS adapter and this support more than 3 hierarchies.So please help us in achieving this mutli hierarchy conversion.Please atleast provide me the procedure to convert a 3 level Hierarchy structure.
It would be of great help for me if someone can answer this and asap.
Thanks & Regards,
Pradeep.

Hi
follow this weblog
File Content Conversion for Multi Hierarchical Structure
or
you can use seeburger to use multi level hierarchy
SAP PI/XI : Content conversion using Generator mapping functionality of SeeBurger : Part 1.
SAP PI/XI : Content Conversion using Generator mapping functionality of SeeBurger : Part 2.
regards
sandeep
Edited by: sandeep sharma on Dec 15, 2008 10:45 AM

Similar Messages

  • Project Workflow Extension for Multi level approval

    Hi,
    We have a requirement of 2 or 3 level of approval on Project Workflow for Project Status Change. We are planning to use the Seeded extension provided by Oracle to get the Approver for Project Status Change.
    The extension procedure provided pa_client_extn_project_wf . select_project_approver has only one out parameter that is Approver id. This means it's only possible 1 level of approval.
    Please help me to find out the way how can i make this work for multi level Approval.
    Regards,
    Ram

    Hi Paul,
    Thanks for your suggestion.
    By comments field I'm assuming OfficeTask.Comments field. Problem is, this field is always null. I tried accessing this field in CheckExitCondition activity as well as in OnTaskCompleted but in both the cases, it was null only(I wrote comments while approving
    the task).
    I used a code activity within OnTaskCompleted activity and following code for accessing Comments and Description fields:
    public string officeComments;
            public string officeDescription;
            private void TaskCOmplete(object sender, EventArgs e)
                CodeActivity Sender = (CodeActivity)sender;
                Microsoft.Office.Workflow.Actions.OfficeTask ofctask1 = ((CompositeActivity)Sender.Parent).Parent as Microsoft.Office.Workflow.Actions.OfficeTask;
                officeComments = ofctask1.Comments;
                officeDescription = ofctask1.Description;          
    Please tell me if I'm doing anything wrong here, I'm very new to Workflows. Also, do I need to set any specific property of officeTask for retriving comments?
    Thank you

  • Receiver File content conversion for multi level hireachy

    Receiver channel file content conversion..
    this is SAP proxy to FIle Scenario, which will get invoice details from SAP along with multiple invoice texts for each invoice.
    I would like to have below mentioned payload at Target side,
    <MT_Invoice>
    <File Header>    1...1
    <f1> customer invoices </f1>
    <f2> 12/02/2010 </f2>
    </File Header>
    <Invocie header> 
    <f1> Invoice number1 </f1>
    <f2> customer number1 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no1-text1 </f1>
    </Invoice text>
    <Invoice text>
    <f1> Inovice no1-text2 </f1>
    </Invoice text>
    <Invocie header> 
    <f1> Invoice number2 </f1>
    <f2> customer number2 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no2-text1 </f1>
    </Invoice text>
    <Invoice text>
    <f1> Inovice no2-text2 </f1>
    </Invoice text>
    <Invocie header> 
    <f1> Invoice number3 </f1>
    <f2> customer number3 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no3-text1 </f1>
    </Invoice text>
    <Footer> 1..1
    <f1> have a great day </f1>
    </footer>
    </MT_Invoice>
    for the above payload file should come as mentioned below
    customer invoices 12/02/2010
    invocie number1 customer no 1
    invoice no1-text1
    invoice no1-text2
    invocie number2 customer no 2
    invoice no2-text1
    invoice no2-text2
    invoice no2-text3
    invocie number3 customer no 3
    invoice no3-text1
    have a great day
    For to get the above payloadI have create a message type like
    MT_invoice
    header   1...1
       f1         1
       f2         1
    invoice details   0... unbound
       f1           1
       f2           1
    invoice text     0.... unbound
       f1
    footer       1...1
       f1          1
    Please correct me if my message type declaration was wrong...  
    Please suggest how do i need to approach for message mapping and as well as FCC in File adapter...
    Edited by: Vidyadhar Kurmala on Dec 2, 2010 10:28 AM

    It is not possible to create alternating nodes in graphical mapping tool.
    I recommend using the MessageTransformBean for FCC, as this supports a 2-level hierarchy.
    Then you add a node record like this:
    <MT_Invoice>
    <Record>
    <File Header> 1...1
    <f1> customer invoices </f1>
    <f2> 12/02/2010 </f2>
    </File Header>
    </Record>
    <Record>
    <Invocie header>
    <f1> Invoice number1 </f1>
    <f2> customer number1 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no1-text1 </f1>
    </Invoice text>
    <Invoice text>
    <f1> Inovice no1-text2 </f1>
    </Invoice text>
    </Record>
    <Record>
    <Invocie header>
    <f1> Invoice number2 </f1>
    <f2> customer number2 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no2-text1 </f1>
    </Invoice text>
    <Invoice text>
    <f1> Inovice no2-text2 </f1>
    </Invoice text>
    <Invocie header>
    <f1> Invoice number3 </f1>
    <f2> customer number3 </f2>
    </Invoice header>
    <Invoice text>
    <f1> Inovice no3-text1 </f1>
    </Invoice text>
    </Record>
    <Record>
    <Footer> 1..1
    <f1> have a great day </f1>
    </footer>
    </Record>
    </MT_Invoice>

  • Different chart for each level hierarchy in report designer

    Is there a way to display a different chart for each level of the hierarchy in a report designer? I want a different chart for each level. That is, if there are 5 nodes in level 4, I want 5 different nodes. Is there a way to do this? I tried to insert the chart inside a cell in each level, but it shows the same chart for all nodes instead of a different chart for each node.

    Has any one tried using a context sensitive chart?  According to this, it seems like this should be possible, but I am having no luck.
    http://help.sap.com/saphelp_nw70/helpdata/en/47/a99a0a5fdb0985e10000000a42189c/frameset.htm

  • Updated content for multi-level record structure in PLSQL

    Hi All,
    please help me
    Need a FUNCTION which would take PERSON_id as the INPUT PARAMETER and RETURN the FULL DETAILS in a multi-level record structure in PLSQL.
    CREATE TABLE people(
    name VARCHAR2(5),
    person_id number
    INSERT INTO people(name,person_id) VALUES ('n1',1);
    INSERT INTO people(name,person_id) VALUES ('n2',2);
    INSERT INTO people(name,person_id) VALUES ('n3',3);
    INSERT INTO people(name,person_id) VALUES ('n4',4);
    INSERT INTO people(name,person_id) VALUES ('n5',5);
    INSERT INTO people(name,person_id) VALUES ('n6',6);
    A person can be assigned many tasks. Below,we can see person_id =1 has 2 tasks 10,20
    CREATE TABLE tasks(
    task_id number,              --->PK
    task_name VARCHAR2(5),
    person_id number          -->FK to People
    INSERT INTO tasks(task_id,task_name,person_id) VALUES (10, 'cleaning',1);
    INSERT INTO tasks(task_id,task_name,person_id) VALUES (20', 'washing',1);
    INSERT INTO tasks(task_id,task_name,person_id) VALUES (30, 'sweeping',2);
    INSERT INTO tasks(task_id,task_name,person_id) VALUES (40, 'ironing',3);
    Each TASK has many ACTIVTIES as below. Below,we can see task_id =10 ---->3 ACTIVITIES of activity_id of 100,200,300
    CREATE TABLE activities(
    activity_id number,
    activity_name VARCHAR2(50),
    task_id number,              --->FK  to task table
    INSERT INTO activities(activity_id,activity_name,task_id)VALUES (100, 'Clean home',10);
    INSERT INTO activities(activity_id,activity_name,task_id)VALUES (200, 'Clean Garden',10);
    INSERT INTO activities(activity_id,activity_name,task_id)VALUES (300, 'Clean clothes,10');
    INSERT INTO activities(activity_id,activity_name,task_id)VALUES (400, 'Wash car',20);
    Write a FUNCTION which would take PERSON_id as the INPUT PARAMETER and RETURN the FULL DETAILS in a multi-level record structure in PLSQL.
    Meaning We would get
    First ,person_details for a person-->next level is TASKS-->Activities_list in a NESTED RECORD SET
    create or replace function person_details(person_id NUMBER)
    RETURNs a
    PERSON_DETAILS RECORD structure as shown below.A person -->Tasks--> all activities
    record PERSON_DETAILS[1]
         person_id,
         name
         TASKS_DETAILS[1]          ---->2nd level
                     task_id[1],
               task_name[1]
                   ACTIVITIES[1]----->3rd level
                        activity_id[1],
                        activity_name[1]     
                      ACTIVITIES[2]
                        activity_id[2],
                        activity_name[2]                    
                   ACTIVITIES[3]
                        activity_id[3],
                        activity_name[3]
    *(1)--Most important part is how do i DEFINE AND DECLARE the RESULT RECORD SET in my FUNCTION?
      (2)--HOW DO WE DYNAMICALLY ALOCATE MEMORY for the record structure based on the no. of rows by each SELECT?
       (3)Access the nested levels and FILL in the DATA in the above record seperately USING SELECT statements.
    */*SELECT 1 ---Find and fill Person*/*
    *select person_id,name from people where person_id =1*
    *-->From this SELECT fill the OUTER record PERSON_DETAILS[no. of records] -->person_id,name*
    */**SELECT 2 ---I want to FIND all TASKS for THE ABOVE PERSON and fill the next part */*
    *select task_id,name from tasks where person_id = PERSON_DETAILS[1].person_id*
    *We get three TASK_ids,*
    *-->From this, HOW TO fill DATA for each TASK,how to  PERSON_DETAILS[1]->TASKS_DETAILS[1st record].task_id -->person_id,name*
    */**SELECT 3 ---I want to FIND all ACTIVITIES for THE ABOVE TASKS and fill the next part */*
    *for EACH of the TASKS found,we need to LOOP and*
    *select activity_id,name from activities where task_id = PERSON_DETAILS[1].-->TASKS_DETAILS[1st record]--->ACTIVITY_DETAILS[1].activity_id*
    I have tried my best to explain with the tables and the relationships.I just hope its not confusing now.Edited by: user_7000011 on 01-Apr-2009 12:46

    try this one.
    Learned something new today.
    CREATE TABLE temp_clob_tab(result CLOB);
    CREATE or replace TYPE task_t AS OBJECT("@task_id"   NUMBER,
                                last_name        VARCHAR2(20),
                                 activitylist     activity_tab
    create or replace type activity_t as object("@activity_id" number, activity_name varchar2(20));
    CREATE or replace  TYPE tasklist_t AS TABLE OF task_t;
    create or replace type activity_tab as table of activity_t;
    CREATE or replace TYPE people_t AS OBJECT("@people_id" NUMBER,
                                 task_name  VARCHAR2(20),
                                 task_t          tasklist_t
    DECLARE
      qryCtx DBMS_XMLGEN.ctxHandle;
      result CLOB;
    BEGIN
      DBMS_XMLGEN.setRowTag(qryCtx, NULL);
      qryCtx := DBMS_XMLGEN.newContext
        ('SELECT people_t(person_id,
                        name,
                        CAST(MULTISET
                               (SELECT e.task_id, e.task_name,cast(multiset
                                        (select activity_id,activity_name from activities a
                                            where a.task_id = e.task_id) as activity_tab)
                                  FROM tasks e
                                  WHERE e.person_id= d.person_id)
                             AS tasklist_t))
            AS peoplexml
            FROM people d
            where person_id = 1');
      -- now get the result
      result := DBMS_XMLGEN.getXML(qryCtx);
      INSERT INTO temp_clob_tab VALUES (result);
      -- close context
      DBMS_XMLGEN.closeContext(qryCtx);
    END;
    select * from          temp_clob_tab ;output
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
      <PEOPLEXML people_id="1">
       <TASK_NAME>n1</TASK_NAME>
       <TASK_T>
        <TASK_T task_id="10">
         <LAST_NAME>cleaning</LAST_NAME>
         <ACTIVITYLIST>
          <ACTIVITY_T activity_id="100">
           <ACTIVITY_NAME>Clean home</ACTIVITY_NAME>
          </ACTIVITY_T>
          <ACTIVITY_T activity_id="200">
           <ACTIVITY_NAME>Clean Garden</ACTIVITY_NAME>
          </ACTIVITY_T>
          <ACTIVITY_T activity_id="300">
           <ACTIVITY_NAME>Clean clothes</ACTIVITY_NAME>
          </ACTIVITY_T>
         </ACTIVITYLIST>
        </TASK_T>
        <TASK_T task_id="20">
         <LAST_NAME>washing</LAST_NAME>
         <ACTIVITYLIST>
          <ACTIVITY_T activity_id="400">
           <ACTIVITY_NAME>Wash car</ACTIVITY_NAME>
          </ACTIVITY_T>
         </ACTIVITYLIST>
        </TASK_T>
       </TASK_T>
      </PEOPLEXML>
    </ROW>
    </ROWSET>

  • IDOC DELVRY05 - What structure for multi-level packing?

    Hi All
    I am creating DELVRY05 idocs via WE19.
    I am using handling materials, and packing my materials into handling units, which are in turn packed in a further level of handling unit.  So we have eaches packed in boxes, and boxes packed in a container.
    I an set up this scenario directly in VL31N, so I am happy that the data that I want to work with works.
    In WE19 I can set up single layer packing, i.e., eaches packed in containers, but I can not get multi level packing to work.
    I suspect that my organisation of E1EDL37 and E1EDL44 segments is incorrect.
    My question is this:
    What layout should I have for my E1EDL37 and E1EDL44 segments, and what order should they appear in my idoc?
    Thanks in advance.
    James

    James,
    Did you have a solution for this? I'm having the same issue. I couldn't able to make it work correctly. Somewhere I'm missing a small part, but couldn't able to figure it out.
    raj

  • BAdI multi level hierarchy

    Regarding BAdIs we read a point in almost every website "Business Add-ins infrastructure is multi-level system landscape (SAP, partner, customer solutions, as well as country versions, and industry solutions). ". What does this exactly mean ? Kindly illustrate with an example.

    Hi,
    Please send some data from you table and what result would you like to recieve.
    Thanks
    Peter D.

  • Content Conversion for multi level heirarchy

    Gurus,
    I have the following scenario
    FileXIFile
    Input File structure is as follows
    FH|............  (occurs 1)
    FE|............. (occurs *)
    FED|........... (child of FE and can occur * under FE)
    FT|.............. (occurs 1)
    The file contents are pipe delimited.
    Example file
    FH|.....
    FE|........
    FED|........
    FED|.........
    FE|.......
    FED|........
    FT|............
    As stated above, FED recordtype can occur multiple times under FE
    My inbound message structure is
    .....Header (1)
    ........ErrorRecord (0,unbounded)
    .............ErrorDataRec (0,unbounded)
    .....Trailer (1)
    Recordset Structure - Header,1,ErrorRecord,,ErrorDataRec,,Trailer,1
    Recordset Sequence - Variable
    KeyFieldName - RecordType
    Content Parameters
       I have defined field separator as pipe for each recordset
       I have defined keyFieldValue for each recordset
       I have defined fieldNames for each recordset
    Here is my problem
    The file loads ok. However, ErrorDataRec loads at the same level as ErrorRecord rather than loading under it.
    I have played with fieldNames to define ErrorDataRec as a field under ErrorRecord and not definining as one, doesnot seem to make a difference.
    I need someway to tell the parser that ErrorDataRec needs to be loaded as a substructure of ErrorRecord.
    Anyone has any ideas?
    Regards
    Haseeb

    VJ,
    You are absolutely right it is not possible to get multiple hierarchy using file content conversion.
    Splitbyvalue function would not work in my scenario as I need to group FED records based on first few characters in the first column of FED records. I wrote a UDF to insert context change based on the column value.
    Thanks again for your help.
    Regards
    Haseeb

  • Multi level hierarchy AdvancedDataGrid

    Hey guys,
       I have create a data struct as follows
    {env:"Marine"
         children:[
              {name: "name1",
               size: "size1",
              children:[
                   {complete: "val-1",
                    incomplete: "val-2"}
    I can display the first leve of hierarchy no problem, similar to example here (http://ticore.blogspot.com/2008/04/flex-collapsible-datagrid.html).  What I would really like to do is have, the second level expand so I can display values of complete and incomplete and other under the second child, eventually instead of displaying the values under second child, I want to create pie charts and have them expand/hide as user chooses.
    Does anyone have any pointers? I did google but didn't find anything that could help.
    Thank you
    Jaysheel

    Hey Guys,
      I have figured out how I could create a chart based on data input.  Only thing I need to do is have a Grid looking similar to the one here
    http://ticore.blogspot.com/2008/04/flex-collapsible-datagrid.html
    I just need not a way to expand each record, and display pie charts.  In the case of example above, I need to have it such that I can expand each person's record and see a pie chart.  I am banging my head against this one, and I have a feeling that I am overlooking something quite simple
    Thank you
    Jaysheel

  • How can i manage multi level hierarchy in ADF

    hi,
    i have three View Object which is based on table.
    EmployeeHdr- EmployeeVo
    LeaveApplyHdr- LeaveHdrVo
    LeaveApplyDet- LeaveDetVo
    now how can i manage master detail type of hierarchy among these table.
    a)foreign key relation b/w EmployeeHdr and LeaveApplyHdr based on EmployeeHdr.empcd = LeaveApplyHdr.empcd
    b)foreign key relation b/w LeaveApplyHd and LeaveApplyDet based on LeaveApplyHdr.apply_no=LeaveApplyDet.apply_no
    i have already create association and viewlink for these relationship.
    now can i manage this in Single jsf page.

    hi,
    open your application module and take the source
    And find out where the view links are Used..
    it may be like this...
    <ViewLinkUsage
        Name="ViewLinkA****1"
        Version="@@@@@@@@@@@@@@"
        ViewLinkObjectName="model.ViewLinkA****"
        SrcViewUsageName="model.AppModule.EmployeeVo5 "
        DstViewUsageName="model.AppModule.LeaveHdrvo6 " // check this
        Reversed="false"/>
      <ViewLinkUsage
        Name="ViewLinkB****1"
        Version="@@@@@@@@@@@@@@"
        ViewLinkObjectName="model.ViewLinkB****"
        SrcViewUsageName="model.AppModule.LeaveHdrvo6"//check this
        DstViewUsageName="model.AppModule.LeaveDetVo7 "
        Reversed="false"/>
      From this you can see that SrcViewUsageName reference, change it as per your need.
    Already in application module you may have different instance names, make sure that you have specified the correct names in the application module.
    Then refresh the datacontrol
    Ranjith

  • Any examples of using XSU for multi level nesting

    Are there any examples of inserting into a set of object tables using the XSU where the parent-child relationship is more than 2 levels deep. i.e where you have to use REF's or views to do this.
    I have had no problems with a 2 level insert using object tables but that's not much use to me.
    I know that natively only 2 levels of nesting are supported.
    I may have to resort to parsing the data manually using the PL/SQL parser if I can't get the XSU to do it.
    null

    lAnubisl wrote:
    My customer's solution has several issues generating PDF files and we are looking at the Acrobat SDK as at the instance of the final truth.
    I use Interop.Acrobat.dll as a .NET project reference to open and resave PDF documents. I'd like to do all things I mentioned above.
    After years and years, I have concluded that if you do serious PDF development, you need a set of libraries. For instance, if you are doing typesetting type of work ("vertical center", "horizontal center", "margin", etc., etc) , there is an excellent library from a guy in Germany (land of Johannes Gutenberg and printing presses)...
    ... which turned out to be useless in my next project which dealt with AcroForms.
    I know exactly what you mean by "the final truth", sometimes I wish Adobe had some sort of official validating tool (like XML does).
    Per your comments, I would recommend you to consider this library. It is available in all languages and its output is the same quality as Adobe's or at least in the same league:
           http://www.pdftron.com/pdfnet/index.html
    If you want to comment further, we must go to a different forum, since we are not supposed to discuss any non-Adobe products here.

  • How to retrieve comments from one OfficeTask activity and use them in another OfficeTask activity for Multi level Approval sequential Workflow

    I'm designing a sequential site workflow using Visual Studio 2010 for Project Server 2010. In my case, I have following 6 stages in the workflow:
    1. InitialProposal Stage
    2. Approval Stage1 -- Needs approval from Approver Project Security Group Members1
    3. Rejection Stage
    4. Approval Stage2 -- Needs approval from Approver Project Security Group Members 2
    5. Execution Stage
    6. Completed Stage
    Requirement is workflow should move to Approval stage2 from Approval stage1  if approved by all members of Approver Project Security Group1and it should move to Rejection Stage even if a single member rejects it.
    Workflow should move from Approval Stage2 to Execution Stage if approved by all members of Approver Project Security Group2 and it should move back to Approval Stage1 on rejection by a single member of the group.
    I'm using inbuilt PSWApproval content type and OfficeTask activity for creating approval task for the group members at both stages.
    On task rejected in Approval stage2, task will be assigned again to Approval Stage1 and I want to show comments given by members of Approver Project Security Group2 to the members of Approver Project Security Group1 with this assigned task
    but I'm not able to retrieve comments from officeTask activity.
    My question is where exactly these comments are saved? how can we retrieve them and use them in another officetask activity? If this is not possible then what is the possible solution for meeting above mentioned business requirement?

    Hi Paul,
    Thanks for your suggestion.
    By comments field I'm assuming OfficeTask.Comments field. Problem is, this field is always null. I tried accessing this field in CheckExitCondition activity as well as in OnTaskCompleted but in both the cases, it was null only(I wrote comments while approving
    the task).
    I used a code activity within OnTaskCompleted activity and following code for accessing Comments and Description fields:
    public string officeComments;
            public string officeDescription;
            private void TaskCOmplete(object sender, EventArgs e)
                CodeActivity Sender = (CodeActivity)sender;
                Microsoft.Office.Workflow.Actions.OfficeTask ofctask1 = ((CompositeActivity)Sender.Parent).Parent as Microsoft.Office.Workflow.Actions.OfficeTask;
                officeComments = ofctask1.Comments;
                officeDescription = ofctask1.Description;          
    Please tell me if I'm doing anything wrong here, I'm very new to Workflows. Also, do I need to set any specific property of officeTask for retriving comments?
    Thank you

  • Message Mapping  Multi Level Hierarchy To Flat

    HI
    I have the following Message Structures
    <HRMD_A05>
       <IDOC BEGIN="1">
          <EDI_DC40 SEGMENT="1">
             <TABNAM>EDI_DC40</TABNAM>
             <MANDT>100</MANDT>
             <DOCNUM>0000000000462483</DOCNUM>
             <DOCREL>700</DOCREL>
             <STATUS>30</STATUS>
             <DIRECT>1</DIRECT>
             <OUTMOD>2</OUTMOD>
             <IDOCTYP>HRMD_A05</IDOCTYP>
             <MESTYP>HRMD_A</MESTYP>
             <SNDPOR>SAPPH1</SNDPOR>
             <SNDPRT>LS</SNDPRT>
             <SNDPRN>PH1100</SNDPRN>
             <RCVPOR>A000000015</RCVPOR>
             <RCVPRT>LS</RCVPRT>
             <RCVPRN>GD_XIB_P</RCVPRN>
             <CREDAT>20110130</CREDAT>
             <CRETIM>200709</CRETIM>
             <SERIAL>20110130200628</SERIAL>
          </EDI_DC40>
          <E1PLOGI SEGMENT="1">
             <PLVAR>01</PLVAR>
             <OTYPE>P</OTYPE>
             <OBJID>00000021</OBJID>
             <OPERA>I</OPERA>
             <E1PITYP SEGMENT="1">
                <PLVAR>01</PLVAR>
                <OTYPE>P</OTYPE>
                <OBJID>00000021</OBJID>
                <INFTY>0001</INFTY>
                <BEGDA>20110130</BEGDA>
                <ENDDA>20110130</ENDDA>
                <E1P0001 SEGMENT="1">
                   <PERNR>00000021</PERNR>
                   <INFTY>0001</INFTY>
                   <ENDDA>99991231</ENDDA>
                   <BEGDA>20110101</BEGDA>
                   <SEQNR>000</SEQNR>
                   <AEDTM>20110110</AEDTM>
                   <UNAME>CHEHROUTSDT</UNAME>
                   <BUKRS>0116</BUKRS>
                   <WERKS>UK01</WERKS>
                   <PERSG>1</PERSG>
                   <PERSK>M2</PERSK>
                   <KOSTL>0000005000</KOSTL>
                   <ORGEH>51004895</ORGEH>
                   <PLANS>60006175</PLANS>
                   <STELL>70000004</STELL>
                   <SNAME>Financial Control</SNAME>
                   <ENAME>Financial Controller &amp; Bus Tra Officer</ENAME>
                </E1P0001>
                <E1P0001 SEGMENT="1">
                   <PERNR>00000021</PERNR>
                   <INFTY>0001</INFTY>
                   <SUBTY>GDP1</SUBTY>
                   <ENDDA>99991231</ENDDA>
                   <BEGDA>20110101</BEGDA>
                   <SEQNR>000</SEQNR>
                   <AEDTM>20110110</AEDTM>
                   <UNAME>CHEHROUTSDT</UNAME>
                   <WERKS>GB</WERKS>
                   <PERSG>X</PERSG>
                   <ORGEH>00000000</ORGEH>
                   <PLANS>00000000</PLANS>
                   <STELL>00000000</STELL>
                   <MSTBR>00035657</MSTBR>
                   <SNAME>TETRA PAK LTD.</SNAME>
                   <ENAME>TP Tetra Pak Ltd.</ENAME>
                   <FISTL>Wrexham</FISTL>
                   <GEBER>GB0001</GEBER>
                </E1P0001>
                <E1P0001 SEGMENT="1">
                   <PERNR>00000021</PERNR>
                   <INFTY>0001</INFTY>
                   <SUBTY>GDP2</SUBTY>
                   <ENDDA>99991231</ENDDA>
                   <BEGDA>20110101</BEGDA>
                   <SEQNR>000</SEQNR>
                   <AEDTM>20110110</AEDTM>
                   <UNAME>CHEHROUTSDT</UNAME>
                   <ORGEH>00000000</ORGEH>
                   <PLANS>00000000</PLANS>
                   <STELL>00000000</STELL>
                   <SNAME>FI Accounting Leader</SNAME>
                   <ENAME>Finance &amp; Business Transformation</ENAME>
                </E1P0001>
             </E1PITYP>
             </E1PLOGI>
       </IDOC>
    </HRMD_A05>
    in the above structure  <HRMD_A05>/<IDOC>/<E1PLOGI><E1PITYP> has a segment <E1P0001> which gets repeated 3 with different Qualifers("",GD1,GD2) base on the Qualifer the <Smane> has to be mapped to 3 different fields in the target Structure
    The Target Structure is a Flat Structure As shown Below
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="urn:xibprototype:source:to:target" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:xibprototype:source:to:target">
       <xsd:element name="HRPlanningAndMasterData" type="HRPlanningAndMasterData"/>
       <xsd:complexType name="HRPlanningAndMasterData">
          <xsd:annotation>
             <xsd:appinfo source="http://sap.com/xi/VersionID">154335859c8011e0ac8a0000022ca112</xsd:appinfo>
          </xsd:annotation>
          <xsd:sequence>
             <xsd:element name="LineItems" minOccurs="0" maxOccurs="unbounded">
                <xsd:complexType>
                  <xsd:sequence>
                      <xsd:element name="tpjobtype" type="xsd:string" minOccurs="0"/>
                      <xsd:element name="tpposition" type="xsd:string" minOccurs="0"/>
                      <xsd:element name="tpfunctionalarea" type="xsd:string" minOccurs="0"/>
                   </xsd:sequence>
                </xsd:complexType>
             </xsd:element>
          </xsd:sequence>
       </xsd:complexType>
    </xsd:schema>
    I did the graphical Mapping  the As Below
    ns0:HRPlanningAndMasterData/LineItems/tpjobtype=mapWithDefault(SplitByValue(removeContexts(ifWithoutElse(stringEquals(/HRMD_A05/IDOC/E1PLOGI/E1PITYP/E1P0001/SUBTY, const(value=GDP2)), /HRMD_A05/IDOC/E1PLOGI/E1PITYP/E1P0001/SNAME, keepss=true)), type=0), default_value=, result)
    If i load the Instance XMl file and See the Context Queues .. the Number of the Context Changes in the Queue in more than the Context Changes that are to be produced
    eg.. I feed 2 records as input then i see 6 context Changes
    eg..
    SUPPRESS
    SUPPRESS
    <ActualValue>
    SUPPRESS
    SUPPRESS
    <ACTUAL VALUE>
    I am expecting only 2 context changes with the actual Values... (if the second record does not have a value an empty value is expected)
    Can Some help me in solving these Values... Some How i need to remove the SUPPRESS/false Values
    Note: The Contects for the Source Elements are not changed
    Regards
    Edited by: aalla renukumar on Jun 27, 2011 12:18 PM

    Hi aalla
    Try setting property keepss of ifWithoutElse block to false.
    Regards,
    Giuseppe

  • Email notifications for multi level approvals in OIM 11g

    Hi,
    I am using OIM 11g.
    And in my current environment, we have 4 levels of approvals and need to send a different type of email notification in every level to the corresponding approver.
    Can you please let me know how to implement this in SOA composite. first two approvals are sequential and the remaining two approvals are parellel.
    Thanks,
    Swathi

    You have to use combination of switch and if task. In if block you have provide the condition. This conditon will be predicted over some variable. This variable you will set in payload where approver will be decide.
    You can have multiple mail notification or you can set the body content dynamically(set the variable data in payload where the approver is being manipulated) use this variable in body content.
    Kuldeep

  • Multi level follow up material in BOM

    Dear All,
    Our client have a requirement for multi lvel follow up material in BOM.
    for example
    BOM for Finish Good made of A.
    if material A is depleted then used material B
    if material B is depleted then used material C
    if A and B have stock used A(higher priority)
    I tried to used follow up material in MRP4 and BOM but it can not be used for multi level like this case.
    Is there any solution for this?
    Best regards,
    Fred

    Hi anyway I tested the BOM master data like this
    F/G 1 Master Box
    |--- A 10 PCS  Alt Group Z1  Priority 1 Usage 100% Strategy 2 (100% Check)
    |--- B 10 PCS  Alt Group Z1  Priority 2 Usage 100% Strategy 2 (100% Check)
    |--- C 10 PCS  Alt Group Z1  Priority 3 Usage 100% Strategy 2 (100% Check)
    Stock A is depleted
    Stock B enough
    stock C enough
    Expected result F/G only used B 10 PCS
    Actual result is
    F/G 1 Master Box
    |-- A 10 PCS
    |-- B 10 PCS
    |-- C 10 PCS
    Do ou have ides how should the percentage in BOm is maintain?
    Best regards,
    Fred

Maybe you are looking for

  • How to change payment date in cash flow

    Hello Experts, Ive had a facility with commitment fee.  The calculated figure of the commitment fee is correct which based on period end date and the payment date in the cash flow tab was also the end date but I wanted to change the payment date in t

  • JDBC in WebLogic setting

    Hi all, I would like to ask what should I set in the Connection Pool in Weblogic if I want to connect to the database? For example, the JDBC COnnection Pool in the console, it has Name, URL, Driver Classname, Properties, ACLName, Password, Open Strin

  • Bought Mac OSX Snow Leopard, half way through install it spits the disk out and does nothing. Any advice?

    It's a iMac version 10.5.8. Would appreciate any help. Thank you.

  • Solved (No Broadband account)

    A lot of the problems are caused by BT not including your telephone number in your account details. Log-in then go  Edit Account. No need to enter your password on this page, just click (Back to my Profile) you will be at "Welcome to your My BT Profi

  • 10 Key Pad on Apple Wireless Keyboard

    I cleaned the keyboard while it was turned off. Now I cannot use the 10 keypad at all and if I forget and touch it while in VPC the system freezes. I need to know how to turn on the keypad and any website information on the keypad