How do i get unique kunnr

Hi All,
i want to fetch the KUNNR from BSEG table based on the BELNR. But if we see the BSEG table same same BELNR is having different KUNNR.
based on the KUNNR i want to dislpay the Customer name from KNA1.
so, how do proceed ?.
thanks in advance
manjusha.

Lets say u get entries for BSEG in GT_BSEG with "FEBEP-BELNR with BSEG-BELNR." condition.
then 1 simple and effective way is.
sort gt_bseg by kunnr.
loop at gt_bseg into gs_bseg.
at new kunnr.
    gs_kunnr-kunnr = gs_bseg-kunnr .   "this gs_kunnr work areahas one field only as kunnr
    append gs_kunnr to gt_kunnr.  " gt_kunnr is table similar to gs_kunnr
    clear: gs_kunnr.
endloop.
select kunnr
          name1
         from KNA1 into table gt_kna1
         for all entries in gt_kunnr
         where kunnr = gt_kunnr-kunnr.
or
loop at gt_bseg into gs_bseg.
    gs_kunnr-kunnr = gs_bseg-kunnr .   "this gs_kunnr work areahas one field only as kunnr
    collect gs_kunnr to gt_kunnr.  " gt_kunnr is table similar to gs_kunnr
    clear: gs_kunnr.
endloop.
select kunnr
          name1
         from KNA1 into table gt_kna1
         for all entries in gt_kunnr
         where kunnr = gt_kunnr-kunnr.

Similar Messages

  • How do I get unique UUID on identical systems in Windows?

    It appears that all my MBP13" systems have the same BIOS information on the logic board.  This causes Windows to generate the same UUID when it is installed.  We have a program Kurzweil 3000 for students with learning disabilities that requires each system to have a different UUID.  It works fine with one computer at a time, but if several students use the program at the same time, it gets all kinds of error messages bringing information down from the web.  The developer has narrowed it down to the UUID.  Any idea on how we can change this?  Maybe change the number Windows pulls from the logic board.  Or some other application that allows us to edit the UUID.
    Thanks for any assistance you can provide.

    Hi there,
    I have the exact same problem with Kurzweil. Did you find a solution?
    Thanks
    -Jarrod

  • BO-how do we get unique summerised value for both graph and table

    When we add the column it shows 15 but when we create a graph with the same column and week no column it is taking distinct value resulting 7 as sum please let me know if there is any option to remove distinct values.

    "Index your foreign keys if you EVER
    o update parents primary key
    {code}
    When a deadlock is to due to a _unindexed FK_, the corresponding deadlock graph should at _least show one TM_ (DML enqueue). This is not the case here. So, unindexed FK are not the case here
    Mohamed Houri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to get Unique IP address for my Mac

    Hello - I agree with several of the posts I've read that Linksys products are very Windows-centric and information for Mac users is sketchy.
    Our household uses both Windows and Macs. It took a long time to get my Mac going via customer service on the telephone (and they take about an hour to answer). But we finally did get the job done and customer service was very diligent in helping solve the problem.
    My question is: customer service gave me an IP number to enter for my Mac - I'm not sure how they came up with that number. I now have two more Macs in the household I'd like to get setup for our network.
    Where or how do I get unique IP numbers for those two machines? I tried using the same one that I was given by LInksys, but then of course, those two machines cannot be ON at the same time - you are told the IP# xxxxx is already in use.
    How does each Mac get its own IP number for the purposes of being on our wireless system?
    Thanks a bunch...

    It would be easier if you simply posted the IP address they gave you and which router model and version (check the label underneath the router) you have. Also the firmware version you are running would be helpful.
    Some of the later WRT54G versions (e.g. v6) had some issues assigning Macs dynamic IP addresses. I guess that was your problem why the support assigned a static IP address instead.
    For your other Macs you simply use the exact same settings exact for the IP address of the computer. A default Linksys routers uses the network 192.168.1.0/255.255.255.0. The router itself is 192.168.1.1. The DHCP server on the router assigns the addresses 192.168.1.100-149. All addresses 192.168.1.2-99 and 150-254 are available.
    The Mac that is already setup should have an address in this range. You can choose any other address in this range for the other Macs. There is no rule whatsoever how you are supposed to assign them. You can use 2,3,4 or 10,20,30, or 13, 26, 39, or ... ;-)

  • How to get Unique calid for users with same name in multiple domain env..

    I found we need to use "-k legacy" option for creating users in non-hosted setup..
    I had two domains default as xxxx.com and the one that I created as yyyy.com
    When I have users with same name in two of the domains as user1..
    The calid for both of them is... user1 ....so they share the same calendar
    When Im in valid SSO of yyyy.com I get the mail account for user1 as [email protected] .....but the calid .. common as user1
    How I can get unique calid for users under two domains..
    whether I need to set Hosted domain support...Then how the mailid's differ with out using hosted domain support..
    And I need to login UWC without using @domain.com...
    Help me on this...
    Ashik

    Do you have UWC and Cal configured at least for virtual domain support?
    basically.. for discussion.. let's say you have three domains on your server.. 1st domain is the default domain. other 2 domains are virtual domains.
    if all domains were created with mail and cal support (-S mail,cal).. you would use the following options when creating users:
    1) for the default domain.. you must use the "-k legacy" option when adding users.
    2) for the other two domains.. when you create the user.. do NOT use a "-k" option.
    If you do not use the "-k" option.. it defaults to "hosted" which will cause the user's calid to be [email protected]
    If you Do use the "-k legacy" option.. it will create the calid as just "userid"
    With regard to logging into UWC without the @domain.com part of a username in a hosted domain.. the easiest way to avoid this.. is to point a host name under the hosted domain to the server.
    if you point webmail.xxxx.com to the server... and then access it via:
    http://webmail.xxxx.com/uwc/
    any users in the xxxx.com hosted domain will NOT need to use @xxxx.com when logging in... they can just use "userid"
    This feature does not take any special configuration (aside from adding a DNS entry for the hosted domain)
    Hopefully that helps.

  • How to get unique ID'd count in report

    HI ,
    I have following data in ods.
    ID  Degree  Field Counter
    12    Grad       Computers   1
    12    PG          Computers      1
    13   Grad       Electronics    1
    14   PG       Computers      1
    I need a report to display the number of ID's with computers field.
    In the above example Id 12 has two records so the count is coming as 3.(12 ID two times and 14 ID).
    But I have to display only unique ID's.I have to have count 2(12ID and 14 ID).
    How can I achieve unique ID's count in report.
    Edited by: SAP Consultant on Aug 6, 2011 7:24 AM

    Hi,
    Create a RKF and restrict it with Field "Computer" and key figure as count, after that in properties of RKF you can set "Calculate result as" option to "Count of all values".
    And if you want to get it across ID's then create an exception aggregation on this RKF and set reference characteristics as "ID".
    Regards,
    Durgesh.

  • How to get unique Id's along with using a formula in Report

    Hi,
    I have data in the following format:
    PO no  Subfield Created date Changed date
    123              A               01/01/2011        20/01/2011
    123              B               01/01/2011        20/01/2011
    124              A               01/01/2011        25/01/2011
    124              B              01/01/2011        25/01/2011
    I want to get  unique number of PO's which has difference(changed date - created date)  greater thn 20days and less thn 20days.
    So I want to get in report:
    PO no >20    <20
    123             ____        1
    124            1       _____
    I know to get unique PO number and how to calculate two dates difference in days by using formula variable replacement path.
    But how to incorporate these two functions.
    Edited by: SAP Consultant on Aug 14, 2011 8:34 AM
    Edited by: SAP Consultant on Aug 14, 2011 8:35 AM

    Hi,
    This link will help you:----
    Calculate difference of days between two dates
    Regards,
    Suman

  • How can I get the orclownerguid (unique user number) in Java Portlet?

    Hi,
    I find a unique number for each portal user in OID, it calls orclownerguid.
    And I try to obtain this number in my portlet Java with the JPDK.
    How can I get the orclownerguid in Java Portlet with JPDK?
    thanks
    regards
    jerome laforge

    Hello,
    I just realized that I missunderstood your question.
    We have several way to pass (and send) parameter to a portlet:
    - OracleAS Portal page parameters that allow the browser user to define the way the parameter is send to the portlet
    - generic URL parameter (public parameters)
    - private paramter (a parameter that is targetted to a single portlet instance)
    In you case, you can use public parameter, but you have to explicitly says that your portlet consume URL parameters, so set the passAllUrlParams tag to true in the provider.xml file.
    Also I invite you to read the sample we have in the PDK that show how to use private parameter and page/portlet parameters, and the associated articles you can find on http://portalstudio.oracle.com
    Regards
    Tugdual Grall

  • How can i get Outlook Unique Appointment Id

    Dear All,
    I have created an appointment from SAP in Microsoft outlook.
    And now i need to cancel it, for that i need Unique appointment id.
    Can any one tell me, how can i get APpointment id, or else they way to cancel existing appointment from Calendar.
    Regards,
    Ravi

    Hi All,
    I found out myself..
    There is a property GlobalAppointmentID in the Appointment item object.
    That will give you the unique appointment id.
    Kind Regards
    Ravi

  • HT1329 How can I get the songs on my iPod onto my new iTunes library?

    I have an iPod that was synced to another iTunes library on another PC.  The PC died and I replaced it with a MacBook Pro but it keeps saying the iPod is synced w/ another iTunes library.  How can I get the songs on my iPod on the new iTunes library?

    Some of the information below has subsequently appeared in a document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991
    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software. Examples (check the web for others; this is not an exhaustive listing, nor do I have any idea if they are any good):
    - Expod (free) - http://www.headlightsoft.com/expod/ - Mac, universal for 104.+ (newer machines try de-Tune)
    - deTune (free) - http://www.headlightsoft.com/detune/ - Mac, 10.5+
    - Senuti - http://www.fadingred.com/senuti/
    - Phoneview - http://www.ecamm.com/mac/phoneview/
    - MusicRescue - http://www.kennettnet.co.uk/products/musicrescue/
    - Sharepod (free) - http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2 - Windows
    - Snowfox/iMedia - http://www.mac-videoconverter.com/imedia-transfer-mac.html - Mac & PC
    - iexplorer (free) - http://www.macroplant.com/iexplorer/ - Mac&PC
    - Yamipod (free) - http://www.yamipod.com/main/modules/downloads/ - PC, Linux, Mac [Still updated for use on newer devices? No edits to site since 2010.]
    - 2010 Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive - https://discussions.apple.com/docs/DOC-3141 - dates from 2008 and some outdated information now.
    Copying Content from your iPod to your Computer - The Definitive Guide - http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/ - Information about use in disk mode pertains only to older model iPods.
    Get Your Music Off of Your iPod - http://howto.wired.com/wiki/Get_Your_Music_Off_of_Your_iPod - I am not sure but this may only work with some models and not newer Touch, iPhone, or iPad.
    Additional information here https://discussions.apple.com/message/18324797

  • I have 3 iphones, an ipod touch and an Ipad on the same itunes account.  should I have a different account for each device?  If so how do I get all my purchases, like music on all the devices?

    I have 3 iphones, an ipod touch and an Ipad on the same itunes account.  should I have a different account for each device?  If so how do I get all my purchases, like music on all the devices?

    You can sync as many devices as you want to the same iTunes account, there is no limit. You can have the same content on each device or different content, the choice is yours. iTunes will keep everything straight, by device, including separate backups. I'd suggest giving each device a unique name, to make things easier.

  • How to have a unique requestId for a Page for multiple users

    Hi,
    Can someone please tell me how to get a unique RequestId whenever a page is visited. I need to have a unique RequestId generated for each user if they are on some specific
    page. Whenever a users refreshes a page or come to the page by clicking back button want to have a unique requestId always.
    Can I use sessionRequestId or something for HttpServletRequestObject that always gives me a unique Id.
    Thanks

    Unique for how long?
    Eternally unique ?
    unique until the server restarts?
    Most simplistic approach would be to have a static/singleton counter. It wouldn't work perfectly in high volume sites, but should work well enough for smaller ones. Including a timestamp in the key makes it fairly unique.
    This would handle both initial requests and refreshes of the page.
    There is nothing you can do about users hitting the back button. If the page gets served from the client cache, the server knows nothing about it, and can not issue a unique id.
    Why the requirement? What are you trying to accomplish by doing this?

  • How do you get face time to work with shared email adress

    I have 2 computers sharing the same email address. I recieved for xmas a new i touch with face time. I can connect with the thrid computer not using the same email address as mine. How do I get the other 2 to accept the incoming calls?

    You have to add a unique calling email addres to Settings>Facetime and delete the common email address.  Yu need to do the same thing for Messages.

  • I have created separate user accounts for my 2 boys on my macbook. How do i get my itunes library onto their new ipods?

    I have created separate user accounts for my 2 boys on my macbook. How do i get my itunes library onto their new ipods?

    They can't.  Which came first - the chicken or the egg?  Actually, that's a bad comparison but a sync must come first.
    The library is actually part of iTunes and it contains everything.  iTunes is then configured so that you (or they) determine which portion of everything will be synced to each iPod (identified by a unique name, see below for an example of an iPod and an iPad).  iTunes can't make that decision until AFTER it knows which iPods exist.
    By the way, I (you, they) can very easily change the name of each device to whatever I (you, they) wish to call it.

  • How can we get the table name...

    Hi All,
    How can we get the actual table name for an argument if its datatype is %ROWTYPE.
    For Ex :
    function ACCOUNT_UPDATE (account_no number,
    person person%rowtype,
    amounts dbms_describe.number_table,
    trans_date date)
    return accounts.balance%type;
    In the above function 'ACCOUNT_UPDATE', for argument person the datatype is 'person%rowtype'.
    Is there any way to get the name from Data Dictionary tables.
    I tried using All_Arguments and DBMS_DESCRIBE, I can able to get all the individual fields of %ROWTYPE by I could not able to know the exact table name thru the DD.
    my requirement is dynamically I need to declare a variable for the argument datatype.
    Your help is highly appreciated.
    Thanks

    hi vinay,
    this is the easiest way to find the tablename of a particular field.
    t.code:XD01.
    enter.
    select the kunnr field.
    press F1.
    the top of the screen u will get 'Technical setting icon.
    select that one.then u will get tablename,fieldname,parameter id also.
    if helps give the rewards.
    regards,
    akash.k

Maybe you are looking for