Message bundling issue

Hi all,
      I have a unbounded message with the following structure
     messagename(unbounded)
     Header
       element1
     LineItem
     Item(unbounded)
       orderno
       lineitemno
     ex:
   message'1'
   Header
      a
   Lineitem
   item
      1(ordnum)
      10(lineitem)
message'2'
   Header
      a
   Lineitem
   item
      2(ordnum)
      10(lineitem)
message'3'
   Header
      a
   Lineitem
   item
      1
      20
Now , I want to group the message with the same order number.(messages 1 and 3)
The desired result woud be like,
       message'result'.
       Header
          a
       Lineitem
       item
         1
         10
       item
         1
         20
Can somebody help me in grouping this.
Thanks in advance,
  sudha.

Hi sravya,
   If i have a remove context between the ordernumber and the header, then a message is produced for every occurence of ordernumber.I dont want that to happen.
   I want a message to be produced for every change in value of the ordernumber.
Thanks.
sudha.

Similar Messages

  • Localized Data Model Message Bundle

    When you use the Validations in the Entity Objects of a data model and you place text for the text, errors, etc...it creates a MsgBundle for that class. Then for other languages you can create additional message bundle (e.g. MsgBundle_it, for italian) files for additional languages.
    My question is how does the data model layer find the locale for the user? So when it issues a data model validation error, how does it know to use the italian version instead of the default, english one?
    Also, I should add that I don't have access to the FacesContext and my Data Model project cannot be dependant on the ViewController object. So I cannot get the locale in the same fashion that I'm doing for my applications (i.e. get translated text for adf faces messages).
    Message was edited by:
    Kerri

    Hi Heri,
    the system behavior is correct. The account in company code consists of three entity types:
    1) COA - Chart of Accounts (Type 3)
    2) ACCOUNT - Account (A-Segment, related to ECC table SKA1, Type 1)
    3) ACCCCDET - Account in Company Code (B-Segment, releated to ECC table SKB1, Type 1).
    3) includes 1) and 2) whereas 2) includes 1). If you grant authorization only for 3) but not for 1) and 2), you cannot do anything.
    Best regards
    Michael

  • Error message customization issues

    Hi ppl,
    This is with regards to the issue with customization error messages, I have already gone through the following,but haven't been able to achieve what i want:-
    "Chapter 8.2-8.3" "Business Rules in ADF Business Components".( white paper )
    ADF Faces: How suppress item validation on partial submit ( Frank's blog entry )
    So im extremely dull or have been looking at the wrong place ( or both :( )
    my jdev version :-10.1.3
    My use case is follows, extremely simple form page for creating a user log in along with other information like passwords,description etc.
    I have certain basic validations
    -should contain one numeric
    -must not be less than 8 charecters etc
    i can do the following:-
    make my own customized message bundle and successfully throw it when my custom method validator fails , i do so by using the command:-
    throw new AdminJboException (AdminMsgBundle.USER_ID_NO_SPACE,params);
    where AdminMsgBundle is my customized bundle message class and AdminJboException is a custom class that extends JBo exception ( for conveniance ).
    What i can't do is this :-
    my error logs:-
    JBO-27024: Failed to validate a row with key null of type ........
    User Id cannot contain spaces ( my validation message )
    User ID - JBO-27025: Failed to validate attribute UserId with value .....
    User ID - JBO-27014: Attribute UserId in AdminAppModule.UserViewObj is required
    At validation ( i presume at validateEntity() ), my exception gets thrown ), but before that the JBO-27024 gets thrown (because the data doesnt get validated and hence not stored and hence null), following which the required error is thrown , following which the 27025 and 27014 are thrown. Is there anyway i can suppress the JBO default error messages ONLY when i know for sure that my validation error message has been thrown. I was able to suppress the JBO-27014 exception altogether from the EntityModelImpl ( out of frustration ) , and it worked , but obviously it hampered proper functioning in other areas.
    My question is :--
    Which is the simplest cleanest way of throwing only your customized message and ignoring the default JBO ones when your exception is thrown , and letting things go normally if your customized exception is not thrown... ?
    P.S i can even override the "content" of the message being thrown from 27014 etc, but thats not what i want .
    Thanks in advance !

    See the following set of topics in the Online Help:
    Developing Business Components
    Working with View Objects, View Links, Application Modules and Clients
    Creating and MOdifying View Object, View Links and Application Modules
    Ways to Handle Errors

  • Generator Locales and Entity Message Bundles

    I'm using 7 different languages within my application and have set the Internationalization entries within the JHeadstart Application Definition Editor to use a propertyFile and I have supplied all the relevant generator locales. That is all working fine. My confusion now lies with the generation of MsgBundles when creating validation rules on an entity attribute. On doing that a EntityImplMsgBundle java class is created but only for the default locale.
    1. Is there an easy way to generate the different localised entity MsgBundles
    2. better still, how can I change the entity validation to use my JHeadstart generarted property files rather than a MsgBundle java class ? I thought I may be able to copy the rule name and message over to my properties file and then delete the MsgBundle but I can't seem to delete the MsgBundle
    Many thanks for your help. Cheers,
    Brent

    Brent,
    1. No, you have to manually create those files
    2. Not possible either, even if you do not use declarative validation but do it in code and throw a JboException, the message bundle must be a java class.
    I believe that in JDev 11, you can have centralized resource bundles, like in JHeadstart.
    You might try the JDev forum for better alternatives though, since these are really ADF BC specific issues.
    Steven Davelaar,
    JHeadstart team,

  • When do you need to register the message bundle in the faces-config

    hello
    i have applied two examples to localize messages, label, title by creating message.properties file and utilizing the f:loadbundle component the EL expression. It works like a charm without having to register anything, I have only registered the locale, but not the bundle
    also , i have used a programmatic approach
    FacesContext fc = FacesContext.getCurrentInstance();
    ResourceBundle msg = ResourceBundle.getBundle("message",fc.getViewRoot().getLocale());
    fc.addMessage(FacesMessage.SEVERITY_FATAL.toString(),new FacesMessage(msg.getString("ok")));
    which also worked without registering the message bundle!!
    although many article i read ask to register the message bundle.
    Another thing is that in Oracle Jdeveloper 10g for FORMS and PL/SQL Developers states that the message file needs to be located in \resource subdirectory
    and using getBundle (resources.message) to get it. In fact i kept getting errors indicating that the base bundle cannot be read until i located the file in the ViewContoller directory itself (and that is why i reference it with getBundle("message") rather than resources.message as indicated in the book.
    appreciate your response
    ammar sajdi
    amman - jordan

    Hi,
    Your question is not very clear. But let get through some various guideline.
    <f:loadBundle/> is horribly buggy and was all but removed from the specification. As a tag, it gets only evaluated during the render view phase, meaning that if you have EL expression referring the loadBundle's var during another phase, it's going to fail. The most common case is during validation with overridden messages.
    About the programmatic access, the problem is that you're linking your application to a specific bundle at code level. Meaning that you're preventing it to be reused in a different context, while the following get the most application local bundle name (faces-config.xml's message-bundle property)
    Resourcebundle.getBundle(FacesContext.getApplication().getMessageBundle())Registration is also the only way to override the default conversion / validation messages.
    For JSF 1.1 (10g), those are your option. However, if you're using JSF 1.2 (11g), you can also register resource bundles in the faces-config file, you then register the bundle and the var associated to it, removing the need of f:loadBundle and fixing the non render phase issues. furthermore, the code version is also simplified to:
    FacesContext context = FacesContext.getCurrentInstance();
    ResourceBundle bundle = context.getApplication().getResourceBundle(context, "varName");
    bundle.getString("myKey");You other part about \resource I never heard of nor cared for. You can place the bundle where you like on the classpath.
    Regards,
    ~ Simon

  • Canceling or removing the $10 messaging bundle

    So a couple weeks ago I used a 10 dollar message bundle card, yesterday i added a $15 verizon refil card to my cell phone and the amount that showed up was only 5 dollars, i want my full $15 on my acount and the messaging bundle removed. HELP ME PLEASE!!!!!

    You probably need to call prepaid CS to see if they can correct the issue.  You can dial *611 from your prepaid handset to reach them.

  • How do I use a bean to determine which message bundle value to use?

    Is there a way to use a bean to determine which message from my message bundle I use? I want to be able to call my bean in JSF/JSP page, have the bean return a String, and use that String to pick a message from my message bundle properties file. Now I can do this:
    <h:outputText value="#{bundle.messageA}" />or this:
    <h:outputText value="#{bean.messageName}" />where I have a method on the bean like this:
    public String getMessageName(){
         if(someTest == true){
              return "messageA";
         } else {
              return "messageB";
    }I want to combine the two so my bean determines which message I pick. I want to do this because I want to keep all the text a user sees in the message bundle file. However, based on the state of the bean, I want to display different messages.
    Thanks in advance,

    Ah this way. So you want that much of nasty if statements in the bean instead? ;)
    Then make use of the fact that you also can access Map values using the brace notation. E.g.
    <h:outputText value="#{bundle[bean.messageKey]}"/>Where getMessageKey() returns the message key, e.g. 'messageA' or 'messageB' and so on.

  • How to specify multiple message bundles in faces-config.xml

    Hi
    I have different properties file which I want to use as message bundle.
    Message.properties
    Help.properties
    When I specify this in faces-config.xml
    <application>
    <message-bundle>/Message</message-bundle>
    <message-bundle>/Help</message-bundle>
    </application>
    and now when I try to use that in my jsp page like this
    <f:loadBundle basename="/Message" var="message"/>
    <f:loadBundle basename="/Help" var="help"/>
    and access any messagestring from those files I can not excess either of them. But when I use only one of them it works fine.
    Am I doing something wrong or I can not do this thing at all??
    Thanks in advance.

    I only specify one properties file in the <application> tag. That one is used for system messages. I have other properties files for labels, and another for just standard app text, so in my faces-config.xml I have something like this:
    <application>
    <message-bundle>message</message-bundle>
    <locale-config>
    <default-locale>en</default-locale>
    </locale-config>
    </application>
    where my message.properties is used for system messages (validation, etc).
    I don't list the other property files there. I have two more that I use, labels_en.properties, and standard_en.properties. Labels are words that have a : at the end or a *: for required fields. Standard are just other words that I use in my application. So on every page that I have, I start out with the following header:
    <html>
    <f:view locale="en_US">
    <head>
    <f:loadBundle basename="label" var="label"/>
    <f:loadBundle basename="standard" var="standard"/>
    <title>
    .....

  • WHAT ALL MESSAGE'S ISSUED WHILE CREATING PO

    Sir,
    ply let me know after saving the po i want to know what all messages were issued while creating the po.
    Like "warning" or "information" message
    where  can i see this
    regards
    amey

    Hi,
    PAth- Spro-MM-Purchasing-Environment Data-Define Attributes of System Messages...
    Here are few message type:
    Contract has different purchasing organization &     W
    Validity period of contract does not start until &     W
    Validity period of contract expired on &     W
    Target value of contract & exceeded by & &     W
    Net price for item & taken from conditions     W
    Purchase requisition & item & already deleted     W
    Scheduled quantity & & greater than target quantity & &     W
    Quantity smaller than invoiced quantity &     W
    Target quantity exceeded by  & &     W
    Not possible to determine a consumption account     W
    Release date lies in the past     W
    Base unit of measure & adopted from material master record
    Release date: next workday is &     W
    Contract target value & reached     W
    Please only use plants with company code &
    Order unit copied from material master record     W
    Hope it helps.
    Utsav..

  • Duplicate Message ID issue in case of Multi mapping (without BPM)

    Hi Experts,
    I am doing one sample Example for my requirement of converting the single source message data into the multiple Target messages.
    for example, when sender system is sending the 5 sale order details into a single message in PI then my Inbound proxy class of ECC R/3 receiver system must get this sale orders separately, that means inbound proxy class method must be triggered separately for 5 sale orders from sender system. for achieving this, I have used the Multi mapping concept in ESR (without BPM).
    This scenario is in Asynchronous mode.
    The below screen shots give the details on what I have configures so far.
    IN ESR
    IN ID
    IN SXMB_MONI of PI
    IN SXMB_MONI of ECC R/3 Receiver system (Error in Processing)
    due to this error, inbound Proxy class method is not being triggered for the single Sale order details as well,
    please let me know how to tackle this duplicate message ID issue when we have multiple payloads to process in a single message.
    please also let me know if is there any other workaround to fulfil this requirement.
    Thank you,
    Regards,
    Jagesh

    Hi Nunu,
    Check the below blog for restrictions.
    Multi-Mapping without BPM - Yes, it’s possible!
    Restrictions
    Messages that result from the split in a mapping-based message split are sent using one AE. So only adapters running on the AE are supported. In particular, this means that target IDOC message splits are not supported since the IDOC adapter is not part of the AE.
    Regards,
    Praveen.

  • Message Bundling in BPM

    Hi All,
    I am trying to work on this Scenario for Message Bundling in BPM. The Scenario is i try to collect Idocs in BPM and after 3 IDocs from R/3, BPM will merge all the 3 into one message and send this message to a flat file.
    Now the problem is, though it shows Success message in SXMB_MONI, i dont get the output File.It doesnt even show the messages for my scenario in Runtime Workbench.
    Can somebody pl. guide me on this .
    Thanks,
    Ruchi

    Hi,
    I was trying to work on this Scenario for Message Bundling in BPM. The Scenario is i try to collect Idocs in BPM and after 3 IDocs from R/3, BPM will merge all the 3 into one message and send this message to a flat file.
    After checking it inot SXMB_MONI_BPE i could find out the error....
    <i>Bhavesh: Like you said there was an error in Variable assignment.</i>
    But now the problem is , of 3 messages i only get one record in the Output Response file....
    In SXMB_MONI , it shows <i>'Message is being sent'</i> for the other two.
    I checked the PE for that,it doesnt show any error in the Workflow log...but for the first message it shows the complete workflow and for the other two its showing in the processing mode..
    If anybody can guide me more on this..
    Thanks,
    Ruchi

  • Message bundles accessed from JSF and JSP pages

    Hello, everybody!
    I'm developing a localized JSF application. It is working pretty well until now.
    These are my message files:
    mensagens.properties
    mensagens_en_US.propertiesThis is how they're configured in faces-config.xml:
    <application>
        <resource-bundle>
            <base-name>br.urca.www.biblioteca.web.mensagens</base-name>
            <var>msg</var>
        </resource-bundle>
    </application>And this is how I access the messages in a page:
    <h:outputText value="#{msg.titulo}" />Nothing new until now. But now there was a need for me to have a raw jsp page in
    my web application. This page is displaying ok but I also need to access the
    message bundles as I'm able to access in the normal jsp with the JSF components.
    As you should know I can't use something like the above code with an +<h:outputText>+
    to access the messages because this is a JSF component and I'll not be able to use
    JSF components with this raw jsp page.
    So, my question is: how do I access my localized messages from a raw jsp page? I
    suppose there should be a way to do this, but unfortunately I started programming
    to the web world in Java with JSF, not JSP, so I don't know how to do this with
    JSP.
    Thank you very much.
    Marcos

    BalusC wrote:
    Just include [jstl-1.2.jar|https://maven-repository.dev.java.net/repository/jstl/jars/] in your classpath and define the fmt taglib in your JSP. Nothing more is needed.
    Hello, BalusC. Thank you for your help. We're almost there. After I have included the jstl-1.2.jar you provided me I can use the fmt tag and access message bundles from my raw jsp page (even though I had to provide other message bundles instead of the ones that I use in the other jsf pages, but it's better than nothing).
    Now there just on problem to be fixed. The jsp page is not aware when I change the locale of my application. I change this locale in a jsf page.
    I have this component:
    <h:selectOneMenu value="#{pesquisaAcervo.idiomaAplicacao}"
        valueChangeListener="# {pesquisaAcervo.idiomaAplicacaoMudado}" onchange="submit();">
        <f:selectItems value="#{pesquisaAcervo.idiomasAplicacao}" />
    </h:selectOneMenu>that calls this event in my backing bean class:
    public void idiomaAplicacaoMudado(ValueChangeEvent e)
        fIdiomaAplicacao.liberarItens();
        Idioma idioma = Idioma.deString(e.getNewValue().toString());
        // This line is for JSF
        FacesContext.getCurrentInstance().getViewRoot().setLocale(idioma.localidade());
        // This line is for Tiles
        FacesContext.getCurrentInstance().getExternalContext().getSessionMap().
            put(org.apache.tiles.locale.impl.DefaultLocaleResolver.LOCALE_KEY, idioma.localidade());
    }So, do I have to include another line in the idiomaAplicacaoMudado event above in order for the jsp page load the correct resource bundle? Or what else do I have to do?
    Thank you.
    Marcos

  • Argh! Message bundle file names are not allowed to have dots???

    It took me several hours to find the reason for this exception:
    java.util.MissingResourceException: Can't find bundle for base name properties\com.domain.prj.huj.MainApp.Messages, locale de_DE
         at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)If the message bundle name contains dots (package separators), this exception is thrown! When I remove the dots, it works. But even the javadoc for ResourceBundle.getBundle() says that the baseName parameter is " the base name of the resource bundle, a fully qualified class name ".
    Is it not possible to have the message bundle file names containing dots (i.e. package declarations with class names)?

    Nope. Periods are used to delimit packages in the basename. So given:
    "com.domain.prj.huj.MainApp.Messages",
    ResourceBundle will look for "com/domain/prj/hui/MainApp/Message[_local][.class|.properties]" on the class path (ie, in jars etc).
    I've just had to implement an alternate RB factory to deal with legacy property files which contain periods. If you are starting from scratch, don't put in periods.

  • Message Bundle class not found

    Hello,
    i'm using JDev 10.1.3.3, and creating ADF BC application. When i've created the jspx page, went to it's Page Definition, and in Structure editor tried to add the Message Bundle file to this page - selected the "Generate Resource Bundle" from the context menu - i'm getting error "Class ...app_XXXPageDefMsgBundle not found" .
    Other pages in application got the same error.
    How can i solve this problem?

    And in the same time, Message Bundle classes for Entity Objects (XXXRowImplMsgBundle.java) are generating well, without any errors.

  • Errors Message while issuing the material in MB1A i.e unrestricted material

    Hi Expert,
    I want know the Message while issuing the material in MB1A we are getting the error unrestricted material, so what is the reason of error.(i.e there is no stock available or any other give me the reply as soon as possible)
    Regards,
    Ram Rathode

    You are not clear. What is the error message that you get?

Maybe you are looking for

  • Help with Firewall and Internet Sharing

    I'm trying to use my Mac Mini with an Airport Extreme card, which is connected to the internet using Siemens Speedstream 4100 DSL modem, for Internet Sharing with a Windows (work) laptop. So, in the Sharing preferences panel: Share connection from: B

  • Layout change in output

    I am importing word documents into RoboHelp for my project. These files have a topic and a few tabs after on the same line it contains some more information (Example: anemia 10 points). When I generate the output, the space between the information is

  • Mail preview pane filling up with unnecessary info !

    "Crossed over" to Macbook and loving it, but... having set up Mac Mail with my Gmail account, I find that the preview pane for each message has dozens of lines of routing information before it gets to the actual email content. For example, 10 lines h

  • My Mail is not working properly after installing Lion

    I just installed Lion and my mail is not working.  It keeps asking me for the password and says it can not go online.  All my mail folders have disapeard and with them my saved emails!  Also the Back to Mac is not able to take my password either.

  • HT1451 Can't open iTunes.  Any suggestions on how to fix?

    The statement comes up: The file "iTunes Library.itl cannot be read because it was created by a newer version of iTunes. Any suggestions how to fix?