Select-options How to assign  Default value as "Not equal to something"

My req. is to asssign default value for a select-option as <> "DS1" . I am able to give default value as DS1 But dont know how to give "<> DS1" . Please help me
Thanking u in advance ..

INITIALIZATION.
s_lifnr-low = '0001'.
s_lifnr-high = '0002'.
s_LIFNR-sign = 'I'.
s_lifnr-option = 'NE'.
append s_lifnr.
Regards,
Subramanian V.
P.S. - Raja, still mode = BSP ??? :-P
Message was edited by: Subramanian Venkateswaran

Similar Messages

  • How to assign default values to fileds in the org. tab of an oppurtunity

    hi Experts,
    I created a new org data profile and assigned it to a transaction type.
    The org. tab consists of
    org. unit
    sales Org.
    Distribution Channel
    Sales Office
    Sales Group
    out of which first four are mandatory.
    Now I need to populate "10" in the distribution channel field irrespective of whoever logfs in.
    At present a list of sales offices and distribution chaneel popups up for selection by the user.
    In my business scenario, I don't want the distribution channel to be taken from there instead it should hold a default value "10".
    Pls help me in this.
    regards,
    Arul jothi.A

    Hi Arul,
    You can implement BADI 'CRM_ORGMAN_BADI' to populate the distribution channel field by default.You are to code in the method 'CRM_ORGMAN_MERGE' . The code you will have to write for defaulting value will be something like this :
    CODE :
    method IF_EX_CRM_ORGMAN_BADI~CRM_ORGMAN_MERGE.
    data : lv_guid type CRMT_OBJECT_GUID,
           lv_process_type type CRMT_PROCESS_TYPE.
    finding the process type *****
    lv_guid = is_orgman_wrk-REF_GUID.
    CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
      EXPORTING
        IV_ORDERADM_H_GUID               = lv_guid
    IMPORTING
       EV_PROCESS_TYPE                  = lv_process_type
    EXCEPTIONS
       ADMIN_HEADER_NOT_FOUND           = 1
       OTHERS                           = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *********defaulting value if process type is opportunity(OPPT)
    if lv_PROCESS_TYPE = 'OPPT'.
    cs_orgman_badi-DIVISION = '10'.
    endif.
    endmethod.
    Hope this solves your problem.
    Regards,

  • Amx:inputText how to assign default value

    How do I assign a default value to the amx:inputText field please?

    You assign it to it's value property.
    Timo

  • How to assign default values for a timestamp column in a table?

    Hi
    Thank you for reading my post
    how i can make a column in a table to be autofilled with current timestamp ?
    for example when i create a table i want its timestamp field to be autofilled with current time stamp whenever a record generated.
    Thanks

    TEST@db102 SQL> create table test(a number primary key, b timestamp default systimestamp);
    Table created.
    TEST@db102 SQL> insert into test(a) values(1);
    1 row created.
    TEST@db102 SQL> select * from test;
             A B
             1 03-SEP-06 05.56.34.995319 PM
    TEST@db102 SQL>                                                            

  • How to assign default values to "Start task process" SPD2013 action

    I am creating a task in SPD 2013 list workflow using the "Start a task process" action. I have the ContentTypeId field set as i need to have some specific fields to be displayed in the task form.
    Is there anyway to assign values to these fields?. My goal here is to fetch some values from the "currentItem" fields and display in the Task form during the approval. So that the Approvar don't need to go and see the actual list item.

    Hi,
    If you would like to display fields about current item in Task form, please click
    these user in Workflow, and
    Start a Task Process dialog pops out. Then click Open editor for body >
    Add or Change Look up, then you could retrieve field data.
    For clearly:
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • How to set default values in initialization event for select option

    Abapers,
    I have 3 GL account like 0024831231,0024831238,0024831245.
    Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
    Thanks

    Select option is table <Structure> with fields, low, high, sign & option
    you need to append the value into the select option, with appropriate value in low or
    example:
    S_HKONT-low  = <value>
    S_HKONT-SIGN = 'I'
    S_hkont-OPTION = 'EQ'
    append s_hkont.
    Default value for select-option also can be added directly in select-option statement.
    Regards,
    Mahesh

  • How to make default values in selection field?

    hi,
          i have selection field date , using data element 'QENTST' using following code in view INIT Method. i get the input selection field when i test application.
    DATA: LT_RANGE_TABLE TYPE REF TO DATA.
    CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
      EXPORTING
        I_TYPENAME                     =     'QENTST'
      RECEIVING
        RT_RANGE_TABLE           =     LT_RANGE_TABLE.
    CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
      EXPORTING
        I_ID                                     = 'QENTST'
        IT_RESULT                         = LT_RANGE_TABLE
        I_OBLIGATORY                 = ABAP_TRUE.
    What i need now , to make default value in this selection field( low = sy-datum and high = sy-datum + 10 ) . I have checked , i found one method called... SET_RANGE_TABLE_OF_SEL_FIELD. Bt i m not able to understand how to assign values to input table parameter in this method?
    Thanks In Advance.
    Saurin Shah

    Hi,
    Refer this Article by Thomas on how to make default values in Select Options:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f335fd
    I hope it would solve your problem.

  • How to populate default values for BP (FPP1 is  tcode in ECC 6.0)

    Hello ,
    I am creating BP in ECC 6.0 using Fpp1 tcode.  How to populate default values when i hit create BP person.   any badi  triggers when we are creating BP in ECC.
    guide me.

    Hi Premanand,
    To default fields, you need to do the following steps :
    1. Create a Z module e.g. : Z_DEFAULT_FIELDS_DIALOG.
    2. Enter suppose you want to default fiels Name, title, country, write code as follows  :
    DATA : ls_busdefault LIKE busdefault.     
      ls_busdefault-title = '0002'.
      ls_busdefault-mc_name1 = 'TEST'.
      ls_busdefault-mc_name2 = 'Default'.
      ls_busdefault-country = 'IN'.
        CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
        EXPORTING
          i_busdefault = ls_busdefalut.
    3. Now got to transaction BUS7, select event ISDAT, click on Event--> function modules.
    4. Register your Z module Z_DEFAULT_FIELDS_DIALOG in this list, Save.
    This should solve your problem. Please note : You can only default those fields contained in structure BUSDEFAULT.
    Cheers,
    Rishu.

  • How to set default value to input field dynamically

    Hello Experts,
    I am using adobe forms inside Webdynpro Java.
    Adobe form is having few input fields where at run time i want to assign default value to those fields.
    How can i do it ?
    Thanks in advance,
    Vinay
    Edited by: VINAY on Feb 24, 2011 6:39 AM

    Hi Mate,
    Just set the value to the webdynpro context fields on view init.
    if its like that will override the values entered by use on the form.
    just check if the default value is equall to the field value if yes leave it, if not dont touch that field.
    does this make sense...?
    Cheers,
    Sai

  • Assigning Default value to a Infotype Field

    Hi,
    My requirement is to assign default value to the loan amount field of the loans infotype(0045).
    I am using the PBAS0001 user exit program ZXPADU01 and taking the basic pay amount for the employee from infotype 8 and assigning it to pa0045-dabrt(loan amount)field in infotype 45. But the problem is the loan amount field in 45 infotype is of the type currency(13 characters) and if i assign a value 2000 to the field its displaying as 20,000,000.00. That is the value is being multiplied by 10000 and is displayed. When i tried to divided the value by 10000 and pass it, for odd numbers its not working.Can Some one provide the solution for this problem.

    Try using simple Formula at field level insted of field routine.
    there is IF( <condition>, <result when true>, <result when false> ) option avaialble in formula
    Regards
    Sudeep

  • How to set default value in OAMessageLovInputBean?

    Hi,
    How to set default value in OAMessageLovInputBean while loading the page?
    I have tried the following code but its not working.
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String delToLoc = (String)pageContext.getSessionValue("deliverTOLoc");
    Number delToLocId = (Number)pageContext.getSessionValue("deliverToLocId");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject poHeadervo =
    (OAViewObject)am.findViewObject("PoHeaderMergeVO");
    PoHeaderMergeVORowImpl poHeaderVoRow =
    (PoHeaderMergeVORowImpl)poHeadervo.getCurrentRow();
    if (delToLoc != null && !"".equals(delToLoc)) {   
    // poHeaderVoRow.setShipToLocation(delToLoc);
    OAMessageLovInputBean msb = (OAMessageLovInputBean)webBean.findIndexedChildRecursive("DefaultShipToLocation");
    msb.setValue(pageContext,delToLoc );
    Please suggest me how to resolve this issue.
    Thanks & Regards,
    Sunita

    Hi Cristoph,
                      We tried all the way but could not able assign characteristics value before saving the document. it means we can only see the assigned value using transaction CV02N. but our requirement is to check if the user fills any value into characteristics it should check with default value which we would like to assign whenever we create a new part of the document which we are not able to achieve.we tried a lot but could not succeed.
    Nay idea if we can achieve this....
    Regards
    Bhuwan Tiwari

  • How to set default value to date type attribute.

    Hi,
    How to set default value to date type attribute.
    E.g I want to set u201C01/01/1999u201D to date attributes.
    First i want to set value and then i want to fetch the same & want to check equals.
    please suggest solution.
    Regards,
    Smita

    Hi,
    In wdinit() method u can set the date
    DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
    Date today = Calendar.getInstance().getTime();
    String reportDate = df.format(today);
    wdContext.currentContextElement().setFromDate(reportDate);
    Another way you have set the this formate like that
    1. Create a Simple type under "Dictionaries->SimpleType" called DateFormat
    2. Select the type as "date"
    3. Go to the "Representation" tab and set the format as "dd/MM/yyyy" (or whatever u want, but month should be MM)
    4.Bind the context attribute to the type created now.
    Hope this helps u.
    Best Regards
    Vijay K

  • How to assign a value to a parameter {?MyParam} dynamically?

    How to assign a value to a parameter {?MyParam} dynamically?
    Example:
      {?One_Or_Two}  <- my first parameter
      {?MyParam}       <- My second parameter
    The Code:
    If ( {?One_Or_Two} = 'One'  then
        {?MyParam}  = 'One' ;
    else 
        {?MyParam}  = 'Two' ; 
    (THIS IS NOT WORKING FOR ME!  ANYONE KNOW WHY?)
      IT NEVER ASSIGN THE VALUE?
    My Command query looks like:
    SELECT * FROM MyTable
        WHERE MyTable.MyColumn = {?MyParam}
    THANKS

    Hi Joseph,
    I'm a bit unclear as to what you are doing and from what I see you're running in circles. 
    Your Command query is looking for a field that is equal to {?MyParam}. 
    Now you want to take {?MyParam} in the report and change the value after you've set it. 
    Parameters cannot be set from the Command, you can format it and manipulate it but they cannot be set except from the parameters window or from a front-end. 
    Thanks,
    Brian

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

  • How to change default value in a table using ALTER TABLE

    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    Any help will be needful for me
    Thanks and Regards

    user598986 wrote:
    Hi,
    How to change default value in a table
    I have a table TEST which has 2 fields CODE of Datatype VARCHAR2(10) and Indicator as VARCHAR2(1).
    I want to change the default value using ALTER TABLE TEST of field Indicator to 'I'.
    ALTER TABLE  test
    MODIFY (indicator DEFAULT 'I'); 
    Incidentally, INDICATOR is a keyword in Oracle, so you may have problems using it as a column name. If so, you'll have to enclose the column name in double-quotes, and be careful to use capital letters inside the quotes.
    Edited by: Frank Kulash on Aug 26, 2009 11:42 AM

Maybe you are looking for

  • How to use local variable in member formula?

    Hi Expert, We would like to use a {local variable} in a member formula, so that it can pick up the prompt from webform upon save. Would like to know if it is possible to do? If so, what is the correct syntax? We attempted to use brace {scenario}, bla

  • External hard drive reformatting error: 'could not unmount disk'

    I've bought a TrekStor DataStation maxi light 2TB external harddrive and I am trying to reformat it so I can use it with my Mac. Unfortunately when I try to either 'Erase' or create a partition as detailed here: https://discussions.apple.com/thread/2

  • Strange UI bug when using People view/face recognition

    I've started playing with the face recognition in LR6/CC and have encountered an odd display bug when viewing the groups of 'named people': The thumbnail for each named person includes a count of how many images (or perhaps that should be faces) are

  • 10.5.7 update/sharing

    after updating to 10.5.7 sometimes my shared computers and devices randomly show up or missing icons for example; im using a 15" unibody that i recently updated to 10.5.7 and the 17" uMBP is only on 10.5.6 Image: is anyone else experiencing random di

  • Online PDF landing page via links

    This is an odd How-To question, so here goes.  I have a document of about a dozen abstracted text records.  Each abstracted record, actually deeds from the 1700's, has the full image in a PDF file.  In my Word file I want to create a link to the inte