Making a referenced field a range?

Hi there
I'm currently doing a dialog programming
lets say I have a custom table Z_ABC with MATNR field.
When i get this field from dictionary at layout, it shows as a normal single input field.
Can I make this field a range?

You can code this yourself - below is a simple example but you can expand the idea to have the "low" and "high" values on the screen (or even just the low value) and place a button on the screen with (say) ICON_ENTER_MORE which triggers the complex selection logic for the user.
report zlocal_jc_complex_search. 
start-of-selection.                                                    
  perform complex_selections.                                          
* FORM complex_selections
form complex_selections.                                               
* Invoke complex search criteria popup
  ranges:                                                              
    lr_datum        for sy-datum.                                                                               
call function 'COMPLEX_SELECTIONS_DIALOG'                            
       exporting                                                       
            text      = 'Some text'                                    
       tables                                                          
            range     = lr_datum                                       
       exceptions                                                      
            cancelled = 0                                              
            others    = 1.                                                                               
if not sy-subrc is initial.                                          
    clear: lr_datum, lr_datum[].                                       
  endif.                                                               
endform.

Similar Messages

  • Making task list field mandatory in creation of maintenance plan?

    Dear All,
    I need your help in configuration of Making task list field mandatory in creation of maintenance plan. I checked with sceen variant config but that also not giving me any option to make the field mandatory.
    Is there any note or user exit for it?
    Regards,
    Kaushal Rai

    Dear,
    Pls check the exit IPRM0004:Maintenance plan / item: Customer check for time "SAVE".
    Regards
    Sunil

  • Making PAN Number Field MANDATORY while creating a Vendor

    Dear Experts,
    I want to create a Vendor Master with PAN Number Field Mandatory.
    Is there any input for making PAN Number Field Mandatory at the time of creating a vendor.
    Regards - Manjunath

    Hi Trivedi,
    I tried the user exit. But it is pulling the values.
    Please find the coding here
    IF j_1imocust-j_1ipanno = ' '.
      MESSAGE e007(zmsg).
    ENDIF.
    We are not abe get the PAN vanue in  j_1ipanno  field.
    Looking for your help .
    Pleas guide.

  • Making PAN Number Field MANDATORY in Vendor Master while CREATING VENDOR

    Dear Experts,
    I want to create a Vendor Master with PAN Number Field Mandatory.
    Is there any input for making PAN Number Field Mandatory at the time of creating a vendor.
    Regards - Manjunath

    Please post in the right forum >

  • Badi for making gross weight field mandatory in MM01.

    Hi,
    Pls tell me the Badi for making gross weight field mandatory in MM01/MM02.
    Thanks in Advance.

    Hi!
    if it is not working with customizing I would do it in this userexit (CMOD)
    MGA00001
    it is the user exit before saving the material master data.
    have fun
    Flo

  • Input Field: Value Range in IP Web Layout

    Hi Experts,
    I've created a Web Layout based on IP with a copy function (e.g. from actual 2008 to plan2009) over 12 calendar months. For choosing the months to be copied, I created a Variable (calmonths) and added an Input Field into my layout to enter the the months to be copied. I referred the variable to the input field and it's working...
    When I want to select several months to be copied, I can type in " 1; 2; 3; " into the input field, execute the planning function and only month 1, 2, 3 (i.e. Jan, Feb, Mar) are being copied. But when I want to copy all 12 months, i have to enter 1; 2; 3; 4;...11; 12 which is kind of anoying! Has somebody some experience whether I can use a value range like 1-12 (or something like that) to avoid entering all the months individually? (I tried 1-12; 1- 12; 1 - 12; 1:12 etc but nothing like this is working)
    It would be very helpful if someone has an idea
    All the best,
    Norbert

    Hi Mayank, hi Srinivas.
    Thanks a lot for your valuable input! Unfortunately I was not able until today to test your recommodations.
    I tried your Interval variable but then faced the problem that I cannot enter multiple months anymore (e.g. 5 - 8 worked, 1; 3; 5 not).  Then I inserted both variables, multiple values & interval, into the planning function as well as in the button group in WAD for executing the PF but was not able to execute the following example: 1; 8; 4 - 6. After trying out for some time I figured out that one has to type in the figures in the following order: 4 - 6; 1; 8. Only then I am able to execute the planning function for the months April-June & Jan & August. So, if you're facing the same problem in the future, maybe you have the solution
    Best regards,
    Norbert

  • How to make users to select the date from calendar control my making the date field read only in date time control in external list in sharepoint 2010

    How to make users to select the date from calendar control only, by my making the date text field read only (don't want to let users type the date) in date time control in external list in sharepoint 2010. I am looking for a solution which can
    be done through sharepoint desginer / out of the box.
    thanks.

    Congratulate you got the solution by yourself. I am new to a
    WinForms calendar component, I feel so helpless on many problems even I'd read many tutorials. This question on the
    calendar date selection did me a great favor. Cheers.

  • Making the comments field Required in the Workitem

    Hello,
    I have a GP Application wherein the initiator fills out a form which goes to the Approver using Visual Approval Callable Object.........now when the approver opens the workitem he sees the information entered by the initiator and a comments field at the bottom......we want to make this field required for them.......how can we achieve this.....while creation of the Visual Approval Callable Object i see the comments as a output parameter with the 'Is Required' checkbox option....but it is disabled and does not allow you to select it......Please help...
    Any help would be highly appreciated...
    Regards,
    Anil

    Hi Anil,
    Standard Visual Approval CO doesnt work like that.
    Either you can create your own CO.
    OR
    i can suggest you as follows, but it is making little complicated process.
    1. Create one Action with Business Logic callable object, which will check for Comment EQ space or not and have 2 different states.
    a. If Comments is blank, Go back to Approval Action
    b. If Comments is entered, Proceed for further actions.
    2. Set this action as target for Approval Action.
    Hope this helps you.
    Thanks,
    Tejaswini

  • Making Storage Location field mandatory in Work Order

    Hi
    As per our proces, if PR is created from work order and if there is no storage location in work order then PO will have warehouse address as a shipping address. So it is expected that PR must have storage location details when it is created from work order to avoid incorrect shipping address in PO.
    So, I want to make storage location field mandatory in components tab of work order.
    Also I want to avoid the users to deliberately removing the storage location and making it blank.
    Regards
    Prakash

    Hi,
      You will have to use one of the below mentioned user exits  to accomplsih this requirement.
    CNEX0026 Maintenance order: General check for material
    CNEX0027 Maintenance order: Determination of plant or storage location for component
    Thanks
    Narasimhan

  • Referencing field in a query struct

    About 5% of the time I get an error 'Element COMPANYSTATUS is
    undefined in Q.' from the code in SNIPPET 1. Can anyone tell me why
    I would ever get this error? If the query returns 0 results (which
    it may if the user is not logged in and SESSION.User.GetCompanyID()
    return 0) it should return false since q.RecordCount is 0. The
    problem is I know users in at least some cases are logged in and
    the query is returning at least one row. The IF statement should
    short circuit on the record count if its 0. If it doesn't then the
    comparison for q.CompanyStatus should always be valid. Does any
    know why CF flakes out occasionally when referencing
    q.CompanyStatus? I see this in other areas as well such as in
    SNIPPET 2. The method is called from another CFC where I can
    guarantee the passed argument '_company_id' is valid integer and
    the SQL should always return 1 result. Why then do I get the error
    'Element STATE is undefined in Q.' Is it bad practice referencing
    query fields this way?
    Thanks In Advance

    No. The cftry/cfcatch was for catching database errors.
    However, you may wish to let those bubble up.
    Since the component exists in a shared scope, using
    IsDefined() is potentially dangerous IMO. If you do not include a
    scope, CF automatically searches multiple scopes for the given
    variable name. So I would use structKeyExists instead.
    (Coincidentally a similar topic came up on HOF today)
    I would do something like this
    <cfset var Local = structNew()>
    <cfquery name="Local._SqlQuery"
    datasource="#APPLICATION.config.DSN#">
    #preserveSingleQuotes(ARGUMENTS._sql)#
    </cfquery>
    <cfif structKeyExists(Local, "_SqlQuery")>
    <cfreturn Local._SqlQuery>
    <cfelse>
    <cfreturn false>
    </cfif>
    ....

  • Making a DFF field mandatory

    Hi
    I have a requirement, where in i have to make a field of DFF mandatory depending on some condition.
    I have extended the controller class, and i am using the code
    OADescriptiveFlexBean d = (OADescriptiveFlexBean)OAWebBean.findChildRecursive("HzAddressStyleFlex6");
    d.setRequired("yes");
    but it is giving me error
    non-static method findChildRecursive(java.lang.String) ca nnot be referenced from a static context
    OADescriptiveFlexBean d = (OADescriptiveFlexBean)OAWebBean.findChildRecu rsive("HzAddressStyleFlex6");
    Can anyone help me out please
    regards
    Ankur

    hi
    i would suggest a bit different way
    just go to the view source of that page ,and serach for prompt which is appearing against the DFF field ,there u would find the id of this field ,lets say if your DFF filed is of type OAMessageTextInputBean then after getting the id try this code in processRequest Method
    OAMessageTextInputBean mesgbean=(OAMessageTextInputBean)complaybean.findIndexedChildRecursive("id of field");
    and then set its required yes
    mesgbean.setRequired("yes");
    hope this will resolve your issue
    thanx
    Pratap

  • Making short text field in Display mode for one particular Purchasing

    Hi All,
    This is regarding Making the Short text field in Display mode of PR for one Particular Purchasing.. i am giving you a bit elaborate...We are into E-Catalog Procurement.I will do the shopping from the Vendors external catalog and i will return back to SAP.
    While doing so, i dont want the user to change the Short Text field. I want that field shud display the Description. When i tried with the Screen Layout settings, it is fully grayed out and i am not able to see the Description of the Material. Is there any other options to get this enabled?. Please advice me on this settings to be done. Thanks in Advance.
    With Regards,
    Saakithyan

    Hi
    Define a Field selection key (new not the one which is assigned to document type) which makes  short text editable in screen layout config. and assign it to functional authorization value in t.code OMET. (it should be numeric). Then assign that functional authorization value in user master SU01 for users with parameter id EFB.
    Then it will work
    Regards
    Antony

  • Making attributes of field dynamic in dialog program in layout editor.

    hi,
    to make a field required or possible or hidden, we define its attributes in attributes in layout editor.
    is it possible to make attributes of fields that we define in layout editor dynamic ?
    if functional people want to make some field non-mandatory or mandatory then they go in configuration, and do it. so does this mean that the attributes of the fields that we define in layout editor during dialog program can be made dynamic.
    how is this possible ? because attributes are selected using dropdown, its not a code ?
    please help in solving this mystery...

    Screen Modifications --
    <u>demo_dynpro_modify_simple
    demo_dynpro_modify_screen</u>
    <b><u>Please dont forget to reward points</u></b>
    Sudheer

  • Input field for Range variable

    I am trying to create a basic VC application based on SAP BI query. The query has a variable that is a Fiscal period range.  I can input a Range, like  001/2009 - 005/2009. This input works fine in BI query, but VC returns error Invalid variable value. How to make the VC to accept the input value with Fiscal year Range.
    Appreciate your help.

    Hi
    In VC syntax for entering variable value is different than the BI query. For the same thing which you have mentioned, you have to enter it as -
    001.2009:005.2009.
    Then only it will accept the values.
    Regards
    Sandeep

  • Making a header field as non editable while creating PO using ME21n

    Hi Friends,
    Could any one tell me the BADI or screen exit to make a header field (for eg: EKGRP - Purchasing Group) as non editable after giving default value to it?
    Thanks in advance,
    Ram

    Hi Ram,
    goto se80 t-code and give 'ME' package, and now see the enhancements available.
    You l get a relavent one, if you go through all those.
    Hope this helps
    Regards,
    Sujatha

Maybe you are looking for

  • Web Service proxy deployment and reuse

    Jdev. 11.1.1.4 Hi, In my ADF application I have created a web service proxy with Jdev wizard. I have created a method in order to test it and it works ok. Now, I need to reuse this proxy (the package) in other java applications also in Jdev but worki

  • No postings can be made to profit center 3200 in company code 2000

    Hi All, My client is having two company codes i,e 2000 and 3000. 2000 company code is having only one profit center i.e 2000 3000 company code is having two profit centers i.e 3100 & 3200 Document spliting is activated in both the company codes. If w

  • ATT can't tether/hotspot and do voice at same time?

    While using the new hotspot feature in IOS6 on a 4S, I can't tether/hotspot and do a voice call at the same time. It appears to pause the clients on the hotspot, although data directly from applications on the phone seem to work. I understand Verizon

  • DTP step taking longer time

    Hello Experts As Iam new to SDN I tried to find an answer to this issue. Please find below is the Issue There is a process chain. In this PC, After deleting the Index step, there is a DTP step, which updates the Cube with one DSO; the first DTP step

  • F-54 Vendor field in not require

    Hi All, I want to make require field Vendor Account in F-54 t code how to we make. Please guide me. Regards, juhi