[ISA 4.0 SP5] How to set the language of an order

Hi,
how to set the language of an order?
I use address.setCountry( myCountry ) and works fine, but:
an Order in R3 has also a field "Language" under the tab "Communication", but it's not set automatically, corresponding to the country.
How do i set this field on the Java-side in InternetSales 4.0 Sp5?

Hi vikram!
Sorry for the still inconvenience, but I'm getting this error:
Error in method invocation: Static method sendNotification( com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.api.comp.messaging.MailTypeEnumType, java.util.Properties, null, null ) not found in class'com.sap.odp.api.util.NotificationUtil'
Im making the code the following way:
Properties params = new Properties();
params.put(new String("PHASE_NAME"), faseName);
params.put(new String("DOCUMENT_TYPE"), docType);
params.put(new String("DOCUMENT_NAME"), contractName);
params.put(new String("RECIPIENT_FIRST_NAME"), nombre);
params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
params.put(new String("START_DATE"), fecha);
params.put(new String("ORG_UNIT"), orgUnit);
params.put(new String("INSTRUCTION"), "");
params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal()); // This Changed.
( I also tried like this:
IapiAccountIfc recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal());)
sender = session.getAccount();
mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
Thanks again!

Similar Messages

  • How to set the language of a mail template from NotificationUtil?

    Hi experts!
    I've been having some issues with the Message Template Language when using the NotificationUtil to send an Email.
    How do I set the language of the template?
    Do i set this by the sender? Or do I need to reference the recipient?
    If so, how could I get the Account Object Interface from the user given that I got him as a collaborator?
    I wish you could help me out whit this language problem.
    Here's an example of the code I'm using:
    Properties params = new Properties();
    params.put(new String("PHASE_NAME"), faseName);
    params.put(new String("DOCUMENT_TYPE"), docType);
    params.put(new String("DOCUMENT_NAME"), contractName);
    params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
    params.put(new String("START_DATE"), fecha);
    params.put(new String("INSTRUCTION"), "");
    params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
    String[] recipients = {mail};
    sender = session.getAccount();
    mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
    NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
    Thanks in Advance!

    Hi vikram!
    Sorry for the still inconvenience, but I'm getting this error:
    Error in method invocation: Static method sendNotification( com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.api.comp.messaging.MailTypeEnumType, java.util.Properties, null, null ) not found in class'com.sap.odp.api.util.NotificationUtil'
    Im making the code the following way:
    Properties params = new Properties();
    params.put(new String("PHASE_NAME"), faseName);
    params.put(new String("DOCUMENT_TYPE"), docType);
    params.put(new String("DOCUMENT_NAME"), contractName);
    params.put(new String("RECIPIENT_FIRST_NAME"), nombre);
    params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
    params.put(new String("START_DATE"), fecha);
    params.put(new String("ORG_UNIT"), orgUnit);
    params.put(new String("INSTRUCTION"), "");
    params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
    recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal()); // This Changed.
    ( I also tried like this:
    IapiAccountIfc recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal());)
    sender = session.getAccount();
    mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
    NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
    Thanks again!

  • How to set the language of oracle universal installer

    Hi all,
    I have downloaded oracle9i database release 2 Enterprise/standard/personal edition for windows. so I got the them into 3 different folders as said in the oracle site. I have few questions.
    1.i have installed oracle using the universal installer, but my operating system is winxp german version.I want the installer to be in english so that i can easily navigate, how can i set the language. Does the installer automatically detects the OS and chosses the language.
    2. I have 2 sql scripts. One with Schema(tables for database with create statements) and other file with data(insert statements).That is Schema.sql, data.sql. How can i use these scripts for querying using the installed database.
    3. I am totally confused with SID, how to set it and what does it indicate(functionality).
    4. The login for SQL PlUS, i used scott and tiger. Because i think the installer did not installled completely, i could not create my own username/password. What will be the host-string while logging to sqlplus.
    Thanks and Regards
    Babu.

    1.i have installed oracle using the universal installer, but my operating system is winxp german version.I want the installer to be in english so that i can easily navigate, how can i set the language. Does the installer automatically detects the OS and chosses the language.From the control panel, regional setting, make default for English (United States) and English as default language. While installing oracle from OU, choose only english langauge.
    2. I have 2 sql scripts. One with Schema(tables for database with create statements) and other file with data(insert statements).That is Schema.sql, data.sql. How can i use these scripts for querying using the installed database.Once you have installed oracle and create database, make sure the following and then run your scripts.
    1. Check oracle services are started or not from the windows services. If yes, then do step 2, else, start services first and then do step 2.
    2. set oracle_sid=your_database_name
    3. sqlplus /nolog -- when you give this command, if you get reply that connected to idel instance, then, your database is not up, in this case, startup your database after step 4. (startup)
    4. connect / as sysdba
    5. run your script to create schema.
    --once schem created. connec to your newly created schema.
    6. connect username/password --
    7. run the script (insert records)
    3. I am totally confused with SID, how to set it and what does it indicate(functionality).ORACLE_SID is nothing bur your oracle database name. You will be asked to provide the database name while installing and creating oracle database.
    4. The login for SQL PlUS, i used scott and tiger. Because i think the installer did not installled completely, i could not create my own username/password. What will be the host-string while logging to sqlplus.As long as you want to do it on the database server, then, you dont need tnsname. If you want to access database from other machines, then, you need to create a tnsname to connect.
    Jaffar
    OCP DBA

  • How to set the data packet in order??

    we have 20 datapackets that is in sequence order how to set in order wise ?
    Example:- this is the scenario Data packets is in this order 20,1,10,5,9,13,4,8,13,2,15,19,14Like this
    I have to set in order wise how to doit??????

    HI
    I think you sjust should use a process chain.
    Call transaction RSPC and build it within the order needed.
    regards
    Tom

  • Smartform how to determine the language of apurchase order.

    Hi,
    Maybe a simple question. But i cannot find it in my form because it isn't used in it so far.
    A purchase order must be printed in the language of the receiver of the purchase (vendor).
    Which variable is used to detemine in which language these form text has to be printed.
    (it is not sy-langu).
    Gr., Frank

    No, just the first one
    SSFCTRLOP-LANGU
    and well it wont be filled, YOU gotta fill it.
    Since you want to print out something, you probably have an output type (Nachricht) which is beeing processed.
    Language of output type (NAST-SPRAS) is normally drawn from communication language of customer.
    So what you need to do is:
    data: ls_controls                type SSFCTRLOP.
    ls_controls-langu = nast-spras.
    CALL FUNCTION lv_formname
        EXPORTING
    *     ARCHIVE_INDEX              =
    *     ARCHIVE_INDEX_TAB          =
    *     ARCHIVE_PARAMETERS         =
    *     CONTROL_PARAMETERS         = ls_controls
    *     MAIL_APPL_OBJ              =
    *     MAIL_RECIPIENT             =
    *     MAIL_SENDER                =
    *     OUTPUT_OPTIONS             =
    *     USER_SETTINGS              = 'X'
          gt_header                  = gt_header
          gt_items                   = gt_items
    *   IMPORTING
    *     DOCUMENT_OUTPUT_INFO       =
    *     JOB_OUTPUT_INFO            =
    *     JOB_OUTPUT_OPTIONS         =
        EXCEPTIONS
          formatting_error           = 1
          internal_error             = 2
          send_error                 = 3
          user_canceled              = 4
          OTHERS                     = 5.

  • How to set the language for a RFC call ?

    Hi,
    when calling from BSP (WAS620) to our R3 using RFC the results (units, ...) are always in DE. How do the call to get the results in EN?
    Language in RFC Destination/Logon&Security does not have an effect.
    thx for your support.

    Martin,
    I am not sure whether this is a logon problem.
    If you run the function module in transaction SE37 then you will get PC because there are some exits associated to it.
    When you call it from "outside", then the internal value is returned to the caller.
    The same happens when using BAPI from languages like Java or .Net
    The material field - in particular - is well-known for this behaviour.
    Hope someone else could testify because I haven't crossed the problem myself.
    Check this thread for instance:
    sap.net connector error
    If you have a doubt, then set an external breakpoint in the remote system for the RFC user. Then, check the content of the <i>sy-langu</i> field.
    Best regards,
    Guillaume
    Message was edited by:
            Guillaume GARCIA

  • How to set the language key in Sales document header text?

    Hi Guys,
    When I am creating a sales order I found in the header text tab only three languages English, Thai and Ukranian are mentained.. So can you please tell me how to add/ delete more language keys in language key field in a step by step process???
    Thanx and regards,
    JEET

    Just select the "unwanted language" keys (By 'right clicking') on each & then use the "delete" icon (3rd icon) on the bottom half.
    you can also manintain as many languages as you want.
    Pls do the needful.
    Rgds
    Sumanth.Gururaj
    Edited by: SUMANTH GURURAJ on Jan 21, 2011 6:21 PM

  • How to set the language in Safari? why is this so complicated?

    Hi,
    I have already installed Safari 5 but it is in French! I would like to change it into English. I don't find any language setting in the different menu/submenu/preference!
    I am using win7.
    While searching the web, I found that I have to that in the program file folder in the Safari.resources. When I deleted the fr.lproj nothing happened except reinstall the French language file!
    I tried to copy the content of en.lproj folder (which contains one file named bindict) and I put it in the fr.lproj but no change neither!
    Why changing the interface language is so complicated in Safari ?
    I think I will uninstall Safari and go back to Firefox.
    Message was edited by: ablar

    Hi there,
    Did you try the solutions described here:
    http://discussions.apple.com/message.jspa?messageID=6889371
    If so, did you try reinstalling Safari after following the steps?
    Hope that helps,
    Elliott

  • How to set the language of the component to a particular language?

    Hi!
    I need it for JTextField.
    Thanks.

    This is a sample of Hebrew class extending JTextField, the data typed will be translated to hebrew if neede.
    public class Hfield extends JTextField
         String key = "tcdsvuzjyhlfkonibxg;p.mera,/'q`w";
         String old = "`abcdefghijklmnopqrstuvwxyz.,/;'";
    public Hfield()
         super(1);
    protected void processKeyEvent(KeyEvent ev)
         int d = key.indexOf(ev.getKeyChar());
         if (d >= 0)
              if (d < 27) d = d +1488;
                   else   d = old.charAt(d);
              ev.setKeyChar((char)d);
         super.processKeyEvent(ev);     

  • How to set selected Language from Portal dropdown in Logon to User profile

    Hi Gurus,
    I select a language in Portal Language dropdown in the Logon Page.
    After login in the content is getting displayed in the browser language.
    I want the portal content to be displayed in the selected language in the portal LogonPage.
    I checked the thread Logon page change to add a dropdown for language
    The is the requirement for me too .
    Kindly suggest me on how to set the language in the Portal user Profile so that the portal contents gets displayed in the selected languages from the dropdown .
    Thanks in Advance

    Hi Prasanna,
    The language that the portal is displayed in depends on the following
    heirarchy, with the languages at the top of the list taking precedence
    over those at the bottom:
    1. Component (iview) language (defined in the portalapp.xml)
    2. Portal Mandatory language (defined in the prtDefault.properties)
    3. User language (defined in the user#s profile).
    4. Request language (defined by the browser).
    5. Portal Default language (defined in the prtDefault.properties)
    6. System Default language (default locale defined by the OS).
    So for example, if you have your portal user language (as in point 3)
    set to Russian, but the language of the iView that is the logon page
    (as in point 1) set to English, that logon page will be displayed in
    English.
    Keeping the above in mind, please make the necessary changes to the
    configurations and check if it helps.
    Regards,
    Sowmya
    Edited by: Sowmya K on Jun 2, 2011 11:32 AM

  • Set the status of mass orders from CLSD (Business completion) to TECO

    Hi All,
    Can you please help me out on how to set the status of multiple orders from CLSD (Business completion) to TECO(Technical Complete) .
    Regards,
    Shruthi.

    I'm assuming production orders, you can do that in COHV, selection criteria Sys. Status "CLSD". Click on Mass Processing button and select Technically Complete.

  • How to set the table input in Query template?

    Hi all.
    I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
    form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
    query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
    can anyone help me?
    Regards,
    Hemalatha

    Hema,
    You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
    Sam

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • How to set the background for all components?

    hi
    Does anybody know how to set the DEFAULT background color in an application.. I need it because in jdk 1.3 the default bgcolor is grey and in 1.5 it is white.. and I wish white as well.. so to make it also white in jdk 1.3 I need to use the (a bit annoying) anyContainer.setBackground( Color.white ); and these are lots in my app.. So my question is: is there such an overall class with a function (say UIManager.setComponentsBackground( Color color ) ) for such a purpose?
    any tip or link would be greatly appreciated

    Does anybody know how to set the DEFAULT background color in an applicationthis might get you close
    import java.awt.*;
    import javax.swing.*;
    import java.util.Enumeration;
    class ApplicationColor extends JFrame
      public ApplicationColor()
        setApplicationColor(Color.RED);
        setLocation(400,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JPanel jp = new JPanel(new BorderLayout());
        jp.add(new JTextField("I'm a textfield"),BorderLayout.NORTH);
        jp.add(new JComboBox(new String[]{"abc","123"}),BorderLayout.CENTER);
        jp.add(new JButton("I'm a button"),BorderLayout.SOUTH);
        getContentPane().add(jp);
        pack();
      public void setApplicationColor(Color color)
        Enumeration enum = UIManager.getDefaults().keys();
        while(enum.hasMoreElements())
          Object key = enum.nextElement();
          Object value = UIManager.get(key);
          if (value instanceof Color)
            if(((String)key).indexOf("background") > -1)
              UIManager.put(key, color);
      public static void main(String[] args){new ApplicationColor().setVisible(true);}
    }

  • I am English but live in Spain, When I got my new Macbook Pro I set the language to English, so far so good. Then I stupidly set the keyboard to British when it is obviously a Spanish keyboard. How can I reset it to Spanish. Sorry cant find question mark

    I am English but live in Spain, When I got my new Macbook Pro I set the language to English, so far so good. Then I stupidly set the keyboard to British when it is obviously a Spanish keyboard. How can I reset it to Spanish. Sorry cant find question mark

    LizMaddock,
    you can reset the input source to Spanish by selecting the Keyboard pane of System Preferences, selecting the Input Sources tab, and pressing the “+” button in the lower-left corner to select one of the Spanish input sources. The “Spanish – ISO” input source is most similar to the physical Spanish keyboard layout.

Maybe you are looking for