System message at CKM3 - Control if the ordered item absorbed the cost

I have created an exclusive free goods agreement and I would like the ordered item to absorb the cost of the free goods.  In order to transfer the correct information to CO-PA from SD billing, I have made the required customizations ( 1- Deactivated pricing in the item category of the free item    2- Set the cumulate indicator in copying control for the billing item). Now I want to control the result with the TCode CKM3 but it gives ot the following error message. Can anybody explain me what I should do step by step?
Thanks in advance.
Diagnosis
     In valuation area 9999 data can only be converted for the material ledger if the material ledger is active.
System response
     No data was converted in valuation area 9999 for the material ledger.
Action for the system administrator
     If the material ledger should be active in valuation area 9999 and you wish to convert data, use the Product Cost Controlling section of Customizing to activate the material ledger for this valuation area.

Hi Yasar
From the above post i understand that you are getting an error about valuation. Hence i think that the valuation area assignment is improper.
Check that, that should solve your issue
Regards
Ranjeet
Edited by: Ranjeet Rajendra Jain on Feb 11, 2008 2:41 PM

Similar Messages

  • No active purchase order item for shipment cost

    Hi,
         When I'm entering a shipment cost document for a shipment using Vi01, I'm getting an information like "No active purchase order item for shipment cost", When I check in the service procurement tab there is no purchasing document and entry sheet found.
    Please let me know what is causing the problem and what needs to be done to resolve this
    Regards,
    Ashwin

    Hi,
    Does your shipment document contains any stage?This problem might be because of this reason.
    Regards,
    Sumit

  • Message M8 321 Document contains same order item more than once

    Hi,
    i process incoming invoices by means of bapi_incominginvoice_create/park
    The source data is a file.
    The problem arises when i process the file containing the same order item several times
    in different invoices.
    when the code does:
      PERFORM importing_data_check       TABLES    itemdata
                                                   accountingdata
                                                   taxdata
                                                   withtaxdata
                                                   vendoritemsplitdata
                                                   glaccountdata
                                                   materialdata
                                         USING     headerdata
                                                   addressdata
                                                   c_rbstat_posted
                                         CHANGING  return[]
                                                   f_subrc.
    precisely in:
    *----- Prefetch PO items ---------------------------------------------*
      LOOP AT t_itemdata INTO s_itemdata.
    *----- Check double PO/Item ------------------------------------------*
        f_loop_doublecheck = f_loop_doublecheck + 1.
        LOOP AT t_itemdata FROM f_loop_doublecheck
                           WHERE po_number    = s_itemdata-po_number
                            AND  po_item      = s_itemdata-po_item
                            AND  REF_DOC_YEAR = s_itemdata-REF_DOC_YEAR
                            AND  REF_DOC      = s_itemdata-REF_DOC
                            AND  REF_DOC_IT   = s_itemdata-REF_DOC_IT
                            AND  SHEET_NO     = s_itemdata-SHEET_NO
                            AND  SHEET_ITEM   = s_itemdata-SHEET_ITEM
                            AND  COND_TYPE    = s_itemdata-COND_TYPE
                            AND  COND_ST_NO   = s_itemdata-COND_ST_NO
                            AND  COND_COUNT   = s_itemdata-COND_COUNT
                            AND  FREIGHT_VEN  = s_itemdata-FREIGHT_VEN
                            AND  VALUATION_TYPE = s_itemdata-VALUATION_TYPE.
            e_subrc = 8.
            PERFORM bapireturn_fill USING  'M8'
                                           'E'
                                           '321'
                                           s_itemdata-po_number
                                           s_itemdata-po_item
                                           space
                                           space
                                  CHANGING te_return.
            EXIT.
        ENDLOOP.
        IF e_subrc = 8.
          EXIT.
        ENDIF.
    i get this message M8 321.
    Can i process several invoices containning the same order item in the same execution of the file?
    if so, how?
    warning: i´ve already read this solution
    (belonging to Ram Manohar Tiwari, here http://www.rmtiwari.com )
    *   The following coding is to solve the problem
    *   mentioned in OSS Note 518338.
    *   Same PO item within several invoice items.
    SORT I_ITEM BY PO_NUMBER PO_ITEM.
    LOOP AT I_ITEM.
      ON CHANGE OF I_ITEM-PO_NUMBER OR I_ITEM-PO_ITEM.
        W_COUNTER = 1.
        LOOP AT I_ITEM WHERE PO_NUMBER = I_ITEM-PO_NUMBER
                         AND PO_ITEM   = I_ITEM-PO_ITEM.
          IF W_COUNTER EQ 1.
            I_ACCOUNTINGDATA-SERIAL_NO = '01'.
            I_ACCOUNTINGDATA-XUNPL     = ' '.
          ELSE.
            I_ACCOUNTINGDATA-SERIAL_NO = ' '.
            I_ACCOUNTINGDATA-XUNPL     = 'X'.
          ENDIF.
          MODIFY I_ACCOUNTINGDATA
           TRANSPORTING SERIAL_NO XUNPL
          WHERE INVOICE_DOC_ITEM = I_ITEM-INVOICE_DOC_ITEM.
          W_COUNTER = W_COUNTER + 1.
        ENDLOOP.
    *     To solve the repetition of PO item in subsequent invoices.
      ELSEIF SY-TABIX EQ 1.
        W_COUNTER = 1.
        LOOP AT I_ITEM WHERE PO_NUMBER = I_ITEM-PO_NUMBER
                         AND PO_ITEM   = I_ITEM-PO_ITEM.
          IF W_COUNTER EQ 1.
            I_ACCOUNTINGDATA-SERIAL_NO = '01'.
            I_ACCOUNTINGDATA-XUNPL     = ' '.
          ELSE.
            I_ACCOUNTINGDATA-SERIAL_NO = ' '.
            I_ACCOUNTINGDATA-XUNPL     = 'X'.
          ENDIF.
          MODIFY I_ACCOUNTINGDATA
           TRANSPORTING SERIAL_NO XUNPL
          WHERE INVOICE_DOC_ITEM = I_ITEM-INVOICE_DOC_ITEM.
          W_COUNTER = W_COUNTER + 1.
        ENDLOOP.
      ENDON.
    ENDLOOP.
    *   Changes over for  OSS Note 518338.
    in this OSS Note 518338 it says:
    Solution
    Fill the tables as described in the documentation for the BAPI. If you want
    to post unplanned account assignments for the invoice, fill field
    'Unplanned account assignment from invoice verification' (XUNPL) in table
    ACCOUNTINGDATA instead of field 'Serial number of account assignment'
    (SERIAL_NO).
    The question is that i do not have unplanned account assignment.
    Any hint or suggestion would be greatly appreciated
    Best regards.

    Hi!
    In your BAPI programs, you can not fill 2 or more invoice's items              
    with same reference data into the BAPI interface table ITEMDATA.                                                                               
    In your input data for BAPI with multi acc.assignment you should fill          
    only one entry in ITEMDATA for given PO and more entries in                    
    ACCOUNTINGDATA, each for a different SERIAL_NO.                                                                               
    When you use multiple account assignment in  BAPI_INCOMINGINVOICE_CREATE       
    then you have to fill the SERIAL_NO manually in the interface of bapi.         
    Serial_No should contain 01,02 so on depending upon number of account          
    assingnments the PO item has it. You can see the PO in transaction ME23N       
    and then fill SERIAL_NO in the BAPI.                                                                               
    Otherwise it can cause others problems in GR/IR account in the FI DOC          
    and PO history, as well as in the further invoice processes reference to       
    the PO/item (ex. MR8M, MR11, or create another new MM-invoice DOCs).           
    For more information on this please review the following attached notes:       
    972627  BAPI: Message M8 321 is displayed for no reason                        
    512282  BAPIs: Service-based invoice verification.                             
    Please check also the following information:
    After applying the note 661864 the standard system doesn't support                                       
    several invoice items reference to same PO/item and GR/item in the                                       
    BAPI process anymore. Mainly this note was developed to avoid short                                      
    dump. Now the message M8321 is issued.                                                                               
    As you create MM-invoice using on-line transactions (ex MIRO), automatic                                 
    processes (ERS, EDI) or BAPI as well, system will create or accept                                       
    the invoice item in this way:                                                                               
    Each item for a different reference data (EBELN,EBELP,LFGJA,LFBNR,LFPOS                                  
    for normal PO, as well as PACKNO and INTROW for service PO):                                                                               
    EBELN: PO's No.                                                                               
    EBELP: PO's item No.                                                                               
    LFGJA: original GR's year,                                                                               
    LFBNR: original GR's No.                                                                               
    LFPOS: original GR's item No.                                                                               
    If the PO is with indicator 'GR based-IV'='X', the reference data (LFGJA                                 
    LFBNR and LFPOS) must not be space. It means, you can't create an                                        
    invoice reference to the PO before posting of the corresponding GR DOC,                                  
    and one invoice item must be reference only to one GR DOC/item.                                                                               
    Otherwise if the PO is with 'GR based-IV' = ' ', the reference data                                      
    (LFGJA,LFBNR and LFPOS) are always space, you can create an invoice                                      
    reference to the PO before the GR DOC or without GR DOC, or one invoice                                  
    item can be reference to more GR DOC/items.                                                                               
    And the concept is valid for the PO with 'GR based-IV' or without it.
    Best regards
    Erika

  • Read table-control of sales order items in VA01 / VA02

    Hi.
    I need to redetermine the plant in a sales order in USEREXIT_MOVE_FIELD_TO_VBAP. To do this, I need to read the content of all the items, but internal table XVBAP is not filled with all the items information at this point of code. Do you know how can I read the content of the table control of the items from this user exit? Do you know any other alternative solution?
    The table-control is in screen 4900, and its name is TCTRL_U_ERF_AUFTRAG.
    Thanks in advance.

    You have probably two options:
    1. use CHECK_VBAP: CHECK_VBAP triggers more often than the MOVE_VBAP. This should cover the scenarios when you add the new item and because of that the Plant would be redetermined for the items which are not changed. You need to take care of the UPDKZ, if use the CHECK_VBAP.
    2. Determine the plant in the SAVE_DOCUMENT_PREPARE. You can call certain subroutines over the XVBAP Loop and update the required field in VBAP. This is suggested by some OSS Note but I don't recall the note #.
        LOOP AT xvbap.
          ivbap-tabix = sy-tabix.
          svbap-tabix = sy-tabix.
          PERFORM vbap_bearbeiten_vorbereiten(sapfv45p).
          PERFORM vbap_fuellen(sapfv45p).
    "YOUR LOGIC
          vbap-werks = '1111'.
          PERFORM vbap_bearbeiten(sapfv45p).
          PERFORM vbap_bearbeiten_ende(sapfv45p).
        ENDLOOP.
    Regards,
    Naimesh Patel

  • Delegation of authorities and controls against the cost objects

    Dear all,
    we are running the requirements workshops and one of the gap is the management of delegation of authorities in SAP. Currently the client has a centralised system, which holds the information about every user ID and their approval and posting limits against a specific cost center, GL account and up to a certain value.
    Oracle (what they use at the moment) calls this database whenever a user is trying to approve a purchase order or post an amount using a GL account.
    Another flexibility that they have is the ability to delegate some or all authorities a person has when he/she is on leave. It works perfectly for them and they want us to implement something similar in SAP.
    Any thoughts, recommendation would be gratefully received.
    Many thanks

    Is this a workflow?

  • Contracts and Purchase Order system messages

    Hi All,
    I have a couple of questions relating to system messages that are related to purchase orders created with reference to contracts.
    1. When should message 06 155 called? If I create a purchase order with reference to a Value Contract (WK) where the total purchase order value is equal to the Contract Target Value I would expect the message to be called as either a warning or error depending on the system settings (it is currently set as a warning). However in my system the message is not generated.
    I can get the message to generate if I put the PO on hold, then change the value of the PO above the contract target value and then set it back to equal the contract target value but this hardly seems the correct way the message should be called.
    2. Is there a standard way to restrict which purchase order document types can be created with reference to a contract?
    Cheers
    Chris

    Hi Jurgen,
    thanks for the response. I know that the message should be called if the total PO value is equal to the Target Value of the contract, however in my system this doesn't happen.
    Example
    Contract has Target Value of £1,000,000 (Target Qty is 0 and Price is £1)
    Field ktwrt = £1,000,000
    PO created with qty 1,000,000 and price £1 (i.e. value = £1,000,000) but the message is not generated. If I change the qty to be 1,000,001 then message 06 042 is correctly generated.
    Is the message 06 155 generated correctly in your system? or I am missing someconditions that don't match between my PO and contract?
    Cheers
    Chris

  • Bapi_po_change system messages - error or warning control

    hi,
    I have a problem regarding the control of the W/E attribute in purchasing system messages.
    I've changed the message category from E to W in customizing,
    MM->purchasing->environment data->define attribute of system messages.
    for example, i've changed message 088 in APP area 06 to W.
    when i execute the bapi i still get an error for this message.
    thanks,
    Oren.

    Do you get the message as error when you trying to change the PO online using standard SAP transaction? Did you configure the messages with different versions? If so, you may need to update your user profile with the parameter ID MSV with the version. Version will control the same message to be error message for one user and warning for another.

  • Flash the system message every time when user login

    Hi all,
    My requirment is to diaplay the system message when user login for the maintenance purpose, In SM02 i created a message but it is not working for evary time login, It is displaying only  one time, suppose i logoff and again loging message is displaying.
    Please tell me how to display system message evary time when user login.
    Thanks in Advance,
    Thanks&Regards
    RP

    Hi,
    To display system message every time when user login : use the
    Enhancement        SUSR0001
    Short text              User exit after logon to SAP System
    You also get the Example Code here.
    And the Documentation is :
    Every dialog user passes through this function module after logon. Yo
    can use this to execute individual customer checks here and send
    messages to the user.
    Do not log off the user and also try to avoid too many dialog boxes.
    Regds
    Suman

  • How can I see in EP7.0 a system message placed in ECC 6.0 ?

    Hi everybody. I have one question. We have an EP 7.0 and one ECC 6.0 .  In older versions 4.7 there is an IAC called sysmsg that you can use to show the system message you have placed in the ERP server through an iview in the portal. IT´s really usefull for the users in order to take care of notifications like "Travel Application is blocked for 2 hours" or whatever kind of messages you want to show to end users.
    I´ve been reading ALL the threads  I could found about this , but I can´t find the answer. I don´t want to send a broadcast message to all EP users, I only want to show the system messages that you put using SM02 in the ERP but in an iview in the portal.
    Any ideas?
    Thanks in advance and best regards.

    Hi Jose
    Please see the following Wiki's for some help with this
    Brodcast messages to logged on users in Portal(Part1)
    Brodcast messages to logged on users in Portal(Part2)
    Best wishes
    Stuart

  • Unable to view HFM System Messages - Very Very Urgent Please.............

    I am having issues with seeing Users on system or system messages in release HFM 11.1.2.1 I get a message that *"You do not have the proper access rights to perform this task."* and I ensured that in the configuration the creator group and administrator group are set up as administrators. I have not been able to find anything that I can change security wise.
    The details of the error are below:
    *" System Messages "*
    You do not have the proper access rights to perform this task.+
    Show Details:
    Error Reference Number: {5F81E0EB-52C5-4C96-8F5A-DD9ECBAE4233}
    Num: 0x8004021d;Type: 0;DTime: 5/9/2011 8:32:22 AM;Svr: GITSHYPT01;File: CHsxServer.cpp;Line: 2457;Ver: 11.1.2.1.000.3082;
    Num: 0x8004021d;Type: 0;DTime: 5/9/2011 8:32:22 AM;Svr: GITSHYPT01;File: CHsxClient.cpp;Line: 4175;Ver: 11.1.2.1.000.3082;
    Num: 0x8004021d;Type: 0;DTime: 5/9/2011 8:32:22 AM;Svr: GITSHYPT01;File: CHFMwManageApplications.cpp;Line: 1060;Ver: 11.1.2.1.000.3082;
    *" Users on System "*
    You do not have the proper access rights to perform this task._
    Show Details:
    Error Reference Number: {1B34A605-F996-4CB9-8D7D-30C0A467170F}
    Num: 0x8004021d;Type: 0;DTime: 5/9/2011 8:33:36 AM;Svr: GITSHYPT01;File: CHsxClient.cpp;Line: 3857;Ver: 11.1.2.1.000.3082;
    Num: 0x8004021d;Type: 0;DTime: 5/9/2011 8:33:36 AM;Svr: GITSHYPT01;File: CHFMwManageApplications.cpp;Line: 1891;Ver: 11.1.2.1.000.3082;
    can anyone please assist....?
    Regards,
    Shan...

    I believe your user ID is not contained within the group set up in the HFM configuration's "application administrator". This group is independent of the role "administrator" since it is set at the server level, not application level. The same group controls access to the enable/disable connnections, and logout users feature.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • System messages ( Change Warnig message to Error message )

    Hi!!!
    Convert Warnings message to error message
    User  create a purchase requisition and a purchase order is generated from  it. Afterwards, you change the purchase requisition by setting   the deletion indicator. The system generates a warning message that a purchase order already exists for this purchase requisition. However, the deletion of such a purchase requisition should be prevented. Therefore, the system should generate the warning message 06152.
    I followed the below path
    SPRO/MM/Purchasing/Environment Data/Define Attributes of System Messages
    select System messages
    *I did not find the Message number 152*
    Help me out to fix this issue
    I am following this OSS Note 521174 - ME52N: Deletion of a PReq despite PO
    Regards
    Shamulheq

    Hi!! chakrapani,
    Thank you
    I made the changes by following below path
    SPRO>MM/>Purchasing>Environment Data>Define Attributes of System Messages
    go to "New entries" enter application as 06 and at message no filed, click F4. you will find the required message
    I tried to change the Purchase Requisition  for which Purchase order Is created ,system will not allow to delete
    The message is shown in  yellow but not in red ( purchase orders already exist )
    Can you help me show the ERROR message in red
    Your feedback can help me to fix this issue
    regards
    Shamulheq

  • System Message "Linking primary sales accounts has not been completed"

    When I try to enter an incoming Payment, I get System Message "Linking primary sales accounts has not been completed".  What have I missed.
    Banking -> Incoming Payments -> Incoming Payments
    A System Message window pops up and the System Message Log window indicates it is an informational message with a message ID -1.
    New System
    Version: 88
    PL: 14

    Hi,
    Welcome you to the forum.
    I have moved your thread from admin to here. Your question belongs here.
    Have you searched the forum? There are quite a few discussions for this topic. Such as this: Linking primary sales accounts has not been completed
    Thanks,
    Gordon

  • SRM 5 BBPSTART - System ID and System Messages issues

    Hi all,
    We just upgraded to SRM 5.0 from SRM 3.0
    The shopping cart logon page(bbpstart) doesn't show System ID and also the system Messages also doesn't work on browser when we set message by sm02.
    I already checked "System ID" and "System messages" from "Select Display" under System Logon Settings from bbpstart>Error Pages>Logon Errors>Configuration>System Logon Settings.
    I searched over the net and can't find anything. I only found a notes for the System messages, but it was for the older release and SRM 5 already applied that note. So I don't know what else I can do.
    Thanks for the itime.
    Kev

    Hello Thomas,
    It is not possible to run a system landscape with 2 identical SID's. And even if you do get it running in some kind of freeky way the system would be very instable (how would you know a transport has gone to the right system?).
    A system copy and a <SID> change is still possible. However, SAP recommends to do an export and an import of your database. Allthough this is the best and the least confusing way (and labour extensive), it is not really necessary.
    If you do a backup/restore procedure with a <SID> change, lets say from PRD to DEV, you will end up with a system that has DEV as <SID> but your tablespaces will look like PSAP-PRD-620. The owner of the database will also be sapprd. This is no problem at all to run the system, it is only confusing.
    I know it works, I've got it running. I've also got a sandbox running with user saptsc and database owner cbdamd and <SID> CBD.
    Kind regards,
    Pascal Ottens

  • History --.System messages (Sm02)

    Hi,
    Any way to know the  history of the system messages ? ..here is the seanario :
    1.There was a System messge erroneously sent on SM02
    2. Want to know how to get to the history of SM02

    I hit on another problem --> the entries are zero. I think the table itself is not  being logged !- this is not in PRD but in DEV
    This is not a logging issue. It is quite likely that messages were deleted.  At the time of creation, SM02 messages can be set to automatically delete at a certain time and date in the future. They can also be deleted manually before that pre-set date is reached. Deletion of messages (either manually or automatically) deletes it from archive and that's why you don't see them. 
    Run a simple test: In your sandbox, create a couple of test messages. One with auto deletion option with very short life-span and another one with a longer life-span. You will notice that you will see both messages in archive as long as you do not delete any manually BEFORE they are set to auto-delete. And once the auto-deletion time is reached, you will notice messages disappear from archive.

  • Class cast exception when trying to get a control on the "Wave" mixer

    I am trying to get a control over the level of the Wave mixer. I can get the master, but I need a bit finer control than that. I think I have one, and it compiles, but I get a classCast exception at runtime:
    volumeSearch:
    for (int i = 0; i < mixerInfo.length; i++)
        Mixer.Info info = mixerInfo;
    mixer = AudioSystem.getMixer(info);
    System.out.println("info.getName() = " + info.getName());
    if (mixer.isLineSupported(Port.Info.SPEAKER))
    System.out.println(info.getName() + " supports a speaker");
    lineOut = (Port) mixer.getLine(Port.Info.SPEAKER);
    lineOut.open();
    Control[] controls = lineOut.getControls();
    System.out.println("Supported controls on the speaker:");
    for (int j = 0; j < controls.length; j++)
    Control control = controls[j];
    System.out.println("\tcontrol.toString() = " + control.toString());
    System.out.println("\tcontrol.getType() = " + control.getType());
    if (control.getType().toString().contains("Wave") || control.getType().toString().contains("WAVE")||control.getType().toString().contains("wave")){
    volumeControl = (FloatControl)controls[j];
    break volumeSearch;
    I get the class cast exception when I try to get the control at :volumeControl = (FloatControl)controls[j];
    volumeControl is declared earlier in the class as a FloatControl.
    Any tips?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hey guys, thanks for replying to my post!
    Here's the rub: I am able to use the method you are describing, but it gives me control over the wrong mixer.
    On the main mixer, it gives me control over the "Master" volume, which means that in addition to the wave output, it also controls every other output simultaneously, such as the Mic output. I am trying to get control of the "Wave" output. When adjusting the Wave out, it only effects digital audio output, but leaves the analog outputs (like the Mic volume) alone.
    Now, when I call the complete method:
        private void initVolumeControl()
            Port lineOut;
            FloatControl vol;
            Mixer mixer;
            Mixer.Info[] mixerInfo = AudioSystem.getMixerInfo();
            try
                volumeSearch:
                for (int i = 0; i < mixerInfo.length; i++)
                    Mixer.Info info = mixerInfo;
    mixer = AudioSystem.getMixer(info);
    System.out.println("info.getName() = " + info.getName());
    if (mixer.isLineSupported(Port.Info.SPEAKER))
    System.out.println(info.getName() + " supports a speaker");
    lineOut = (Port) mixer.getLine(Port.Info.SPEAKER);
    lineOut.open();
    At this point, if I wanted to control the master volume, I would get the volume control over
    the main mixer here
    by calling
    vol = (FloatControl) lineOut.getControl(FloatControl.Type.VOLUME);
    But the problem is that gives me control over the main, and not the wave volume.
    So, on the "lineOut", let's query it for all of the different controls available
    Control[] controls = lineOut.getControls();
    System.out.println("Supported controls on the speaker:");
    for (int j = 0; j < controls.length; j++)
    Control control = controls[j];
    System.out.println("\tcontrol.toString() = " + control.toString());
    System.out.println("\tcontrol.getType() = " + control.getType());
    if (control.getType().toString().contains("Wave") || control.getType().toString().contains("WAVE") || control.getType().toString().contains("wave"))
    volumeControl = (FloatControl)control;
    break volumeSearch;
    } catch (Exception e)
    System.err.println("There was an error while trying to get a volume control");
    e.printStackTrace();
    And my output from this is:info.getName() = Primary Sound Driver
    info.getName() = Realtek HD Audio output
    info.getName() = Primary Sound Capture Driver
    info.getName() = Realtek HD Audio Input
    info.getName() = Java Sound Audio Engine
    info.getName() = Port Realtek HD Audio output
    Port Realtek HD Audio output supports a speaker
    Speaker volume = 0.5000076
    Supported controls on the speaker:
    control.toString() = Volume with current value: 0.5000076 (range: 0.0 - 1.0)
    control.getType() = Volume
    control.toString() = Balance with current value: 3.0517345E-5 (range: -1.0 - 1.0)
    control.getType() = Balance
    control.toString() = Mute Control with current value: false
    control.getType() = Mute
    control.toString() = Wave Control containing Volume, Balance, and Mute Controls.
    control.getType() = Wave
    but I also get the exception:There was an error while trying to get a volume control
    java.lang.ClassCastException: com.sun.media.sound.PortMixer$CompCtrl
    at audiotools.AudioPlayer.initVolumeControl(AudioPlayer.java:236)
    at audiotools.AudioPlayer.<init>(AudioPlayer.java:102)
    at audiotools.AudioPlayer.getInstance(AudioPlayer.java:59)
    at gui.windowmanager.WindowManager.run(WindowManager.java:208)
    at java.lang.Thread.run(Thread.java:595)
    So, as you can see, when I query the line that supports SPEAKER, it says it has an additional item (Mixer? Line?) called "Wave Control" that also has it's own Volume, Balance and Mute controls.
    I need to get the Volume control associated with the "Wave", not the one associated with the "Master". The Master provides too general of a control on the system mixer.
    Edited by: J_Y_C on Oct 30, 2008 6:09 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for