How to make the obligate field in selection screen

Hi ,
In my report two radio buttons and two bloc selection screens are there.When we select the first radio button first screen will be editable second screen will be non-editable vice-versa.
but the problem is in each selection screen one mandatory field is required  suppose if i give the one field obligatory in first block screen it is not allowing the second readout please help me regarding this how i will make the mandatory field in both screens.
Thanks,
Harinath

Hi...
Dont Declare your field as OBLIGATORY.
Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
And Generate only Error Message (Type E).
Try this code:
AT SELECTION-SCREEN on <yOUR mandatory field>.
   IF PA_UPD = 'X'.
         IF <YOUR MANDATORY FIELD>  IS INITIAL.
              Message 'Entry is must in this field' type 'E'.
         ENDIF.
   ENDIF.
AT SELECTION-SCREEN OUTPUT.
IF pa_udp = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-active = 1.
ELSEIF screen-group1 = 'DEF'.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pa_rep = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ABC'. "#CCE
screen-input = 0.
ELSEIF screen-group1 = 'DEF'.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
<b>Reward if Helpful</b>

Similar Messages

  • How to make the CATEGORY field mandatory in the SMIN Support Ticket in test management?

    Hi,
    how to make the CATEGORY field mandatory in the SMIN Support Ticket in test management?
    Rg,
    Karthik

    Hi Kamal,
    This note steps will no validation that the user actually enters a value and the message will be created even if this 'required field' is left blank.
    Any other way to validate the enter a value also?
    Rg,
    Karthik

  • How to Improve the performance in Variable Selection Screen.

    Hi,
    In Query Level we have Variable " User entry Defalt Valu". User want select particular value when he press "F4" it's take hours time how to improve the performance in Varaible Selection Screen.
    Thanks in Advance.
    Regards,
    Venkat.

    Dear Venkat.
    You please try the following steps:
    1. Say the InfoObject is 0EMPLOYEE against which you have created the variable, which user is trying to select value against, when they execute the report.
    2. Goto RSA1-> InfoObject tab-> Select InfoObject 0EMPLOYEE.
    3. Selcet the following options:
       Query Execution Filter Val. Selectn  -  'Only Posted Value for Navigation'
       Filter Value Repr. At Query Exec. -      'Selector Box Without Values'
    Please let me know if there is any more issue. Feel free to raise further concern
    Thnx,
    Sukdev K

  • How to make the description field as mandatory in IW31 T.code

    Hi All,
    My requirement is make the Description field as mandatory in T.code: IW31
    That field is CAUFVD-KTEXT.
    How to make this field as mandatory,
    I tried with BADI: IWO1_SCREEN_MODIFY
    And some customer exists also (ZXWOCU04, ZXWOCU09) but unfortunately I couldnu2019t reach my functionality
    Can any please help me to reach out my functionality?
    Thanks and Regards,
    Rambabu.

    Dear Friend,
    go to spro - plant maintenance and customer service - maintenance and service processing - maintenance and service orders - define field selection for order header data(pm) -Field Selection for Order Header Data and Reference Object
    here keep CAUFVD-KTEXT is mandatory for your order types.
    Regards,
    pardhu

  • How to make the Reference field in the in Accounting Tab a required field.

    Hi,
    Can i make the REference field in the Accounting tab required. I want to enter contract number from RE in that field.
    Thank you.
    Rachelle

    Hi,
    Goto t.code OVA2 select A-sales header and then click on procedures in the left--> select the procedure in which you want to incolude this field and new entries the table name is VBAK and field is XBLNR for the reference field in the accouting tab and accordingly assign the status 01 or 02 as per your requirement.
    Then you need to assign the incompletion procedure to the sales document type in VOV8.
    Regards,
    Gopal.

  • How to make the Deprtmnt field in the cost center master data as required ?

    Dear Experts,
    I want to make the Department field in the cost center master data as required field.....how do i do it?
    regards
    Suresh

    Hi Eli,
    Thanks for the quick reply
    while creating the Cost center itself the field should come as required field........can that be met with this enhancement?. Because the transaction code being used int the enhancement is for change mode but i want this feature in  create mode itself.
    thanks
    regards
    Suresh

  • How to make the custom field enable/disable in ME21n/ME22n/ME23n trans

    Hi Experts,
    I need help.
    I have created one custom field in the transaction ME21n/ME22n/ME23n under customer data 2 tab. But my problem is the field is always in enable (means editable only)  even in Display mode. How to make the field is non editable in display mode and editable in change mode.
    I have tried by putting some logic to make that field to change alternatively according to change/display button. And it is working fine but if we click any othe button , this field is becoming editable even in display mode.
    How to make this field to behave as standard fields?
    Please reply me <removed by moderator>
    Thank you in advance.
    Best Regards,
    Divakar.
    Edited by: Thomas Zloch on Mar 2, 2012

    If you have BADI implimented for custom tabs then you can do this in method ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM
    lv_changeable = im_header->is_changeable( ).
      LOOP AT ch_fieldselection ASSIGNING <fs>
        IF lv_changeable IS INITIAL.
          <fs>-fieldstatus = '*'. " Display
        ELSE.
          <fs>-fieldstatus = '+'. " Change
        ENDIF.
    endloop.

  • How to make the text fields as mandatory (in 'notes and attachment' tab)?

    Hi,
    We have defined some Fixed Values for texts under IMG>SRM>SRM Server>Cross Application Basic Settings>Text Schema>Define Fixed Values for Texts, for a certain transaction type of RFx responses for a text schema.
    Because of this, the bidder can choose one of these fixed values for texts. This is perfectly working fine.
    Now the question is, we want to make the texts fields as mandatory. i.e. The bidder should not be able to submit the responses if certain texts are blank.
    Is there be any BadI for this?
    GH

    You can use BBP_DOC_CHECK_Badi for this field validation using a filter value RFx/Bid (I ont remember exact word).
    Regards,
    Jagadish.

  • How to make the payroll field in the assignment screen mandatory using personalization ?

    I am trying to make the payroll field required in the assignment screen using personalization , but it's not working, can anybody assist me ?
    Thanks.

    Hi,
    Navigate to Assignment Screen. Help > Diagnostic > Custom Code > Personalize
    Create a new  item : say "Mandatory Payroll Name"
    Condition:
    Trigger Event:WHEN-NEW-BLOCK-INSTANCE
    Trigger Object: ASSGT
    Actions:
    Object type: Item
    Target Object: ASSGT.PAYROLL_NAME
    Property Name: REQUIRED
    Value: TRUE
    Apply / Save.
    Exit form and re-enter Assignment Screen to check.
    HTH.
    Regards,
    Rajen.

  • How to color the text element in selection screen

    hi,
    i am going to pass some text element in selection screen output  and my requiremnt is text element should be given some colour.
    plz guide me.
    regards
    muthuraman.d

    Hi...
    Dont Declare your field as OBLIGATORY.
    Instead perform the validation in AT SELECTION-SCREEN event. But validation should be only when Particular Radiobutton is selected.
    And Generate only Error Message (Type E).
    Try this code:
    AT SELECTION-SCREEN on <yOUR mandatory field>.
       IF PA_UPD = 'X'.
             IF <YOUR MANDATORY FIELD>  IS INITIAL.
                  Message 'Entry is must in this field' type 'E'.
             ENDIF.
       ENDIF.
    AT SELECTION-SCREEN OUTPUT.
    IF pa_udp = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'ABC'. "#CCE
    screen-active = 1.
    ELSEIF screen-group1 = 'DEF'.
    screen-input = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_rep = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'ABC'. "#CCE
    screen-input = 0.
    ELSEIF screen-group1 = 'DEF'.
    screen-active = 1.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDIF.
    <b>Reward if Helpful</b>

  • How to make the UoM field optional field

    In material master Basic data1 tab, I want to make UoM field optional field. In OMS9, I changed this field from Req,field to Opt field
    ,but when i create a material, the UoM is still Req. How to resolve this? Thank you.

    Hi,
    Unit of measurement is the mandatory field for the materials.Without a unit we can't do anything for the material. Even though u changed as a optional entry system will insist to enter the UOM. Because its a standard process in SAP.Same thing will be happend for the material Description also.Field reference will not control such fields like UOM and material Description etc...
    Regards,
    Venkatesh

  • How to make the input field of an uplaod button to readonly

    Hi all,
              I have to upload an excel file using upload button.But the problem here is i want the user to use only browse button to upload a file..but he should not enter mannulally in the input field.Is it possible to gray out the input filed but the browse button should be in active state.
    Regards
    Padma N

    Hi,
    I dont think you can make the readonly only for the inputfield which is part of the FileUpload UI.
    I guess your issue is related with user entering invalid urls and system hangs.
    Regards
    Ayyapparaj

  • How to make the contents of NSTextField selected?

    Hi,
    I'm creating an NSTextField (from within a custom NSView):
    NSTextField *textField = [[NSTextField alloc] initWithFrame:NSMakeRect(20, 20, 50, 16)];
    [textField setStringValue:@"abc"];
    [textField setSelectable:YES];
    [textField setEditable:YES];
    [textField selectText:self];
    I want the contents to be selected ready for the user to start typing, but despite calling selectText, the text field is never selected. Is there another step I have to do first?
    Thanks
    Steve

    Steve556 wrote:
    Now, if you change NSView to NSTextView in the @interface, you will see the behaviour I'm getting, that the NSTextField still appears and functions, but the contents are no longer selected.
    I haven't put this in a testbed yet, Steve, but need to ask a couple questions anyway: Are you (1) having a problem getting your NSTextField object(s) to accept first responder, or unable to select text manually? Or (2) are you expecting to see the selected text when a text field object isn't first responder (i.e. when it's neither displaying the caret nor connected to the field editor)?
    As to #1, your code shows that the text field is added as a subview of the NSTextView object. Have you tried making the text field a sibling view? I.e. both the text view and the text field would be subviews of the content view, but the text field(s) would be higher in the subview order. You can change the order by dragging in the xib window (with the View Mode switch in Center position), or you can send [addSubview:positioned:relativeTo:|http://developer.apple.com/mac/library/docum entation/Cocoa/Reference/ApplicationKit/Classes/NSViewClass/Reference/NSView.html#//appleref/occ/instm/NSView/addSubview:positioned:relativeTo:].
    If #2, I don't know of any easy way to get NSTextField to highlight text when it's not first responder. In fact I don't think NSTextField remembers which text was selected once it's no longer editing. From [Text Fields, Text Views, and the Field Editor|http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/UI TextView/TextFieldsAndViews.html#//apple_ref/doc/uid/20001799] in +Text Views+:
    Because only one of the text fields in a window can be active at a time, the system needs only one NSTextView instance per window to be the field editor. Among its other duties, the field editor maintains the selection. Therefore, a text field that's not being edited typically does not have a selection at all. (However, developers can substitute custom field editors, in which case there could be more than one field editor.)
    On the other hand, +NSTextView does remember+ the range of selected text and highlights that text in a different color when not editing. So you might consider creating additional smaller NSTextView objects in place of the NSTextField objects.
    The [Cocoa Text System|http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Te xtArchitecture/TextArchitecture.html] is rich in [details and capabilities|http://developer.apple.com/mac/library/documentation/Cocoa/Concept ual/TextEditing/TextEditing.html#//apple_ref/doc/uid/10000157] about which I'm clueless. So if you need to dig much deeper, I hope one of our OS X experts will respond.
    \- Ray

  • Providing F4 help for the same field on selection screen

    Hello Experts,
    My requirement is :
    There are 2 radio buttons and a parameter "p_file" on my selection scree.
    1. rb_appl
    2. rb_pres
    If the radio button rb_appl = 'X', I need to place the logic of F4 help of application server for the field p_file. Else if the rb_pres = 'X', then I need to place the logic of F4 help of presentation server for the same field p_file.
    I have written the code in the below manner
    PARAMETERS: rb_appl RADIOBUTTON GROUP rad DEFAULT 'X',
                             rb_pres RADIOBUTTON GROUP rad ,
                             p_file   TYPE ibipparms-path.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      IF rb_appl = 'X'.
          PERFORM f_applictn_server_filenm.
      ELSEIF rb_pres = 'X'.
        PERFORM f_presentation_filenm.
      ENDIF.
    But I am getting the F4 help for only the radio button for which i have placed the default value in the parameters.
    So please let me know how to define the F4 help for the same field based on the radio buttons.

    Hi,
    You can acheive the same by the addition of [USER-COMMAND fcode].
    RADIOBUTTON GROUP group [USER-COMMAND fcode] - The addition USER-COMMAND can be used to assign a function code fcode to the first parameter in a radio button group. The function code fcode must be specified directly, and have a maximum length of 20 characters. When the user selects any radio button of the radio button group on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and transfers the function code fcode to the component ucomm of the interface work area sscrfields.
    So you code should be altered as
    PARAMETERS: rb_appl  RADIOBUTTON GROUP rad
                         USER-COMMAND radclick    "Addition which you have to make.
                         DEFAULT 'X',
                rb_pres  RADIOBUTTON GROUP rad ,
                p_file   TYPE ibipparms-path.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      IF rb_appl = 'X'.
        PERFORM f_applictn_server_filenm.
      ELSEIF rb_pres = 'X'.
        PERFORM f_presentation_filenm.
      ENDIF.
    Thanks & Regards,
    Harish

  • How to change the text in default selection screen

    Hi,
      I have created the default selection screen(using PNP Logical database) ,In that I wants to display 'Data Selection Period' instead of 'Period'.
    Please send me the related code.
    Thanks in advace
    mohan

    HR Logical Database is PNP
    Main Functions of the logical database PNP:
    Standard Selection screen
    Data Retrieval
    Authorization check
    To use logical database PNP in your program, specify in your program attributes.
    Standard Selection Screen
    Date selection
    Date selection delimits the time period for which data is evaluated. GET PERNR retrieves all records of the relevant infotypes from the database. When you enter a date selection period, the PROVIDE loop retrieves the infotype records whose validity period overlaps with at least one day of this period.
    Person selection
    Person selection is the 'true' selection of choosing a group of employees for whom the report is to run.
    Sorting Data·
    The standard sort sequence lists personnel numbers in ascending order.
    · SORT function allows you to sort the report data otherwise. All the sorting fields are from infotype 0001.
    Report Class
    · You can suppress input fields which are not used on the selection screen by assigning a report class to your program.
    · If SAP standard delivered report classes do not satisfy your requirements, you can create your own report class through the IMG.  
    regards
    vinod

Maybe you are looking for