Customer or Vendor address in SAPSCRIPT

Hi ,
From where  the address data from customer and vendor are pulled ?
Common data or from the international address screen?
i.e which table and how
thanks

Hi Bobby,
Take the ADRNR(Addree Number) from KNA1 or LFA1 table and get the customer or vendor details from ADRC Table by giving the ADRNR value.
Reward Points if this helps,
Satish

Similar Messages

  • I need to be change plant customer and Vendor address as per plant setup.

    Hi
    I need to be change plant customer and Vendor address as per plant setup.
    Pls tell me the t-codes and process configuration to setup these changes.
    I have already change Plan & shipping point address in configuration.
    Regard
    vicky

    Hi Vicky ,
    Use OX10 for Changing Plant Address.
    For Customer - XD02
    For Vendor Add : XK02.
    Regards
    Ramesh Ch

  • ALE: how do I use dependent distribution for customer and vendor addresses?

    Hello SDN'ers
    Hopefully someone can help me with an ALE question.
    We have two ERP systems connected with ERP - Retail and AFS.
    Customers and Vendors may be created in Retail, and are distributed to AFS using DEBMAS, CREMAS and ADRMAS messages.
    Not all customers and vendors are required in AFS, so we have various filters set up in the Retail distribution model (BD64).
    However with the filters in place, addresses were still being distributed for customers and vendors that had been filtered out.
    To try and avoid this for vendors, we created a filter group for AddressOrg.SaveReplica in receiver determination. In the filter group we selected Dependent Distribution for CREMAS (Address owner object).
    This works perfectly for vendors - vendor addresses are now only distributed if the vendor itself is distributed.
    However I've now discovered it is preventing any customer addresses from being sent! I was surprised about this: I expected CREMAS dependency to only affect vendor addresses. Can someone tell me:
    - is this how dependent distribution is designed to work? In which case can anyone offer any suffestions to achieve the filtering some other way?
    - or are we doing something wrong to be getting this result?
    Thanks for any help!
    regards, Roger

    Hi all,
    as Robert suggested, I've written an exit to get round this, although I'm surprised I should need to!
    What I did was to code an enhancement in function group BDBF, at the start of subroutine COMPUTE_LOGIC_EXPRESSION.
    * In the case of addresses, dependencies should only be applied for the appropriate type of address
      data: lwa_tbd14 type tbd14.
      if P_MODEL_DATA-FTYPE = C_FTYPE_DEPENDENCY_FROM_MESTYP.
    *   Dependency from Message Type.
    *   Read the Address Object type
        READ TABLE P_FILTER_VALUES
                         WITH KEY OBJTYPE  = 'AD_OBJTYPE'
                         BINARY SEARCH.
        if sy-subrc = 0.
    *     Check if the Message Type is linked to the Address Owner Object Type
    *     (Table is buffered on DB)
          select single *
            from TBD14
            into lwa_tbd14
           where MESTYP = P_MODEL_DATA-FMESTYP
             and OBJTYP = P_FILTER_VALUES-OBJVALUE.
          if sy-subrc <> 0.
    *       Wrong type of address for this dependency - stop here
            P_REPLICATE = c_true.
            exit.
          else.
    *       Correct address type. Standard processing continues, checking any
    *       filter values set up against the Address Owner Object Type.
          endif.
        else.
    *     It isn't an address - continue with standard processing
        endif.
      endif.
    Let me know if this helps you, or if you know of a better way to achieve the same result.
    Roger

  • One-Time Customer or Vendor Address Printing in Smart Forms

    Hi friends,
    I am using the Address Node in Smart Forms to print the Addresses in Tax Invoice Printing. How to get the address details for the One-Time Customers which is stored in the BSEC table using the same Address Function.
    (We can directly get the address details from BSEC and display it by using a separate Text Node. But the address formatting according to the recipient country postal standards will be handled only by Address Function in Smart Forms right)
    Regards,
    Riaz.

    Hi friends,
    I am using the Address Node in Smart Forms to print the Addresses in Tax Invoice Printing. How to get the address details for the One-Time Customers which is stored in the BSEC table using the same Address Function.
    (We can directly get the address details from BSEC and display it by using a separate Text Node. But the address formatting according to the recipient country postal standards will be handled only by Address Function in Smart Forms right)
    Regards,
    Riaz.

  • Vendor address printing

    Hi All,
    I want to print vendor address in SAPScript as per country specific format.
    The standard ADDRESS--ENDADDRESS is not printing formatted output.
    Please help me in this.
    Thanks in advance.
    RK

    HI Jagadish / All,
    Thanks for your reply.
    I have used the following statement. For South Africa country code 'ZA' and region 'GP' it is giving me some space before printing country name 'SOUTH AFRICA'.
    /:           ADDRESS PARAGRAPH AD
    /:             TITLE       &REGUH-ZANRE&
    /:             NAME        &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&,  &REGUH-ZNME4&
    /:             STREET      &REGUH-ZSTRA&
    /:             POBOX       &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&
    /:             POSTCODE    &REGUH-ZPSTL&
    /:             REGION      &REGUH-ZREGI&
    /:             CITY        &REGUH-ZORT1&, &REGUH-ZORT2&
    /:             COUNTRY     &REGUH-ZLAND&
    /:             FROMCOUNTRY &T001-LAND1&
    /:             ADDRESSNUMBER &REGUH-ZADNR&
    /:           ENDADDRESS
    Output is like as below.
    Test Company, Inc.
    PO Box 684902
    TEST
    4094
                  SOUTH AFRICA
    And for some countries like India there is a gap between address lines as below.
    TEST VENDOR
    701  Lee RD
    400135 STREET
    INDIA
    Please help me out to avoid blank spaces and blank lines in address format.
    Thanks

  • How to get customer and vendor street addresses 4 and 5?

    I need to know what table/field has the customer and vendor street addresses 4 and 5 stored in to them and how to access these fields.
    This is for mapping on a LSMW customer and vendor data conversion.
    Thanks!
    Scortt

    Thread should be moved to
    Such fields do belong to address management tables. eg:ADRC-NAME3, ADRC-NAME4...
    In other words they do not belong to customer master data so they are not reachable directly from customer master data fields.
    The link is KNA1-ADRNR = ADRC-ADDRNUMBER
    You might face difficulties in the mapping except if you plan to process in LSMW both DEBMAS idocs AND ADRMAS idocs
    Alain

  • Sapscript - email form - vendor address

    Hello all,
    we are emailing our purchase orders out of SAP to one of our email addresses, it is always the same address. As configuration, we have setup a new vendor X and use this vendor to enter the recipient email address.
    We then enter this vendor number as partner into the output message in the purchase order. Partner type is VN for vendor, medium external send and we created a new output type. Once the output is triggered, email is sent to our email address.
    The vendor address is also on the sapscript form:
    /: ADDRESS PARAGRAPH AS
    /: TITLE &LFA1-ANRED&
    /: NAME &LFA1-NAME1&, &LFA1-NAME2&,
    /: STREET &LFA1-STRAS&
    /: POBOX &LFA1-PFACH& CODE &LFA1-PSTL
    /: CITY &LFA1-ORT01&, &LFA1-ORT02&
    /: POSTCODE &LFA1-PSTLZ&
    / :REGION &LFA1-REGIO&
    Now the LFA1 table seems to contain the address of our vendor X that has been setup for email only. Meaning it prints the physical address of our email vendor on the form. But it should show the address of the actual vendor of the purchase order, which is in &EKKO-LIFNR&.
    How can we show the correct address on the form?
    Thanks
    Anne

    Hi,
    ok, I think I got it now. Please see below code. The sapscript and the subroutine pool are activated. I have set a break point into the subroutine pool, but whenever I start the output of the PO, it doesn't stop at the break point. So I guess it never reaches the subroutine.
    Any suggestions why?
    THANKS
    Anne
    :/ DEFINE &WA_ADRNR& = ' '
    :/ PERFORM GET_ADDRESSNUMBER IN PROGRAM Z_PO_VENDOR_ADDRESS
    :/ USING &EKKO-LIFNR&
    :/ CHANGING &WA_ADRNR&
    :/ ENDPERFORM
    *& Subroutine pool   Z_PO_VENDOR_ADDRESS                               *
    PROGRAM  Z_PO_VENDOR_ADDRESS.
    TABLES: LFA1.
    *&      Form  GET_ADDRESSNUMBER
    *       get the addressnumber value for EKKO-LIFNR from LFA1
    FORM GET_ADDRESSNUMBER TABLES fp_it_intab STRUCTURE itcsy
                                  fp_it_outtab STRUCTURE itcsy.
      LOOP AT fp_it_intab.  <-- BREAKPOINT
        SELECT * FROM LFA1
             WHERE LIFNR = fp_it_intab-value.
        endselect.
        IF SY-SUBRC = 0.
          MOVE LFA1-ADRNR TO fp_it_outtab.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "GET_ADDRESSNUMBER
    Edited by: Anne on Aug 4, 2010 3:56 PM

  • Single Vendor Multiple customer with same address

    Hello Guru,
    I have one scenario in retail business.ie I have one single vendor with two different customer but the address of that customer is same in both of them.i.e the vendor address will be same(applicable) in both the customer.But the VAT number is different in both the customer when ever i create the vendor master system should ask the different VAT number.
    Regards,
    Sukdev.

    Yes. I could have laid odds that this would be the first response :-)
    I know it is unusual, and I am aware of the inherent issues with doing something like this. I have read the multipathing guide, but it wasn't that helpful, because I want the same IP address, not just the same subnet. It is NOT for load balancing, or failover support. I'm afraid I can't give too much detail at the moment because of the nature of research project. What I will add is that I want to do this on an 802.1q enabled NIC, on the same physical port, with different logical interfaces for each VLAN having the SAME IP address.
    We can already do this on Linux, and as I said in the original post, the route man page suggests that it can probably be done on Solaris. What I really need to know is how?
    Any takers?
    AJB

  • Same customer and vendor number

    Not sure if this is the correct forum to post this question, but I'll give it a try......
    We are using BP and want to use same number for both customer and vendor. How can we achieve this?

    The synchronisation is not available in ECC 500.
    FS-BP has a synchronisation solution based on call transaction in batch-input. It should be part of the core.
    But I don't know if there was a solution to synchronize the numbers without modification.
    Anyway you can implement a BAdI in the customer master transaction to use your own numbers (CUSTOMER_ADD_DATA)
    BUT make sure the customer/vendor number will be linked to the correct address
    The saving process of the address is trigerred independantly (before or after the customer/vendor transaction is commited). As a result it is very easy to create orphaned address and loss of data accuracy for the vendor/customer.

  • Any Bapi or FM to clear open customer and vendor items.

    Hi all,
    I am looking for a Bapi or function module to clear the open items of AR and AP ie Customer and vendor open items, (Transaction Code F-04 , Post with clearing).
    Thanks in Advance,
    Diwakar.

    Hi Minami,
    for chenge address use FM : BAPI_BUPA_ADDRESS_CHANGE       (SAP BP, BAPI: Change Address)
    otherwise check with below FM ,for address related information
    BAPI_BUPA_ADDRESSES_GET              SAP BP, BAPI: Determine All Addresses
    BAPI_BUPA_ADDRESS_ADD                   SAP BP, BAPI: Add Address
    BAPI_BUPA_ADDRESS_CHANGE                 SAP BP, BAPI: Change Address
    BAPI_BUPA_ADDRESS_GETDETAIL             SAP BP, BAPI: Read Address
    BAPI_BUPA_ADDRESS_GET_NUMBERS    SAP BP, BAPI: Read Address Numbers
    BAPI_BUPA_ADDRESS_REMOVE                    SAP BP, BAPI: Delete Address
    Regards,
    Tutun

  • Third party returns from customer to vendor (Urgent)

    Hi,
    We have an urgent requirement regarding an issue with third party returns from customer.
    The scenario required is as follows :
    When the customer returns the goods in Third party proccess the goods should be directly returned to the vendor instead of receiving into our plant .
    How can we map this bussiness proccess?
    Currently the returns are handled as per the standard SAP proccess ie.,
    Customer returns the goods> Return order is created>Return delivery created (PGR)>Credit memo created.
    In this case we are receiving goods into our plant .

    Hi Shrikant
    1. If delivery of goods is the only issue then you can ask customer to make invoice with Invoice to your company address and Delivery address as the vendor address. Practically it is possible.
    2. Then you can make corresponding entries in SAP and regularise it.
    Thnx
    Nilesh

  • Upload Vendor Address

    Hi,
      What is the correct way to upload the vendor address?? I tried to do this with BDC, but only the "Street1" field appear in BDC session.  I have found the document in program RFBIKR00.  It stated that a separate procedure is required : BAPI_ADDRESSORG_SAVEREPLICA .
    Regards,
    Kit

    Hi
    for existing vendors you can either use the transactions XK02 or MAP1 to add contacts... You can creade a BDC on either of those transactions.
    there's also a BAPI to create customer or vendor  "BAPI_PARTNEREMPLOYEE_CREATE".
    With Regards
    Nikunj Shah

  • Vendor address change

    Hi All,
    I want change the vendor address using bapi_addressorg_change.
    Please give me the example.
    regards,
    rakesh.

    Change, delete and add a telephone number
    DATA: objtype LIKE bapi4001_1-objtype,
    obj_id LIKE bapi4001_1-objkey,
    obj_id_ext LIKE bapi4001_1-extension,
    context LIKE bapi4001_1-context,
    address_number LIKE adrc-addrnumber,
    bapiadtel LIKE bapiadtel OCCURS 0 WITH HEADER LINE,
    bapiadtel_x LIKE bapiadtelx OCCURS 0 WITH HEADER LINE,
    return LIKE bapiret2 OCCURS 0.
    Assign the following object type and object key to a main customer
    address
    objtype = 'KNA1'.
    obj_id = <customer number>.
    obj_id_ext = ' '.
    context = '0001'.
    Get existing data by calling, e.g. FM 'BAPI_ADDRESSORG_GETDETAIL'
    Enter the reference structure data
    The telephone number with serial number '002' is to be deleted and
    the one with serial number '003' updated
    CLEAR: bapiadtel, bapiadtel_x.
    bapiadtel-consnumber = '002'.
    bapiadtel_x-updateflag = 'D'.
    APPEND: bapiadtel, bapiadtel_x. "Delete entry
    CLEAR: bapiadtel, bapiadtel_x.
    bapiadtel-consnumber = '003'.
    bapiadtel-extension = '77733'.
    bapiadtel_x-extension = 'X'.
    bapiadtel_x-updateflag = 'U'
    APPEND: bapiadtel, bapiadtel_x. "Update entry
    CLEAR: bapiadtel, bapiadtel_x.
    bapiadtel-telephone = '06227'.
    bapiadtel-extension = '11111'.
    bapiadtel_x-updateflag = 'I'.
    APPEND: bapiadtel, bapiadtel_x. "Insert new entry
    call change module
    CALL FUNCTION 'BAPI_ADDRESSORG_CHANGE'
    EXPORTING
    obj_type = objtype
    obj_id = obj_id
    obj_id_ext = obj_id_ext
    context = context
    IMPORTING
    address_number = address_number
    TABLES
    bapiadtel = bapiadtel
    bapiadtel_x = bapiadtel_x
    return = return.
    Errors and warnings are in the RETURN table. If successful, the
    organization address and its communication data are now updated
    in the system.
    The adress number is in the ADDRESS_NUMBER field.
    Notes
    To delete, e.g. a telephone number in the table of existing telephone
    numbers for an address, the 'UPDATEFLAG' field in the associated reference structure line must contain 'D'.
    To create an entry, this field must contain 'I' and the data to be inserted must be passed.
    All new lines to be inserted (I) and their reference structures must be after all entries to be changed (U) and deleted (D).
    Change data key fields must always be filled, and are taken intoaccount as far as possible. It is not significant whether, e.g. alltelephone number comments are followed by fax number comments as changedata, or vice versa; only the sequence among entries with the same key
    is significant, unless you pass only some or no communication address or comment serial numbers, in which case the data sequence issignificant .
    The key fields are:

  • Change vendor address using bapi

    Hi all,
    How to change vendor address using bapi.
    The address,and vendornumber coming from XL file.
    Based on the vendor number I want to change the address.
    Please give me the example.
    regards,
    rakesh.

    Hi Vijay,
    Please help me in the following.
    As Vendor/Customer Master dont have all the address fields ( like Street4-5), we use FM BAPI_ADDRESSORG_SAVEREPLICA to overcome this problem.
    In my case i have created one Custom load program to upload address data using
    BAPI_ADDRESSORG_SAVEREPLICA and then LSMW project to upload rest of the data.
    In this case when i upload rest of the data by LSMW using BI standard program ( having NODATA indicator "/" in my source file for the fields already uploaded using BAPI above) , address data which uploaded through FM should get populate automatically (by concept of Central Address management) but in my case <b>for some of the Account Group it is not getting populated,</b> please suggest.
    regards
    Sonal

  • Customer or vendor  statements

    Hi everyone,
    where can I generate balances of customer or vendor statements that are mailed out them.
    thanks
    genie

    Hi,
    we use Business Transaction Event (BTE) 2310 and 2410. They need to be activated and some coding needs to be done. Starting point may be note: 549119
    In the coding you can redirect the output from printer to fax/email (change output medium). An email-address needs to be determined as well, either from KNA1 / LFA1 or rather the B-Segment since A-Segment is usually used as Sales ord Purchasing Contacts and B-Segment is the accounting contacts.
    As far as I know there is not other way like in Purchasing or Sales which can use message determination (without doing all the coding stuff).
    Greetings,
    Hartmut

Maybe you are looking for

  • ICloud, How to use it?

    How to use iCloud? I red a lot in the apple website buy I can´t find  good  answer  I have iPad, iPhone and MacBook but only can open www.icloud.com form the  Mac with my ID apple, these it´s not possible from other device because the ID apple doesn;

  • How to change the font dynamically in SAP script

    Hello, There are three fields for a line item to be printed in SAP form (Through Script). The font of one field has to be bigger than rest of the two. Can anybody tell me how to change the font of a specific field in a line of an SAP-script? Regards

  • Internet modem

    I have a nokia 3110c mobile with airtel gprs connection. I want to use this mobile as a dial up internet modem.I have a CA 53 USB cable.Bluetooth technology is available in my mobile. So how can I connect my mobile with my pc as a modem without nokia

  • Training course recommendations in UK?

    Hi, Firstly, I'm aware this probably isn't the best place to be posting about training course, but didn't rally think it fitted anywhere else. My company have asked if I would like to go on a Web Development course. Obviously I said YES! But now I am

  • Missing name column in site view

    I'm testing Dreamweaver CS4 for Mac and when I imported my website, suddenly none of the files had names. In fact the name column is completely missing from both the local and remote side of the site view page. Can anyone tell me what I've done wrong