Street2 in Address

Hi,
I have requirement where I need to display Name2 and Street2 to be printed on the Check address if it is present. There are some restrictions 1) There is space for max 5 lines and width 38 chars only. I should not print the title associated with ADRNR.
In the script the code goes like this...
ADDRESS LINES 5 PRIORITY  3
NAME       &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME4&
STREET      &REGUH-ZSTRA&
POBOX       &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&
POSTCODE    &REGUH-ZPSTL&
REGION      &REGUH-ZREGI&
CITY        &REGUH-ZORT1+0(20)&
COUNTRY     &REGUH-ZLAND&
FROMCOUNTRY 'US'
ENDADDRESS
Where do I need to place NAME2 and STREET2 ....i already have values in these variables.
Thanks,
Preetham S

Hi
Try like This
ADDRESS LINES 5 PRIORITY 3
NAME &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME4&
STREET &REGUH-ZSTRA&, &STREET2&    " you can add STREET2 here
POBOX &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&
POSTCODE &REGUH-ZPSTL&
REGION &REGUH-ZREGI&
CITY &REGUH-ZORT1+0(20)&
COUNTRY &REGUH-ZLAND&
FROMCOUNTRY 'US'
ENDADDRESS
Ranga

Similar Messages

  • Address book .... importing text file

    I am designing an address book which opens a text file called AddressBook.txt which reads in the information in the following format:
    lastname,firstname,street,city,state,zip,phonenumber,birthday,persontype
    lastname2,firstname2,street2,city2,state2,zip2,phonenumber2,birthday2,persontype2
    etc. (with a maximum entries of 500)
    I am having a problem reading in the information without the commas and wrapping to the next line. I can either use the BufferedReader or Scanner to input the file and as you can see below, my code is not complete yet. I can't figure out how to code the storeAddress() method in order to get the addressBookEntries[] to include the necessary information for outputting, sorting, etc. If I can get the information read into the addressBookEntries[], I think I will probably be able to proceed in the rest of the required tasks (i.e. sorting by last name, searching by last name, etc.)
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.text.SimpleDateFormat;
    import java.io.*;
    import java.lang.*;
    *  @created September 14, 2004
    *  This program uses a JFrame to manipulate data and form an
    *  address book.  The user will be able to load data from a file,
    *  sort it by last name, print the address, phone number, and date
    *  of birth, print the names of people whos birthday are between 2
    *  dates, print the names of people between 2 last names, and/or
    *  print the names of different person types.
    public class AddressBook extends JPanel implements ActionListener{
        JFrame frame;
        final int numButtons = 7;
        JRadioButton[] radioButtons = new JRadioButton[numButtons];
        JButton process = new JButton("Process Request");
        JLabel title;
        JTextArea output = new JTextArea(30,50);
        int MAX_ADDRESS_ENTRIES = 500;
        AddressBookEntry addressBookEntries[] =
            new AddressBookEntry[MAX_ADDRESS_ENTRIES];
        String FILE_NAME="AddressBook.txt";
        public AddressBook(JFrame frame){
            super(new BorderLayout());
            this.frame=frame;
            JPanel choicePanel = createSimpleDialogBox();
            choicePanel.setBorder(BorderFactory.createTitledBorder("Choices" +
            " to choose from:"));
            title = new JLabel("<html><h2> Thank you for opening the " +
            "Address Book.  " +
            "Please Press the \"Process Request\" " +
            "after making a choice.</h2></html>\n",JLabel.CENTER);
            title.setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
            output.setEditable(false);
            add(title, BorderLayout.NORTH);
            add(choicePanel, BorderLayout.CENTER);
            add(output, BorderLayout.SOUTH);
            final ButtonGroup group = new ButtonGroup();
            final String saveCommand = "Save";
            final String sortByLN = "Sort by Last Name";
            final String searchLNCommand = "Search By Last Name";
            final String printAPD = "Print address, phone number, and DOB";
            final String printNamesDOB = "Print names of people whose birthday" +
            " falls between 2 dates";
            final String printNamesLN = "Print names of people who fall" +
            " between 2 last names";
            final String printPType = "Print all family members, friends, or" +
            " business associates";
        private JPanel createSimpleDialogBox(){
            radioButtons[0] = new JRadioButton(
              "<html>Save the address file</html>");
            radioButtons[0].setActionCommand(saveCommand);
            radioButtons[1] = new JRadioButton(
              "<html>Sort the address file by last name</html>");
            radioButtons[1].setActionCommand(sortByLN);
            radioButtons[2] = new JRadioButton(
              "<html>Search the address file by last name</html>");
            radioButtons[2].setActionCommand(searchLNCommand);
            radioButtons[3] = new JRadioButton(
              "<html>Print the address, phone number, and DOB of a specified" +
              " person</html>");
            radioButtons[3].setActionCommand(printAPD);
            radioButtons[4] = new JRadioButton(
              "<html>Print the names of people whose birthday falls between" +
              " two dates</html>");
            radioButtons[4].setActionCommand(printNamesDOB);
            radioButtons[5] = new JRadioButton(
              "<html>Print the names of people who fall between two" +
              " specified last names</html>");
            radioButtons[5].setActionCommand(printNamesLN);
            radioButtons[6] = new JRadioButton(
              "<html>Print all family members, friends, <u>OR</u>" +
              " business associates</html>");
            radioButtons[6].setActionCommand(printPType);
            for (int i=0; i<numButtons; i++){
                group.add(radioButtons);
    //set the first button (open file) to be selected
    radioButtons[0].setSelected(true);
    return createPane(radioButtons, process);
    private JPanel createPane(JRadioButton[] radioButtons,
    JButton showButton) {
    int numChoices = radioButtons.length;
    JPanel box = new JPanel();
    box.setLayout(new BoxLayout(box, BoxLayout.PAGE_AXIS));
    for (int i = 0; i < numChoices; i++) {
    box.add(radioButtons[i]);
    JPanel pane = new JPanel(new BorderLayout());
    pane.add(box, BorderLayout.NORTH);
    pane.add(showButton, BorderLayout.SOUTH);
    return pane;
    public void actionPerformed(ActionEvent e) {
    String command = group.getSelection().getActionCommand();
    //else if button pushed is save
    if (command == saveCommand){
    // save file
    //else if button pushed is search by last name
    else if (command == sortByLN){
    // search by last name
    //else if button pushed is sort by last name
    else if (command == searchLNCommand){
    // sort by last name
    // print to screen
    //else if button pushed is display address, ph#, dob
    else if (command == printAPD){
    // display "search by last name" dialog
    // search last names
    // if last name found
    // print data
    // else
    // print error notification "person not found"
    //else if button pushed is list names of people whose
    //bday between 2 days
    else if (command == printNamesDOB){
    // ask for which dates
    // search bday
    // print to screen
    //else if button pushed is print names of people between 2 last names
    else if (command == printNamesDOB){
    // ask for which two last names
    // search last names
    // if people found
    // print to screen
    //else
    //print error notification "no one found"
    //else if button pushed is print all family members, friends
    //or business associates
    else if (command == printPType){
    //ask for what person type
    //search person types
    //if people found
    //print to screen
    //else print "no one found"
    public void storeAddress(File addressFile){
         Scanner sc=null;
    String lname,fname,street,city,state,zip,phone,persontype,bday;
    try {
    // Delimiters specifiy where to parse tokens in a scanner
    sc = new Scanner(addressFile).useDelimiter("\\s*[\\p{,}*\\s+]\\s*");
    catch (FileNotFoundException fnfe) {
         JOptionPane.showMessageDialog(this,"Could not open the file");
    System.exit(-1);
    for(int i=0; i<MAX_ADDRESS_ENTRIES; i++){
         while (sc.hasNext()) {
    lname=(sc.next());
         if (!lname.equals("")){
         addressBookEntries[i].setLName()=lname;
    public class AddressBookEntry{
    private extPerson address;
    private String date;
    private extPerson ExtPerson;
    public class Person{
    protected String lastName, firstName;
    private String address;
    private String city;
    private String state;
    private String zipcode;
    private String homephone;
    private String extPersonType;
    private Date bday;
    SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-mm-DD");
    public String toString() {
    return lastName+" "+firstName;
    public void setLName(String last) {
    lastName=last;
    public void setFName(String first){
    firstName=first;
    public String getLastName() {
    return lastName;
    public String getFirstName() {
    return lastName;
    public Person() {
    lastName="";
    firstName="";
    public Person(String first, String last){
    setLName(last);
    setFName(first);
    //Set the address and return it
    public void setAddress( String addr ){
    address = addr;
    public String getAddress(){
    return address;
    //set the city and return it
    public void setCity( String town ){
    city = town;
    public String getCity(){
    return city;
    //set the state and return it
    public void setState( String st )
    state = st;
    public String getState()
    return state;
    //Set the zip code and return it
    public void setZipCode( String zip ){
    zipcode = zip;
    public String getZipCode(){
    return zipcode;
    //Set the home phone and return it
    public void setHomePhone( String homeph ){
    homephone = homeph;
    public String getHomePhone(){
    return homephone;
    //Set the bday and return it
    public Date getBday(){
    return bday;
    public void setBday(Date newBday) {
    bday = newBday;
    dateFormat.format(bday);
    //Set the extPerson type and return it
    public String getPType(){
    return extPersonType;
    public void setPBusiness(){
    extPersonType = "Business Associate";
    public void setPFamily(){
    extPersonType = "Family Member";
    public void setPFriend(){
    extPersonType = "Friend";
    public class extPerson extends Person{
    //new clss People
    public class People {
         int MAX_PEOPLE=500;
         BufferedReader bf;
    public String toString() {
              StringBuffer sb=new StringBuffer();
              for (int i=0; i<nPeople; i++)
              sb=sb.append(group[i]+"\n");
              return sb.toString();
    public void read(){
              String str;
              try {
              bf=new BufferedReader(new FileReader(new File(FILE_NAME)));
              str=bf.readLine();
              while (str!=null) {
              insert(str);
                   str=bf.readLine();
         catch (IOException e) {
              // Will jump to here on an eof condition.
         try {
              bf.close();
         catch (IOException e) {}
         public void save() {
              try {
              PrintWriter pw=new PrintWriter(FILE_NAME);
              for (int i=0; i<nPeople; i++)
              pw.println(group[i]+",");
              pw.close();
         catch (FileNotFoundException fne) {
                   System.out.println("Could not Save "+FILE_NAME);
    public People() {
              group=new extPerson[MAX_PEOPLE];
              nPeople=0;
         public boolean insert(String data) {
              if (nPeople<MAX_PEOPLE) {
              //extPerson guy=new extPerson(data);
              //group[nPeople]=guy;
              nPeople++;
              return true;
         else {
         JOptionPane.showMessageDialog(null,"Error in People" +
    "::insert: Max size reached.");
         return false;
         public void clear() {
              // This loop frees up the memory used by each extPerson
              for (int i=0; i<nPeople; i++)
              group[i]=null;
              nPeople=0;
    extPerson group[];
    int nPeople;
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    public static void createAndShowGUI(){
    JFrame.setDefaultLookAndFeelDecorated(true);
    JDialog.setDefaultLookAndFeelDecorated(true);
    JFrame frame = new JFrame("Address Book Program");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container c = frame.getContentPane();
    c.add(new AddressBook(frame));
    frame.pack();
    frame.setVisible(true);
    public static void main (String s[]){       
    //Schedule a job for the event-dispatching thread:
    //creating and showign this application's GUI
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();

    Ok, I have changed my code to reflect your suggested changes, but I'm still unsure how to use the findInLine you suggested.... This is all very new to me and I've been looking on the java website for suggestions, but I'm still stumped on how to pull this together. I'm unsure on how to set the lastname,firstname,etc. for retrieval...
    Here's my code:
    //ADDRESS BOOK
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.text.SimpleDateFormat;
    import java.io.*;
    import java.lang.*;
    *  @created September 14, 2004
    *  This program uses a JFrame to manipulate data and form an
    *  address book.  The user will be able to load data from a file,
    *  sort it by last name, print the address, phone number, and date
    *  of birth, print the names of people whos birthday are between 2
    *  dates, print the names of people between 2 last names, and/or
    *  print the names of different person types.
    public class AddressBook extends JPanel implements ActionListener{
        JFrame frame;
        final int numButtons = 7;
        JRadioButton[] radioButtons = new JRadioButton[numButtons];
        JButton process = new JButton("Process Request");
        JLabel title;
        JTextArea output = new JTextArea(30,50);
        int MAX_ADDRESS_ENTRIES = 500;
        AddressBookEntry addressBookEntries[] = new
        AddressBookEntry[MAX_ADDRESS_ENTRIES];
        public AddressBook(JFrame frame){
            super(new BorderLayout());
            this.frame=frame;
            JPanel choicePanel = createSimpleDialogBox();
            choicePanel.setBorder(BorderFactory.createTitledBorder("Choices" +
            " to choose from:"));
            title = new JLabel("<html><h2> Thank you for opening the " +
            "Address Book.  " +
            "Please Press the \"Process Request\" " +
            "after making a choice.</h2></html>\n",JLabel.CENTER);
            title.setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
            output.setEditable(false);
            add(title, BorderLayout.NORTH);
            add(choicePanel, BorderLayout.CENTER);
            add(output, BorderLayout.SOUTH);
            final ButtonGroup group = new ButtonGroup();
            final String saveCommand = "Save";
            final String sortByLN = "Sort by Last Name";
            final String searchLNCommand = "Search By Last Name";
            final String printAPD = "Print address, phone number, and DOB";
            final String printNamesDOB = "Print names of people whose birthday" +
            " falls between 2 dates";
            final String printNamesLN = "Print names of people who fall" +
            " between 2 last names";
            final String printPType = "Print all family members, friends, or" +
            " business associates";
        private JPanel createSimpleDialogBox(){
            radioButtons[0] = new JRadioButton(
              "<html>Save the address file</html>");
            radioButtons[0].setActionCommand(saveCommand);
            radioButtons[1] = new JRadioButton(
              "<html>Sort the address file by last name</html>");
            radioButtons[1].setActionCommand(sortByLN);
            radioButtons[2] = new JRadioButton(
              "<html>Search the address file by last name</html>");
            radioButtons[2].setActionCommand(searchLNCommand);
            radioButtons[3] = new JRadioButton(
              "<html>Print the address, phone number, and DOB of a specified" +
              " person</html>");
            radioButtons[3].setActionCommand(printAPD);
            radioButtons[4] = new JRadioButton(
              "<html>Print the names of people whose birthday falls between" +
              " two dates</html>");
            radioButtons[4].setActionCommand(printNamesDOB);
            radioButtons[5] = new JRadioButton(
              "<html>Print the names of people who fall between two" +
              " specified last names</html>");
            radioButtons[5].setActionCommand(printNamesLN);
            radioButtons[6] = new JRadioButton(
              "<html>Print all family members, friends, <u>OR</u>" +
              " business associates</html>");
            radioButtons[6].setActionCommand(printPType);
            for (int i=0; i<numButtons; i++){
                group.add(radioButtons);
    //set the first button (open file) to be selected
    radioButtons[0].setSelected(true);
    return createPane(radioButtons, process);
    private JPanel createPane(JRadioButton[] radioButtons,
    JButton showButton) {
    int numChoices = radioButtons.length;
    JPanel box = new JPanel();
    box.setLayout(new BoxLayout(box, BoxLayout.PAGE_AXIS));
    for (int i = 0; i < numChoices; i++) {
    box.add(radioButtons[i]);
    JPanel pane = new JPanel(new BorderLayout());
    pane.add(box, BorderLayout.NORTH);
    pane.add(showButton, BorderLayout.SOUTH);
    return pane;
    public void actionPerformed(ActionEvent e) {
    String command = group.getSelection().getActionCommand();
    //else if button pushed is save
    if (command == saveCommand){
    // save file
    //else if button pushed is search by last name
    else if (command == sortByLN){
    // search by last name
    //else if button pushed is sort by last name
    else if (command == searchLNCommand){
    // sort by last name
    // print to screen
    //else if button pushed is display address, ph#, dob
    else if (command == printAPD){
    // display "search by last name" dialog
    // search last names
    // if last name found
    // print data
    // else
    // print error notification "person not found"
    //else if button pushed is list names of people whose
    //bday between 2 days
    else if (command == printNamesDOB){
    // ask for which dates
    // search bday
    // print to screen
    //else if button pushed is print names of people between 2 last names
    else if (command == printNamesDOB){
    // ask for which two last names
    // search last names
    // if people found
    // print to screen
    //else
    //print error notification "no one found"
    //else if button pushed is print all family members, friends
    //or business associates
    else if (command == printPType){
    //ask for what person type
    //search person types
    //if people found
    //print to screen
    //else print "no one found"
    public class AddressBookEntry{
    private extPerson address;
    private String date;
    private extPerson ExtPerson;
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    public static void createAndShowGUI(){
    JFrame.setDefaultLookAndFeelDecorated(true);
    JDialog.setDefaultLookAndFeelDecorated(true);
    JFrame frame = new JFrame("Address Book Program");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container c = frame.getContentPane();
    c.add(new AddressBook(frame));
    frame.pack();
    frame.setVisible(true);
    public static void main (String s[]){       
    //Schedule a job for the event-dispatching thread:
    //creating and showign this application's GUI
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    //PERSON
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.text.SimpleDateFormat;
    import java.io.*;
    import java.lang.*;
    public class Person{
    protected String lastName, firstName;
    private String address;
    private String city;
    private String state;
    private String zipcode;
    private String homephone;
    private String extPersonType;
    private String bday;
    SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-mm-DD");
    public void parseString(String s) {
              try {
              lastName = s.substring(0,s.indexOf(","));
              firstName = s.substring(s.indexOf(",")+1);
    address = s.substring(s.indexOf(",")+2);
    city = s.substring(s.indexOf(",")+3);
    state = s.substring(s.indexOf(",")+4);
    zipcode = s.substring(s.indexOf(",")+5);
    homephone = s.substring(s.indexOf(",")+6);
    extPersonType = s.substring(s.indexOf(",")+7);
    bday = s.substring(s.indexOf(",")+8);
    catch(StringIndexOutOfBoundsException sbe) {
              JOptionPane.showMessageDialog(null,"Error " +
    "in Person: Could not parse the line "+s);
    public String toString() {
    return lastName+","+firstName+","+address+","+city+","+
    state+","+zipcode+","+homephone+","+bday+","+extPersonType;
    public void setLName(String last) {
    lastName=last;
    public void setFName(String first){
    firstName=first;
    public String getLastName() {
    return lastName;
    public String getFirstName() {
    return lastName;
    public Person() {
    lastName="";
    firstName="";
    public Person(String first, String last){
    setLName(last);
    setFName(first);
    //Set the address and return it
    public void setAddress( String addr ){
    address = addr;
    public String getAddress(){
    return address;
    //set the city and return it
    public void setCity( String town ){
    city = town;
    public String getCity(){
    return city;
    //set the state and return it
    public void setState( String st )
    state = st;
    public String getState()
    return state;
    //Set the zip code and return it
    public void setZipCode( String zip ){
    zipcode = zip;
    public String getZipCode(){
    return zipcode;
    //Set the home phone and return it
    public void setHomePhone( String homeph ){
    homephone = homeph;
    public String getHomePhone(){
    return homephone;
    //Set the bday and return it
    public String getBday(){
    return bday;
    public void setBday(String newBday) {
    bday = newBday;
    dateFormat.format(bday);
    //Set the extPerson type and return it
    public String getPType(){
    return extPersonType;
    public void setPBusiness(){
    extPersonType = "Business Associate";
    public void setPFamily(){
    extPersonType = "Family Member";
    public void setPFriend(){
    extPersonType = "Friend";
    public Person(String data) {
    parseString(data);
    //EXTPERSON
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.text.SimpleDateFormat;
    import java.io.*;
    import java.lang.*;
    //new clss extPerson
    public class extPerson extends Person {       
         int MAX_PEOPLE=500;
         BufferedReader bf;
    String lname,fname,street,city,state,zip,phone,persontype,bday;
    String FILE_NAME="AddressBook.txt";
    public String toString() {
              StringBuffer sb=new StringBuffer();
              for (int i=0; i<nPeople; i++)
              sb=sb.append(group1[i]+"\n");
              return sb.toString();
         public void save() {
              try {
              PrintWriter pw=new PrintWriter(FILE_NAME);
              for (int i=0; i<nPeople; i++)
              pw.println(group1[i]+",");
              pw.close();
         catch (FileNotFoundException fne) {
                   System.out.println("Could not Save "+FILE_NAME);
    public extPerson() {
              group1=new extPerson[MAX_PEOPLE];
              nPeople=0;
         public boolean insert(String data) {
              if (nPeople<MAX_PEOPLE) {
              Person guy = new Person(data);
              group1[nPeople]=guy;
              nPeople++;
              return true;
         else {
         JOptionPane.showMessageDialog(null,"Error in People" +
    "::insert: Max size reached.");
         return false;
    Person group1[];
    int nPeople;

  • BP address data in  Email form

    Hello,
    When I create a campaign with communication channel as "email", how can I automatically add business partner address data ( Those BP's which are in the target group) when sending emails?
    Is there a standard functionality available?
    thanks in advance.

    Hi,
    You can use the Personalized mail functionality of the CRM for adding BP address in the email form. This is the standard functionality of the CRM 5.0.
    In t code CRMD_EMAIL while creating the text of the mail form drag and drop address attributes from the left hand side Object / Attribute Business partner.
    In Business partner Object you will get all the fields of the Business Partner including Street1 street2 City, POBox etc. Drag and drop these attributes wherever you want on the mail form text.
    Hope this will help.....
    Rgds
    Mallikrjun

  • Over write ship to party address when sales order is created

    Hi
    I am creating sales order using BAPI_SALESORDER_CREATEFROMDAT2 but would like to change the shipto party address.
    I want to change the following address fields of shipto party
    Name1
    Name2
    Street
    STR_SUPPL1 (Street2)
    C_O_NAME (c/o name)
    POSTL_COD1 (City postal code)
    CITY
    COUNTRY
    REGION
    TRANSPZONE
    Following is the piece of code i wrote for partner structure and partner address structure of the BAPI.
    I_ORDER_PARTNERS-PARTN_ROLE    = 'WE'.
    I_ORDER_PARTNERS-PARTN_NUMB    = '0000241269'.
    I_ORDER_PARTNERS-country               = 'US'.
    I_ORDER_PARTNERS-TRANSPZONE    = 'US'.
    I_ORDER_PARTNERS-ADDR_LINK        = ''0000201328'.
    APPEND I_ORDER_PARTNERS.
      I_PARTNERADDRESSES-ADDR_NO      = ''0000201328'..
      I_PARTNERADDRESSES-NAME            = WA_CUSTOMER-NAME.
      I_PARTNERADDRESSES-NAME_2         = WA_CUSTOMER-NAME2.
      I_PARTNERADDRESSES-STREET         = WA_CUSTOMER-STREET.
    I_PARTNERADDRESSES-STR_SUPPL1   = WA_CUSTOMER-STREET2.
    I_PARTNERADDRESSES-C_O_NAME      = wa_customer-c_o_name.
      I_PARTNERADDRESSES-POSTL_COD1  = WA_CUSTOMER-ZIPCODE.
      I_PARTNERADDRESSES-CITY                = WA_CUSTOMER-CITY.
      I_PARTNERADDRESSES-COUNTRY     = WA_CUSTOMER-COUNTRY.
      I_PARTNERADDRESSES-REGION  = WA_CUSTOMER-REGION..
      I_PARTNERADDRESSES-TRANSPZONE  = WA_CUSTOMER-TRANSPZONE..
    In the above code address number 0000201328 is address number for customer 0000241269. Now the sales order is getting created but ship to party address is not overwritten with the values passed above. Ship to party address is just defaulted from customer master.
    What should i have to pass to the address number field.
    Any piece of code which is working would be more helpful.
    Thanks in advance
    Rajesh.

    I haven't tried for this, but from the documentation of FM I got this note:
    <i>Notes
    If the table is used to enter document addresses for a sales and distribution document, the address data is then not necessary in the document partner table BAPIPARNR / BAPIPARTNR ).</i>
    So, I am not sure wheather it is possible or not.
    Regards,
    Naimesh Patel

  • Issue related to ADDRESS ... ENDADDRESS in SAP Script

    Hi All,
    I have a issue using ADDRESS .... ENDADDRESS in SAP Script.
    ADDRESS PARAGRAPH AS
      TITLE    &WA_LFA1-ANRED&
      NAME     &WA_LFA1-NAME1&, &WA_LFA1-NAME2&
      STREET   &WA_LFA1-STRAS& HOUSE &WA_ADRC2-STR_SUPPL3&
      POBOX    &WA_LFA1-PFACH&  CODE &WA_LFA1-PSTL2&
      CITY     &WA_LFA1-ORT01&, &WA_LFA1-ORT02&
      POSTCODE &WA_LFA1-PSTLZ&
      COUNTRY  &WA_LFA1-LAND1&
      REGION   &WA_LFA1-REGIO&
      FROMCOUNTRY &WA_T001-LAND1&
    ENDADDRESS
    I am using above code for printing vendor address.
    Though Name3 & Name4 are not declared but their values are getting displayed if value is available.
    Though Street2, Street3 are not declared but their values are getting displayed if value is available.
    Even title should not be displayed if available also.
    I want only below fields to be displayed:
    Name 1
    Name 2
    Street/House Number
    Street 4
    Postal Code/City
    Country Name (This one declared below ADDRESS ... ENDADDRESS)
    I don't want to dislay other fields if they have value also.
    How it is possible!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep,
    Basically the variables that u havent mentioned in the sap script will never be printed.
    In the code u have not mentioned the variables Name3, Name4, Street2, Street3...so they will never be displayed.
    Please check your code again...i think somewhere u must have written
    &WA_LFA1-NAME3&
    &WA_LFA1-NAME3&
    etc
    if so please remove them. Otherwise the code u have written is perfectly fine.
    or else in ur driver program, dont move all the values to workarea...move only the values that u need to display and use them in ur script.
    Regards,
    Radhika

  • Address data in sap script

    Dear All,
    As per current layout already printing / display below information .
    Name               Already Printing     
    Street/House          Already Printing
    District               Already Printing     
    City               Already Printing     
    Region               Already Printing     
    Post Code                          Already Printing     
    now I want
    Name               Already Printing     
    Street/House          Already Printing
    Street2                          Need To Print
    Street3                          Need To Print
    District               Already Printing     
    City               Already Printing     
    Region               Already Printing     
    Post Code                          Already Printing     
    I have selected the data from adrc table.and it is selecting properly.
    Now I have wrote in adress window is
    street2   &adrc-str_suppl1&
    street3   &adrc-str_suppl2&
    but it is not printing in form.
    when i debugg it. It shows ;TEXT command street2 stree3 is not defined.
    please tell me what should i do?

    Hi
    In SAP address details can be set in the minutest way but everything is not displayed while useing ADDRESS and ENDADDRESS because it gives priorities to fields. e.g. it will not display street or ther things if POBOX is given. These setting can be changed where you maintain the address. One method to solve your peoblem if you are using ADDESS and ENDADDRESS is to use LOCATION just before STREET field.
    where you can assign Street to LOCATION and street2 to STREET.
    Try if it solves your problem.
    regards
    Vijai

  • -5002:Address is empty error with Business One 2007

    ANyone ever see this error message when trying to update a BP address of a customer? I found some threads in here that talked about this error back in 2004 as a bug. Why would this happen in 2007 B1?
    this._bp.Addresses.Add();
    this._bp.Addresses.SetCurrentLine(this._bp.Addresses.Count - 1);
                this._bp.Addresses.AddressName = address.Name;
                this._bp.Addresses.Street = address.Street1;
                this._bp.Addresses.Block = address.Street2;
                this._bp.Addresses.City = address.City;
                this._bp.Addresses.State = address.StateAbbr;
                this._bp.Addresses.ZipCode = address.PostalCode;
                this._bp.Addresses.County = address.County;
                this._bp.Addresses.Country = address.CountryAbbr
    this._bp.Update()

    I didn't try that yet.
    It looks like a regression - and it may be connected to the fact that B1 will support both multiple ShipTo and BillTo addresses (new at least in an EhP for 2005 SP01; not sure whether it is already in the build of 2007 you are using); maybe there's a change regarding the AddressType which is not documented properly yet...
    I suspect you don't have a customer in Ramp-Up, right?
    I'll try to check what I can do about it and will let you know then - but it may take a while...
    Regards,
    Frank

  • Smart Form problem with address layout

    Hello everyone,
    I need your help please for a smart form problem. We need the address layout for great britain with street1, street2 etc. but currently street2 is alligned before street1.
    We are using the FM ADDRESS_INTO_PRINTFORM (SAP standard address node) and according to the documenation the layout for GB is different as we see it currently.
    We have checked the sold-to and all contact persons, they have as country GB and language EN maintained.
    In customizing for address screen layout there is nothing chosen (tested to set up Europe, but did not change anything).
    For the customizing 'specify my countries...' we have maintained GB as country with the address layout key 006, vehicle country key GB and language key EN.
    For the described setting shouldn't there be designed the address in our smart forms according to 006? Anyhting in customizing we missed?
    Thanks a lot for your answers.
    Torsten

    Hi,
    Try to use line priority of FM, below is a brief of documentation. You can read it more in FM documentation:
    Control Parameters
    See also the parameter documentation.
    ADDRESS_TYPE - Address type (from 3.0C)
    There are three types of address:
    Address type '1': addresses of firms or organizations; the address
    structure which is used in most SAP applications as 'Address'.
    Address type '2': address of a person
    Address type '3': work address, usually the address of a contact person
    in a company
    The default value SPACE for the address type is handled like type '1',
    and is needed for the upwards-compatibility of the function module.
    Which parameters are used for which address type is explained in the
    ADDRESS_TYPE parameter documentation.
    The three character "address layout key" of the recipient country (LAND1) controls which of the available country-specific routines is used to format addresses for the country in question. This key is stored in field T005-ADDRS and is entered in Customizing under Global settings -> Set countries -> Define countries, on the detail screen under "Address layout key".
    Keys for customer routines in the SAP enhancement SZAD0001 can be
    maintained via the transaction SM30 (extended table maintenance),table
    name T005A, in the customer name range, and be assigned in country customizing.
    The address attributes are passed in the structures ADDRESS1 (type 1), ADDRESS2 (type 2), ADDRESS3 (type 3) or ADRSWA_IN (type SPACE).
    NUMBER_OF_LINES (ADRSWA_IN-ANZZL)
    The number of lines available for the address layout. If the number of
    lines is not sufficient for the complete layout of an address, then
    lines are consecutively suppressed according to the rules of the country in question. Use the parameter LINE_PRIORITY (ADRSWA_IN-PRIOR) overrules the standard sequence in which the output lines are to be suppressed.
    LINE_PRIORITY (ADRSWA_IN-PRIOR)
    If not equal to SPACE, this field overwrites the standard sequence in
    which the lines are suppressed if the available number of lines ANZZL is
    insufficient.
    The standard sequence is defined as follows:
    Type 1:   'AP43HRT7I86LC2BS5O'       (GB:  'APRT4327I86CBS5LO')
    Type 2:   'APHRT7I86LCBS5O'          (GB:  'PRT7I86CBS5LO')
    Type 3:   'APF43HR7I86TLC2BSND5O'    (GB:  'APRT4327I86CBS5LNDIO')
    where (if they occupy a line of their own):
    A = Title
    P = Mandatory empty line 1
    F = Function of the contact person in the company
    4 = Name 4
    3 = Name 3
    H = Different city
    R = Region
    T = District
    L = Name of country
    C = Postal code
    T = District
    7 = Street 3 (field STR_SUPPL2)
    I = Street 5 (field LOCATION)
    8 = Street 4 (field STR_SUPPL3)
    6 = Street 2 (field STR_SUPPL1)
    L = Country
    C = Postal code
    2 = Name 2
    B = PO Box
    S = Street or PO Box
    5 = c/o name
    N = Name (and title) of a person
    D = Department
    O = City
    Which of these attributes are available for maintenance can vary. All
    fields exist in Business Address Services.
    STREET_HAS_PRIORITY (ADRSWA_IN-WAREN)
    'X': Street has priority over PO Box (delivery address for example)
    ' ': PO Box has priority over street. This is the default value.
    regards,

  • Change the address in the right hand side of purchase order form

    Hi all,
    I am new to forms and scripts. I have to modify the output of Purchase Order form/script such that the Ship to and Bill to address that they have now on top right corner must be modified with the address that I have.
    How should i be doing this?
    I found that they copied the program SAPFM06P into ZSAPFM06P and the form name is some thing called ZABC_PURCHASEORDER . Now I want to figure out how should i be changing the purchase order form so that the Ship to and Bill to address that they have now on top right corner must be modified with the address that I have.
    the output type is named as ZNE7.
    Some one please direct me how to figure out. i dont even know if it is a sap script or smart form.
    also please help me in whihc places i should look to change the the Ship to and Bill to address that they have now on top right corner must be modified with the address that I have.
    Regards,
    Jessica Sam

    Ok karthik..i found that there is a windo called ship to where they have stored the following in Text Elements
    HEADER_DELADDRESS
    * <B> ABC Corporation </>
    *DDRESS DELIVERY PARAGRAPH AS PRIORITY
    *   TITLE                  &SADR-NAME2&
    *   NAME                 &SADR-NAME1&,    &SADR-NAME2&
    *   STREET              &SADR-STRAS&
    *   CITY                   &SADR-ORT01&,     &SADR-PSTLZ&
    *   POSTCODE        &SADR-PSTLZ&
    *   REGION             &SADR-REGIO&
    *   COUNTRTY        &SADR-LAND1&
    *ENDADDRESS
    *   FROMCOUNTRY &LFA1-LAND1&
    *   POSTCODE        &SADR-PSTLZ&
    *   CITY                   &SADR-ORT02&,    &SADR-ORT01&
    *   POSTCODE                                     &SADR-PSTLZ&
    *   COUNTRY          &SADR-LAND1&,   &SADR-PSTLZ&
    *   REGION             &SADR-REGIO&
    *   FROMCOUNTRY &LFA1-LAND1&
    *   ENDADDRESS
    BILL TO:
    ABC Corporation Inc,
    6000 Street1
    SUITE # 700, City1
    Country1   789045
    +1 (999) 999-9999(Phone)
       (999) 999-9999(Fax)
    * ABC Company     "AS
    * 5678 Street2        "AS
    * CITY1, State1, 99999 " AS
    * 999 999 9999 " AS
    SHIP TO:
    HEADER_DELADDRESS
    * <B> ABC Corporation </>
    *ADDRESS DELIVERY PARAGRAPH AS PRIORITY
    *   TITLE                  &SADR-ANRED&
    *   NAME                 &SADR-NAME1&,    &SADR-NAME2&, &S
    *   STREET              &SADR-STRAS&
    *   POBOX               &SADR-PSTLZ&
    *   COUNTRY          &SADR-LAND1&
    *   REGION             &SADR-REGIO&
    *   FROMCOUNTRY  &SADR-LAND1&
    *   ENDADDRESS
    HEADER_DELADDRESS_3RDPARTY
    BILL TO:
    ABC Corporation Inc,
    6000 Street1
    SUITE # 700, City1
    Country1   789045
    +1 (999) 999-9999(Phone)
       (999) 999-9999(Fax)
    SHIP TO
    *ADDRESS DELIVERY PARAGRAPH AS
    ABC Corporation Inc,
    6000 Street1
    SUITE # 700, City1
    Country1   789045
    +1 (999) 999-9999(Phone)
       (999) 999-9999(Fax)
    BILL TO:
    ABC Corporation Inc,
    6000 Street1
    SUITE # 700, City1
    Country1   789045
    +1 (999) 999-9999(Phone)
       (999) 999-9999(Fax)
    SHIP TO:
    So to chjange the Bill to and Ship top address that appear in the right hand side top most corner of the purchase order, what should i be changing in the text elements of the PO?
    please guide me..i am very new to sapscripts and i have to finish this task as soon as possible as this is a production support issue.
    Will be waiting for some clues
    Regards,
    Jessica Sam

  • Tables required for field street2 street3 street4

    Hello All,
    I want to print customer/vendor street2, street3,street4 in my report.
    pls tell me the table(not structure addr1_data) and fields from which i can fetch this fields.
    Thanks
    Sunny

    Hi,
    Table is ADRC, you will need to get the address number for the customer or vendor as the key to the table.  KNA1 or LFA1 field ADRNR.
    Regards,
    Nick

  • RFBIDE00 - Address data issue

    Hi,
    I want to populate the street2 and street3 fields of the customer master when uploading master data with LSMW using standard program - RFBIDE00 (Batch Input Program).
    These fields are not available in structure BKNA1 provided by the standard program. I tried to use structure BIADDR2 instead. The data is converted properly and show in the structure. But, when I run the generated session, the fields for street2 and street3 are not populated.
    Has anyone done this?
    Much appreciate if you let me know how to do this?
    Thanks,
    Shyam

    Hi Shyam,
    Central address management fields cannot be transferred using the standard program. You have to do a second pass at it to get the full centrally managed address fields. Read documentation of the program. Here is an excerpt from it.
    <i>Additional address fields:
    There are additional address fields available due to linking the customer and vendor master and the respective contact person to central address management. This additional address information is stored in central address management's own tables not in the actual master tables (KNA1 for the customer master, LFA1 for the vendor master, KNVK for the contact person).
    A separate transfer run via the ALE interface is needed to transfer this additional address information. This run should be before the transfer run for master data.
    See Transfer of address data
    If you use number ranges with internal number assignment when creating new customer and vendor masters, the number which is used to identify the master object in the system must be determined beforehand due to address information and master data being transferred separately.
    You can determine the numbers using the following BAPIs:
    BAPI_VENDOR_GETINTNUMBER (for the vendor master)
    BAPI_CUSTOMER_GETINTNUMBER (for the customer master)
    BAPI_PARTNEREMPLOYEE_GETINTNUM (for the contact person)
    Master data fields for which there is a counterpart in central address management (such as name, street, or telephone number) continue to be filled in the actual master tables. The formatting for these fields within central address management is different from the original formatting of the fields without the link to central address management. We therefore recommend that you only transfer the data for such fields when transferring central address management address information.</i>
    If answered, please reward and close.
    Regards,
    Srinivas

  • Fill additional details street2 and street3 using program rfbikr00

    I am using the program rfbikr00  for creating vendors.
    I want additonal fields like street2 and street3.
    But the standard program does not have the provision.
    can u please provide me the solution to get this done.

    Hello,
    For additional address fields you need to run an extra migration step that is explained in the online help of the program you mention.
    Small extract:
    There are additional address fields available due to linking the customer and vendor master and the respective contact persons to central address management. This additional address information is stored in central address management's own tables rather than being kept in the actual master tables (KNA1 for the customer master, LFA1 for the vendor master, KNVK for the contact persons).
    A separate transfer run via the ALE interface is needed to transfer this additional address information. This run should be before the transfer run for master data.
    See Transfer of address data.
    Transfer address data
    You can use the DX Workbench (transaction SXDA) to transfer address data.
    Create a transfer project using the following object types:
    BUS4001 for company and organization addresses (for example, customer address, vendor address, other office address of contact person)
    BUS4002 for private addresses (of contact person)
    BUS4003 for office addresses (composite work address of contact person).
    The address data is entered by the SAVEREPLICA-BAPIs of these three object types.
    For more information about these BAPIs and their interfaces, in particular the meaning of the key fields, see  "Distributing addresses via ALE" by choosing Basis --> Basis Services/Communication Interface --> Business Address Services in the SAP Library.
    You can create example files for the DX Workbench from existing address records in the system (for example, in a customer master record ) with the programs RSDXBUS4001, RSDXBUS4002 and RSDXBUS4003. These example files show the meaning of all fields in the Business Address Services BAPI interfaces.
    The programs have the same input parameters as the SAVEREPLICA-BAPIs.
    Success
    Wim

  • Vendor master creation with Street1, Street2, email ids

    Hi friends,
    Here, I am trying to upload the data of Vendor Master. I tried creating the LSMW or BDC method, in both the cases, I could not upload the Street2, stree3, ..etc. some of the details. While executing the transaction XK01, we have that option to enter those details, but while doing the recording method, it is not appearing, as well as in the Standard method also. How can I attack this problem...! If any one faced the same please suggest.
    -Sarasijasri

    Hi sarasijasri ,
    I had faced the same problem, pls find the solution below.
    while doing recording for XK01.
    in the first screen of recording you will get an option as "USE CENTRAL ADDRESS MANAGEMENT " pls select that and click on enter in the next screen you will get the required fields as you mentioned.
    Regards,
    Viswa

  • SMARTFORM Address

    Hello.
    Is there any way to reorder the lines of the address structure of the smartform?
    It prints the street as Street2, Street3, Street.
    Is there a way to make it print Street, Street2, Street3.
    Thank you
    Nuno Silva

    hi
    Use function module
    <b>ADDRESS_INTO_PRINTFORM</b> which act like ADDRESS ENDADDRESS
    In which all options are available like no line ...etc.
    ADDRESS_INTO_PRINTFORM Address format according to Post Office guidelines Note. It's enough to import two parameters:
    ADDRESS_TYPE = 1 (Firm or Organization, SAP Address)
    ADDRESS_NUMBER
    regards
    vind

  • ADDRESS Command in SAPScript

    Dear all,
    I'm using ADDRESS ~ ENDADDRESS command in SAPScript. I pass street name to STREET as follow
    NAME name1 name2 name3 name4
    STREET &LFA1-STRAS&
    With the above, my street can be displayed out correctly.
    But i faced problem when i have street2 street3 and street4, like below:
    NAME name1 name2 name3 name4
    STREET &LFA1-STRAS& , &ADRC-STR_SUPPL1& , &ADRC-STR_SUPPL2& , &ADRC-STR_SUPPL3&
    With above, nothing printed for street.
    Could you please point me out where did i code wrong?
    Or we can not pass street2/3/4 to STREET?
    Thank you.

    Hi,
    Just Refer this:
    https://forums.sdn.sap.com/click.jspa?searchID=12447471&messageID=2301405
    Check the below link for details on Text Elements
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e91454211d189710000e8322d00/content.htm
    Regards,
    Shiva Kumar

Maybe you are looking for

  • E book bought from Waterstones is very slow in use can you, help?

    E book bought from Waterstones is unreasonably slow in use can you help, please? I purchased a copy of "The Complete English Poems" by John Donne as an e-book, I downloaded the e-book successfully, as well as the new Digital Editions software and tra

  • Copying layers from one document to another problem?

    Hey there, so I have two documents of the same size (11 inches x 8.5 inches) and I am trying to copy some layers from an original document and move it to the second one. I'm doing this by just dragging the layers from the original to the new document

  • Bash script run via cron not executing MYSQL command

    I have a bash script which is run from a cron, It is executing as I have it write to a log file which it does correctly. I am wanting the bash script to restore a mysqldump file. When I run the bash script manually the dump file gets loaded fine. But

  • Printhead suddenly stopped working

    About 4 years ago I bought the photosmart plus b210a all-in-one and about a year later after replacing the ink cartridges as instructed for this particular model and as i had done everal times already, It suddenly stopped working. It ran the test pag

  • Auzen X-FI Prelude 7.

    From http://www.auzentech.com/site/company/press.php : Press Release -04.6.2007 AUZENTECH to develop Sound Card based on Creative X-Fi? chipset Auzen X-FI? Prelude 7. Coming Soon Santa Clara, CA -April 6, 2007: Auzentech, Inc. (www.auzentech.com), de