Selcetion with MB51 and Customer number

When we select in transaction MB51 with movement type 601, customer number and posting date we got only all shipments without customer special stock (E) in the document list.
But we want to see all shipments from unrestricted stock and from customer stock for one customer in a entered period.
Are there any settings in Customizing to solve this problem?

Hi Rudolph
You can check customizing in the below path and modify your MB51 according to your requirement.
spro>MM>inventory mangement>reporting>define display selection for material document list.
Assign the required selection or output field here for program RM07DOCS. You can pick fields of MSEG and MKPF tables.
Here you can modify MB51's selection screen and output screeen. Hope this will help you.
Regards
Antony

Similar Messages

  • Update the FI document with the PO customer number

    Hi,
    Is it possible to update a header field or item line field of customer of the FI document with the PO customer number or sales document of PO (VBAK-VBELN) at the billing moment. I cannot do by standard substitution because the original field is not saved in the table BSEG or BKPF. 
    Thanks,
    Cecilia

    It can be done via substitution with exit.
    You can configure your exit and then ABAPer can define the code for that exit in the copy of the program RGGBS000 assigned to the substitution in view V_T80D (Transaction SM30)
    In ABAP code you can fetch the values from various tables.
    Regards,
    Gaurav

  • Sold-to Party and Customer Number

    Hi frnds,
        I need to know the relation ship between sold to party and customer number.I know that for a customer number there may be more than one ship to party.But i want to know whether there exist more than one sold to party for a customer number. And i had a confusion that the customer number is either sold to party or ship to party Please explain me.
    Thanks in Advance

    Hi Anand,
    Generally we have some Paarner Functionslike
    SOLD TO PARTY
    SHIP TO PARTY
    BILL TO PARTY and
    PAYER. These are the partner functions.
    If u look in to Table VBAK u can find the Field name KUNNR with the data element KUNAG ( Sold to Party ).
    Customer Number and Sold to party may be same in some scenarios.
    SOLD TO PARTY will be always ONE for one Customer Number
    Customer Number may to Sold to Party or Ship to Party depending on the scenarios and the  requirment
    Best regards,
    raam

  • PO_QTY came out with 0 and negative number

    Hi experts,
    I was loading data via 2LIS_02_SCL,2LIS_02_ITM. PO_QTY was populated by ABAP instance. But some PO_QTY number came out with zero and negative number while some of other PO_QTY number came out with the right number.
    I was working on this problem for 2 days but have no idea on it. Anybody can help me?
    Thanks a lot.
    Junbo

    dear Junbo,
    are you working with business content extractor only, i mean no enhancement to that field ? i think it can be 'program error' that po quantity is not correct, try to search oss note ? what's your r/3 PI level ? applied the oss note mentioned before working with lo-mm pur ? it's stated in mm pur extraction doc (if you have not this doc, let's know your email, will send you).
    if you are using business content extractor only without enhancement to this field, you may create oss message to get sap help. debug with rsa3 option debug marked is possible.
    hope this helps.

  • Problems with Apache and custom JSPs

    Hi
    We've made an application on top of IFS, using JWS in our test envirnment. Just before making some stress tests, I'd like to try it using Apache. We're currently having two problems:
    1) I switch to the apache configuration running ifsconfig and not selecting JWS. When I try to access the ifs using http://host/ifs/files, everything goes well except that the "logout" icon doesn't appear. I did a little research and found out that the link goes to /ifs/webui/images/logout.gif. This gives an error in mod_jserv.log, like this one:
    [07/06/2001 22:54:20:315] (ERROR) ajp12: Servlet Error: ClassNotFoundException: webui
    It seems it's trying to find a "webui" class, since in ifs.properties every url that begins with /ifs goes to jserv.
    I don't know if this is a know problem or what should I've check...
    2) This one is more important. We're using some custom JSPs, which we use to edit the properties of some types of documents. Basically, when the user clicks over a file one of our JSP appears. These JSPs call a bean to do some processing, passing the HttpRequest as a parameter. The problem is that when using JWS we get the "path" request variable like in path=/%3A29464
    However, when using Apache we get path=/ifs/files/%3A29464 ( and afterwards we get an exception because the ifsSession.getPublicObject method doesn't work).
    Any hints on this? One way could be to check if the path begins with /ifs/files, but that's not really nice.. and besides I could have the same problem in some other parts.
    It's kind of urgent....
    Thanks
    Ramiro
    null

    Hi,
    The answer to your path problem is that you can make use of API to find out the current path so that it works both with Apache and with JWS. Follow the steps
    1. import the oracle.ifs.adk.http package in your custom jsps
    <%@ page import = "oracle.ifs.adk.http.*" %>
    2. Then within your jsp use the method
    getIfsPathFromJSPRedirect
    <%= oracle.ifs.adk.http.HttpUtils.getIfsPathFromJSPRedirect(request) %>
    This will give you the current path of the object on which you clicked on and which initiates the custom jsp.
    You can look at the CMS application which has made use of this API. URL is
    http://otn.oracle.com/sample_code/products/ifs/sample_code_index.htm
    Choose, sample applicatin -> Content Management system.
    Hope this helps
    Rajesh
    null

  • Problem with Mail and customized keyboard layout

    I have created a customized keyboard layout in XML, it loads and works perfectly with all applications except Apple Mail. I noticed on a googlegroup that somebody has the same problem. How can I submit this Mail bug to Apple?

    download and run Find Any File to search for  "Antidote".
    FAF can search areas that Spotlight can't like invisible folders, system folders and packages. Any file you find will be in the search results window and can be dragged to the Desktop and then to the Trash bin.
    OT

  • Can't connect with SFTP and custom port

    I administer a website that recently switched its connection from FTP to SFTP, using port 21001.  I tried to edit the connection profile in Contribute CS4 to SFTP, but don't see where to add the custom port. (Advanced options are for Proxy servers).  I tried to append the port number to the host name (:21001), but Contribute still won't connect.  I am able to connect to the webserver with the new settings using an FTP program.  What do I need to do to specify the custom port for the SFTP connection in Contribute?
    Thanks,
    Robert

    Use Static Ip,,,subnet mask ,,,Default Gateway & DNS numbers from the router setup page(Go to Status page) ... On the router changethe MTU size to 1365 ...click save settings ... Uncheck block WAN request under security tab ... Click save settings ... See if it works ...

  • Problems with orders and customer support

    Here is my dilemma,
    I NEED photoshop for school so I ordered Creative Suite on January 26 and they never delivered it, in fact they CANCELED my order. So I had to reorder it on February 2nd. They delivered it to me but in fact sent the WRONG ONE. So I was forced to order it yet again. After probably ten phone calls to customer service making sure I would receive the correct product in time. Finally after a month of dealing with these issues my order finally arrived only for me to find out that Photoshop wont work on my computer. I called customer service AGAIN to get some assistance. I was told the wait would be 5 minutes but I ended up waiting for over an hour before I decided to call from another phone at the same time. I was told by the automated system that "Adobe's operating hours were from 5am to 7pm" and to "please call back within those reasonable times."
    Of course you can see how frustrated I am due to the fact that I have been dealing with these incidents for a month and I NEED these applications for my school projects and have had to resort to using Word for projects. Can anyone help me get in contact with someone who will actually help and get me what I need instead of me having to go through these ridiculous loops of annoying problems.

    Well, no offense, but you're not telling us anything. If you want help, as a minor you should probably tell us what computer and operating system you are using and why it doesn't qualify. Merely venting your frustrations doesn't help anyone. You could also post in the DIS forum, if you insist on getting more direct contact. Not saying that the employees there can help you better - after all, they, too, are mostly those poor Indian saps Adobe chose to let handle support - but they will try.
    Mylenium

  • RDS 2012 - Virtual desktop collection with powershell and custom answerfile fails on VDI deployment

    Hi Guys,
    I try to deploy a new virtual desktop collection with Win8 VDI's (pooled/managed) based on a custom answer file. Everything needs to automated so working with the server manager is not an option, that's why the answer file is needed.
    The lab environment is based on Windows Server 2012 and Win8 Enterprise only. So functional level etc. is off course Windows Server 2012.
    I Use the following command:
    New-RDVirtualDesktopCollection `
    -CollectionName "Pooled Managed Win8" `
    -Description "This collection contains Pooled and Managed Win 8 VDI machines." `
    -OU "VDI" `
    -ConnectionBroker "RDSCB01.lab.local" `
    -PooledManaged `
    -CustomSysprepUnattendFilePath "\\hyper02\_Unattend\OOBE-only.xml" `
    -VirtualDesktopAllocation @{"hyper02.lab.local"=3} `
    -VirtualDesktopNamePrefix "Pooled-Win8-" `
    -UserGroups "lab.local\domain users" `
    -MaxUserProfileDiskSizeGB 1 `
    -VirtualDesktopTemplateHostServer "hyper02.lab.local" `
    -VirtualDesktopTemplateName “_WIN8-Template” `
    -UserProfileDiskPath "\\hyper02.lab.local\_UserProfileDisks" `
    -StorageType LocalStorage `
    -LocalStoragePath "E:\_VDI" `
    -Force `
    -Debug
    $error[0]|format-list -force
    I tried multiple answer files, but even with this simple one it fails:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <InputLocale>en-US</InputLocale>
    <SystemLocale>en-US</SystemLocale>
    <UILanguage>en-US</UILanguage>
    <UILanguageFallback>en-US</UILanguageFallback>
    <UserLocale>nl-NL</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <UserAccounts>
    <AdministratorPassword>
    <Value>UABhAHMAcwB3AG8AcgBkACEAQQBkAG0AaQBuAGkAcwB0AHIAYQB0AG8AcgBQAGEAcwBzAHcAbwByAGQA</Value>
    <PlainText>false</PlainText>
    </AdministratorPassword>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>UABhAHMAcwB3AG8AcgBkACEAUABhAHMAcwB3AG8AcgBkAA==</Value>
    <PlainText>false</PlainText>
    </Password>
    <Description>Admin</Description>
    <DisplayName>Admin</DisplayName>
    <Group>Administrators</Group>
    <Name>Admin</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideLocalAccountScreen>true</HideLocalAccountScreen>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>3</ProtectYourPC>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <SkipUserOOBE>true</SkipUserOOBE>
    </OOBE>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:d:/=%20software/iso&apos;s/lic/en_windows_8_enterprise_x64_dvd_917522/sources/install.wim#Windows 8 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    Everything goes fine, until is comes to the deployment of the VDI machines and the answer file is called. It fails with the following error:
    PS N:\> \\dc01\isos\New-VirtualDesktopCollection.ps1
    Unable to retrieve the details of the virtual desktop collection.
    + CategoryInfo : WriteError: (:) [Start-RDVMRollout], RDManagementException
    + FullyQualifiedErrorId : StartRDVirtualMachineRollout,Microsoft.RemoteDesktopServices.Management.Cmdlets.StartRDVirtualMachineRo
    lloutCommand
    + PSComputerName : localhost
    CollectionName Type Size PercentInUse
    Pooled Managed... PooledManaged 0 0
    writeErrorStream : True
    OriginInfo : localhost
    Exception : System.Management.Automation.RemoteException: Unable to retrieve the details of the virtual desktop
    collection.
    TargetObject :
    CategoryInfo : WriteError: (:) [Start-RDVMRollout], RDManagementException
    FullyQualifiedErrorId : StartRDVirtualMachineRollout,Microsoft.RemoteDesktopServices.Management.Cmdlets.StartRDVirtualMachineRolloutCo
    mmand
    ErrorDetails :
    InvocationInfo :
    ScriptStackTrace :
    PipelineIterationInfo : {}
    PSMessageDetails :
    Without the answer file parameter is runs perfectly, BUT the VDI machines get the OOBE.... That's not what we want off course....
    This link (http://support.microsoft.com/kb/2747656?wa=wsignin1.0) and other sources tell me that when i set the regkeys i can find a log in c:\windows\logs, but there is
    nothing. I looked on the management server and the connection broker.
    The only thing i could find in the event viewer was this:
    The XML input specified for the VM Provisioning job is not in a valid format. Error: 0xC00CEE03
    Input XML:
    <?xml version="1.0"?>
    <rdvp:RDVProvisioning xmlns:rdvp="http://www.microsoft.com/rdv/2010/05/">
    <rdvp:ProvisionPoolRequest><rdvp:Job>
    <rdvp:Action>Create</rdvp:Action>
    <rdvp:OnError>Stop</rdvp:OnError></rdvp:Job>
    <rdvp:Pool><rdvp:Name>Pooled_Managed_W</rdvp:Name>
    <rdvp:Type></rdvp:Type>
    <rdvp:VhdType>DiffDisk</rdvp:VhdType>
    <rdvp:SaveDelay></rdvp:SaveDelay>
    <rdvp:Version></rdvp:Version>
    <rdvp:MARK_HA>No</rdvp:MARK_HA></rdvp:Pool>
    <rdvp:Vm>
    <rdvp:BaseVmLocation>\\RDSCB01\RDVirtualDesktopTemplate\Pooled_Managed_W\IMGS\__3</rdvp:BaseVmLocation>
    <rdvp:LocalVmCreationPath>E:\_VDI</rdvp:LocalVmCreationPath>
    <rdvp:LocalGoldCachePath></rdvp:LocalGoldCachePath>
    <rdvp:SMBShare></rdvp:SMBShare>
    <rdvp:EnableVmStreaming>0</rdvp:EnableVmStreaming>
    <rdvp:RunVMsFromSMB>0</rdvp:RunVMsFromSMB>
    <rdvp:NamingPrefix>Pooled-Win8</rdvp:NamingPrefix>
    <rdvp:NamingStartIndex>1</rdvp:NamingStartIndex>
    <rdvp:Domain>lab.local</rdvp:Domain>
    <rdvp:OU>OU=VDI,OU=Computers,OU=Kamer 2101,DC=lab,DC=local</rdvp:OU>
    <rdvp:ProductKey></rdvp:ProductKey>
    <rdvp:UnattendXml>
    <![CDATA[<?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideLocalAccountScreen>true</HideLocalAccountScreen>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <ProtectYourPC>3</ProtectYourPC>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <SkipUserOOBE>true</SkipUserOOBE>
    </OOBE>
    </component>
    </settings>
    </unattend>]]>
    </rdvp:UnattendXml>
    </rdvp:Vm>
    <rdvp:HyperVHosts>
    <rdvp:HyperVHost>
    <rdvp:Name>hyper02.lab.local</rdvp:Name>
    <rdvp:NumberVms>3</rdvp:NumberVms>
    </rdvp:HyperVHost>
    </rdvp:HyperVHosts>
    </rdvp:ProvisionPoolRequest>
    </rdvp:RDVProvisioning>----------------------------------------------------------------------Log Name: Microsoft-Windows-TerminalServices-SessionBroker/Admin
    Source: TerminalServices-SessionBroker
    EventID: 1549
    Level: Error
    User: NETWORK SERVICE
    Task Category: MS VM Provisioning Plugin
    Computer: RDSCB01.lab.local
    I hope we can get this working, thanks in advance everybody!
    Regards,
    Bart

    Hi Bartsp34ks,
    I'm trying to make a powershell script like yours.
    But at some point I receive this error:
    System.Management.Automation.RemoteException: VM ASD-1: The data area passed to a system call is too small. (Exception from HRESULT: 0x8007007A)
    My Powershell script is:
    $CollectionName = Read-Host 'What Name should the Collection have?'
    $Description = Read-Host 'Type a description of the Collection'
    $OU = Read-Host 'In which OU should I put the Collection?'
    $ConnectionBroker = Read-Host 'What is the Connection Broker Name? (use FQDN)'
    $Sysprep = Read-Host 'Type the Unattend file location'
    $DesktopAllocation = Read-Host 'On which RD Virtualization Host server should I create the Collection?'
    $DesktopAllocationNR = Read-Host 'How many Virtual Desktop would you like?'
    $NamePrefix = Read-Host 'What is the Prefix Name?'
    $NameSuffix = Read-Host 'What is the Suffix Name?'
    $UserGroup = Read-Host 'Which User Group can use the Collection?'
    $UserProfile = Read-Host 'How big can the ProfileDisk be?'
    $TemplateServer = Read-Host 'What is the RD Host that has the Virtual Desktop Template? (use FQDN)'
    $TemplateName = Read-Host 'What is the Virtual Desktop Template Name?'
    $UserProfilePath = Read-Host 'What should be the User Profile Path?'
    $StorageType = Read-Host 'How should be stored?'
    $StoragePath = Read-Host 'Type the Path'
    New-RDVirtualDesktopCollection `
    -CollectionName $CollectionName `
    -Description $Description `
    -OU $OU `
    -ConnectionBroker $ConnectionBroker `
    -PooledManaged `
    -CustomSysprepUnattendFilePath $Sysprep `
    -VirtualDesktopAllocation @{$DesktopAllocation=$DesktopAllocationNR} `
    -VirtualDesktopNamePrefix $NamePrefix `
    -UserGroups $UserGroup `
    -MaxUserProfileDiskSizeGB $UserProfile `
    -VirtualDesktopTemplateHostServer $TemplateServer `
    -VirtualDesktopTemplateName $TemplateName `
    -UserProfileDiskPath $UserProfilePath `
    -StorageType LocalStorage `
    -LocalStoragePath $StoragePath `
    -Force `
    -Debug
    $error[0]|format-list -force
    Thanks for help

  • Help with Billing and vanity number?

    So here's what I want to do. I want to get verizon home phone service, under my name, at my buddy's house, and have the bill sent to me. I want it at his house because in his area I can get the number I want. Then, I want to port the number to my verizon wireless account. Then, I want to port that (now cell) number over to my new sprint account (which will already have an old number by this point.
    A few questions: one—can you have home phone service but have your bills sent elsewhere? Two, if this service is for a new line, will he have to deal with technicians or anything? I just want to do get one month of service and then immediately cancel.  Will there be any issues with his first number? Basically, I'm trying to have it done, with his consent, but having no impact on his current phone service and life.
    Second, all these portings, if I do them in order, they should work out, right?
    Thank you so much.

    HenrikIbsen wrote:
     I just want to do get one month of service and then immediately cancel.  Will there be any issues with his first number? Second, all these portings, if I do them in order, they should work out, right?
    You are going to have to sign up for a contract of at least one year for most any telephone service. In addition, all of those portings will quickly become a nightmare in my opinion. Porting is not immediate and sometimes takes weeks to go through.
    Good luck though.
    ~~ "It's not a bug. It's an undocumented feature."

  • Script to rename tv show with season and episode number

    Hi all,
    I am working on a script to rename all the files of a tv show contain into a single folder - keeping season & episodes numbers.
    I am using zenity to get the correct name of the tv show (mainly to add capital letters, and remove the dots - and also to be able to use the script for different tv show)
    then again using zenity to select which folder contain the files, and then I want zenity to display how the rename will do as a verification and if happy then process.
    The script work great but I can get zenity to display the output of the command and ask the question.
    Any suggestion?
    Many thanks,
    Regards,
    #!/bin/bash
    #Use Zenity to capture the title of the TV Show
    tv_show_name=$(zenity --entry)
    #Select folder where the files to be rename are
    sourcefolder=$(zenity --file-selection --directory --title "Please select the folder containing those Files")
    #Move into the folder
    cd $sourcefolder
    #Now we execute the script to keep season and episode numbers
    if [ $? == 1 ]; then exit; fi
    for filename in *; do
    if [[ "$filename" =~(\**).*(.*[0-9][0-9]).*([0-9][0-9]).*(\....)$ ]]; then
    result=$(`echo mv "$filename" "$tv_show_name S${BASH_REMATCH[2]} E${BASH_REMATCH[3]}${BASH_REMATCH[4]}"`)
    zenity --question --title="Are those title correct?" \
    --text=$result \
    if [[ $? -eq 0 ]] ; then exit; fi
    else
    mv "$filename" "$tv_show_name S${BASH_REMATCH[2]} E${BASH_REMATCH[3]}${BASH_REMATCH[4]}")
    fi
    done
    exit

    Right,
    I finally got it!
    Now the script work (tested with multiple files, different names) and the verification is to a singles files just to be sure not the mess up those episodes number.
    #!/bin/bash
    #Use Zenity to capture the title of the TV Show
    tv_show_name=$(zenity --entry)
    #Select folder where the files to be rename are
    sourcefolder=$(zenity --file-selection --directory --title "Please select the folder containing those Files")
    #Move into the folder
    cd "$sourcefolder"
    #Now we execute the script to keep season and episode numbers
    if [ $? == 1 ]; then
    exit
    fi
    for filename in *; do
    if [[ "$filename" =~(\**).*(.*[0-9][0-9]).*([0-9][0-9]).*(\....)$ ]]; then
    result=$(echo mv \"$filename\" \"$tv_show_name S${BASH_REMATCH[2]} E${BASH_REMATCH[3]}${BASH_REMATCH[4]}\")
    zenity --question --title="Are those title correct?" \
    --text="$result" \
    if [[ $? == 0 ]] ; then
    mv "$filename" "$tv_show_name S${BASH_REMATCH[2]} E${BASH_REMATCH[3]}${BASH_REMATCH[4]}"
    fi
    fi
    done
    exit

  • WITH clause and Custom Folders in Discoverer 10.1.2....

    Hi ,
    Is there any way to write a sql query using the WITH clause in Discoverer Administrator 10.1.2. custom folder....???
    I mean something like this......
    WITH sample_data as (select .........)
    as
      (select ..... from sample_data) which of course is valid in SQL*PLUS....
    Thanks , a lot
    Simon

    Hi ,
    sorry but i didn't make it working.....
    I have written this WITH clause...
    SQL> with sample_data as (select '13' as id , 'Y' as in_active from dual
      2                       union all
      3                       select '194' as id , 'Y' as in_active from dual
      4                       union all
      5                       select '792' as id , 'N' as in_active from dual)
      6    select id , in_active from sample_data
      7  /
    ID  IN_ACTIVE
    13  Y
    194 Y
    792 NIn custom folder of Discoverer , i have written....
      select id , in_active from  (with select '13' as id , 'Y' as in_active from dual
                         union all
                         select '194' as id , 'Y' as in_active from dual
                         union all
                         select '792' as id , 'N' as in_active from dual)But an error occured....ORA-00903 invalid table name
    Can somebody help me in this...?????
    Thanks , a lot
    Simon

  • I want a select statement to return two values, sum of one column and customer number

    I have two columns one called invoice_number and the other invoice_amount. I want a select statement to return two columns.... invoice_number and then the sum of the invoice_amount(s) for each unique invoice number.
    SELECT sum(invoice_amount) AS Totalinvoice_amount FROM InvoiceTB where invoice_number = 'INV102'
    This is where I've started, which returns:
    Totalinvoice_amount
    500.00
    Any help is appreciated.
    Please mark my post as helpful or the answer or better yet.... both! :) Thanks!

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Difficulty using an Aperture Web gallery with Iweb and custom domain

    I am not using a .Mac account. I do however, use Aperture to create web galleries. I cannot get Iweb to link to all my Aperture web galleries. Aperture web galleries create index.html files. When I link to a file called index.html nothing happens. Can someone please help. Thank you. Tom

    You need to use the entire URL and have your folders already uploaded to your server.
    Syntax would be something like this:
    http://myserver.com/foldername
    Since index.html is default you can leave it out of the URL.
    I don't use Aperture so I don't know the method it uses. I would suspect it allows you to name a folder for the files and inside it is the index.html file and maybe a folder of images and other support files.

  • Help with workflows and custom objects

    Hi!
    I want to create a script or workflow that will inventory computers C: and D: drives. I would like to use a workflow so i can query many computers simultaneously.
    Unfortunately I does not get the right output. I get PSComputerName and PSSourceJobInstanceID instead of my variables.
    PS C:\Windows\system32> Get-HDDInfo -ComputerName Comp1, Comp2
    PSComputerName PSSourceJobInstanceId
    localhost d7c95049-27c5-46e2-970f-7b940a656aa3
    localhost d7c95049-27c5-46e2-970f-7b940a656aa3
    localhost d7c95049-27c5-46e2-970f-7b940a656aa3
    localhost d7c95049-27c5-46e2-970f-7b940a656aa3
    The Workfow!
    Workflow Get-HDDInfo ([string[]]$ComputerName) {
    $Result = @()
    ForEach -Parallel ($Computer in $ComputerName) {
    $WMIComSys = Get-WmiObject -Class win32_computerSystem -Property Name -PSComputerName $Computer
    $WMIDiskDrives = Get-WmiObject -Class Win32_LogicalDisk -Filter "DeviceID = 'C:' or DeviceID = 'D:'" -PSComputerName $Computer
    $tmpOBJ = New-Object psobject
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "ComputerName" -Value $WMIComSys.Name
    foreach ($DiskDrive in $WMIDiskDrives) {
    $VolumeLetter = ($DiskDrive.deviceID).substring(0,1)
    $VolumeTotalSize = "{0:N2}" -f $(($DiskDrive.Size) / 1GB)
    $VolumeFreeSize = "{0:N2}" -f $(($DiskDrive.FreeSpace) / 1GB)
    $VolumeName = $DiskDrive.VolumeName
    # Variables outputs the correct values to C:\_tmp\test.txt
    "$VolumeLetter $VolumeTotalSize $VolumeFreeSize $VolumeName" | out-file C:\_tmp\test.txt -Append
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_VolumeName" -Value $VolumeName
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_TotalSize" -Value $VolumeTotalSize
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_FreeSize" -Value $VolumeFreeSize
    } $workflow:Result += $tmpOBJ
    return $Result
    Can anyone point me in the right direction?
    Thanks!

    I created a none-workflow version of the script:
    Function Get-TestHDDInfo ([string[]]$ComputerName) {
    $Result = @()
    ForEach ($Computer in $ComputerName) {
    $WMIComSys = Get-WmiObject -Class win32_computerSystem -Property Name -ComputerName $Computer
    $WMIDiskDrives = Get-WmiObject -Class Win32_LogicalDisk -Filter "DeviceID = 'C:' or DeviceID = 'D:'" -ComputerName $Computer
    $tmpOBJ = New-Object psobject
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "ComputerName" -Value $WMIComSys.Name
    foreach ($DiskDrive in $WMIDiskDrives) {
    $VolumeLetter = ($DiskDrive.deviceID).substring(0,1)
    $VolumeTotalSize = "{0:N2}" -f $(($DiskDrive.Size) / 1GB)
    $VolumeFreeSize = "{0:N2}" -f $(($DiskDrive.FreeSpace) / 1GB)
    $VolumeName = $DiskDrive.VolumeName
    # Variables outputs the correct values to C:\_tmp\test.txt
    "$VolumeLetter $VolumeTotalSize $VolumeFreeSize $VolumeName" | out-file C:\_tmp\test.txt -Append
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_VolumeName" -Value $VolumeName
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_TotalSize" -Value $VolumeTotalSize
    $tmpOBJ | Add-Member -MemberType NoteProperty -Name "$($VolumeLetter)_FreeSize" -Value $VolumeFreeSize
    $tmpOBJ | out-file C:\_tmp\test.txt -Append
    $Result += $tmpOBJ
    return $Result
    This is the output:
    PS C:\Windows\system32> Get-TestHDDInfo -ComputerName Comp1, Comp2
    ComputerName : Comp1
    C_VolumeName : OSDisk
    C_TotalSize : 109,79
    C_FreeSize : 21,59
    D_VolumeName : VMs
    D_TotalSize : 223,57
    D_FreeSize : 55,76
    ComputerName : Comp2
    C_VolumeName : OSDisk
    C_TotalSize : 59,91
    C_FreeSize : 2,26
    D_VolumeName : Data
    D_TotalSize : 51,87
    D_FreeSize : 10,14
    This is how i want it to look.

Maybe you are looking for