Allocation of segment based on partnersegment

Hi Experts,
I am facing the challenge to distribute reported data to different segments according to the distribution of partner segments in one particular item. I tried allocation but so far it seems it can only allocate segment values when the distribution key is the segment, but not the partner segment.  Sadly the distribution key always inherits the segments from sender/receiver.
Example of distribution key
Item____Segment____Partnersegment______Value
1111______A____________D______________10
1111______A____________E______________20
Example of reported data
1222______A___________________________90
After allocation
1222______D___________________________30
1222______E___________________________60
Any idea to implement this?
Regards
Stefan

Hi Eugene,
thanks for your thoughts but I am not quite understanding it yet. The disribution key has one segment, since data on the distribution key item will always be on only one segment. Now system should read this segment and calculate the distriubtion according to the distribution of partner segments in this single segment. Meaning for all segments the distribution key always comes from segment A and its partner segments. So there is not only one amount, since there are different partner segments.
Example of distribution, key segment is always A
Item____Segment____Partnersegment______Value
1111______A____________D______________10
1111______A____________E______________20
Example of reported data
1222______A___________________________90
After allocation
1222______D___________________________30
1222______E___________________________60

Similar Messages

  • BADI : Substitution to determine segments based on MCH  [VERY VERY IMP]

    Hi Guys,
    I have to activate a BADI or a Substitution to determine segments based on MCH. Below mentioned are some technical details for BADI. Please try and use BADI; if BADI doesn't work we can use Substitution.
    Definition Name: AC_DOCUMENT
    Method : CHANGE_INITIAL
    Determine segment based on MCH? We will have to determine this using a custom table.
    Can any one kindly please help me on this. It's very urgent.
    my mail id is [email protected]
    I will REWARD points for helpful answers.
    Thanks and Regards,
    Sundeep.

    check the reply of ur Same Post .
    regards
    prabhu

  • Segmentation based upon BP Type

    Hi
    We have a requirement to do segmentation based upon BP type. But in standard Infosets this option is not available. Please tell me how this can be achieved.
    Thanx & regards
    Hits

    Hi Hitesh,
    BP type is available in the BUT000 table with the field BPKIND
    Create a infoset using direct read of table BUT000 and segment on the attribute BPKIND
    Hope it helps
    Regards,
    Madhu

  • Unable to default DFF segment based on selection of other field value.

    Hi Gurus,
    *I have a requirement on 'Create Work Request' page (Oracle EAM), where during creating complaint, when user selects Asset Number, based on this selection, a DFF enabled to capture Tenant Info must be populated. [For testing now, I'm writing my code in PR and not in PFR to populate some thing while page loads.]*
    I have extended my CO and tried many ways (from simple to little complex) but to no success.
    Simpler way:
    *=======*
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    OAViewObject vo = (OAViewObject)am.findViewObject("RequestDetailsVO");
    Row row = vo.first();
    row.setAttribute("Attribute1","Attribute1"); //Attribute1 is the View attribute in above VO. But this doesn't work.
    row.setAttribute("DepartmentCode","CRC MAINT"); //DepartmentCode is a view attribute as well. And this works.
    This code doesn't work.
    Understanding that, DFF segments can't be set as simple bean, I have done below:
    *===================================================*
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");//("WorkRequestDFF_p13n");
    oadescriptiveflexbean.processFlex(oapagecontext);
    if (oadescriptiveflexbean != null){
    ContextMap contextmap = oadescriptiveflexbean.getNamedChildMap();
    if(contextmap != null){
    Enumeration enumeration = contextmap.keys(oapagecontext.getRenderingContext());
    if(enumeration != null){
    do
    if(!enumeration.hasMoreElements())
    break;
    Object obj = enumeration.nextElement();
    OAWebBean oawebbean1 = (OAWebBean)contextmap.get(oapagecontext.getRenderingContext(), obj);
    oapagecontext.getParameter("WorkRequestDesc1")
    //String str = (String)oapagecontext.getNamedDataObject("WorkRequestDesc1")
    if(oawebbean1 != null)
    if(oawebbean1 instanceof OAMessageTextInputBean)
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1;//.findIndexedChildRecursive("WorkRequestDesc1__xc_");
    //oamessagetextinputbean.setReadOnly(true);
    oamessagetextinputbean.setText("Jawad");
    } while(true);
    Now the issue with above code is, during the page load, all the segments are populated with value 'Jawad'. I want to populate only the first segment.
    More info:
    *======*
    VO: RequestDetailsVO
    DFF Regions ID: WorkRequestDesc
    Attribute1 (DFF segment1) ID: WorkRequestDesc1
    Appreciate your responses,
    Jawad

    Dear Guys,
    I found out a workaround for this case (If this helps others): :)
    *1. Create a Message Text Input type field (representing each DFF segment) and map them to View Attribute (over which DFF was created) and VO instance.*
    *2. In the extended CO, in PFR, get the handle of these created fields.*
    *3. Set the values as required.*
    Since these fields are mapped onto the same view attributes as DFF was, the data goes in fine.
    But I still am hunting for the possibility of setting a single segment.
    Thanks and Regards,
    Jawad
    Edited by: Jawad on Apr 19, 2012 3:36 AM
    Edited by: Jawad on Apr 19, 2012 3:38 AM

  • Allocation of material based on certain criteria

    Hi guys:
    one of the requirement is that to allocate inventory i.e parts allocated to sales orders based on following crirteria
    --> Priority Code assigned to customer ,
    -->Line item requested Ship date --( Oldest requested ship date first )
    --->Sales order number ---ie lowest sales ordr numbers first.
    All the above criteria work when backorders > available quantity and we need to satisfy all the customers.
    Any suggestions
    lot of MM and integratiion involved , how to handle this requirement in SAP?
    thanks
    sweth

    Sweth,
    To add to expert Mario's answer, there is a much more comprehensive suite of tools in APO for availability checking, including more standard controls upon how the order is/is not confirmed upon initial entry, and how existing confirmations may be re-sequenced.  Implementation of APO Global Available To Promise is not trivial, but it can help you avoid the use of the enhancements mentioned in his post.
    http://help.sap.com/saphelp_scm70/helpdata/EN/04/5e7237412a5249e10000009b38f842/frameset.htm
    Best Regards,
    DB49

  • Allocation of Cost based on Match for 2 Dimensions

    Hi Experts,
    We are running an allocation where we assign an expense account balance (transportation costs) based on the combination of the dimensions entity and country.  Please see the attached for a full example.
    A brief example:
    ORIGINAL DATA
    Entity:  Country AI Units (Currency)
    1120  Holland AI_01 50
    1120 Holland AI_03 30
    1120 France  AI_02 10
    PRICING DATA
    Entity:  Country USD
    1120 Holland 8
    1120 France  10
    DESIRED RESULT
    1120 Holland AI_01 (50*8)=400
    1120 Holland AI_03 (30*8)=240
    1120 France AI_02 ((10*10)=100
    ACTUAL RESULT
    1120 Holland AI_01 (50+30) *8=640
    1120 Holland AI_03 (50+ 30)*8=640
    The original data is multiplied by a "pricing table" data that resides in a statistical account with similar dimensions for Entity and Country.  Based on the match between Entity and Country between the data and country we assign the cost.
    Issue is that other dimensions e.g. AI or other should be ignored for this calculation and the postings occur as they were originally.  However the actual result based on the script below is duplicating data
    Any ideas?
    Thanks in advance
    Eyal Feiler
    SCRIPT USED
    *RUNALLOCATION       
    *FACTOR=USING*1       
    *DIM CURRENCY WHAT=KL_Q ; WHERE=USD; USING=USD; 
    *DIM COUNTRY WHAT=[ALLOCATION]="y" ; WHERE=<<<; USING=<<<;
    *DIM ACTIVE_INGREDIEN WHAT=[AI_ALLOCATION]="X"; WHERE=[AI_ALLOCATION]="X"; USING=AI_NONE;
    *DIM ACCOUNT WHAT=411113; WHERE=612313; USING=411113;
    *DIM AUDITID WHAT=AD3000; WHERE=AD5130; USING=AD4130; 
    *ENDALLOCATION       
    *COMMIT      

      Vadim,
      Again as before this helped us greatly!
      Another question if I may:
      2) The next step of the calculation is after we search for a price
    based on the entity/country match, if one is not found we go to a second
    pricing table and select based entity and property of the country (e.g. a
    region) that has a new price.
    This means that we could have a conflict between the 2 tables. e.g.
    in the first table we find a match between Entity and country = France or
    country = Holland.
    Now when there's an entry = Greece there's no match in table 1 and
    we go to table 2 to select the Europe price.
    Europe price will now override the first 2 rows from table 1.  How can we build this?
    One thought is to first perform the select on table 2 (region) and
    then override with (table 1) only where it's found? 
    Thoughts?
    Thanks
      Eyal

  • Disable DFF segments based on Responsibility

    Is it possible to disable certain segments of the DFF based on the Responsibility through which they are accessed?
    Suppose I have a DFF on a OA Framework Page. Now the requirement is to have certain fields as readonly/disabled if the page has been accessed using some particular responsibility. I cannot do it through OA Framework as Personalizations would not have an impact on individual segments.
    Any other suggestions are welcome
    Regards
    Sumit

    Sumit,
    You can do that using the security rules like we do for any of the flexfields. Just make to sure to enable the security for the DFF segment and value set if you have any.
    Refer to the thread http://forums.oracle.com/forums/thread.jspa?messageID=2561230&#2561230
    Thanks
    Nagamohan

  • Filter Idoc segment based on date in XSLT map

    Hi,
    In a Idoc to flat file XSLT mapping, I have a requirment to filter segment out of multiple segment occurance in HRMD_A idoc. Idoc has two date fields(actually string data, containing date in YYYYMMDD format) in the segment(end date and start date). I need to filter only one segment from multiple segments where current date falles within start and end dates (end date >= current date >= start date). Then map output fields from the filtered segment.
    Its easy doing it in graphical mapping, but its difficult to use graphical mapping here as the message structure are enormous. I dont have much hands on in XSLT but think many of you have been through this kind of requirement using XSLT. So holding my hope high :). Please suggest a logic for this, will be highly appretiated.
    Regards
    Suman.

    This functions will give you the current date:
    fn:current-dateTime()     => Returns the current dateTime (with timezone)
    fn:current-date()                 => Returns the current date (with timezone)
    fn:current-time()                 => Returns the current time (with timezone)
    To compare:
    fn:compare(comp1,comp2)
    fn:compare(comp1,comp2,collation)
    => Returns -1 if comp1 is less than comp2, 0 if comp1 is equal to comp2, or 1 if comp1 is greater than comp2 (according to the rules of the collation that is used)
    Example: compare('ghi', 'ghi')
    Result: 0
    Also I suggest working with an IF condition like this:
    <xsl:if test="price &gt; 10">
            <tr>
              <td><xsl:value-of select="title"/></td>
              <td><xsl:value-of select="artist"/></td>
            </tr>
          </xsl:if>
    Edited by: Kai Lerch-Baier on Apr 14, 2009 10:21 AM

  • Comparing 2 segments based on the same data

    Hi All,
    I'm using OBIEE 11g and Oracle database. I'm writing a report that compares several measures in 2 populations based on several dimensions (conditions). I tried using prompts, different presentation variables for population 1 and population 2 and using the filter function for each data point in the column formula. The performance is really poor so I'm looking for suggestions.
    I have also tried to split up the two populations into two different reports and to use the built-in OBIEE filters with presentation variables. The problem there is that I need to have conditional formatting or some sort of a flag based on the values of both of the measures of the two populations. I hope I made this clear. Help would be highly appreciated!

    Well, then put the "population" column in the Sections area of the pivot table. Now you have everything in one report and segregated.
    BTW, based on your vague requirements, you have received two correct answers. Before you respond, if my answer is not correct for you, explain in greater detail. For example, if there is something you tried and it didn't work, explain the steps you did. If there was an error message, what was it? Etc., etc.
    It is hard to give but simple advice when the parameters are not clear. If I did solve your problem, then simply mark the post correct so others can reference it when searching for the same answer you sought. Thanks.

  • HV segmentation based on relationships

    Hi,
    We have a requirement of extracting contact of BPs in segmentation while applying marketing attribute filters on BPs.
    How can this be done using HV segmentation, since there is no option of using a function module.
    We are using CRM 7.0 EHP1.
    Thanks,
    Apoorv

    Hi Apoorv,
    One thing you can do in HV segmentation is to use the "convert" operation: You can first build up an organization segment using organizational filters. After you are done with this, you can choose "convert" from the context menu of that segment. This operation builds 2 new segments: one containing all contact person relationships for your organization segment and one with all the entries for which there aren't any relationships maintained in the system. You can now use marketing attribute filters to refine the relationships furthermore.
    hope that helps
    --klaus

  • Segment based on Zones..

    Hi Experts
    As per our configuration now client is able to do the target groups based on the Contry, State.. for this we have define the Data Source BP Address (Origin : INFOSET)
    As per requirement The client will be able to make target groups based by the zones ( East, West, North, South...). How can group the regions to zones. Is there any settings in Infosets or can done in marketing attributs
    Pls suggest me.....

    Hi,
    starting with EhP1 and activated business function CRM_MKT_HVS_1 there is a new feature in the flash-based graphical modeler called 'Advanced Filter'. With an advanced filter you can group several selection values in one filter. The selection criteria of the advanced filter are combined with OR at runtime.
    With this functionality you can group your different regions into one zone filter.
    To create an advanced filter, open the respective attribute list containing the region attribute. Press the menu icon (>>) for the attribute and a popup opens with which you can maintain the advanced filter.
    Best regards,
    Sebastian

  • Delete Outbound Idoc Segment based on target system

    Hello Folks,
    Problem:
    I have extended the sub structure of an idoc for IT0002 with custom field,
    E1P0002
         Q1P0002
              Z1P0002
    Where Z1P0002 has custom fields.
    When the destination system is 'ABCD' - system should allow the idoc
    else
    When destination is other than 'ABCD' - Z1P0002 segment should be deleted and idoc should be sent.
    How can this be achieved, any sample code.

    Use user-exits .
    if edidc-RCVPRN eq 'ABCD'
    process data .
    else
    call FM segment_delete ( use ur parameters )
    endif.
    Edited by: anil sasidharan on Feb 18, 2009 12:40 PM
    Edited by: anil sasidharan on Feb 18, 2009 12:46 PM
    Edited by: anil sasidharan on Feb 18, 2009 12:48 PM

  • Delete Outbound Idoc Segment based on taget system

    Hello Folks,
    Problem:
    I have extended the sub structure of an idoc for IT0002 with custom field,
    E1P0002
         Q1P0002
              Z1P0002
    Where Z1P0002 has custom fields.
    When the destination system is 'ABCD' - system should allow the idoc
    else
    When destination is other than 'ABCD' - Z1P0002 segment should be deleted and idoc should be sent.
    How can this be achieved, any sample code.

    Hi,
        Make use of Segment level filtering in distribution medel (BD64).
    Thanks,
    Asit Purbey

  • Grouping segments based on a value

    Hi,
    I have a scenario like: Idoc to file(s)
    Input format:
    <Idoc>
      <seg1>
        <header1>
           <doc_num>10</doc_num>
            <name>xyz</name>
         </header1>
         <header2>
           <doc_num>20</doc_num>
            <name>xyz</name>
         </header2>
         <header3>
           <doc_num>30</doc_num>
            <name>xyz</name>
         </header3>
      </seg1>
       <seg2>
           <Line1>
             <doc_num>10</doc_num>
              <text>xxxx</text>
            </Line1>
             <Line1>
             <doc_num>10</doc_num>
              <text>zzzz</text>
            </Line1>
            <Line1>
             <doc_num>20</doc_num>
              <text>xxxx</text>
            </Line1>
             <Line1>
             <doc_num>20</doc_num>
              <text>www</text>
            </Line1>
             <Line1>
             <doc_num>30</doc_num>
              <text>aaaa</text>
            </Line1>
       </seg2>
        <seg3>
           <Line2>
             <doc_num>10</doc_num>
              <text>xxxx</text>
            </Line2>
             <Line2>
             <doc_num>10</doc_num>
              <text>zzzz</text>
            </Line2>
            <Line2>
             <doc_num>20</doc_num>
              <text>xxxx</text>
            </Line2>
             <Line2>
             <doc_num>30</doc_num>
              <text>www</text>
            </Line2>
             <Line2>
             <doc_num>30</doc_num>
              <text>aaaa</text>
            </Line2>
       </seg3>
    </Idoc>
    Required output format:
    File1.xml
    <Target>
       <Header>
           <doc_num>10</doc_num>
            <name>xyz</name>
        </Header>
        <Line1>
             <doc_num>10</doc_num>
              <text>xxxx</text>
            </Line1>
             <Line1>
             <doc_num>10</doc_num>
              <text>zzzz</text>
            </Line1>
            <Line2>
             <doc_num>10</doc_num>
              <text>xxxx</text>
            </Line2>
             <Line2>
             <doc_num>10</doc_num>
              <text>zzzz</text>
            </Line2>
    <./Target>
    File2.xml
    <Target>
       <Header>
           <doc_num>20</doc_num>
            <name>xyz</name>
        </Header>
           <Line1>
             <doc_num>20</doc_num>
              <text>xxxx</text>
            </Line1>
             <Line1>
             <doc_num>20</doc_num>
              <text>www</text>
            </Line1>
            <Line2>
             <doc_num>20</doc_num>
              <text>xxxx</text>
            </Line2>
    <./Target>
    File3.xml
    <Target>
       <Header>
           <doc_num>30</doc_num>
            <name>xyz</name>
        </Header>
            <Line1>
             <doc_num>30</doc_num>
              <text>aaaa</text>
            </Line1>
            <Line2>
             <doc_num>30</doc_num>
              <text>www</text>
            </Line2>
             <Line2>
             <doc_num>30</doc_num>
              <text>aaaa</text>
            </Line2>
    <./Target>
    In this way I need to create one xml file for each header type(10,20,30,...) and collect need to collect the line items corresponding to the respective header as shown in the above example.
    Please any one suggest how to achieve this. Helpfull answers are definetly rewarded with points.
    Regards,
    shiva.

    hi
    you are creating the idoc to file scenarios in that you want to xml file for each header
    so you create seprate mapping for each header to the target system.
    because the mapping is done with number of source system with the one target sys
    so you need to do seprate mapping
    thanks
    Regards
    vijay

  • Fill a key segment value based on another.

    Hello.
    Recently my company bought another in a different country. Until now, all companies used the same SOB because all fiscal requirements were the same. For this new company we need to fill the Natural Account Segment of the Accounting Flexfield with the actual set of values but also to register the new required values on another segment. When creating the Accounting Flexfield, we left two “to future use” segments which are not being used. My intention was to automatically fill in this segment based on the values entered on the actual Natural Account segment. Does anyone know if there is a way to achieve this? We are on APPS 11.5.10.2.
    Thanks in advance for any kind help.
    Octavio

    Hi,
    In ProcessFormRequest method we can't set Bean's property as per your requirement.
    But still you can try following programatically. Not sure as I have never tried but give it a shot :)
    In ProcessRequest:
    1. Create a VO dynamically having a transient attribute. Attach this VO to AM of that page.
    2. Create a new row for this VO and set the transient value to "no"
    3. Bind an event (firePartialAction) on the item mapped to 1st segment i.e. your LOV.
    4. Bind a SPEL to Required property for the textInputBox mapped to segment2. SPEL will have the VO you have created in step 1.
    In ProcessFormRequest:
    1. Check for the event of segment1
    2. If yes, Check the value selected.
    2. If this is the value you want textInputBox to set mandatory, set the transient Attribute of VO created in ProcessRequest's Step 1 to "yes".
    Hope it works.
    Thanks,
    Mukesh Uchaniya

Maybe you are looking for

  • How do I move Flagged Photos Event back to original event?

    I made the mistake of thinking that I was making an event from flagged photos within an event.  Instead, it created a Flagged Photos event of photos from ALL my events.  I've read the instructions on how to put them back, but I can't get the events c

  • External hard drive connected to Airport Extreme not working on PC

    I have a Macbook Pro running 10.9.1 and my work laptop, which runs Windows 7. I have a WD 2TB external hard drive connected to my Airport Extreme, with 1TB formatted for Mac and the other 1TB formatted in FAT format. My Macbook can connect to the dri

  • Can't 'print to pdf' from ANY app, it just...

    stops after processing some bytes. As the title says, happens from any app, text, preview, word, safari, firefox... and upon further inspection, distiller crashes when trying to distil a .PS file (generated from indesigncs2) into a pdf. i have tried:

  • AppleTV 1080P

    I am considering buying AppleTV.  My main concern is that from what I have read, AppleTV cannot provide 1080P quality.  With a Samsung 52" TV, it is definitely a concern.  I currently buy Blu-ray movies due to the quality, but would prefer to stream

  • 1Z0-051 exam fee ?

    Does anybody know how much in GBP is the 1Z0-051 exam ?