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

Similar Messages

  • How to get Class Type form Material Number

    Hi All,
    Based on the Material Number I have to get the Class Type and Class Number.
    I tried with FM -- QMSP_MATERIAL_BATCH_CLASS_READ
    but it always shows   Class type = 023 
                            and   database table for object = MCH1 for any given material number.
    Please help me out.
    Thanks & Regards,
    Moni

    HI Moni,
    Please check these FM.
    CLAF_CLASSIFICATION_OF_OBJECTS
    CUD0_GET_VAL_FROM_INSTANCE
    CE_I_GET_CONFIGURATION
    VC_I_GET_CONFIGURATION
    VC_I_GET_CONFIGURATION_IBASE
    look for the characteristics and charactertic values in tables
    ALLOCVALUESNUM
    ALLOCVALUESCHAR
    ALLOCVALUESCURR
    if this is not working
    you can also get these information directly from the tables.
    KSSK - object class assignment
    and KSML - class characteristic assignment
    and for char values use table AUSP
    Thanks!

  • How to get the Personal Number from Address Number

    Hi,
    I have one requirement which is as follows.
    I have one Customer. I am fetching Address Number(ADRNR) of this customer number from table KNA1.
    I want to find the Personal number linked to this Address number and Customer.
    Is there is any table or FM from where i will get the Personal number of the Customer using Customer number and Address number?
    Kindly Help

    Hi Sachin,
    Check this FM BUP_PARTNER_PERSNUMBER_GET
    " Check KNB1 and the Field name is PERNR, Most of the times this is not maintianed.
    " This refers to the Employees who are assigned as Customers
    " In XD03 go to the Company Code Data there you can find this Value
    " For more info contact your Functional Consultant
    " This is to the Best of my knowledge
    Also Check KNB1 but000 Tables
    Cheerz
    Ram

  • How to get the Next Material Document Number

    Hi,
    Please let me know How to get the next Material Document Number using Functional Module,
    Material Document number are  in MSEG table.
    Regards,
    Ganesh

    Hi Ganesh,
    if you want the next matrial number then first of all you have to define it as a number range in transaction snro.After creating the number range you have to define the interval.
    now you can use your number range by calling the function module
    CALL FUNCTION 'NUMBER_GET_NEXT'
          EXPORTING
            nr_range_nr             = '01' " here you have to give the number range number which you have defined in number range
            object                  = 'ZPRODLOG' " Number Range
          IMPORTING
            number                  = wa_prod_error_log-seqnr " sequence number generated,in your case material number field
          EXCEPTIONS
            interval_not_found      = 1
            number_range_not_intern = 2
            object_not_found        = 3
            quantity_is_0           = 4
            quantity_is_not_1       = 5
            interval_overflow       = 6
            buffer_overflow         = 7
            OTHERS                  = 8.
    each and every time next number will get generated .
    i hope this will help you.
    Thanks,
    Tanmaya

  • HT5312 I forgot the Security question in my email account, How to get a rescue email address?.

    I forgot the Security question in my email account, How to get a rescue email address?.

    You can go to the phone number for your country from http://support.apple.com/kb/HE57 and ask to speak with Account Security, or you can go to the ExpressLane at https://expresslane.apple.com and then iTunes, then iTunes Store, then Password and Security Questions and fill out the form.

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • Urgent: How To Get Vendor History Report

    Hi Sap Techies,
    Please can Any one help me how To Get Vendor History Report and Which Transaction Code I have To use or Do i Need to write any Programs For that
    Moderator: Please, search before posting

    Dear,
    What type of history you want for Vendor, you want list of Vendor or you want transaction data for Vendor
    For Vendor transaction use FBL1N and for Vendor List you can use S_ALR_87012086
    Hope it helps!!
    Br,Vivek

  • How to get an empty form when we run the page?

    Hi all!
    Hope you are well
    My question is, how to get an empty form at run time? means when we run the page, text fields are filled with blank....Could anyone please help me with this..
    Thanks in advance,
    nanda.

    Hi Nanda,
    Just follow these steps:
    1) Create a bounded taskflow (uncheck the create with fragments checkbox)
    2) Drag the CreateInsert operation on your bounded taskflow and mark it as the default activity
    3) Drag a view and link the CreateInsert to the view component using a control flow case
    4) Double click on the view to create the page
    5) Drag the view object on the page as an ADF form
    6) Go back to your bounded taskflow and from the General tab make sure under visibitliy you select "url-invoke-allowed"
    Run you tasfklow and your form will be rendered in insert mode.
    Regards
    Antonis

  • How to get Ship to Location Address?

    Hi Guys,
                 Can anybody tell me how to get Ship To Location Addresses?
              Bill to Party Addresses also?
    Thanks in Advance,
    Gopi.

    for bill-to-part check table kna1.
    select name1 land1 ... from kna1 into corresponding fields of wa where kunnr = <bill-to-party-no>.
    endselect.
    do the same for ship-to
    plz reward points if dis helps
    Message was edited by:
            user_15

  • Doe anyone know how to get a new password/pairing number for a magic mouse

    does anyone know how to get password of pairing number for my magic mouse

    There is no password or number (as is the case with keyboards). Please see this page for instructions:
    http://support.apple.com/kb/HT2845

  • How to get Allowed Activities by Personal Number

    Hi Everyone,
    Does anybody know how to get list of allowed activities by Personal Number?
    Thanks,
    Roman.

    Ok,
    In CATS we can set Receiver WBS Element(Project), Activity Type and amount of e.g. hours for date.
    I would like to know how to get list of allowed activities for particular person.

  • How to get current free background process number

    hi,guys:
         i have a question: how to get the current free and total background or dialog process number in speicifc server name?
    best regards,kevin

    You can get those details from SM50 transaction.
    You can also use these FM.
    TH_GET_WPINFO.
    TH_WPINFO.

  • How to get OBJECT for FI Doc number?

    HI Experts,
    I want to use FM NUMBER_GET_NEXT to get the next doc number for FI document, But there have a parameters in this FM is OBJECT, can any friends tell me how to get this parameters for FI doc?? Thanks in advance and your be rewarded once it is helpful.

    Hey Joe,
    The object and other details are configured in the transaction  'SAP number Ranges'' SNRO.
    I do not know under what circumstances you want to use the FM 'GET_NUMBER_NEXT' but doing this will increase the current number in the number range by 1.
    If you are planning to pre determine what is the number of the FI document that will be created, then this is not the right solution.

  • How to get Storage unit and Warehouse number from Handling Unit.

    hello all,
    I have Handling unit and Material in my program as an input, using these two fields i have to get corresponding storage unit and ware house number, to pick up transfer order.
    Can anybody explain me who can we get Storage Unit and Warehouse Number from Handling Unit.
    I know we can pull transfer order from table LTAK & LTAP using warehouse number.
    But i dont understand how to get warehouse number from handling unit.
    There is table LSUTO which has warehouse and Handling unit relation, but in our system there is not data maintained in that table. So, i was just wondering how can i get warehouse number from the given handling unit number.
    please guide me
    thanks
    Edited by: Mr A on May 12, 2008 1:23 AM

    Hi ,
        Check out the handling unit item table VEPO. You got storage location(LGORT) in it.
    Reward points if it was useful.
    Regards,
    Abhishek

  • How to get the multidementional hierarchy level number ?

    Dear all,
    Could anyone tell me how to receive the hierarchy level number like the picture below:
    [click here for the Screenshot|http://yaoxin.de/download/level.jpg]
    as you can see, when i mouse hove on a level, it shows the level number.
    but, I want to get the level number 2 (node number 2) in query designer, but i can't find anywhere to show that.
    thank you for your kind help !
    Edited by: Xin Yao on Aug 26, 2011 1:04 PM

    hi Charlie Belt,
    Thank you very much for your answer.
    And yes, I do wish to perform a calculation based (aggregation) on the hierarchy level.
    How can I continue working on that?
    yao
    wish you have a nice weekend!

Maybe you are looking for

  • Adding contacts to my new 8900 is not working.

    adding contacts from oultlook and /or outlook express to my new 8900 is not working. i tried everything from removing and re-installing the desktop manager to removing the battery of the device. nothing seems to be working.

  • ITunes 7.1 Causes Computer to Crash During Games

    When running iTunes 7.1 along with games in order to play my own music in the background (specifically Elder Scrolls IV: Oblivion but presumably any game with significant usage of EAX or 3D sound hardware capabilities), my sound card's output becomes

  • How to use Magic Wand to select in Active Artboard only - CS5

    I've run into a problem that I would think already has a solution. I have a layout with 7 artboards, each a variation on a logo design. I want to select a specific color, but only in the active artboard. The Magic Wand would seem to be the right choi

  • Sql query - help reqd (new)

    Hi, I have follwing dataset "herb with garden" "garden without herb" "herb with zbc" "garden with pqr" Now i want sql query like select * from table where text1 = "herb and garden" This should populate herb with garden garden without herb And select

  • Macbook and 3D applications

    Hi! I have just ordered a macbook (1.83 ghz) to replace my Powerbook 1.33 ghz (17inch). At home both me and my girlfriend use Cinema 4D for interior rendering and modelling. How well does the intel graphics perform in 3d apps such as Cinema 4D? Any e