Split By Value   -  Context

Hi Experts,
I am learing about Split By Value and Context  in Mapping Node Functions,
What is Split By Value ?
What is Context ?
Can anyone give some light on this topic  WITH REAL TIME EXAMPLE.
Regards,
Study SAP

Hi,
What is Split By Value ?
-->
suppose you have an XML Like
code<root>
<node>1</node>
<node>2</node>
</root>[/code]
split by value(node) returns:
code<root>
<node>1</node>
</root>
<root>
<node>2</node>
</root>[/code]
Instead remove context does the opposite.
What is Context ?
-->
refer
http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
Here is a scenario where context objects were used for BPM
Technical Context Object in ccBPM
Get the details here:
http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
Technical Context Objects :
http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
A list of the Technical Context Objects names can be found here:
http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
Thanks
Swarup

Similar Messages

  • Remove context and split by value.

    Hi Friends,
                            the SAP Library  seems to bge a bit tough for me. Any url where I can find easy definition to Remove context and split by value , with exampl!!
    Thanks in advance!!
    Arnab .

    Hi,
    Remove Context Simply remove the Context. SplitByValue inserts  Context.
    Case 1: Remove Context is not Used.
    Source Message:
    <Test_Out_Remove>
    <header name=u201CA">
    <item>A.one</item>
    <item>A.two</item>
    <item>A.three</item>
    </header>
    <header name="B">
    <item>B.one</item>
    <item>B.two</item>
    </header>
    </Test_Out_Remove>
    TargetMessage:
    <Test_In_Remove>
    <item>A.one</item>
    <item>A.two</item>
    <item>A.three</item>
    </Test_In_Remove>
    Case 2: Using Remove Context.
    Source Message:     
    <Test_Out_Remove>
    <header name=u201CA">
    <item>A.one</item>    
    <item>A.two</item>    
    <item>A.three</item>
    </header>
    <header name="B">
    <item>B.one</item>
    <item>B.two</item>
    </header>
    </Test_Out_Remove>
    TargetMessage:
    <Test_In_Remove>
    <item>A.one</item>
    <item>A.two</item>
    <item>A.three</item>
    <item>B.one</item>
    <item>B.two</item>
    </Test_In_Remove>
    Case 3: Without SplitByValue
    Source Message :
    <Test_Out_Split>
    <header>
    <item>one</item>
    <item>two</item>
    <item>three</item>
    <item>four</item>
    </header>
    </Test_Out_Split>
    Target Message :
    <Test_In_Split>
    <new_context>
    <item>one</item>
    <item>two</item>
    <item>three</item>
    <item>four</item>
    </new_context>
    <new_context />
    <new_context />
    <new_context />
    </Test_In_Split>
    Case4: Using SplitBYValue
    Source Message :
    <Test_Out_Split>
    <header>
    <item>one</item>
    <item>two</item>
    <item>three</item>
    <item>four</item>
    </header>
    </Test_Out_Split>
    Target Message :
    <Test_In_Split>
    <new_context>
    <item>one</item>
    </new_context>
    <new_context>
    <item>two</item>
    </new_context>
    <new_context>
    <item>three</item>
    </new_context>
    <new_context>
    <item>four</item>
    </new_context>
    </Test_In_Split>
    Reward points if needful.
    Thanks,
    RamuV

  • Split By Value and Collapse context

    Please give me the business requirement in your project that leads to work on split by value and collapse context?
    I read so many documents but i am still confusing with above mentioned node functions?

    Hi praveen,
    Check these links
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    Message Mapping Simplified - Part I
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    New functions in the Graphical Mapping Tool XI 3.0 SP13
    http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/b9af5e71-0701-0010-d0b8-f612fb6593dd
    regards
    srinivas

  • Mapping split by value

    Hello friends,
    I have the following scenario where i get data from SQL table via JDBC and map it to an IDOC.
    <Row>
      <Header Ind>1111<Hearer Ind>
      <Det1>5<Det1>
      <Det1>5<Det1>
       <Det1>5<Det1>
    <Row>
      <Header Ind>2222<Hearer Ind>
      <Det1>6<Det1>
      <Det1>6<Det1>
      <Det1>6<Det1>
    The above is the source Payload. In the Mapping I have taken the Header Ind node and done the below for all the target segments.
    Header Ind  --- Split by Value [value change] -
    collapse context --- IDOC
    Header Ind  --- Split by Value [value change] -
    collapse context --- EDIDC40
    Header Ind  --- Split by Value [value change] -
    collapse context --- EIBPACH08
    Header Ind  --- Split by Value [value change] -
    collapse context --- EIBACGL08
    My question is where do I map the <row> node too ?? I am still getting an error below
    Cannot create target element /ACC_GL_POSTING01/IDOC[2]/EDI_DC40. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
    Thank you,
    Teresa

    If i map <row context to destination IDOC then split by value and collapse context is not required?? I would like to genereate a new IDOC every time the header Ind changes.
    Thanks,
    Teresa

  • How do i test split by value functionality in mesage mapping with multiple

    how do i test split by value functionality in mesage mapping with multiple values ?
    regards,
    venkat

    repeat your source node. in mapping editor you can view queues by right clicking to mapped element.. selecting Display Queues option.. this will show u your values .
    You can also select this Display Queue option for splitByValue option
    for example
    source--->splitByValue>target
    Try viewing your queues to each this step... for splitByValue in display Queue you will see context inserted(grey colour) accodingly

  • Importance of split by value function options

    In split by value function, we have Each value, value changed and emply value options. What are the functions of these options? ( I know split by value function will generate a field in the target, under a different target node, for every value of that in the source sturcture.). Please help me with the answer.
    Regards,
    Suresh.

    Hi,
    SplitByValue() is the counterpart to removeContexts(): Instead of deleting a context, you can insert a context change in the source value queue. You then receive this element for each inserted context change instead of a top node element. However, for this to be possible, the top node source field must be assigned a top node target field and minOccurs must be >0. A maximum of minOccurs top node target fields can be inserted here.
    You can insert a context change in the queue after each value, after each change to the value, or after each tag without a value.
    Refer this link for more details:
    http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm
    Regards,
    Nithiyanandam

  • Mapping Issue: How to split the value  of Lineitem

    Hi  All,
    I have issue in Mapping .XML-> BAPI Scenario
    1 line item  has the  one 50% Cost Centre , another 50% Cost centre data
    2 line item has only      100% WBS elemnt
    WBS elemnt mapping :
    If A |EQUALS (Text) | WBS_ELEMNT   |If without else|  B(WBS value)  |REmoveContexs| SplitByValue|   WBS_ELEMNT(BAPI field)
    But this supress second line item : WBS_ELEMNT data and uploads into1.Item .Hence PO is not getting created in SAP.
    Could you please giv me a logic to actaually split the value into 2 seperate so that respective data of each line item  are split properly .
    Thank you ,
    Vara

    Hi I think you need an udf for this:
    int total = Integer.parseInt(value[0]);
    result.addValue(Integer.toString(a/2));
    result.addValue(Integer.toString(a/2));
    and after it you can add a splitbyvalue

  • Split Message value in Multi-Mapping

    Hello everybody,
    I got the following problem with 1:n Mapping
    My Source Structure is
    <root>
    .<element_list> // 1:1
    ..<element>     // 1:unbounded
    ...<value>
    ...</value>
    ..</element>
    .</element_list>
    </root>
    Sample for source structure:
    <root>
    .<element_list>
    ..<element>
    ...<value><b>WILLIAM</b>
    ...</value>
    ..</element>
    ..<element>
    ...<value><b>RICHARD</b>
    ...</value>
    .</element_list>
    </root>
    I want to split by multi-mapping!
    The target structure looks similar as source target structure (just <element_list> is missing)!
    So my structure looks in target:
    <Messages>
    .<Messages1>
    ..<element>    
    ...<value>
    ...</value>
    ..</element>
    .<Messages2>
    ..<element>    
    ...<value>
    ...</value>
    ..</element>
    For splitting the <value> tag is responsible:
    Every RICHARD should be mapped to <Messages1>
    Every WILLIAM should be mapped to <Messages2>
    --> so I use the if-function (I dont want to use the SORT function!)
    But this seems not to work.
    Any suggestions?
    Regards Mario
    null

    Hi Vijaya
    annotation:
    I need different messages!
    So in the tab >messages< of massage mapping
    Target Message: The message type must occur in row 1 & 2
    Like in thread: /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    Here: First screen shot under >Message Mapping<
    Did you do this?
    Regards Mario
    Message was edited by:
            Mario Müller

  • How Can I Split Multi-Valued Attributes in Syndicator Map?

    Is the option to split multi-values only available for fields and not on attributes that are also multi-valued?

    How Can I Split Multi-Valued Attributes in Syndicator Map?
    Currently this feature are not in MDM you can split this value by using any middleware software for e.g. PI
    Is the option to split multi-values only available for fields and not on attributes that are also multi-valued?
    Correct, Multi-values option only available for field not for attributes
    Thanks,
    Jignesh Patel

  • Split String value into internal table at Carriage return

    Hi All,
    I have given a string type context ( text edit  box ) to the user to enter the values. The data can have carriage returns also.
    My Requirement is that I want to split the data at carriage returns and store it in my tables.
    I tired with a constant value of '%CR_LF' as available in CL_ABAP_CHAR_UTILITIES but to no good result.
    Can the Experts suggest some solution?/??
    Thankx in advance.
    Regds,
    Srini

    Hi Srini,
    Have you looked at your string containing the text in the debugger to verify that you really have <CR>+<LF> (i.e. reflecting CL_ABAP_CHAR_UTILITIES=>CR_LF, which should be easily visible when looking at the hex codes of the string)? Maybe it's just a <LF> (i.e. CL_ABAP_CHAR_UTILITIES=>NEWLINE). Might be good to do a REPLACE first using a regular expression for identifying the line feeds and then doing the SPLIT.
    Cheers, harald
    p.s.: If you still cannot get it to work, provide some more details of what you're doing...

  • COPA - Split of Value from condition type into different value fields

    Dear All,
    Customer is having several free schemes to customer the same is set up by SD and Cost of free goods is attached to One Z condition type, this flows along with Main product as characteristic. So we have Main product cost in VPRS and Scheme cost in Z Condition and there is possibility of more than one scheme cost flowing in one Z condition for single billing document. Whereas customer request is to see the each scheme cost separately in COPA. Since Value from SD will be flowing through only one condition type , it will be difficult to me to Split this in COPA. We have given a thought of having more than one condition type from SD ( one Z condition for one scheme) but this resolve our issue at hand. If we look at long term whenever customer introduces new Scheme new condition type need to be created and related COPA changes etc, Which doesn't seem to be working out.
    Request Experts help in this, thanks in advance for the help.

    Hi Santosh
    Having a Z cond type for each scheme is preferrable.... This would address the issue with Standard SAP itself...
    Reason being, if you dont do that, then you will have to maintain a mapping somewhere in a Z Table where by system would come to know of the ratio between the schemes... This will be more cumbersome to develop and maintain... Still you wanna do that, here is the logic....
    Maintain the schemes in a Z Table... Where each scheme will have a scheme ID - The ratio applicable to various schemes and also the relevant value fields of COPA to be updated for each scheme....
    Now, add a Custom Field to the Sales Order and while creating the SO this field needs to be updated with the scheme ID(Relevant Exit to make it mandatory MV45AFZZ / ZB).... If Scheme ID is populated, your Billing should read the Split from Z Table using Exit RV60AFZZ and Update COPA using Exit COPA0002
    br, Ajay M

  • Splitting Fields Values from A to B, C, D

    I am new to portal forms and need some help on managing fields
    values. The requirement is I want the value of a field to split
    up into three different fields. for example : Field A has
    value 'THIS IS FOR TESTING' and B, C, D fields should
    have 'IS','FOR','TESTING' respectively.. This should happen as
    soon as i leave the field 'A'.
    I would be very thankful if anyone can help me with this.
    Thanks!!

    Maps have a smart feature that recall your ending location.
    If you had one map with start and end location, i.e. San Francisco to Paris, adding a second map, will already display Paris as a start location.
    This is true with both Globe and Flat maps.
    However, to adjust zoom level with Flat Maps, you can click the Crop tool bar and access the Ken Burns effect, adjusting the zoom on the Preview Window.

  • How To Split Parameter Values

    Hello,
    I have the following code which generates a lot of values stored in Parameter Values. How do I split this to see the individual values. Is it an array?
    Nevica
    Attachments:
    Capture.JPG ‏25 KB

    Hi nevica,
    The data type which is produced from this function is called a Cluster. Clusters are essentially a data type which allows the concatenation of multiple entries of data, quite like an array; however they allow entries of different data types rather than just one.
    For example, the error terminals you have wired together contain a special type of Cluster called an Error Cluster. Error Clusters contain three different data types:
    Status -  a Boolean which indicates if an error has occurred.
    Code - a Numeric data type which contains a number which represents the specific error that occured.
    Source - a String data type which indicates where in your VI the error occured.
    These different data types are bundled together because they all logically represent different aspects of an Error.
    In your VI, the parameter that is returned is of type cluster. If you right click on the cluster indicator and navigate to Create » Cluster, Class and Variant » Unbundle you will create a small node which can be used to view the individual contents of a cluster separately. You can stretch out the Unbundle function to view more entries of the parameter set. To place these items once you've manipulated back into their original cluster, use the Bundle function.
    Best regards,
    Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

  • Pricing Condition Type should split the Value

    Hello Gurus,
    I am working on Billing Plan for Contracts. In the contract I enter the condition type with Rs.24000. The same net value should split in the  billing plan by months for 12 months as Rs2000.00. Any inputs on this?
    Regards
    Venkat

    Hello,
    In v/06 make a new condition type for 'Monthly Value'.Eg.  ZP00
    Cond. class   A Discount or surcharg
    Calculat.type A Percentage         
    maintain vk11 for ZP00 as 8.333%
    In the pricing procedure , add the new condition type after main price condition as below.
    STEP    CNTR  CTyp         DESCRIPTION                     FROM    TO    MAN MDT             STAT  
    100             0     PR00     Price                                                               CHECK         CHECK
    200          0     ZP00     Monthly Value     100                                      
    please check the same and revert back.
    Thanks & Regards,
    Hegal

  • Split the value using comma as delimiter and then pass each value to query to get the description

    Hi,
    As i am new to crystal reports,  I need help in getting one field.
    In my report i am using 2 tables:
    one is like :
    code_id
    code_desc
    1
    aaa
    2
    bbb
    3
    ccc
    4
    ddd
    and the another is :
    reason_ind
    1
    2,3,4
    2,3
    1,2,3,4
    3,4
    In this report i have a column : Reason_desc.
    Here i have to show code_desc for those values of reason_ind matches with code_id in the above table.
    Ex:
    reason_ind
    reason_desc
    1
    aaa
    2,3,4
    bbb,ccc,ddd
    2,3
    bbb,ccc
    Let me know if you need further clarifications.
    Thanks in advance.
    Regards,
    Swathi.

    Hi Swathi,
    Here's how you can do this at the report level:
    1) Create a Main report pointing to the second table from that screenshot.
    2) Drag and drop the Reason_ind column on the Details Section
    3) Insert a Subreport pointing to the First table and place it on the Details Section
    4) Right-click the Subreport > Select Change Subreport Links > Move the Reason_Ind field to the pane on the right > Uncheck the option 'Select data in Subreport based on field'
    5) Get inside the Subreport and go to Report > Selection Formulas > Record and use this code:
    ToText({Code_Id},0,"") IN Split({@Pm-Reason_Ind},",")
    6) In the Subreport, create a Group on the Code_Desc field
    7) Suppress the Report Header, Group Header, Details and Group Footer sections
    8) Create a Formula with this code and place it on the Group Header 1 section:
    whileprintingrecords;
    stringvar s := s + {Code_Desc} + ", ";
    9) Create one more formula and place this on the Report Footer section:
    whileprintingrecords;
    stringvar s;
    Left(s,len(s)-2);
    Hope this helps.
    -Abhilash

Maybe you are looking for

  • Problem with vertical text in crystal report viewer

    Hi, I am displaying vertical text in crystal report designer and deploying the report in crystal reports server 2008. The deployed report is being displayed using JAVA in crystal report viewer control. Problem: Vertical text header  is getting collap

  • Suggest a TABLE CONTAINING THESE IDOC segment FIELDS

    E1MBXYJ : Create Goods Movement from Non-SAP System: Item++ Segment definition E2MBXYJ001 Released since Release 620 , Segment length: 0476 For the following fields. Tell me a table which contains a majority or all of the below fields. PARGB : Tradin

  • Windows 7 Backup error code 0x81000039

    Hi Everyone, I was trying to perform a backup across our peer-peer network from a Windows 7 computer to an XP Pro computer.  The user has full access to the additional harddrive on the XP computer, but I get error code 0x81000039, remote share path n

  • Finding out purchse order by referrring condition type.

    I want to find out purchase orders in the production system where condition type for example ZINT used in the conditions.

  • MobileMe account failed email verification, iCloud unusable

    Hello there! I was a longtime MobileMe user with my email address ([email protected]). A couple of days ago I switched my .me account to an iCloud one. I also had another appleId just for my iTunes stuff. (my_name). Today iOS5 is being released and I