Forms Personalization in Sales Order pblm

Hi Friends,
I have a requirement in which the lines tab in the Sale Order form is to be disabled based on a record in a custom table. The custom table has columns order_number and order_status.
When a order number is requeried in the form and a record for this order number exists in the custom table with order status as 'InProcess' then the lines tab on Sales order should get disabled.
I am not able to figure out what should be the conditions that i should put for this requirement.
Thanks for your valuable inputs in Advance !!

I have tried with the condition, but it allows me to enter into the lines tab.
I have few orders which would only be in this custom table and i want to avoid the users once they have entered and my program has validated and entered them in the this custom table. Basically when a user requeries a order number(which is in the custom table and having custom_status 'InProcess') he should not be able to edit the lines tab.
I have tried for below in forms personalization:
1) Conditions
Trigger Event: When-Validate-Record
Trigger Object: Order
Condition: exists (select 1 from xxmas_inprocess where order_number = :order.order_number and order_status ='InProcess')
Processing Mode: Not in Enter Query Mode
2) Actions
Seq: 1, Type Property, Description Disable Lines,
Object Type : Tab Page
Target Object: Order_Regions.Line_Items
Property_Name: Enabled
Value: False
For this the line tab does not get disabled.
Also i have tried the trigger event as : When-New-Form-Instance without any condition. For it the lines tab is getting disabled.However when i put the above condition it does not work.
Please suggest me any changes necessary.

Similar Messages

  • Issue in form personalization from Sales Order Header form

    Hi ,
    I am trying to call an pl/sql procedure in which i am invoking API to apply holds.
    I am able to succesfully see the hold applied when i run it from SLQ Developer.
    from Form personalization , i m doing the below
    10 Invoke API to Apply Line Level Price Hold if Customer Credit Limit is greater than Sum of all the order total of that customer
    Condition :
    Trigger Event: WHEN-VALIDATE-RECORD
    Tigger Object :LINE
    Condition ::SYSTEM.FORM_STATUS = 'CHANGED' AND
    xcbpc_om_apply_line_hld.xcbpc_cust_credit_check(:LINE.SOLD_TO_ORG_ID,:ORDER.TRANSACTIONAL_CURR_CODE) = 1
    Actions:
    5 Built in Built in Type: Execute a Procedure
    ='declare
    v_field_value VARCHAR2(200) ;
    begin
    XCBPC_OM_APPLY_LINE_HLD.XCBPC_CALL_HOLD_API
    ('''||${item.LINE.HEADER_ID.value} ||''','''||
    ${item.LINE.LINE_ID.value} ||''','''||${item.LINE.ORG_ID.value}||''');
    end'
    10 Messgae Show
    Customer Credit Limit is Exceeded.Hence Hold is applied
    The Api is getting called from form( i can see through debug messages) but i am unable to see the hold on the form.
    Can any one help me out on this?
    Thanks,
    Seshu

    As I know, project number is used for oracle project management module. You can not use it alone.

  • How to do form personalization on purchase order cancell functionality

    Hi,
    how to make form personalization on purchase order form so that user should not cancell the PO.
    Please suggest.
    Thanks

    This is already available in the additional line information..though..
    If you still want that at line level to be displayed..maybe you need to customize the form...not sure how u can handle that logic
    Mahendra

  • How to Generate a complex smart form for the Sales Order different pages h

    How to Generate a complex smart form for the Sales Order different pages has different page Layouts  explain me?

    in print program in interface when calling the form there should be some option to tell it to make a NEW spool everytime.
    I have it in mind for sap-script it is ITCPO-TDNEWID. Dont have it in mind for SAMRTFORMS but still it should work somehow similar.

  • Updating UDFs in the UDF form of a sales order

    I got the UDF form of a corresponding main sales order form.
    I am trying to set a value for one of the UDFs there, but I get a 'General Failure' exception (Simply trying to set the edittext's UDFItem.Value or UDFItem.String properties)
    I know I have the right form and item, since I can change the item's BackColor.
    The DBDataSource.GetValue works, so I can read the existing values.
    The DBDataSource.SetValue doesn't work, but I'm used to it
    Any ideas?

    Avi,
        We cant use Setvalue directly in Predefined for u better to use
    Frm.items.item("").Specific.Value= ""
    Regards,
    Anitha

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

  • Table for C form Details in sales order

    Hi Experts,
    what is the table for details of C, H, I, etc forms against sales order.
    Thanks,
    Anu

    Hi
    yes i checked by step no. but step of this value in not available in KONV
    like ZDCM is on 125 step value available and JASS is on 170 value is available but
    NET EX MILL PRICE is on 160 and this 160 step is not available.
    Regards
    Abhi

  • SBO_Application.Forms.ActiveForm is Sales Order but in fact it isn't

    Hi,
    I have the Sales Order form opened and I did a mistake when entering the CardCode so this causes SAP to pop the List of Business Partners but doing so it goes nuts in one of my validation in ItemEvent and when I do Cancel on the List of Business Partners, the form reappears and I turn around like this indifinitely
    So I'm wondering why I cannot check if this is form 100001 witch is the List Of Business Partner form but the
    SBO_Application.Forms.ActiveForm reports I'm on the Sales Order form but I'm not.
    So I don't know what do to do avoid checking all my conditions in ItemEvent if this form is present
    I have a couple of scenarios of course but I just want to ear from you guys what you suggest.
    Thank you

    My question seems too complicated and was never answered so I close it until my problem comes back then I will ask at that time with a simpliest question.

  • Form routine for sales order adobe forms

    Hi Friends,
    I have a requirement to create z adobe forms for sales order for customized output type.
    When i checked, there is no form routine designed for calling the adobe forms.
    So, i am planning to copy the standard print program which is available for script and smartforms and creating a z form routine to include the function modules for calling the adobe form.
    Can any one please let me know whether have you worked in any of the same kind of situations and my apporach is ok or anything else can be done.
    Thanks & Regards,
    Prabu

    Hello,
    Plz check your caller program for the same and just find out the output type. for that purpose use the Tcode: NACE for finding the output type than proceed accordingly.
    Regards,
    Akg

  • How to generate an Idoc form an existing Sales Order?

    Hi experts.
    Our client needs to generate an ORDERS05 output Idoc for Sales Orders that has already been created.
    Is there a way to generate a new Idoc for those Sales Orders?
    MASTER_IDOC_DISTRIBUTE won’t do the job cause I don’t how to complete all the segments, I need the standard procedure to be execute.
    I thought to use a Bapi to modify the Sales Order, but that might execute routines that we not want to.
    Any ideas?
    Thanks.

    Hi,
    You can generate an IDOC from invoice cancellation.Define a new "Z" output type for this cancellation billing document type and select the medium as 5(EDI).Check with your ABAPer for this.
    Regards,
    Krishna.

  • Form Personalization - calling stored procedure attached in the form/library

    Let said we have a form: OEXOEORD.fmb (Sales order form)
    Using Form Builder to open it, we see that it links to other PL/SQl Libraries such as OEXOELIN (file: OEXOELIN.pll)
    and there are many stored procedures in OEXOELIN.
    is that possible that in the form personalization of Sales order form (OEXOEORD.fmb)
    we call a procedure in OEXOELIN library? eg: we call OE_LINE_SHIPPING.packing_insruction procedure in OEXOELIN library?
    i have tried to use the Builtin FORMS_DLL or "Execute a Procedure", but is not working.
    we are using R12.

    the solution we found is:
    1) use form personalization to call custom library
    2) custom library call the form library

  • 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

  • Saled Order Form Personalization Error

    Hi Friends,
    I have a problem while doing the Form personalization for Saled order form, particularly for the 'Payment Terms' in the 'Others' Tab.
    Problem is that i have disabled the 'Payment Terms' filed as per the requirement that no client cannot insert, update and delete the Payment terms in that filed but client want to default value in the Payment term as a 'CREDIT CARD'.
    while creating the SO also the filed is disabled, problem is while querying the Sales Order form, it is not allowing to query because 'Credit Card' already is there.
    please suggest me a solution for this.
    Thanks
    Anushka

    Hi,
    As far as I understand; You have 2 requirements
    1. Payment term should be always 'CREDIT CARD'.
    2. Payment term defaulted should not be updated or deleted by User.
    Action Plan:
    1. Use 'Not in Enter Query Mode'
    2. First Insert value into Payment terms.
    3. Make Update allowed as False instead of Disable.Disabling a field and inserting may cause errors in particular scenarios.
    If you still face problem, try inserting Payment terms on the basis of some condition, i.e when this condition is met then only insert will be done or else the field will be left blank. Ex: Customer Name not null
    Regards,
    Sridhar

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

  • Form personalization -purchase order

    Hi Friends i have requirement for form personalization in Purchase order.
    My requiremwnt is to alert the buyer if the price varies from the standard price (ie) +X% above or -X% below .If it varies at that time we want a popup warning .
    i used this logic in the condition
    ====================
    :PO_HEADERS.STATUS = 'Incomplete' and
    :PO_LINES.UNIT_PRICE_DB not between
    (select (item_cost*(100+${ps.xx_ppv_percentage.value}))/100 from cst_item_cost_type_v where cost_type='Frozen' and organization_id=64 and inventory_item_id=:po_lines.item_id)
    and
    (select (item_cost*(100-${ps.xx_ppv_percentage.value}))/100 from cst_item_cost_type_v where cost_type='Frozen' and organization_id=64 and inventory_item_id=:po_lines.item_id)
    It working fine
    when i create a purchase order it alert me when the price varies +- X%
    I need to fix this.
    once the records is saved and queried back i should not get the alert. unless any change or modification done in the query ...
    How to Fix
    i need to check the status of the record in the condition – if the record status = New or Changed then only
    the alert should come.
    Thanks in advance
    Thil

    Any Suggestions

Maybe you are looking for

  • Add Internationalization into .EAR archive, I don't have NWDS project

    Hi all, I have deployed WebDYNPRO application on the portal server, so I have appropriate EAR file. Client ask for internationalization of this application, but I don't have project files in NWDS - application developed another developer ages ago. Is

  • PSU for the HP s5300z

    I am putting a new video card into my s5300z and need to add power. I understnad this pc has 220W and the new vid card requires 350W. How do you add to the PSU? Does the current one get pulled and a new one put in it place or do you simply add an add

  • Adobe Air Application Crash After installation

    Hi, We have developed a windows application "DsNetHTML5Player" in Adobe Air which shows HTML pages in sequence using <mx:HTML> control. When I run application in "Flash Builder" all plays fine.After creating its build and installing on system (Window

  • Written in Java

    I didn't realize until today that Jdeveloper was witten 100% in Java and therefore can be run on Linux. Has it been tried on the Mac OS X?

  • Missing Audio Device (Microphone) on Satellite A500-026 (PSAR2A 026002)

    Hello list! I have a Toshiba A500-026 laptop for presentations (via overhead projector) and internet communications (Skype, etc.). At a recent presentation, I was to use the in-house speakers of the venue (plug into line-out socket on my A500), but w