Change in an LOV query of Sales Order Form not working

Hi,
I wish to change the the Order Type (in the Sales Header) displayed in the Sales Order Form when viewed from a particular Responsibility.(11i Instance)
To be specific only certain order types should be displayed in the LOV when the User tries to create Order from that Responsibility.
In that process I created an FP with Action --> Builtin -->Create Record Group From Query
Then in Property-->Object Type-->LOV and Target Object -->ORDER_TYPE Value-->Name of my Query Group
I downloaded the Sales Order Form and modified the Query of the Group keeping the columns selected and the view used same and added in the Group I created.
But it didn't work out.
I tried out by changing my Target Object to SRV_ORDER_TYPE and its corresponding query from the Oracle Form.
But still it didn't work.
Please tell me where I'm going wrong.
Am I not choosing the correct target record group LOV?

Hi Robert,
I have successfully accessed a matrix using Visual Basic .Net. It has been quite a challenge while I was at it.
One important thing to understand is that (unless you access the datasource) in order to access a particular control in a matrix object, this control needs to be visible and enabled. It is like simulating a user accessing the matrix via GUI... if a control is not enabled, you cannot access it (as said via control). That might explain question 1.
Short sample on matrix handling is here:
http://www.itwiki.net/ow.asp?SboHowToReadFromAndWriteIntoMatrix
<b>Q2 - Cell count:</b>
I have personally never used the Cells count method. It should always return the number of rows. My only guess here is that you are using an old reference on the matrix object in which the rows are not there yet.
Dim oMatrix As SAPbouiCOM.Matrix
Dim oColumn As SAPbouiCOM.Column
Dim oEditText as SAPbouiCOM.EditText
  oMatrix=YourSboForm.Items.Item(38).Specific
  oColumn=oMatrix.columns.item(strColumnname).specific
  oEditText=oColumn.items.Item(1).specific
  Msgbox(oEditText.String)
The above code should get you the first cell of the first row of the given matrix.
HTH Lutz Morrien
P.S.: If you need any more sample code, check with the SAP matrix sample or send me a mail (adress see Http://www.itwiki.net)

Similar Messages

  • Issue while updating(Changing) quantity on line at quick sales order form

    Hi,
    I am facing a issue while changing quantity ordered on the order line in quick sales order form. (R12.1.3)
    Although the same logic works exactly as required in 11.5.9.
    There is a custom logic, post booking line status is Awaiting Shipping.
    Now when quantity is changed +(Saved), the status changes to a custom state but at the same time a new row is created with the same line id but different reservation id in the MTL_RESERVATIONS.
    The quantity here is the difference between the original quantity and the new entered quantity.
    And post completion of the custom logic the original row is updated, but being there a additional row the quantity reserved at the shipping tab comes wrong.
    Our requirement is of update which is happening but not the additional insert which is going into MTL_RESERVATIONS.
    The logic is perfect in 11.5.9 and no additional insert is being made.
    Kindly help and give some ideas for the possible reason the issue.
    Please ask for more information if required.
    Thanks,
    Vishal

    Hi Mahendra,
    I have gone through the note id that you have given. sorry to say that, that is refering to diffrent issue.
    Actually what i did is, At form header level, I have hide the fileds using the folder options. once after changes I have closed the form and re-opened it. by that time I can see that Button names got changed in bottom of the "Quick sales order form". Not sure how it become changed. there five buttons over the form, only two button names got changed.
    Kindly suggest any other options.

  • Release Sales Order form not functioning occasionally..

    Hi All,
    I regularly perform 'Launch Pck Release' for an order from Relaes Sales Order Screen in shipping. But some times I am not able to perform this transaction from this form. I have to navigate to 'Shipping Transaction' form and Launch Pick Release every single line.
    This does not happen regularly and happens occasionally. There is no particular issue with Order Type or Part number. Please help me on identifying the cause of the issue.
    Thanks,
    user8956008.

    Hi,
    Your question :  What is the difference between Release Sales Order Form & Shipping Transaction Form?
    In Apps, Release Sales Order Form is basically used to move Material from Inventory to your staging area e.g stock yard (pick release activity), at this point the material is still inside your premises..
    Shipping Transaction Form is basically used to move material from staging area to customer site..
    Your 2nd question is : Pick Release can be done from both the forms.What is the difference.??
    Through Pick release form you can do pick release where you don't need any grants... and to do the same through Shipping Transaction form you need to have access rights to do ship confirm and pick release.. In other words, Through Shipping Transaction form you can restrict/allow user to do pick release where as in Pick release form no such restrictions are there..
    Shipping Transaction form is basically a combo package :) through which you can control Pick release, Ship confirm, Delivery etc..
    For the Grants and Role you can check details under : Setup --> Grants and Role Definitions --> check Grants & Define Roles form..
    Roles form will let you what are the actvities can be done and can be assigned to users..
    Hope this will help...
    Regards
    S.P DASH
    Edited by: spdash12 on Oct 27, 2009 10:43 PM

  • New settlement parameters  in   sales order  does not  work

    Hi
    I have a    sales order for  service material.    It is invoiced.    I  have to settle it.    The  existing  settlement rule  is  wrong. So  I have created a new allocation structure and   changed   settlement  parameter  in     the  sales order.   I save the  sales order.
    But in VA88 the settlement does not work. I get error message ' receiver cost element not defined and thet cat. PSG not defined.'
    But the same allocation structure work good for new sales order.
    Pl advise how  I  can  do the settlement for  old   sales orders,  subsequently changed for  settlement parameter ie allocation structure. 
    Thanks
    kamala

    Hello Kamala
    Not an expert on this subject, but here is what I suggest, Try and see if it works.
    1) Firstly retract the changes you did in sales order and settle first with the wrong settlement parameter (Old data).
    2) Now change the existing allocation structure, don't create NEW ONE. If you change an allocation structure, the changes only affect future settlements.
    3) Then reverse the settlement.
    4) Now re-do the settlement.
    Let me know how it goes. Take care.

  • Batch job that will automatically bill sales order is not working

    Hi All,
    I created a job through vf06 and then scheduled it through sm36 but its not picking my test data
    the job will select the following parameters:
    - sales org
    - distribution channel
    - divison
    - billing type
    please advise on what else am i missing and why the job doesn't pick my test data
    tia -
    Pablito
    Edited by: PablitoMarquez on Mar 10, 2008 8:30 AM

    I'm billing a sales order that is not relevant for delivery. The sales order is relevant for billing and i tried to create a billing manually and it worked.
    but when i go to VF06 and do the billing manually there by entering the sales order number in the field "SD Document" it is not picking anything...
    the sales order is "ticked" in the documents to be selected and the "issue collective processing log is also ticked" in the output data

  • OM: Sales Order form not opening

    Hi,
    I am trying to open the form sales orders in OM and i get this error message ORA-01403 No Data Found
    I checked the profile options they are according to the Implementation guide but i dont know wats going wrong here.
    Infact i can open other forms like Items and purchasing and other forms in the OM but not the order forms.
    I checked Metalink but didnt find sufficient help.
    Any help is appreciated.
    Please
    Thanks
    A

    Yes it is a fresh installation, not a vision.
    I looked at the imp manual and i found the seeded ones, do i need to set values for the seeded ones too. If not what new parameters do i need to set. I am sorry to ask this detailed questions i am a newbee in OM and dont know a whole lot about it. I thank you for the help ur providing.
    Appreciate it.
    Regards
    N

  • When reducing qty in quick sales order form, reason field is non enterable

    Hi,
    When I am reducing the quantity of a booked sales order, its giving me message that "You must specify reason for the change" but reason field in quick sales order form is not editable. The same functionality is working fine in standard sales order form.

    Check if 'Audit Trail' is setup in OM Parameters for the OU.
    Also check if "Processing Constraints" are setup correctly.
    For Qty reduction we need to add a new row called "delete".
    Thanks
    -Arif.

  • Which LOV is attached to ordered item on sales order form

    Hello,
    I want to change the query of ordered item field on sales order form in Line items tab.
    I found that this field is using KFF as its LOV. KFF is "System Items" in Inventory application.
    But when I see the value set attached to the segment it is NONE type.
    My question is how can a NONE type of value set contain values

    Hi Joel,
    The problem may be with this line of code:
    int row = lineItemMatrix.GetNextSelectedRow(0, BoOrderType.ot_RowOrder)
    because this will get the row that is currently selected, however the menu will delete the row that currently has focus. You need to declare a row variable outside the scope of the events and set it on the got focus event.
    Sorry this example is in VB but you should get the idea:
    Dim Row As Integer = -1
    Private Sub Application_ItemEvent(ByVal FormUID As String, ByRef pVal As _
    SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles _
    Application_ItemEvent
        Dim Form As SAPbouiCOM.Form = Application.Forms.Item(FormUID)
        If Form.TypeEx = "139" And pVal.ActionSuccess = True And pVal.EventType = _
        SAPbouiCOM.BoEventTypes.et_GOT_FOCUS Then
            If pVal.ItemUID = "38" Then
                Row = pVal.Row
            Else
                Row = -1
            End If
        End If
    End Sub
    Private Sub Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef _
    BubbleEvent As Boolean) Handles Application_MenuEvent
        Dim Form As SAPbouiCOM.Form = Application.Forms.ActiveForm
        If Form.TypeEx = "139" And pVal.BeforeAction = True And pVal.MenuUID = "1293" _
        Then
            If Row > -1 Then
                If ItemIslocked(Form, Row) = True Then
                BubbleEvent = False
                Application.StatusBar.SetText("You cannot delete a locked row.", _
                SAPbouiCOM.BoMessageTime.bmt_Short, _
                SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                End If
            End If
        End If
    End Sub

  • Unable to Query item number in Sales order form

    Hi Gurus,
    After selecting customer name in the sales order form, i am trying query the part number but application is hangs.
    Can you please let me know is it problem with DBA or technical?
    Recently we uploaded (migrated ) part numbers to oracle..
    Please advise.
    thanks
    AK

    Hi AK,
    check this link
    *PERFORMANCE: ITEM LOV TAKING TOO MUCH TIME ON SALES ORDER FORM IN 12.1.1 [ID 1066964.1]*
    Thanks
    -Arif.

  • Quick Sales Order Form Enter Query(F11) and Execute Query(Clt+F11) Problem

    Hi Everyone,
    I am having a Problem in Quick Sales Order Form. When I am entering a New Sales Order and Book the Order it is working fine. And Now I want to Query the Sales Order If the Same New Order Number has Queried then It is Properly Queried. But If I am trying to Query Some Other Existing Sales Order other than the new one then It Shows the Error Messgae as Query Caused No Records to be Retrived. We have R12 12.1 Instance.
    Can anyone Helpme in Solving this Issue will be highly appriciable.
    Advance Thanks for your Efforts.
    Regards,
    Murugan. AR.

    Was this working before? If yes, any changes have been done recently?
    Have you tried to regenerate the form via adadmin and see if it helps?
    Do you have any invalid objects in the database?
    You may try to obtain the FRD log file and see if more details about the issue are collected in the logs.
    Note: 438652.1 - R12: Forms Runtime Diagnostics (FRD), Tracing And Logging For Forms In Oracle Applications
    Note: 445166.1 - How to create a FRD (Forms Runtime Diagnostic) Log in EBusiness Suite R12 using Forms 10g
    Thanks,
    Hussein

  • Query for Sales Order Analysis

    Dear Experts
    I have written a Query for Sales Order Analysis and would like to have help on this.
    The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum] ORDER BY T0.[DocNum]
    where U_Total_GP is a UDF for storing the GP of each order.
    After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. However, the query does not calculate column total for total amount and total GP. Although I know the total for each column can be displayed by pressing "Ctrl" + Click on the column title, it would have to be done from time to time.
    Therefore, I would like to modify my query in order to calculate the column totals when executed. Are there any suggestions for this?
    Thank you
    Regards
    Elton

    Hi Elton,
    Try this:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
    Union ALL
    SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0]
    ORDER BY T0.[DocNum]
    Thanks,
    Gordon

  • Query on Sales Order Analysis

    Dear Experts
    I have written a Query for Sales Order Analysis and would like to have help on this.
    The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
    Union ALL
    SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0]
    After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. Everything is fine with this query except I would also like to incdude the total number of Sales Order (per day) right below the column "DocNum".
    Is it possible to achieve this?
    Thank You
    Regards
    Elton

    Try this:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
    Union ALL
    SELECT count(DocDate), SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0]

  • Change of Sold to Party in Sales order created with Reference to Contract

    Dear Gurus
    I want to change the sold to party in Sales Order created with reference to contract.
    When I create a Sales order with reference to contract the system copies all the partner functions- Sold to, Ship to, Bill to and Payer alongwith other data.
    However Sold to is marked as "Grey" and not changable, rest of the partners can be changed.
    There is no subsiquent document created with reference to this Sales Order.
    Please advice.
    Thanks a lot.
    Regards
    Raghu

    Hi ,
    Please follow the below mentioned step.
    1) Create a partner function letts say Authorized SP .
    2) Assign all the possible authorised  SP (customer) in the contract.
    3) When you create sales order with reff to Contract. Put the customer for whom you wish to create a sales order in release partner tab.
    Hop this will resolve our problem
    Regards,
    Krishna O

  • Scehdule Line Date getting change to future date once the Sales Order is saved

    Hello Experts,
    Good Morning to you all,
    This is with respect to the Issue we are facing for the Orders having Product Allocation on multiple materials. Please find enclosed the detials below.
    Issue : Scehdule Line Date getting change to future date once the Sales Order is saved. These Order's are having Product Allocation on multiple materials.
    Description:
    We have implemented Product Allocation few months back.
    We have Product Allocation on multiple materials which are in demand and has been reserved for the Customers of different PA behaviors.
    When we are trying to create the Sales Orders for the normal customer who is not on Product Allocation. The Order Schedule Line is getting changed to future date once the Sales Order is saved after initial creation.
    These Order's are having materials of Product Allocation.
    I have enclosed the sample screen shot of the error we are getting which saving the Sales Order and also the Order Schedule Line screen shot showing future date.
    Error Message : There may be Product Over Allocation in Delivery Group 001.
    Message No : VV023
    This is a random behavior we are coming across and out of 10 Order 2 or 3 Orders is getting this Issue.
    Please share your inputs how to rack this Issue.
    Your suggestions will be highly appreciated.
    I am unable to upload the attacments dont know what the reason.
    Thanks,
    Farhan.

    Check whether you need to carry out the coding corrections as recommended in the following note:-
    Note 52067 - Message VV023/VV024, but no prod.alloc.processing    
    But I wonder this is for older versions and not sure whether this would help you to overcome from the issue.
    G. Lakshmipathi

  • Do not change the payment term created a Sales Order with reference

    Hi Gurus,
    Do not change the payment term created a Sales Order with reference to a contract where the payer of the change in Sales Order.

    Hello ,
    As per my understanding , you do not want the payment terms to be changed even if the payer partner function is changed ,
    as standard sap redetermines the payment terms with change in partner function, you may use the exit
    USEREXIT_MOVE_FIELD_TO_VBAK- header level
    USEREXIT_MOVE_FIELD_TO_VBAP- Item level
    in this you could write a small code which will not change the payment terms when payer is redetermined
    hope this helps
    Thanks
    akasha

Maybe you are looking for