FM to get Vendor Address

Hello Experts,
Is there a Standard FM to get the Vendor Address when we have Vendor Number?
Thanks a lot.

Hello Ravi
Have a look at BAPI BAPI_VENDOR_GETDETAIL.
Regards
  Uwe

Similar Messages

  • How can i get vendor address

    how can i get vendor address from lfa1 table.
    plz help me

    data: begin of itab occurs 0,
          adrnr like lfa1-adrnr,
          ADDRNUMBER like adrc-ADDRNUMBER,
          name1 like adrc-name1,
          name2 like adrc-name2,
          house_num1 like adrc-house_num1,
          street like adrc-street,
          city1 like adrc-city1,
          end of itab.
    select yadrnr xADDRNUMBER xname1 xname2 xhouse_num1 xstreet
    xcity1 from adrc as x inner join lfa1 as y on xADDRNUMBER = y~adrnr
    into table itab.

  • Function module for getting Vendor Address details

    Hi,
    Im new to this group,and new to ABAP
    plz hep me out by solving ABAP Query...
    i want to generate a report for getting Vendor Details
    like Vendor address,Ph num and Email
    input fields are Company code,country key and Account Group.
    im Using Smart Forms for this..
    but im not getting the Exact Function module to get All Required Details..
    regards
    Smitha

    thanks for ur quick reply...
    SELECT SINGLE LIFNR
      FROM LFB1
      INTO V_LIFNR
      WHERE BUKRS EQ V_BUKRS.
      CALL FUNCTION 'VENDOR_READ'
        EXPORTING
          i_bukrs         = V_BUKRS
          i_lifnr         = V_LIFNR
        EXCEPTIONS
         NOT_FOUND       = 1
         OTHERS          = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    this is the code i have written...
    but my problem is there no table in the Function module....
    for Example...
    CALL FUNCTION 'QPAX_PLMKB_READ_FROM_PLKO'
        EXPORTING
          i_plnty            = 'Q'
          i_plnnr            = V_PLNNR
          I_PLNAL            = V_PLNAL
          i_sttag            = V_DATUV
       TABLES
        T_PLMKB_TAB        = IT_TAB
    i want the function modules with tables and proper input...

  • In FB60, Vendor address info getting displays in 2 languages for 2 users

    Hi All,
    Can anyone please provide solution for this issue....
    In XK03, the vendor address showed in English and japan  (Address in Japan language was maintained in internat. versions tab in the same screen) language.
    At the time of booking invoice (Fb60 or MIRO), one user getting vendor address in English and with the same parameters (i'e, vendor no. & invoice date etc..same) another user was tried in his log in, he got the vendor address in Japan language.
    I was checked in ADRC Table and Vendor master data also, i haven't find any mistake in this areas.
    It may happend because of user parameters. I was checked both users parameters.
    Now user wants to see the vendor address (FB60) in their local language (Japan) .

    Hi Prasad,
    In su3 / su01 of the user; there is Tab  maintained as "company" at the botton of the page under the Address Tab...
    If that is maintained as "Company address - please maintain / /" and the Logon Language under defaults is "EN" then the user
    gets the Vendor displayed in English............
    AND if the field Company is maintained as "*** Users Country (Japan)" and the Logon Language under defaults is "EN" then the user gets the Vendor displayed in japanese.
    You need to change the company by clicking on "Assign Other Company address" above Company Tab...

  • Vendor Address not getting printed properly in cheque printing.

    Hi
    While printing the vendor address for the cheque printing, for certain vendors the street no. is not getting printed & for certain vendors PO Box is not getting printed.
    In the program we are fetching vendor address from REGUH table & then passing onto the global variables which are being used in the script & data is there in the database table for both street & PO Box number.
    The code in the script is as follows:
    /:           ADDRESS PARAGRAPH UH TYPE '3'
    /:             TITLE    &W_ANRED&
    /:             NAME     &W_ZNAME1&,&W_ZNAME2&,&W_ZNAME3&,&W_ZNAME4&
    /:             STREET   &W_ZSTRA&
    /:             POBOX    &W_ZPFAC& CODE &W_ZPST2& CITY &W_ZPFOR&
    /:             POSTCODE &W_ZPSTL&
    /:             CITY     &W_ZORT1(28)&
    /:             COUNTRY  &W_ZLAND&
    /:             FROMCOUNTRY &W_LAND1&
    /:             ADDRESSNUMBER &W_ZADNR&
    /:           ENDADDRESS       
    Can anyone please let me know, what could be the possible reason for this?

    you can tyr with TYPE '1' or TYPE '2'
    : ADDRESS PARAGRAPH UH TYPE '3'

  • How to get Vendor number form Address number

    Hi all
    I need help in getting vendor number using address number. I need best performance in this process.
    I have tried
    select single lifnr
      from LFA1
    where adrnr = address
    put this is not good in performance.
    Do any one know better way?

    Hi Salam
      As your requirement is
    <b>address > ????? > LFA1</b>
    Dieter has provided ADRV to replace "?????" in the above.
    so it is address > ADRV > LFA1.
    Substitute <b>address number</b> for field ADDRNUMBER, <b>'LFA1'</b> for field APPL_TABLE in table ADRV to check the result in field APPL_KEY which is combination of key fields in table LFA1 i.e MANDT and LIFNR.
      Please award points to Dieter for this wonderful tip.
      Thanks for the tip Dieter.
    Kind Regards
    Eswar

  • Getting vendor name and addreess and as well Emp name &address details

    Hi Experts,
    1.Can any one help to fetch Vendor name and address details based on LFA1 and  ADRC tables.
    2.fetch  employee name and address details based on PA0001 and  PA0006 tables.
    Please tell me the addres field of a  employee in PA0006 table.
    Thanks
    Nagraj

    Vendor & Addr details
    Get Vendor Number from Lfa1-lifnr
    pass that to table lfa1-adrnr     "Address Number
    pass that address number to adrc-ADDRNUMBER
    get all address details from ADRC Table
    Employee Details:
    we have Personnel number is common in between PA0001 and PA0006 tables.
    so first we need to get Personnel number .
    after that we can get employee details from both tables.
    we will get Personnel numberfrom PA0003 table.

  • 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

  • What are the message types available for Vendor Address?

    Hi Everybody,
    I need to read the all the change pointers of Vendor Address using the function moudle 'CHANGE_POINTERS_READ'. To call this FM  I need to pass Address's Message Type. I am passing ADRMAS as message type. but i am not getting any records into change pointers internal table.
    Pls help me out by informing the message type of Vendor Address.
    Regards,
    Nagaraju Maddi

    Hi,
             The address group is in the segment E1BPAD1VL1-ADDR_GROUP.
    Check the table <b>TSAD7 for Address groups</b> (central address management)
    <b>Reward points</b>
    Regards

  • Delivery address to be defaulted to that of vendor address in returns PO.

    Hi mates,
    My client is using sap 4.7 . His requirement is that the delivery address in the delivery address tab (item details) during the returns PO should be defaulted with that of the vendor given at the header. At present it is defaulted with the plant address from which the goods are returned. Is there anyway we can do this ?
    Thanks in advance,
    Sriram.
    Edited by: sriramkadiyam on Jun 10, 2010 11:51 AM

    The delivery address tab gets its information from your plant record or from your storage location record (if you have maintained an address for storage location and entered the storage location in the PO). The delivery address has nothing to do with the vendor of the PO.
    In case of a return PO, the delivery address is the address from where the vendor shall pick up the material.
    if you organize the delivery, then you usually do this with SD delivery (having flagged the return vendor field in vendor master and a corresponding customer master). In this case you get the address in the delivery document from the customer master address. The PO (as return PO) does not really play a big role, except that you tell your vendor that there is some good coming back to him.

  • Report regarding Vendor Address

    Hi All,
    Can anyone please let me know how to get a report for Vendor address. Please let me know the T-Code to get the report.
    I am using se16n t-code and LFA 1 table name.
    Please help me out...
    Thanks&Regards,
    Lakshmi Battina

    Hello,
    S_ALR_87012087
    or use SAP Query if you have some individual needs.
    br erwin

  • TABLE FOR ONE TIME VENDOR ADDRESS

    Hi
    I have created RFQ using one time vendor code.
    I have maintained the address of the vendor  against the one time vendor code.
    While printing of RFQ , program is not printing the address data maintained against one time vendor code.
    Can u suggest in wich table this data can be avaliable?
    rgds
    Sara

    Hai,
    Use table LFA1 - vendor general data - use the KTOKK - accont group - one time vendor - get the vendor address from the field ADRNR.

  • Vendor address and account group

    Hi experts, could you tell me where can I find the vendor address and account group as well. So I need one table or transaction which contains all the data which I need.
    Thanks in advance.

    Hi
    You can use a Query transaction code is SQVI
    select table join
    Select table LFA1 and LFB1
    join the table on field LIFNR
    Your will get the desired output.
    If the answer resolve kindly assing points
    Thanks & regards
    Mahesh

  • Report of full vendor addresses

    Is there a standard report that pulls the full vendor address?  I checked MKVZ and you can get some of the address but I can't find anything that contains the fields in the ADRC table (things like street 1, 2, 4 or 5 and so forth.)
    Thanks!

    Hi,
    that question should have been opened in
    As far as i know there is no direct report for such. Especially for the vendor
    You will need to write your own report.
    At this stage, either you use direct access to LFA1 (or function module LFA1_READ_SINGLE) and a proper reading of  the corresponding address with function module like ADDR_GET_COMPLETE
    alternatively, dependign on your release you may think about using WY_LFA1_ARRAY_READ. This is a retail function but it should make the trick !
    Best regards
    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

Maybe you are looking for

  • Purchase Order Print Report Compilation Error

    Hi, While compiling the report in Reports Builder Purchase Order Print Report , we get the following error: identifier GET_PRECISION must be declared. Where as this is a seeded function inbuild in the Program Units. Also while compiling on server we

  • Numbers Problem

    How can I reinstall numbers?  When I attempt to open a numbers file it says I need a newer version of numbers.  Yet, when I enter the APP store it says Numbers is installed and I cannot do anything.  How can I fix this?

  • Iq500 reinstall issue

    Touchsmart iQ500. Windows Vista 64bit My Touchsmart iQ500 HD crashed. I have replaced drive with a WD Caviar Green 1TB SATA. Having received a set of reinstall disks from HP Support I'm now having issues with the install, the supplementary disk is fa

  • I just upgraded from PE 7 to PE 12.  Most of my editing options are grayed out. What's up with this?

    Why are most of my editing options grayed out in PE 12?  I am a painter and I need to crop and edit my paintings.  Specifically, I need to distort them to bring them back into square.  I know that has a technical name but don't know it.

  • Upgrade CS2 on intel imac

    I was looking to buy an imac but i have cs2. Is it possible to install cs2 on the imac and then upgrade to cs4 to save $.