Problem defaulting shipping method in Sales Order form

Hi,
I need to defaulting shipping method based on subinventory code value.
e.g :
Subinventory -- Shipping Method
N100 -> HN1
N120 -> HN2
I try to use form personalization on when-validate-record of line block, but never updated.
If i prompt the message, it will display the updated value but after that it will display the old value again.
I shifting the code to workflow at the time its booked and its working. But problem is, the user can still change the subinv after booked which is outside the workflow already.
Appreciate if anyone can have solution for this.
TIA,
Fendy

For defaulting fields on sales orders, instead of personalizations or workflow changes,check if you can use Oracle's defaulting rule functionality. It is meant for such requirements. It is much more powerful and kicks in every time order is created (either from screen or via order import).
OM Superuser > setups > rules > defaulting rules
Look at JohnnyP's post in Selecting the Subinventory for orders shipped from the LAO warehouse for details on how to do that.
Hope this helps,
Sandeep Gandhi

Similar Messages

  • Value Set  error msg when opening sales order Form

    Hi
    I created a value Set(where the values are populated at run time based on a view) which is attached to DFF (column eg Attribute13),The Value set would get value populated only if any sales order lines are cancelled, as the value of Attribute13 on cancelled line would be inserted to new Order Line.
    The Problem is when ever the Sales order Form is opened it throws the error message
    "Value XX For the FlexField Segment dosent not exists in the valueset (Valueset name)" as the oe_order_lines_all.attribute13 has value and the value set has null, it matches it and throw the above error.
    Could you guys give any suggestion how to avoid it, or is there any workarould , Thanks
    Thanks

    This tells me that the same attribute is used for something else and there is a value in that the column that is not your table which you are validating against. Or the value you are setting is not in that table.
    About the context: If the same attribute is used under a different context AND if that context gets set when you open the sales order AND if the validation type is different under that context for attribute13, you will get this error.
    Thanks
    Nagamohan

  • Order type Personalization Problem in Standard Sales Order Form

    Hi All,
    We have a problem in personalization of Sales order form.Here we are trying to personalize three field based on order type
    Scenario 1:_
    _Nav-->Oredr Management Super User-->Orders,returns-->Sales Orders-->order type-->standard_
    In this type if we are navigating to lines it should ask the following fields as mandatory
    (Nav-->Oredr Management Super User-->Orders,returns-->Sales Orders-->others form)
    1.Shipping Method
    2.Freight Terms
    3.Shipment priority
    Scenario 2:_
    _Nav-->Oredr Management Super User-->Orders,returns-->Sales Orders-->order type-->Bill only & Internal & RMA_
    then it should navigate to line items without asking those three mandatory fields.
    For that we did the following Personalization through Help-->Diagnostics-->Custom Code-->Personalize
    Level--> Form level
    Enabled-->Yes
    Condition_
    Trigger Event: When-Validate-Record
    Trigger Object: Order
    Condition : +(:ORDER.ORDER_TYPE not like '%INTERNAL') and (:ORDER.ORDER_TYPE not like '%BILL%') and (:ORDER.ORDER_TYPE not like '%RMA')+
    Processing mode : both
    level:site
    Actions_
    seq:10
    type:property
    description:Make field mandatory
    language:all
    enabled:yes
    object type:item
    target object :ORDER.SHIPPING_METHOD
    property name:REQUIRED
    value:TRUE
    Problem+_
    The problem we are facing is when we first select the ordar type as Bill only or Internal or RMA it is working as expected. But first if we are select the order type as standard then we navigiting to lines it is not allowing us without entering those three mandatory fields as expected. Hence the problem is without closing the form we changed the order type as Bill only now also those fields remains as mandatory this is issue .
    So hope the problem is clear to you all and we have to move this in production on tomorrow.
    If somone helps to resolve this ASAP we would thankful to you.
    Thanks in advance
    Regards,
    CSK

    Hi Sandeep,
    Thanks for your quick response.
    you might not have getting the our problem sorry. let me explain you clearly
    If the ordre type is standard the following fields should be mandatory without those fields it should not navigate to line items_
    1.Shipping Method
    2.Freight Terms
    3.Shipment priority
    If the ordar type as Bill only or Internal or RMA_
    1.Shipping Method
    2.Freight Terms
    3.Shipment priority
    non mandatory should navigate to line items
    for that we did three personalization for those three fields as in the previous post
    but the problem is
    when we first select the ordar type as Bill only or Internal or RMA it is working as expected the fiel sare non mandatory the without closing the form if we select order type as standard then if i try to navigate lines it is not allowing me without entering the three fields. But incase first we are select the order type as standard then we navigiting to lines it is not allowing us without entering those three mandatory fields as expected. Hence the problem is without closing the form now we changed the order type as Bill only or internal or RMA now also those fields remains as mandatory this is issue .
    hope now the problem is clear to you .
    Thanks in advance
    Regards,
    CSK

  • 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

  • Release Sales Order Form & Shipping Transaction

    Hi,
    What is the Difference between Release Sales Order Form & Shipping Transaction Form.
    Pick Release can be done from both the forms.What is the difference.
    Regards.
    AK.

    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

  • Problem binding a matrix in the Sales Order Form

    Hi everybody!
    I am working in an Add-On. What I do is modify the sales order form in runtime. I catch the event when the form is loading and then I add a new folder with some fields and a matrix.
    I've got a matrix in this form with the employees that participate in an order and when I go through all the orders by using the next and previous record buttons I have to rebind it to show the participants in a specific order. The code for the event is the following:
            If (pVal.ItemUID = "57") And pVal.Before_Action = False And pVal.EventType = et_ITEM_PRESSED Then
                BindParticipantGrid
                BubbleEvent = False
            End If
    After bind the grid, BO shows a System message indicating that the form has been changed and asking me if I want to save the changes to the order. Looks like, whenever the bind function finds rows to add to the matrix it changes the mode of the form by adding rows to the matrix. How can I prevent that when I'm in view mode?
    This is the code for the binding function
    Sub BindParticipantGrid()
        Dim myForm As SAPbouiCOM.Form
        Dim oMatrix As SAPbouiCOM.Matrix
        Dim rs As sapbobsCOM.Recordset
        Dim strSQL, OrdreNr As String
        Dim oText As SAPbouiCOM.EditText
        Set myForm = SBOApplication.Forms.GetFormByTypeAndCount(139, 1)
        Set oText = myForm.Items("8").Specific
        If oText.Value <> "" Then
            OrdreNr = oText.Value
        Else
            OrdreNr = "0"
        End If
        Set oMatrix = myForm.Items("matrix").Specific
        oMatrix.Clear
        Set rs = myCompany.GetBusinessObject(sapbobsCOM.BoObjectTypes.BoRecordset)
        strSQL = "SELECT [@HL_PART].Code as Code, [@HL_PART].U_DocNum as DocNum, [@HL_PART].U_EmpId as EmpId, [@HL_PART].U_EmpName as EmpName, [@HL_PART].U_Message as Message, [@HL_PART].U_MessRead as MessRead, [@HL_PART].U_MainPart as MainPart, [@HL_PART].U_StartDt as StartDt, [@HL_PART].U_StartHr as StartHr, [@HL_PART].U_FinishDt as FinishDt, [@HL_PART].U_FinishHr as FinishHr, [@HL_PART].U_Finished as Finished FROM [@HL_PART] WHERE [@HL_PART].U_DocNum = " & OrdreNr
        rs.DoQuery strSQL
        While Not rs.EOF
            myForm.DataSources.UserDataSources.Item("EmpId").Value = rs.fields("EmpId").Value
            myForm.DataSources.UserDataSources.Item("EmpName").Value = rs.fields("EmpName").Value
            myForm.DataSources.UserDataSources.Item("Message").Value = rs.fields("Message").Value
            myForm.DataSources.UserDataSources.Item("MessRead").Value = rs.fields("MessRead").Value
            myForm.DataSources.UserDataSources.Item("MainPart").Value = rs.fields("MainPart").Value
            myForm.DataSources.UserDataSources.Item("StartDt").Value = rs.fields("StartDt").Value
            myForm.DataSources.UserDataSources.Item("StartHr").Value = rs.fields("StartHr").Value
            myForm.DataSources.UserDataSources.Item("FinishDt").Value = rs.fields("FinishDt").Value
            myForm.DataSources.UserDataSources.Item("FinishHr").Value = rs.fields("FinishHr").Value
            myForm.DataSources.UserDataSources.Item("Finished").Value = rs.fields("Finished").Value
            oMatrix.AddRow
            rs.MoveNext
        Wend
        oMatrix.SelectionMode = ms_Auto
    End Sub
    I will apreciate all king of help
    Thanks in advance.

    You have a property of the form which allows you to change the mode
    myForm.Mode = fm_ADD_MODE
    myForm.Mode = fm_EDIT_MODE
    myForm.Mode = fm_VIEWMODE_MODE
    You may change it after you modify you matrix data to fm_VIEWMODE_MODE and I guess you won't have the system question again.
    Sebastien

  • AutoCreate Trip & Default Ship Method

    Hi,
    While processing Sales Order, in ShippingTransactions form, is there any option where the trips will get created automatically instead of going to Actions--> AutoCreate Trip. If so let me know.
    And Once Trip is created, the Ship Method is not defaulted automatically from the sales order line. Can anyone let me know how we can get this.
    Thanks in Advance,
    Sravan.

    Maggie,
    For 1 - DHL is the wrong value so I changed it and even though shipping method is active it is still showing the same error.
    For 2 - I see that you are adding it to the trip, but I didn't see it added to the delivery. I didnt quite unserstand what exactly are you trying to suggest.
    Please elaborate further. If any changes you think needs to be done in the code then what they might be?

  • OM: Disable auto refresh check box in Quick Sales Order Form

    hi,everyone
    In screen [Quick Sales Order Form],
    we want to let the auto refresh check box always be checked and can not be updated with Form personalize.
    I didn't find the item in this form,
    and i konw that there is a value which defined in the Profile : [OM: Quick Sales Order Form: Auto Refresh](ONT_QUICK_OE_AUTO_REFRESH).
    Can anyone give me some suggestions?
    thx for ur help.

    hi,Pradeep
    Thanks for your reply.
    Actualy,the profile "OM: Quick Sales Order Form: Auto Refresh" has been setted into 'Line' firstly as we want to auto-refresh order lines.
    So the 'auto refesh' checkbox is checked with default value in the screen,
    but the order line would not be auto-refreshed when user uncheck the checkbox manually.
    So we want to disable or invisible the 'auto refesh' item in the screen with form personalize,
    the problem is i can not find the item or the block in the form.
    Or is there any suggestions to archive this?
    Can you please help me?
    Thanks,
    Leno
    Edited by: Leno Sun on 2013/05/07 19:35

  • Default Customer code in Sales order

    Hi Experts ,
         Is there any option in SAP B1 to set a 'Cash' Customer as default when the sales order is loaded , After adding a document and in New Document Menu click. If there is no option in SAP B1, how can I do it using SDK. I already wrote code in '1282' menu click, and sales order Form Load. But i cant able to set the Default customer after adding a Sales order and the document refreshed to a new document.
    I tried to do the same in FORM_DATA_ADD , BeforeAction=False and ActionSucess=True, but it cause some problem if document total is ZERO, when system message is pop up..
    Is there any solution for this.
    Thanks .

    Hi,
    You can solve it with the following work-around:
    create a query that will always return the relevant CardCode (for example: Select '1') and save it in the Query Manager.
    In the Sales Orders form, in the Card Code field, create a FMS with the above query. Define it to always refresh on change in filed Doc Num,
    This setup will set card code '1' in the field after a new Order was created, of when pressing "Add" menu.
    It does NOT work when clicking "Sales Orders" menu, but you said you've already solved it by code.
    Another thing - if your handle several Document Series for Sales Orders, or  your users set DocNum manually, you might set the FMS to be refreshed upon change of some other appropriate field.
    Beni.

  • Using PDF form as a sales order form on Android device

    Hi,
    I'm working on a digital sales order form solution, and found Adobe Reader for Android looking to be usefull. However I'm stuck with some questions and hoping to find answers here on the forums.
    I don't have a lot of experience with creating PDF's, but I do have sufficient experience with Javascript, so I managed to create form that does some calculations. Everything looks and works alright, but for it to work in the field there are some showstoppers.
    The form I've created has 2 signature fields
    Here are my issues. Please keep in mind that the user (sales representive) is filling in the form on an Samsung Galaxy Note.
    After the form is signed, the user can still make changes to the form. Is there a way to disable this?
    The signature default uses very thick lines. How can I force this to 1px default?
    The last used signature is stored. How can I disable this? (Customers don't want their signature to be stored, as the sales rep could use that to sign other forms as wel..)
    Adobe reader overwrite the original file upon closing. Is there a way to force a 'save as' screen?
    Adobe reader allows a user to make comments and write free hand. I'd like to disable this.
    (I've tried Document Restrictions, but this ruins the document by removing every form field.. )
    I've read something about Adobe LiveCycle server. Could that help me achieve wat I'm looking for?
    I hope someone can help me out and explain some of this

    Check out http://www.pdfemail.net/
    With PDFEmail.net, you can submit XML, FDF, XFDF, XDP data formats or PDF format.
    PDFEmail.net can merge the Data (XML) submission with a blank form using ASP.net, and attaches it to an e-mail message and sends it through SMTP, without client side e-mail software such as OUTLOOK.
    PDFEmail.net is installed on a workstation, and generates scripts and libraries you "UPLOAD" to your ASP.net webserver. There is no server-side installation, and zero programming knowledge is required. PDFEmail.net creates the scripts for you, and you just point your submit button action to the URL of the script.
    PDFEmail.net uses iTextSharp technologies, and includes 1 year of free technical support.
    For more information visit http://www.pdfemail.net/

  • 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.

  • How to calculate Total Shipping Volume in Sales Order ?

    Hello,
    Please give me suggestion for calculating Total Shipping Volume or Total Shipping Quantity in Sales Order.
    And suggest if there is any existing report available to get “Total Shipping Volume”.
    Thank You.
    Regards,
    Meghana

    Hi,
    Thanks for your reply.
    I am not asking of account assignment group for material.
    My problem is when i am creating Sales Order at item level in Account assignment category there is one field for Fund Mangement account assignment grp.
    I want to activate this field and i have to enter FM area in that field.
    Plz send some solution for the same.
    Thanks & regards,
    Pankaj

  • Sales Order Form

    So, I have basically tried to take a paper form we have and convert into a fillable form, but I have a few questions.
    1.) Someone on here had a marvelous, MARVEOUS form that had a button that just basically added a new row for each item, rather than limiting it to a specific number (7 on my sheet) is there an adobe script way of going about that -- or was that just a propietary thing to that form? (I've attached the file)
    2.) I have a password activate lock/unlock button that is used to lock the form prior to sending it as an un-editable attachment in e-mail, so the order processor can't accidently open it and change the values. The mousedown command hides the buttons. I was wondering if there was a way to just have the form lock/unlock without a password prompt -- just actually do it upon clicking?
    3.) Is there a way to put a space between values that pop up in a js box? For instance, when a user tries to print a form without filling out required fields, there is a box that will get the number of required fields and the list them -- but they are kinda jumbled. I'd like to space them out
    4.) Is there a way to actively change the name of the file based upon the data in a particular field? For instance, the name of the form is "Rhode Island Showroom - Sales Order Form", but when a value is placed in the name field -- the form is changed to whatever is in that field.
    5.) Is there a way to render some fields non-taxable or taxable. For instance, if we are shipping an item to a zipcode where we have a store, we have to charge sales tax for that zipcode. If we are shipping to zipcode without a store, we don't charge tax. If they buy something from our store to take out with them, we charge state sales tax, but the rest of their items will be exempt if they are shipped to a non-store location zipcode...etc. Basically, a checkbox or a radiobutton that will prevent/allow taxability of a field.
    I think that's everything! I would definitely appreciate feedback, criticism, suggestions or ways to trim-down on script!
    Thanks!
    I have attached a link to the super-awesome sales form and my form as well.
    http://dl.dropbox.com/u/37155721/TCB%20Sales%20Sheet%20Final%20Beta.pdf
    http://dl.dropbox.com/u/37155721/Lock%20All%20Fields_Purchase%20Order.pdf

    For #1, that's a form created in LiveCycle Designer, which comes with the Windows version of Acrobat Pro. XFA forms can be set up to be dynamic, which allows additional lines to be added.
    For #2, if you don't want to bother with the password, the code can be reduced to just:
    var f = getField("secure.Date");
    var readonly = !f.readonly;
    getField("secure").readonly = readonly;
    For #3, you could change the line of code to:
    //tool tip is the field's 'userName' property;
    var tt = "  " + f.userName;
    Although it would be better to rewrite the routine that you're using to provide a better output. If I were doing this, I'd put each field on a different line.
    For #4, no, unless you create a folder-level JavaScript routine that saves the document with a file name based on data in the form. You would have to create a button on the form that when clicked executes the code to save the file. This means that each user would have to manually install the JavaScript file in the correct locationon their machine.
    For #5, yes, but to you want to control individual items or the total order?

  • Field value disappeared when saved in Quick Sales Order form

    HI,
    We have developed a custom form which is similar to the Find Customer Search form in Quick Sales Order form (Navigate to Tools --> Find Customer).
    The custom form searches Customer and populates the selected customer details in Quick Sales Order form (populating the values in Quick Sales Order form is handled in Custom.pll).
    When we select Bill to or Ship to Contact in the Quick Sales Order form and save the Order, the Bill to and Ship to Contacts are disappeared (If the Bill to and Ship to Sites are not Primary).
    Can anyone please help me on this...
    Thanks.

    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.

  • 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)

Maybe you are looking for

  • Add a new SubmitButton on a Page

    Hi, I need to add a new submitButton on a page, so I have doen the following: 1) created a new stacklayout and submitbutton under it. 2) assigned the page's AM to this region. 3) assigned a new controller to this region. 4) using personalization adde

  • Planning Error: java.io.UTFDataFormatException: Invalid UTF8 encoding.

    Hi, We are getting the below error in the Planning Application logs. Any clues how we can resolve this. WatchData: DATE = Nov 30, 2012 1:57:26 AM EST SERVER = EPMServer0 MESSAGE = [ServletContext@849971677[app:PLANNING module:HyperionPlanning path:/H

  • Building a small network with Windows 7 machines

    This isn't necessarily Premiere or even video-related, but hopefully some of you hardware/networkin gurus can offer a bit of advice... I've been using my ISP's rather cob-job DSL/hub/WAP for awhile, with my two workstations cabled to it, and my lapto

  • Error commiting update

    Hello again, We have a function that executes periodically, updating semantic data (removing and adding triples of different resources). But occasionally, that same method has thrown the exception listed below, with is strange because nothing changes

  • Dynamic Tables (insertrow/deleterow)

    I have a rqmt to accept a variable number of data points using a form. I want to use dynamic tables to allow the user to add or delete table rows as needed (via Javascript). Example - View Rendered with: <tr> <td><input type="text" name="dataARow1" s