Using utf-8 in jsp with resource bundle files(Farsi Language) Help !

Hi,
I am using jdeveloper and struts and i have a resourcce bundle file that i am writing in Farsi in it.
my jsp looks like this :
<%@ page contentType="text/html;charset=UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<html:form action="IndexAction.do" method="POST" enctype="UTF-8">
<% request.setCharacterEncoding("UTF-8");%>
<bean:message key="button.add" /><!-- i get the key from the bundle here-->
i have saved the bundle file in utf-8 and i have tried native2ascii on it as well.
i also have response.setContentType("text/html; charset=UTF-8"); in my action file.my browser setting is also utf-8.
but still i get garbage chars in jsp.
any idea ?
thax
reza

hello
i have problem whit write farsi in jsp.
the charecter is destroy.
please help me.
thanks

Similar Messages

  • Java: Loading Resource Bundle File with UTF-8

    I have found out all my previous problems now, thank you all for your assitance with this...
    During the time we have worked so solve our problem with UTF-8 charset we have found new problem with this?
    I don't know if this is the right forum to put this up, if not please let us know where to go with this?
    I have prepared both Eclipse (JSP Files) and GlassFish to run all my files in charset UTF-8. Then i got my
    resource bundle files(property files) to use UTF-8 encoding. Everything looks fine in my text editor. Then
    when i upload these pages every character retrieved from my resource bundles look garbled. This is because
    Java loads property files using ISO 8859-1 character encoding.
    This is a problem from Sun i have read on the internet!
    Note: that in JDK 1.6, you can use PropertyResourceBundle constructor to take a Reader which uses UTF-8 encoding.
    please have a look at these links for more info:
    [http://www.kai-mai.com/node/128]
    [http://java.sun.com/javase/6/docs/api/java/util/PropertyResourceBundle.html]
    Note: PropertyResourceBundle can be constructed either from an InputStream or a Reader, which represents a property file.
    Constructing a PropertyResourceBundle instance from an InputStream requires that the input stream be encoded in ISO-8859-1.
    In that case, characters that cannot be represented in ISO-8859-1 encoding must be represented by Unicode Escapes,
    whereas the other constructor which takes a Reader does not have that limitation.
    What i have read and understand is that the real solution to the problem is: Get the fmt lib to use a Reader instead of an
    InputStream. Alternativly if it works get a ResourceBundle instead of creating one that is wrong all the time? I have to create
    my own ResourceBundle instead of using my own fmt lib wich i cannot trust in a way any more. Is this right or am i comletly wrong?
    My WebTexts files, en, sv and ry are my resource property bundles. To be able to read them i will use resource property bundle reader.
    Fmt lib gives me this but it seems that it inciates this in an InputStream (wich is looked to iso-8859-1) instead of a reader who can
    read UTF-8 without no problem. So can i get my fmt lib to change this or not, anybody have an idea about this???

    Torleif wrote:
    Ok, i know there are a few ways of doing this already. The problem is that i have no idea how to use these different problem solving issues. First we have the;
    1. native2ascii command line utility.
    2. use the XML properties format.
    3. other ways of converting from iso-8859-1 to utf-8.
    The last one i have tried already but i never get this to work. So after knowing of 2 standardized solutions you choose to implement your own non-standard soltion? That's usually not a good idea until you've verified that the standardized solution don't help.
    This is also not the best solution to the problem i have to say. This way i will have both properties files and source files to work with and that is to much i think. Either i will use the native2ascii command or use XML properties format like you say here. I need some more insight in how these two work only because i have no idea my self.Uhm .. read [the documentation|http://java.sun.com/javase/6/docs/api/java/util/Properties.html]? loadFromXML/storeToXML work pretty much exactly the same as load/store, except they handle XML. Try it, look at what it produces, learn.
    Could you please help and explain how to use either this native2ascii command line work or how this XML format properties would work for me. Please i need guidance here with this!!![native2ascii is documented as well|http://java.sun.com/javase/6/docs/technotes/tools/windows/native2ascii.html].
    If you have a specific question after reading those, feel free to ask here.
    You really have to work on your Google-fu, it seems to be too weak.

  • How to deal with resource bundle in multiple applications system

    Hi all,
    I'm building new system depend on the method of
    one common model with multiple applications for the view objects
    my JDeveloper version 11.1.2.3
    my Question
    How can i merge the resource bundle for these applications
    as in the common model exists file for resouce bundle
    and each other applications contains resource bundle files how can i merge all these file in one Resource bundle file ?
    Edited by: 985756 on Apr 2, 2013 12:39 AM

    Hi,
    Please check anerjusb blog for your answer
    Hoping this will help you.
    http://andrejusb.blogspot.in/2009/12/reusing-resource-bundles-from-different.html
    Thanks & Regards,
    Vikas

  • How to work with Resource Bundle

    Hi
    I work with JDeveloper 1013 and making an application with ADF Faces and BC.
    I'd like to internationalize my own application. How can I do this with Resource Bundle(java). How to ask which language the browser wants, ...

    There is a chapter in the ADF Developer Guide that explains this.
    Read it and let us know if you still have questions.

  • Character encoding in resource bundle files

    I am developing a multilingual site, using resource bundle files. The problem I'm having is that, while the jsp file is save in UTF-8, and the contentType="text/html; charset=UTF-8", the foreign characters in the bundle files don't display properly unless I save them as "windows-1252". If I copy the text and paste it into the jsp file, it displays correctly.
    How can I make the text from the bundle files display the same as the text in the jsp document itself when both files are saved as UTF-8? I'm surprised it doesn't do this by default.

    Because resource bundles (the PropertyResoureceBundle class in particular) doesn't know anything about JSP or HTML page encodings. All that class knows is that it needs to load a properties file from the local (server-side) file system. (BTW, if you are using Struts MessageResources, it works the same way). Anyway, it doesn't read the file every time you call for a resource property String, it reads it 1 time, and 1 time only when you call new ResourceBundle().
    The API docs (in java.util.Properties) specified that properties files are read using the ISO8895-1 encoding, actually, not the Windows-1252 or whatever the OS defines. So if you store text that's using a different encoding then ISO8895-1, it's going to read the chars incorrectly.
    native2ascii converts things to ASCII using Unicode escapes, as I said. (Although, maybe it saves as ISO8895-1, I forget..., or maybe you should specify the output encoding.... you'd have to read the docs on that tool, cuz there's no command-line help.) This is sort-of an exception to the ISO8895-1 thing, in a sense, as all ASCII chars are the same as the first 127 chars of ISO8895-1, so it doesn't matter really.
    So in short, it doesn't assume it's in the default Windows encoding, it assumes it's in ISO8895-1. But since the API docs specifically say so, you should abide by those rules.
    As for "getting around the problem", yes, it does, actually. See, whatever it reads in that Unicode escaped ASCII text is converted properly to Strings in Java, which are 16-bit Unicode characters, which cover nearly every character set around (English, Chinese, Japanese, Arabic, Cyrillic, etc). When it's in that form, the chars are the Unicode chars and that's it. That's all they need to be. Encodings are only important when writing (and reading back) to files or other byte streams. You have to read in with the same encoding it was written under, otherwise the conversion is not going to be correct (with a few exceptions, but not many).
    So that creates a Unicode String in Java, and when you write that to a JSP page or servlet, the output writer used knows from the content type you specified in the page declaration (UTF-8 is typically recommended because it's an efficent way to deal with Unicode chars, particularly in HTML, where most of the HTML tag content is still ASCII text), so it encodes the strings in that encoding.
    Get it?

  • Where does the resources bundle files need to be

    Hi All,
    Does any of you knows where all the custom resources bundle files that will be used on BCC need to be?
    I have something like this:
    BCC module /src/com/mycompany/resources/WebAppResources.properties
    But when I try to use it
    This happens
    javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "title" with value "${activity.description}": An error occurred while getting property "description" from an instance of class atg.bizui.activity.GenericActivity (java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key manageLoyaltyProgram.description)
    I am trying to use it on a activity that will be used in the ActivityManager:
    This is what I have
    <resource-bundle>com.mycompany.resources.WebAppResources</resource-bundle>
    Do you know if I am missing somehting or putting the files on a wrong location?
    Regards,
    Obed

    Hi Shaik,
    The title of for the source is added http://i.imgur.com/a6WVxsW.png but when I click on it it throws this exception:
    javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${activity.displayName}": An error occurred while getting property "displayName" from an instance of class atg.bizui.activity.GenericActivity (java.util.MissingResourceException: Can't find resource for bundle j
    ava.util.PropertyResourceBundle, key emanageLoyaltyProgram.displayName)
    meaning that the properties file is on the classpath, but my genericActivities.xml file is not able to read the properties file.
    Any suggestion?
    Regards,
    Obed

  • How To Change Resource Bundle file's data from Java Class

    Hi
    i have used below code for accessing Resource Bndle from Java Class but here i also want to make change in a particular key and its value.
    please let me know the code i should use to make changes in Resource Bundle file's key and value and saving the same in the file.
    package test;  import java.util.Enumeration;
    import java.util.ResourceBundle;
    public class ResourceBundleTest {
    public static void main(String[] args) {
    ResourceBundle rb = ResourceBundle.getBundle("test.bundletest.mybundle");
    Enumeration <String> keys = rb.getKeys();
    while (keys.hasMoreElements()) {
    String key = keys.nextElement();
    String value = rb.getString(key);
    System.out.println(key + ": " + value);
    Thanks

    With further debugging, I noticed the following line only works in integrated WLS but not in standalone WLS
    resourceBundle = ResourceBundle.getBundle("com.myapp.MyMappings");
    I confirmed the corresponding properties file was included properly in the EAR file but the standalone WLS failed to find the properties file at runtime.
    Why did the standalone WLS class loader (must be the same as the integrated WLS) failed to find the properties file deployed under the WEB-INF/classes path in the EAR file?
    The above line was in a POJO class which has the same classpath as the properties file ie. com.myapp.MappingManager.class.
    It was strange that the class loader could load the POJO class but unable to find the com.myapp.MyMappings.properties in the same classpath!!!
    Is this a bug in standalone WLS?
    Edited by: Pricilla on May 26, 2010 8:52 AM
    Edited by: Pricilla on May 26, 2010 9:01 AM

  • I opened my iPod Touch up to fix my home button. When i closed it back up it had a white screen. I tried pressing lock and home button for 10 seconds and it worked but while i'm using it it goes white with lines on the screen. Help please

    I opened my iPod Touch up to fix my home button. When i closed it back up it had a white screen. I tried pressing lock and home button for 10 seconds and it worked but while i'm using it it goes white with lines on the screen. Help please. This has been happening for a while and i've tried everything but it doesn't work.

    Try:
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • How do you overlap PDF's and finish with one PDF file? Need help ASAP

    how do you overlap PDF's and finish with one PDF file?
    Need help ASAP

    I'm not sure if you can do that with CreatePDF.  Try it; you got one free use when you sign up with Acrobat.com
    If not, you will have to use Adobe Acrobat; there is a full-use 30 days trial.

  • Problem with resource bundle messages written inside script of jsf included

    Hi,
    I have a main jsf page with the name Details.jsp.In this page I included Contacts jsf page.I am using resouce bundle for my application.I written all the output text tags with this resouce bundle keys.And I written the Details main page javascript alerts with this resource bundle correctly.But the problem is,I am having script alrts in my included jsf apge i.e. in Contacts page.When I write the script alerts with the resource bundle keys,it is not displaying properly.
    ---------------------------------------------------------------------Details.jsp--------------------------------------
    <f:loadBundle basename="Details_en" var="msg"/>
    <f:view>
    <head>
    <script>
    function saveFn()
    var d=document.getElementById('dform:dinputtext').value;
    if(d=='')
    alert('<h:outputText value="#{msg.requiredValidationMsgkey}"/>');
    return false;
    if(emailValidation()==false)
    return false;
    </script>
    </head>
    <body>
    <h:form id="dform">
    <h:outputText value="#{msg.nameHeader}"/>
    <h:inputText value="#{Bean.name}" id="dinputtext"/>
    <jsp:include page="/Contacts.jsp"/>
    <h:commandButton value="Save" onclick="if(saveFn()==false) return false;" action="#{Bean.saveAction}"/>
    </h:form>
    </body>
    </f:view>
    -------------------------------------------------Contacts.jsp----------------------------------------
    <script>
    function emailValidation()
    var em= document.getElementById('dform:cSubView:cemailtext').value;
    if(em=='')
    alert('<h:outputText value="#{msg.emailValidationMsgKey}"/>');
    return false;
    </script>
    <f:subview id="cSubView">
    <h:inputText value="#{CBean.email}" id="cemailtext" />
    </f:subview>
    The alert message in SaveFn is getting appeared coorectly.But in the function emailValidation is not geting dispalyed correctly.It is appearing as normat output text in the page,but not as an alert.

    Thanks for the reply.
    But I want to do some validations using javascript not only the required validation.
    In my application 5 text fields and one command button are there .Depending upon combination of 2 or 3 text field values, I have to get the values when I pressed command button.
    If I use the h:messages for validators,the conversion error is occurring when the text field takes wrong data.So it is going to give incorrect results when I press the command button.Thats why I am using javascript.
    When user enters wrong data,I want to do validation using javascript and I want to display the alert message using resource bundle.

  • ADF FACES: af:messages does'nt display label with resource bundles

    Hi,
    There is a problem with the af:messages component and error messages containing labels (such as Value is Required error message for required fields).
    If I have an af:inputText with it's label property refering to a resource bundle loaded using the f:loadBundle action, when the Value is Required message is displayed, I get "" for the field name.
    If I replace the label property with a constant value or with an expression refering to a managed bean property, then the label is properly displayed in the error message.
    I suspect this has to do as to when the action of getting the label is done. Maybe the bundle is not availlable at that time. Anyway, this is a bummer as it mean that we cannot use the f:loadBundle action to load resource bundles.
    This happen with AE11. I have not tested this with EA12.

    Thank's!
    I'll try EA12 when I have the time.
    I also found that in our JSPs, we've put the f:loadBundle ouside of the f:view tag. I'll fix that in our codebase.
    While researching a fix, I found out that using a managed bean (which implement Map interface) to load the bundle based on the name refered in the expression language is a lot more intuitive and allow for an easier management of the different resource bundle than the f:loadBundle tag.
    Basically, our EL expression are now #{bundles.bundleName.property} we replace any "_" in bundleName with "." and then lookup this name as a ResourceBundle with the locale of the view. We keep the managed bean in the request scope it remember each bundle it loaded.
    We could have done it with a custom VariableResolver. Maybe a future release of the JSF spec could provide a standard variable name that would implement the same behaviour. This way, one does not have to load each bundles before hand and only the bundles accessed by the JSP will be loaded.

  • How to compare and edit Resource bundle file using java programe

    Hi All
    I have two resource bundle with key, value and some comments. I need to write a java code to compare both of the values of the keys and if the values are different then i want to replace the second value with the first value.
    Its a programe which will udpate the second file with the first file values.
    I tried using Properties class but it didnt worked because when i am saving the file using store method it removes all the comments and the order of text also got disturbed.
    How I need to do this any help appriciated.
    Please elt me know if someone needs more info.
    Thanks in advance.

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • Issue with resource bundle.

    Hi ,
    I have been facing a issue with getting properties from resource bundle.
    final ResourceBundle resourceBundle = ResourceBundle.getBundle("config/global");
    I had placed my global.properties file under "WEB-INF/classes/config" folder.It was working fine.I had resinstalled my sun one application server,.Now the server is throwing following exception -
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key record.length
    But the same war file is working fine when I deployed it in sun one app servers running other machines.
    when i changed the code to -
    final ResourceBundle resourceBundle = ResourceBundle.getBundle("config//global");
    it started working in machine as well.
    How can I resolve this?
    Thanks,.
    Vivek

    And also you can try like this,
    My locale file in backing bean is like this
    Locale bean
    public class LocaleBean {
    public String language = "en";
    * @return
    public void changeLocale(String language) {
    System.out.println("changeLocale " + language);
    this.language = language;
    this.setLanguage(language);
    Locale newLocale = new Locale(this.language);
    FacesContext context = FacesContext.getCurrentInstance();
    context.getViewRoot().setLocale(newLocale);
    JSFUtils.storeOnSession("LOCALE", language);
    System.out.println("end of change locale");
    public void setLanguage(String language) {
    this.language = language;
    public String getLanguage() {
    return language;
    public void changeLocaleAction(ActionEvent actionEvent) {
    changeLocale(this.language);
    // Add event code here...
    Faces-config.xml
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
    <application>
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
    <resource-bundle>
    <base-name>Resorces.xx</base-name>
    <var>message</var>
    </resource-bundle>
    <locale-config>
    <default-locale>en</default-locale>
    <supported-locale>ar</supported-locale>
    <supported-locale>en</supported-locale>
    </locale-config>
    </application>
    <managed-bean>
    <managed-bean-name>localeBean</managed-bean-name>
    <managed-bean-class>LocaleBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    </faces-config>
    and my resource bundle as this :
    xx_ar_AR.properties
    xx.properties
    And Project properties>compiler property >character encoding > UTF-8
    select Tools-->Preferences-->Environment
    and then set the encoding to UTF-8.
    no need to change your trinidad-config.xml
    Regards
    PY

  • How to use UTF-8 in JSP ?(Farsi Language)

    Hi All,
    I am trying to write in Farsi language in a jsp page with jdeveloper. i have a .properties file where i write my lables in farsi.i have content="text/html; charset=UTF-8" in my jsp as well.but still in run-time i get something like ?????????? .
    i have changed environment and compiler encoding in jdeveloper to UTF-8 as well.
    any idea ?

    If you have problem with the content of your web-page
    Once I have had the same problem, but I can ensure that
    after making these configurations you must not have any further
    problem. Check and modify each of the following:
    1) Goto Tools->Preferences->environment->encoding and change it to UTF-8
    2) Goto Tools->Project Properties->Compiler->encoding and change it to UTF-8
    By taking step one and two all your files would have the content of UTF-8 automatically
    but there still remains one file which has not taken any effect : web-inf -> web.xml
    3) modify the first line of the file to : <?xml version = '1.0' encoding = 'UTF-8'?>
         and the filter to
         <init-param>
    <param-name>encoding</param-name>
    <param-value>UTF-8</param-value>
    </init-param>
    If you have problem with the labels of your view you should go
    to your viewObject->attributes->control hint and write your farsi word with Unicode escape sequence \u####
    I think the solutions may probably work.

  • Af:setActionListener not working properly with resource bundle value

    Hi,
    I am making a ADF-BC JSF project in which I have a commit button a page. On click of this Commit button I am setting some value (Status) through setActionListener. But as this value(Status) is subject to change, so I have stored it in the resource properties file and I'm assigning it from the resource properties file.
    Now when I hardcode the value, it works properly but when I give it from the properties resource file it sets this value to NULL. Here is my code.
    <af:commandButton text="Commit" action="some action”}>
    <af:setActionListener to="#{bindings.SP11DeliveryWarrantView1WarrantStatus.inputValue}"
    from="#{res['warrantstatus.InProcess']}"/>
    </af:commandButton>
    If I write #{'Some hardcoded value'} instead of #{res['warrantstatus.InProcess']}. It works fine. May I know what is wrong here or is it a bug?
    Neeraj.

    Hi,
    I had the same problem and many thanks Frank - yes this does work. Just for clarity here is what I did with my implementation:
    In my session level managed bean (SystemState) I added the relevant values from the bundle:
    public class SystemState
      public static final String RESOURCE_BUNDLE = "gpl.viewcontroller.resources.UIResources" ;
      private HashMap<String,String> formTypeStatuses = new HashMap<String,String>() ;
      public SystemState()
        formTypeStatuses.put("live",JSFUtils.getResourceBundleValue("home.menu2.livestatus.value",RESOURCE_BUNDLE)) ;
        formTypeStatuses.put("archive",JSFUtils.getResourceBundleValue("home.menu2.archivestatus.value",RESOURCE_BUNDLE)) ;
        formTypeStatuses.put("all",JSFUtils.getResourceBundleValue("home.menu2.allstatuses.value",RESOURCE_BUNDLE)) ;
      public HashMap<String, String> getFormTypeStatuses()
        return formTypeStatuses;
    }I then referenced these values from my jspx page:
                <af:commandLink actionListener="#{bindings.ExecuteWithParams1.execute}"
                                action="ExecuteWithParams1"
                                text="#{res['home.menu2.livestatus.text']}"
                                disabled="#{!bindings.ExecuteWithParams1.enabled}">
                  <af:setActionListener from="#{session_system_state.formTypeStatuses.live}"
                                        to="#{requestScope.status}"/>
                </af:commandLink>
                <af:commandLink actionListener="#{bindings.ExecuteWithParams1.execute}"
                                action="ExecuteWithParams1"
                                text="#{res['home.menu2.archivestatus.text']}"
                                disabled="#{!bindings.ExecuteWithParams1.enabled}">
                  <af:setActionListener from="#{session_system_state.formTypeStatuses.archive}"
                                        to="#{requestScope.status}"/>
                </af:commandLink>
                <af:commandLink actionListener="#{bindings.ExecuteWithParams1.execute}"
                                action="ExecuteWithParams1"
                                text="#{res['home.menu2.allstatuses.text']}"
                                disabled="#{!bindings.ExecuteWithParams1.enabled}">
                  <af:setActionListener from="#{session_system_state.formTypeStatuses.all}"
                                        to="#{requestScope.status}"/>
                </af:commandLink>Dave

Maybe you are looking for

  • I-Photo album in progress disappears!

    Monday AM Greetings! New to this forum.... First time I-Photo user - working on creating album - far into project - entire album disappears! Help! I have Time Machine, but do not know whether I-Photo work backs up immediately/in progress and/or how t

  • 2 Pass VBR Stops Responding

    Hi Guys I'm using Win7 on a Dell Precision M6700 with a Nvidia Quadro K3000M. When I'm working on the timeline, the preview is smooth and sharp but my exports are a bit disappointing. So I thought I'd try setting 2 Pass VBR as well as checking render

  • Photoshop CC "Start Bridge at Log in.....", not functioning properly.

    The setting: Start Bridge at Log in, so that it is available in the background, will open bridge fully on system start up.

  • JTable custom colouring

    Hi everyone, I've been trying to create a JTable in which the first row and first column have a different background (since they contain "headers" and not actual data). I could not find a way to include headers for both columns and rows, so I defined

  • Consumption of PIR  for Internal sale Purchase order

    Hi Our client has 2000  Production plant which he enter reqmts  on monthly basis per year. Internal sale Purchase  orders are created for the FG materials to one common vendor 5000 to plant 2000. we are in ECC6.0. Produced qty are delivering using mv