Need supplier name along with lot no.

hello sir,
i need to show supplier name along with lot no.
here is my query--
SELECT DISTINCT(b.vc_field1),a.vc_lot_no,a.nu_balance_qty--, c.VC_SUPPLIER_NAME
FROM STK_LOT_SUMMARY a, DT_RECEIPT b, makess.mst_supplier c, purchase.MST_SUP_ITEM d
WHERE a.vc_comp_code = '01'--:GLOBAL.vc_comp_code
AND a.vc_comp_code = b.vc_comp_code
AND b.VC_COMP_CODE=c.VC_COMP_CODE
AND c.VC_COMP_CODE=d.VC_COMP_CODE
AND c.NU_SUPPLIER_CODE=d.NU_SUPPLIER_CODE
AND a.VC_LOT_NO=b.VC_LOT_NO
AND a.vc_item_code=b.vc_item_code
AND b.vc_item_code=d.vc_item_code
AND a.vc_item_code = 'SYUWLNZXYWXXX00400100'--:HD_VERIFY.vc_item_code
--AND b.vc_field1 IS NOT NULL
AND a.vc_lot_no <> '0'
AND a.nu_balance_qty > 0
GROUP BY (a.nu_balance_qty,b.vc_field1, c.VC_SUPPLIER_NAME,a.vc_lot_no)
whose result is---
VC_FIELD1     VC_LOT_NO     NU_BALANCE_QTY
     11     48.00
22 B     8     192.00
181 A     3     200.00
54 F     13     244.50
143     10     400.00
1343     4     1,000.00
181     2     1,249.00
but when i include supplier name(removing comment) result would be....
VC_FIELD1     VC_LOT_NO     NU_BALANCE_QTY     VC_SUPPLIER_NAME
     11     48.00     Chandak Wools
     11     48.00     Somani Woollen Mills
     11     48.00     Sonu Monu & Brothers
     11     48.00     Somani Woolen Pvt. Ltd
181 A     3     200.00     Chandak Wools
181 A     3     200.00     Somani Woollen Mills
181 A     3     200.00     Sonu Monu & Brothers
181 A     3     200.00     Somani Woolen Pvt. Ltd
143     10     400.00     Chandak Wools
143     10     400.00     Somani Woollen Mills
143     10     400.00     Sonu Monu & Brothers
143     10     400.00     Somani Woolen Pvt. Ltd
1343     4     1,000.00     Chandak Wools
1343     4     1,000.00     Somani Woollen Mills
1343     4     1,000.00     Sonu Monu & Brothers
1343     4     1,000.00     Somani Woolen Pvt. Ltd
22 B     8     192.00     Chandak Wools
22 B     8     192.00     Somani Woollen Mills
22 B     8     192.00     Sonu Monu & Brothers
22 B     8     192.00     Somani Woolen Pvt. Ltd
181     2     1,249.00     Chandak Wools
181     2     1,249.00     Somani Woollen Mills
181     2     1,249.00     Sonu Monu & Brothers
181     2     1,249.00     Somani Woolen Pvt. Ltd
54 F     13     244.50     Chandak Wools
54 F     13     244.50     Somani Woollen Mills
54 F     13     244.50     Sonu Monu & Brothers
54 F     13     244.50     Somani Woolen Pvt. Ltd
please help me how could i write query to get lot no along with supplier name.
total no of rows is 7.but while adding supplier name it compare item code and executes 28 rows.
regards

Hi Ishika,
Also check your Joins.
May be you are missing something else.
Thatz the reason all the four supplier combination are repeated.
Go through ur joins again.
Don't forget to use any number column as nvl(nu_balance_qty,0).

Similar Messages

  • What's Impact of changing the customer Name(along with Bill To and Ship To) at the header level after book

    Dear All,
    Revision: 11.5.10.2
    We have a case where some of the orders we have created have incorrect customer name along with incorrect Bill To Ship To.
    All these orders are booked. And their Line Status is either Awaiting Shipping or Supply Eligible.
    What Impact of changing the customer Name(along with Bill To and Ship To) at the header level.
    Thanks,
    Helen

    Hi Helen-Oracle
    As said above there should not be an impact if the warehouse on the order before and after changing the customer, ship to and bill to remains same.
    Additionally, if the item on-hand qty is sufficient to reserve the item and there is no B2B internal requisition kicked off.
    As long as the above conditions are fine, I don't see any impact of changing the customer, bill to and ship to.
    Also, you can run a complete wing to wing cycle in case you really want to test the behavior of the system in such scenario.
    Please feel free to mark the response as helpful or correct if you think it is helpful and to help people easily find help and answered responses.
    Thanks
    Mirza Tanzeel

  • Using Supplier Scheduling along with eCommerce; how does this fit into ASCP

    Hi,
    In Oracle 11i we are using Supplier Scheduling along with eCommerce to publish our MRP forecast via EDI 830/DELFOR. We use autoScheduling which requires MRP and in 11i we run MRP, so it all works well.
    Now we are moving to 12i and using ASCP (Advanced supply chain planning) and I understand that we do not need to run MRP any more. ASCP in conjunction with PS (Production Scheduling) will do the trick.
    Given this situation how can I use Supplier Scheduling / eCommerce to publish EDI 830/DELFOR?
    Appreciate any input in the right direction.
    Thanks!!!

    any body...some body...please help!!!

  • Hello, I have a iPod touch 4g,last time when I paired with my friends iPhone it showed his iPhone's name along with devices connected earlier in the bluetooth list after I updated my software to ios 5.1 the names of friends devices appear as D1:FG:12:13..

    Hello,
    I have a iPod touch 4g,last time when I paired with my friends iPhone it showed his iPhone's name along with devices connected earlier in the bluetooth list after I updated my software to ios 5.1 the names of friends devices appear as D1:FG:12:13:AK something like that and all the other previously connected devices appear in this same form in the bluetooth list how do I fix this back and it is confusing to connect to a device with no name but some unknown Bluetooth address so how do I find the device name back????
    SO PLEAZZZZZ HELP!!!!!

    An iPod can only pair with an iPhone for internet sharing provided that the iPhone has the subscribed to the tethering plan. The BT profiles do not permit file tansfer between IDevices by BT. The only BT pairsin is by app and those ar for peer-to-peer gaming.

  • How to get all parameter names along with their values in stored procedure which is being executed

    Im using sql server 2012, is there any possible way to get all the parameters of a stored procedure along with the values passed to it.
    I need these things to build a xml. I mean this should happen in the procedure which being executed and it should be common for all the procedures.
    For example, let us suppose we have to procedures,
    uspSave, @name='test' @age=20
    uspDelete @id=2
    now in uspSave procedure, i need to get @name, @age and the values 'test', 20 and in uspDelete, i should get @id with value 2.
    For getting the column names, i tried this,
    select parameter_name from information_schema.PARAMETERS where specific_name=OBJECT_NAME(@@procid)
    now is it possible to loop through the result of above query and can we get the values.

    I think  you need running SQL Server Profiler to capture this info even in SQL Server 2012.
    Best Regards,Uri Dimant SQL Server MVP,http://sqlblog.com/blogs/uri_dimant/
    Blog : MS SQL Development and Optimization
    Blog : Large
    scale of database and cleansing

  • SQLLoader: Uploading data file name along with data

    I am using Oracle SQLLoader to upload my data from CSV files into a single table. My current CTL file is as follows:
    LOAD DATA
    INFILE 'trace_metals100.csv'
    INFILE 'trace_metals101.csv'
    APPEND
    INTO TABLE TRACE_METALS
    FIELDS TERMINATED BY ','
    (STATION_NO, METAL_NAME, METAL_WT)
    Just for my record I want to upload the data file name also along with the data into a fourth column. How should I do it using SQLLoader??
    Regards,
    Moiz

    Do two loads using two separate control files:
    LOAD DATA
    INFILE 'trace_metals100.csv'
    APPEND
    INTO TABLE trace_metals
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    (station_no,
    metal_name,
    metal_wt,
    fourth_column_name CONSTANT trace_metals100.csv)
    LOAD DATA
    INFILE 'trace_metals101.csv'
    APPEND
    INTO TABLE trace_metals
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    (station_no,
    metal_name,
    metal_wt,
    fourth_column_name CONSTANT trace_metals101.csv)

  • How can I print the Album name along with the Contact Sheet created from the photos it contains?

    I have my photos organized into albums.  I would like to print a contact sheet for each album, but would like it to include the album name.  This seems like a very basic part of organizing, but it's not overly apparent how to do it.  I would also like to resize the caption font on the contact sheet, too.  Any suggestions?

    Thanks for your replies.
    When you say "book creation," are you referring to the Photo Book option?  Unless I can create a custom template, that seems somewhat limiting, as there are only a few templates to select from.
    I'm trying to come up with a method to manage headshots of staff, the printout of which would be distributed to hotel and security personnel while our group travels (the included Photo Book templates are not appropriate for a straight-up, columnar layout like this requires). My thought was to keep each department's headshots in its respective Album, which could then be quickly printed and distributed.  Staff for each department rotates in and out on a regular basis, and the Elements Organizer seemed like a good way to quickly add, caption and place into each Album the appropriate pictures.  Contact Sheet printing seemed to be a quick way to accomplish this, but I was hoping to get the Album name (i.e. department name) at the top of the printout.
    I printed the contact sheet to a PDF (I have Acrobat Pro XI), then inserted it into a Word doc, as you suggested.  While it does allow for headers, etc. it does add a couple of additional steps to the process, but more importantly, I'm finding that the image captions in the PDF are blurred, and not crisp enough to read easily (it may be better if I had font control in the PE Contact Sheet).
    So maybe I need more of a desktop publishing app (more than I was wanting to spend), but the Organizer gives me a good process for quickly managing my photos.
    Any other suggestions or comments would be greatly appreciated.

  • LAN DNS resolution has changed - along with lots of other behaviours

    Hi
    Last Friday I experienced a lot of strange network/firewall behaviour on my Macs, both running 10.6.7. I don't know what the problem is but am trying to isolate it - or them.
    Considering just the MacBook Pro, I have been running the same setup for over a year at different locations and never experienced this before. The MBP is named Isola, it runs Windows XP Pro on VMWare Fusion and MAMP as a development/test environment for websites.
    Since I have had this setup, with MAMP running and using the normal Apache and MySQL ports I could connect to websites using Mac browsers on: http://localhost/, if I was testing on Windows browsers I would use http://isola/
    This worked at home using an Airport connection over a Netgear modem/router:
    TCP/IP
    Using DHCP with manual address
    IPv4: 192.168.0.5
    Subnet Mask: 255.255.255.0
    Router: 192.168.0.1
    Configure IPv6: Automatically
    DNS Servers: 192.168.0.1
    Search Domains: -
    It also worked at the office - 2 Macs networked using a Netgear Gigabit switch, also connected to the building's ethernet system for external internet connection:
    TCP/IP
    Using DHCP
    IPv4: 10.0.21.10
    Subnet Mask: 255.255.255.0
    Router: 10.0.21.254
    Configure IPv6: Automatically
    DNS Servers: 10.0.21.254
    Search Domains: popcorn
    I have two Locations set up in networking preferences, Home and Office. DHCP and DNS at home are provided by my ISP I believe. Apparently the IT infrastructure in the building where my office is located handles the DHCP and DNS.
    Since last Friday when I try to connect to http://isola/ using a Windows browser the request either times out (Internet Explorer) or is re-routed to http://www.isola.com (Firefox and some other browsers). In order to the site on my MAMP server I have to use http://isola.local/
    I can replicate the same behaviour when trying to connect to the MAMP server using my Mac Pro.
    I have flushed both Macs' DNS caches, repaired permissions and tried other stuff which I can't quite remember now. Nothing has made any difference.
    I'd really like to know if this new behaviour is likely to be caused by my configuration or the office DNS setup and ideally get it back to what it was before.
    Yesterday I started experiencing strange behaviour with the MBP firewall. It may be part of the problem or not - I'll include for information. It has always been on and set up normally - none of the Advanced settings checked. There were a whole load of software listed in the Advanced tab such as Skype, Safari, Opera configured to accept incoming connections. Yesterday for the first time ever I had a whole load of firewall dialogue boxes open on start up asking to allow or block network connections to basic OS X services: AppleFileServer, cups-lpd, cupsd, httpd, krb5kdc, mysqld, nmbd, smbd, vmnet-natd. I think some of these are due to File Sharing and Printer Sharing being enabled in the Sharing Preferences - but they've been enabled for over a year.
    Thanks in advance for any advice.

    Safari gives the error message
    Safari can't open the page "[URL]" because your computer isn't connected to the Internet.
    on any attempt to access a page by URL. If I put in an IP address it loads fine (aside from not being able to resolve any links to images, etc. which are linked using a domain name).
    nslookup google.com on the command line gives the error:
    /SourceCache/bind9/bind9-31/bind9/lib/isc/unix/socket.c:4525: bind: No route to host
    nslookup: isc_socket_bind: unexpected error
    DNS resolution does not work on Firefox either.
    All checkboxes in the System Preferences>Network>Advanced>Proxies tab are unchecked. The box at the bottom ("Bypass proxy settings...") contains:
    *.local, 169.254/16
    Thanks for trying to help me out! I'm happy to provide any other information that might be useful to you.

  • Why we need live cache along with RDB in APO

    Hello Expert,
    I recently entered to APO module so want to know about live cache and why we really need comparing to RDB and what RDB cannot do that live cache can do?

    SRS,
    Functionalities are pretty much the same.  LiveCache is a relational Database, built on MaxDB.
    Advantage of LC is that most of the data is stored in memory rather than on disk storage.  Data access and retrieval is substantially faster from memory than from disk storage.
    Best Regards,
    DB49

  • Can I print VI names along with the icons in the hierarchy print?

    When printing the documentation a diagram of the VI hierarchy prints. Is there a way to get each of the VIs to have it's name or path printed in this diagram?

    Try using VI Server to list the VI's in memory, and their paths.
    I assume you are doing this to list the contents of a project. The above method will give you a list of all VIs in memory, so all you have to do is run it while your project (exclusively) is open. You will have to be sure you know which VIs belong to this tool so you can subtract them out by checking the status.
    There is probably an easier way, though I am not sure if the SCC module allows printing of the contents of a project. I know that other Source Code Control programs do allow this. Anyway, if you were to enter your project into a SCC program, you would be able to monitor and follow the contents of the project, and not have to worry about things like this.
    Good luck.

  • Do I need anything else along with an iPad and a projector ( and a laptop maybe ) to conduct a presentation?

    I don't have any adaptor.
    Thank you so much.

    Hey fargonorth,
    Thanks for the question. To connect your iPad to a projector, you’ll definitely need an adapter. If your projector has an HDMI input, you can use this adapter:
    Lightning Digital AV Adapter - Apple Store (U.S.)
    http://store.apple.com/us/product/MD826ZM/A/lightning-digital-av-adapter?fnode=3 a
    If your projector has a VGA input, check out this adapter:
    Lightning to VGA Adapter - Apple Store (U.S.)
    http://store.apple.com/us/product/MD825ZM/A/lightning-to-vga-adapter?fnode=3a
    Thanks,
    Matt M.

  • I recently used 'force quit applications' to close something and after in the dock its normal icon was replaced with a pen and paper along with lots of my other applications. I can't open them either. How can i fix this??

    .

    staylodj,
    In the finder window menu bar click GO and go to folder type ~/Library/Preferences hit go andscroll down and look for com.apple.dock.plist and drag it to the trash. Reboot, if it back to normal empty the trash. If no joy use the same path and find com.apple.dock.db drag that to the trash, reboot.
    Alternatly you can click on GO while holding the option key and click on Library then preferences and look for the above file.
    Hope this helps

  • Can not attach documents or files to email along with lots of other problems

    I can not attach any files or documents to an email. I am working on a Mac OS10.4. Have tried doing the F9 button as suggested in the help section and it totally froze my computer up to the point of having to unplug it and start my whole computer up. Also we can not finishing downloading Firefox 3.6.13

    Who will answer my question? and when?

  • Along with subtotal name display

    how to display vendor name along with subtotals...?
    my ALV report (using function modules, choice for LIST and GRID) subtotals needs to display..
    the code is :
           ls_sort                    TYPE slis_sortinfo_alv.
    *-- Level 1
      CLEAR ls_sort.
      ls_sort-fieldname = 'LIFNR'.
      ls_sort-spos      =  1.
      ls_sort-up        = 'X'.
      ls_sort-subtot    = 'X'.
      APPEND ls_sort TO vt_sort.
    *-- Level 2
      CLEAR ls_sort.
      ls_sort-fieldname = 'EBELN'.
      ls_sort-spos      =  2.
      ls_sort-up        = 'X'.
      ls_sort-subtot    = 'X'.
      CLEAR ls_sort.
      ls_sort-fieldname = 'DMBTR'.
      ls_sort-spos      =  3.
      ls_sort-up        = 'X'.
      ls_sort-subtot    = 'X'.
      APPEND ls_sort TO vt_sort.
    plz help me...

    Hi,
    This is sample coding for subheadings and with sub totals.
    REPORT YMS_TESTALV .
    TYPE-POOLS: SLIS.
    DATA: REPID LIKE SY-REPID,
          X_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
          IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          L_LAYOUT type slis_layout_alv,
    x_events type slis_alv_event,
          it_events type slis_t_event with header line. "SLIS_T_EVENT.
    DATA: BEGIN OF ITAB OCCURS 0,
          VBELN LIKE VBAK-VBELN,
          POSNR LIKE VBAP-POSNR,
          MALE type i,
          female type i,
    PLANE(10),
    ACTUAL(10),
    PLANE1(10),
    ACTUAL1(10),
          END OF ITAB.
    START-OF-SELECTION.
    REPID = SY-REPID.
    SELECT VBELN POSNR FROM VBAP UP TO 20 ROWS INTO TABLE ITAB.
    X_FIELDCAT-FIELDNAME = 'VBELN'.
    X_FIELDCAT-SELTEXT_L = text-020.      "'Planned cost'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 1.
    X_FIELDCAT-OUTPUTLEN = 10 .
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'POSNR'.
    X_FIELDCAT-SELTEXT_L = text-053.      "'Actual cost '.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 2."1.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'MALE'.
    X_FIELDCAT-SELTEXT_L = 'MALE'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 3.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    X_FIELDCAT-FIELDNAME = 'FEMALE'.
    X_FIELDCAT-SELTEXT_L = TEXT-T01.        "'FEMALE'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS = 3.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    it_events-NAME = SLIS_EV_TOP_OF_PAGE.
    it_events-FORM = 'TOP_OF_PAGE'.
    APPEND iT_EVENTS.
    CLEAR it_events .
    L_LAYOUT-NO_COLHEAD = 'X'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
              I_CALLBACK_PROGRAM = REPID
              IS_LAYOUT = L_LAYOUT
              IT_FIELDCAT = IT_FIELDCAT
              it_events = it_events[]
              TABLES
              T_OUTTAB = ITAB
              EXCEPTIONS
              PROGRAM_ERROR = 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.
    FORM TOP_OF_PAGE.
    *-To display the headers for main list
    FORMAT COLOR COL_HEADING.
            WRITE: / SY-ULINE(143).
            WRITE: / SY-VLINE,
            (8) 'LAST YEAR' ,
            SY-VLINE,
            (10) ' ' ,
            SY-VLINE,
            (19) 'CURRENT YEAR'(020) centered,
            (19) 'CURRENT YEAR'(020),
            sy-vline.
            WRITE: / SY-VLINE,
            (8) 'PLANE'(053) ,
            SY-VLINE,
            (8) 'ACTUAL'(054) ,
            SY-VLINE,
            (8) 'MALE'(056) ,
            sy-vline,
            (9) 'FEMALE'(057) ,
            sy-vline.
    FORMAT COLOR OFF.
    ENDFORM.
    Thanks,
    Shankar

  • FBA user's displaynames showing along with membership name.

    Hi All,
    Am using SharePoint 2010 site configured with both windows and Forms based authentications,
    Now when i logged in to the site with FBA user it shows the display name along with membership providers name,
    like this "i:0#.f|testuserprovider|Testuser1".
    Here the 'testuserprovider' is the membership provider name and 'Testuser1'
    is the excat FBA username.
    Previously it was displayed correctly as only the displayname but from today it showing name along with membership name, suddenly it happened. can anyone tell what would the problem and excat solution for this.
    Regards,
    karthick.

    Hi,
    Please check the link
    http://sharepoint.stackexchange.com/questions/35412/changing-users-displayname-isnt-permanent-i0-f-issue
    http://blog.tylerholmes.com/2011/03/awkward-usernames-courtesy-of-claims.html
    Please remember to click 'Mark as Answer' on the answer if it helps you

Maybe you are looking for

  • Memory leak in  NFS server

    Hi all, I have a problem with 2 SunFire 240 (4Gb of Ram) with solaris 10 in a Veritas Cluster. These nodes are 2 NFS server and they have 10 nfs client. We have a memory leak on these servers. The memory utilization increase day by day. The memory se

  • Weird Glitch in my E90

    Hey Guys, I've had my E90 for the better part of a year now and I never had a problem with it. If anything, its the best phone I ever bought. Anyway, about a week or two back, the phone froze (it does that very rarely) and I turned it off. When I tur

  • Document attachment in SAP

    Hello Everybody , We are hainvg SAP on DB2 and AS/400 I have a quesetion regarding attachmenet done in SAP . 1. Where the documents are stored in SAP ? 2. Are all documents are stored in single file or database table ? 3. How can we delete them ? Tha

  • Cannot open Lightroom CC on Windows 7 64bit machine

    Lightroom 5 still opens fine, but since I'm a Creative Cloud user, I'd like the full benefit of that. Any help is appreciated.

  • Reconstruct from Change log

    Hi All, I have a situation here where I have deleted a delta load request from ODS. Load is not through PSA. I have reconstructed the request from Change log several times before but here in my case I am not able to find the change log request when I