Mapping the first occurance of condition

HI friends,
I am mapping the 271 Inbound mapping.I am receiving the Multiple EB segment.
Only I need to map the first occurrences of the Segment.
EB*B*IND*30***29*200~
EB*B*IND*88****3~
EB*B*IND*91****3~
EB*B*IND*92****1~
EB*1*IND*MH~
EB*1*IND*82~
EB*1*IND*88~
EB*R*IND*30~
REF*18*098806799M
Condition is if Eb1= B i need to Map EB7 value to copayment field.
this scenario i need to map the value of 200.
Thanks
hk

Hi Friends,
I am able to XSLT for 271 inbound copay amount.But this is XSLT giving the first occurrence of subscriber loop.It not giving the all subscribers for copay amount.Any idea how do we need map all occurances for subscriber loop.
<xsl:if test="(//*[local-name()='EB_SubscriberEligibilityorBenefitInformation'][EB01_EligibilityorBenefitInformation='B'])[1]/EB07_BenefitAmount/text()">
<Co-PaymentAmount><xsl:value-of select="(//*[local-name()='EB_SubscriberEligibilityorBenefitInformation'][EB01_EligibilityorBenefitInformation='B'])[1]/EB07_BenefitAmount/text()"/></Co-PaymentAmount>
</xsl:if>
hk

Similar Messages

  • How to map only the first occurance to the op in graphical mapping

    Hi,
    i have a record whose occurance is ' * '.But to the output i need to only map the value of the field which comes in the first occurance of the record.Can anyone help me in this.its very urgent.
    For ex :
    my input is
    <header>
    <inp1>123</inp1>
    <inp2>hello</inp1>
    </header>
    <header>
    <inp1>456</inp1>
    <inp2>hello</inp1>
    </header>
    To the output field <op1> i have to Map ' inp1 ' field but it has to take the value of the first inp1 i.e "123" only always.Any help on how to do this.
    Thanks in advance,
    Bhargav
    Message was edited by:
            bhargav gundabolu

    Hi Raj,
    My inp structure is:
    <header>
    <inp1>123</inp1>
    <inp2>hello</inp1>
    </header>
    <header>
    <inp1>456</inp1>
    <inp2>hello</inp1>
    </header>
    This has to me mapped to the output structure
    <result>
    </op1>
    </result>
    After Mapping inp1 to op1 my structure should appear as
    <result>
    <op1>123</op1>
    </result>
    <result>
    <op1>123</op1>
    </result>
    where <Header> node is mapped to </result>.As <result> has to appear as many times as Header appears.But the <op1> value has to be same as that of the <inp1> of the first <Header>

  • Find the first occurance of a word

    I have a script which finds and counts ALL occurances of a word.
    I need the script to find the FIRST instance of a word only.
    Can any one please advise how to modify the script to find the first instance of the word?
    Script as follows:
    var numWords = this.getPageNumWords(0);
    for (var i=0; i<numWords; i++)
    var ckWord = this.getPageNthWord(0,i);
    if ( ckWord == "MATERIAL")
    /*Script will go here based on finding the first instance of the word "MATERIAL"*/
    I have tried var CKWord = this.getPageNthWord(0,0); but console reports back is UNDEFINED?

    Thanks for your help.  Script now returns the first occurance of the word "MATERIAL".
    I know have to add to the script to find the SECOND OCCURANCE of the word "ISSUED".
    Can you please advise how I would code the script for this, ie would this have something to do with the break command?
    var numWords = this.getPageNumWords(0);
    for (var i=0; i<numWords; i++)
    var ckWord = this.getPageNthWord(0,i);
    if ( ckWord == "ISSUED")
    var coord = this.mouseX;
    var annot = this.addAnnot({
    page: 0,
    type: "Stamp",
    name: "AppStamp",
    rect: [coord+1000, 2300, 30, 2820],
    rotate: 90,
    AP: "#C94cHAFFa42U1gTH5Tug5C" }); 
    /*break; how can this be modified to break for the second occurance of the word "ISSUED"?*/

  • Macro for first occurance

    Hi,
                  In my planning book I have a row and 12 months for which I want to check a condition and raise alert if the condition is violated. If I have 12 periods and may be 6 months violate the condition, then I need to design a macro such that it only raises alert for the first occurance in those 6 months or the earliest occurance. How can I do this? Can I define a variable that recognizes the first occurance and raise alert then clear the variable.
    Can some one help me with the logic and may be a little detail into the steps, if possible.
    Thanks.

    You can define a layout variable (assume variable name is X) that say can be initialized to a value of 0. then you can define a conditional statement where if variable value of X is 0 and also if the condition you are looking for is satisfied, set the layout variable value to 1. Finally after looping through the time buckets if the layout variable value is 1, you can raise the custom alert.

  • When I try to map faders to the volume in audio tracks it only lets me map the "selected track"

    LogicX user. I'm trying to map my mpd32's faders up with four audio tracks to control their volume. For the first three tracks, I can map the faders accordingly, and in the Controller Assignments window, in the "channel strip" section on the right, they all say "fader bank (1-3)", which is correct. When I get to the fourth audio track, and I go through the same steps as I have to map the first three audio tracks, the channel strip section says "selected track: 1" instead of what I thought it would say: "fader bank 4". When I try and manually change that to "fader bank 4", I move the control that I want it to be mapped to, it and the text automatically switches back to saying "selected track 1". I made sure that none of the tracks that I was trying to map were selected before I did this. I'm not new to logic by any means but I seriously need to be able to control these all at the same time for a performance I'm trying to do soon. It is driving me ******* crazy.

    David Boroditsky wrote:
    The problem is that the mac chokes on having 2 identical mics attached at the same time.
    Ive had 2 identical USB AT2020 mics connected at the same time on both macbook pro and macbook Air.
    The "Yeti" mics, are, lets say undesirable, and low to mid computer consumer mics.

  • How to Map the parameters in GP interface?

    Hello All ,
    I have 2 callable objects in two different actions for same Block. How to map the first callable object output to input of second callable object ??
    Please give the clear details.
    Thanks
    Risha

    Hello,
    Goto the Block -> Parameters tab....select the 2 parameters ...click on Group button .....give a name to it and click 'Create Group' button.....
    Regards,
    Shikhil

  • Map the second occurrence of IDOC

    Hi All,
            i have been facing problem to map the second occurences of IDOC to target field.Ex:IDOC[02]-field1.
    In the mapping for source i have specifed IDOC and generated advanced used defined function and mapped to target field. But i have entered the value in field1 ex: field1. the values not came in IDOC.i have checked in DISPLAY Queue also.if i map field1 i have received these values. But field1 contains occurences of 0..1. so i am getting error in used defined funtion.
         Please guide me.

    Ok, This is a bit clearer.
    you want to send <u>only the Description item</u> from the source message.
    question:
    1)Is it possible to have more then 2 items like and would and will you need them as well?:
    E1MARAEXTRT[01]-FIELD1- vALUE
    E1MARAEXTRT[02]-FIELD1- DESCRIPTION.
    <b>E1MARAEXTRT[03]-FIELD1- BLABLABLA</b>
    2)Is the <b>DESCRIPTION</b> you wrote is a name of a segment ?is it a visible value that can be used for the mapping?
    You can try to use the graphical\own java function mapping to one of  the following actions:
    - concatenate the two fields into one and map them to the target field (decide what you wanna do with the value prefix..)
    -write a java mapping program or XSLT to map the desired node with condition on the number of nodes.
    Don't give up.
    Nimrod

  • Regex and matcher only returns the first match

    Hi all.
    Im trying to rewrite some code and im using a regular expression to grab data out of a css formatted file, but im getting a bit confused. My matcher is only finding the first occurance of my pattern, how do i get it to find all occurances of my pattern?
    here is a sample css file
    .header
    font-family:arial, verdana;
    font-weight:bold;
    color:#ff00ff;
    background-image:url(background.jpg);
    .mainBody
    font-weight: bold;
    color: Red;
    padding 0px;
    }and here is my matcher code
    tstr = tstr.replaceAll("\\\\","/");
    tstr = tstr.replaceAll("\\n","");
    tstr = tstr.replaceAll("\\r","");
    Pattern styleFind=Pattern.compile("^\\.?[\\w\\s\\W]+?\\{.*?\\}",Pattern.DOTALL | Pattern.MULTILINE);
    Matcher styleMatch=styleFind.matcher(tstr);
    while(styleMatch.find())
    System.out.println("[A]"+styleMatch.group());
    }     i thought that if i did while(macther.find) then it would keep looping through finding all of the matches, but it is only finding the first match.
    any ideas what im doing wrong?

    tstr = tstr.replaceAll("\\\\","/");
    tstr = tstr.replaceAll("\\n","");
    tstr = tstr.replaceAll("\\r","");
    Pattern
    styleFind=Pattern.compile("^\\.?[\\w\\s\\W]+?\\{.*?\\}", Pattern.DOTALL | Pattern.MULTILINE);
    Matcher styleMatch=styleFind.matcher(tstr); You do MULTILINE despite the fact that you delete all end of line characters first. The '^' matches only at the very beginning of the input.
    Apart from that I would prefer "[^\\}]" anytime ofer ".*?\\}", because what you want is a shortest match which often turns out not to be the same as a non-greedy match.
    Harald.
    Java Text Crunching: http://www.ebi.ac.uk/Rebholz-srv/whatizit/software

  • Get first occurance of records in a group

    Hello,
    I have a query that I'm trying to get the first occurance of each item grouping when an item changes.  However, the is grouping all similar items together. For example;
    Select LocationNumber, ShelfNumber, item, recvDate,
    ROW_NUMBER() over (partition by item order by LocationNumber, ShelfNumber, recvDate) as roworder
    The query returns something like:
    LocationNumber, ShelfNumber, item, recvDate, Roworder
    1                         1                 123  
    01/6/14 16:38:00        3
    1                         1                 123  
    01/04/14 05:35:15      2
    1                         1                 456   01/03/14
    07:18:23       1
    1                         1                 123  
    01/01/14 08:25:15      1
    When I grab all the row_numbers  = 1 this will give me 2 records (should be 3). 
    The query needs have the row_number start over whenever an item changes.  In this case there should be 3 records returned.  How would I do this? for example:
    LocationNumber, ShelfNumber, item, recvDate, Roworder
    1                         1                 123  
    01/6/14 16:38:00      2
    1                         1                 123  
    01/04/14 05:35:15       1
    1                         1                 456  
    01/03/14 07:18:23       1
    1                         1                 123  
    01/01/14 08:25:15       1
    Thanks in advance!

    This is a "gaps and islands" problem.  You can google that term for lots of good info about this type of problem and how to solve them.  One way for your problem would be:
    Declare @SampleTable Table (LocationNumber int, ShelfNumber int, item int, recvDate datetime);
    Insert @SampleTable(LocationNumber, ShelfNumber, item, recvDate) Values
    (1, 1, 123, '01/6/14 16:38:00'),
    (1, 1, 123, '01/04/14 05:35:15'),
    (1, 1, 456, '01/03/14 07:18:23'),
    (1, 1, 123, '01/01/14 08:25:15');
    ;With cte As
    (Select LocationNumber, ShelfNumber, item, recvDate,
    Row_Number() Over (Partition By LocationNumber, ShelfNumber Order By recvDate)
    - Row_Number() Over (Partition By LocationNumber, ShelfNumber, item Order By recvDate) As Island
    From @SampleTable)
    Select LocationNumber, ShelfNumber, item, Min(recvDate) As recvDate
    From cte
    Group By LocationNumber, ShelfNumber, item, Island;
    Tom

  • First Occurance

    Post Author: tbrack
    CA Forum: Formula
    Hello all,
    I am using Crystal Reports 9 and have a report that accepts two parms Begin and End Number and returns the rows of data within that range.
    However, in the report the customer now wants to return only the first occurance of a field in the dataset and the last occurance.
    For example I have four records that are returned in a range for a particular key that is grouped.  Lets say 20071201, 20080301, 20080302, 20080303.
    the type in Range was 20071201 and 20080308
    Of the range, there is no value for the first key but a value for each of the last three. So, Null 10, 20, 30. Right now the formula which I have to use, is returning 0 and 40. It needs to return 10 and 30. I used this if {?Begin Folio Number} = {METER_HISTORY.FOLIO_NUMBER} THEN       x := {METER_HISTORY.BOD_GROSS_TOTALIZER} for my begin number field formula. I'll need to do the end also for the last occurance in the range.
    Any help is most appriected.
    tom

    Post Author: Jagan
    CA Forum: Formula
    "However, in the report the customer now wants to return only the first occurance of a field in the dataset and the last occurance.For example I have four records that are returned in a range for a particular key that is grouped."
    So does that mean that you only want to show the first and last records of each grouped key?Ensure records within the group are ordered and print in the group header & footer instead of the details.You'll just need to ensure you don't print one record twice if there's only one in the group, e.g. suppress footer if count(field,group) = 1

  • First occurance of a string in a variable

    Hi experts,
    How can I find the first occurance of the following characters '_S' in a string. I need the first occurance counting it from the end of the string.

    Hi,
    try this:
    data: str type string.
    str = 'hs_Sgdtensfdg_Shxgxg'.
    search str for '_S'.
    if sy-subrc = 0.
      write: / 'found at:', sy-fdpos.
    endif.
    Regards, Dieter
    Better is to use:
    find '_S' in str.
    instead of
    search str for '_S'.
    Look in the Docu of search / find.
    Regards, Dieter
    Edited by: Dieter Gröhn on Jul 8, 2008 11:22 AM

  • How to call the second mapping in the first mapping fails in the BPM

    Hi All,
    I have a scenario like this.
    There are two mappings. There is a one condition while genearying the root element of the first mapping. If this condition is not satisfies the first mapping will fail. If this mapping fails i want to trigger another mapping.
    How to achieve this functionality.
    If it is possible with BPM. how to call the second mapping in the BPM.

    Hi
    you can not create the containter for the synchronous interfaces.
    you have to craete the two asysnchronous abstact interfaces .
    thenusing those two abstract interfaces you have to define the containers in the BPM.
    and you also have to define the interface mapping b/w those two abstract interfaces.
    once you define the interface mapping you will be able to select the interface mapping using the transformation step in BPM.
    once you select the interface mapping in BPM then you will be able to selece the interfaces
    if you still face the problenm please reply me back.
    Thanks
    Rinku Gangwnau

  • Error 1055 occurred at Property Node, only the FIRST TIME I run the VI

    hi !
    I'm managing some object properties with 2 subVIs,
    so I send to the first one a number and a cluster which contains the objects references, so that it controls the "visible" property depending on the number,
    and I send to the second one the previous cluster and an other cluster which contain the objects data, so that it controls the data depending on some parameters.
    VI is better than explaination, so find it attached !
    at the first time you'll run it, the error occurs, so click "stop" button, and run it again, no error, and you'll understand the way it works.
    To fond the error again, just close it completely and re-open it.
    (I built an example VI as close as possible to my real VI, and I get the same error, so I attached only the example)
    hope you'll understand (if no I can explain better)
    thanks a lot.
    Attachments:
    tests erreurs.zip ‏57 KB

    yoz'st wrote:
    smercurio_fc a écrit :
    You have to write to the control/indicator the local variable points to.
    sorry but I don't really understand this... (I'm french).
    A local variable points to a control or indicator. To "initialize" it you have to write a value to it. Or, you can set the value of the control/indicator to a default value.
    I tried to use globals, but the same error occurs...
    Of course it will. Because you're not understanding that you have a race condition. http://en.wikipedia.org/wiki/Race_condition

  • Conditional formula to supress a section in the first page of the report

    hi all,
    how to programatically add a conditional formula to supress a section only on the first page of the report.
    i am using CR XI R2 RAS server.
    thanks in advance
    Padmanaban V

    Hi Padmanaban,
    You can download samples from [here|https://www.sdn.sap.com/irj/boc/businessobjects-samples]
    Regards,
    Shweta

  • An error has occurred while accessing SQL database or system resources. If this is the first time you have seen this message, please try again later. If this problem persists, please contact your administrator.

    I have SP Server 2010, and when I try to DELETE a rule within an existing Audience, "Property (Account Name) = domain/username", I get this error, "An error has occurred while accessing SQL database or system resources. If this
    is the first time you have seen this message, please try again later. If this
    problem persists, please contact your administrator."  When I try to "MODIFY" the rule I get this error, "One or more values typed on this page are not valid. Check the text for the indicated fields." 
    The last time I checked it was working, I'm not aware of any new updates installed recently?  I did a full Profile Synchronization as well, but still not working, please advise? -- Evenstarline

    Hi Sara,
    First of all thank you very much for your prompt responses. Here are my comments to each of your suggestions below, and just to let you know I am using a Farm Admin account.  I
    was able to do this way after we upgraded from SP 2007 to SP 2010 as well.   I would like to mention I'm not a SP expert, just been given the responsibility due to another person handling it just left, so apologize with some of
    my novice questions below?
    1. When I change the Operators to "Contains" or "Not Contains" get generates this error below.
         Error generating in red towards top of the audience page..."One or more values typed on this page are not valid.  Check the text for the indicated fields."
         Error occurred where you enter your "Value"..."Could not resolve the user identity. Please re-enter the account name."
    2. We have a 3-server-tier topology (SPWeb, SPDB, and SPFarm).  Does the updates only apply to where the Central Admin is installed, which is the "SPFarm"?  I checked all
    3 servers, and NONE of the updates (KB2899494, KB2889845, and KB2883055) you'd mentioned are installed.
    3. I'm new to IISRET, I need to be extra cautious of what I run in production, is this safe to run with no problem?  What does it do?  And How do I run it?
    4. I'm also new to viewing the ULS log.  I'd just downloaded a viewer for it.  I'm assuming the only logs I need to be concern with viewing are within the SPAdmin (where Central
    Admin is installed)?  There's so many of them, what should I be looking for exactly?
    Evenstarline 

Maybe you are looking for

  • Help required with DAQ and waveform generation

    Hi, I'm using DAQ 6024E card for waveform acquisition using LabVIEW 8.2 version. I've also attached my vi for your reference. My next step is , I want to add another waveform to the acquired waveform, i.e. I mean to say if the acquired waveform is a

  • Regarding Subcontracting Challan:

    Dear SAP  Gurus., One  Purchase order (Subcontract ) created with two Parent items (Say suppose A, B) (  Parent Item  A----> Child Componet (despatched to subcontractor)   X    Parent Item  B----> Child Componet (despatched to subcontractor)   Y) Des

  • Replenishment Control / Follow-on Document

    Hi How can I associate a kind of purchase requisition to be the follow-on document in Replenishment Control? It works fine whith the standard but I need to use the new one I've created. Thanks, Patrício

  • Installing HP Photosmart B210 (network) fails - posts error 'The Printer Installati​on Failed'

    Hi - I have an HP Pavilion Elite HPE on a home network containing a wireless HP Photosmart B210 printer/scanner.  This setup has been working for >1.5 years, then about 2 wks ago, I couldn't print from any application.  Win7 would post 'cannot commun

  • New Smart Album problems PSE9 Mac OSX

    I am running PSE9 on a Macbook Pro and an Imac, both using Mac OSX. Creating a new Smart Album on the Macbook works perfectly but on the Imac it is unworkable. When I try to create a new Smart Album I just get a spinning ball and everything stops. I