How to handle this scenario in selection screen?

hi friends...i have 2 radio-buttons (2 parameter fields below each) in one group..the need when one radio button is checked, i need two parameter fields below it to be input enabled and the other to be disabled, if another radio button is checked, then the former two will be disabled and the other two parameter fields to be input enabled..no problems with this..i have written this functionality in at selection-screen output..i want to make each 1 parameter in the two groups to be mandatory..as using obligatory gives problems during at selection-screen output event, i want to achieve this functionality in some other event...i have tried the same in At selection screen on para_1 and at selection screen on para_2 fields, but am not able to achieve the desired functionality..by default the first radio button is checked, if the user wants to click the second radio button, At selection screen on para_1 event gets triggered and it throws the error msg. for the first one & vice versa...can't handle this in start-of-selection event also, as it gives the error msg. in a blank new screen..how to achieve it??
i have checked quite a few SDN threads, but doesn't answer my question
regards,
Sathish R

Hi,
I think you cannot proceed with obligatory statement as it will be triggered before theselection screen events.
You may check the code below.
PARAMETERS: r1  RADIOBUTTON GROUP rad1 USER-COMMAND abc.
PARAMETERS p1(5).    ( maintained as obligatory)
PARAMETERS p2(5).
PARAMETERS  r2  RADIOBUTTON GROUP rad1.
PARAMETERS p3(5).       ( maintained as obligatory)
PARAMETERS p4(5).
INITIALIZATION.
  r1 = 'X'.
AT SELECTION-SCREEN OUTPUT.
  IF r1 = 'X'.
    LOOP AT SCREEN.
      IF screen-name = 'P4'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF r2 = 'X'.
    LOOP AT SCREEN.
      IF screen-name = 'P2'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
AT SELECTION-SCREEN .
  IF p1 IS INITIAL AND sy-ucomm NE 'ABC'.
    MESSAGE 'Enter the obligatory value' TYPE 'S' DISPLAY LIKE 'E'.
  ENDIF.
  IF p3 IS INITIAL AND sy-ucomm NE 'ABC'.
    MESSAGE 'Enter the  obligatory value' TYPE 'S' DISPLAY LIKE 'E'.
  ENDIF.
Hope this will help you.
Regards,
Smart Varghese

Similar Messages

  • How to get modified values in selection screen

    address data  is filled in selection screen by default.
    if  we want to change the address on selection screen
    and pass it to another variable .how to handle this  please let me know

    Hi,
    Change the value of address in the selection screen by delting the default value and replcaing it by new 1.
    Then assigh this value of that variable to the new variable
    new_variable = variable.

  • How to write text  on the selection screen of a  report

    Hi all,
    I need to write some user defined text on the selection screen of an ALV GRID Report.
    Please suggest me how can i do this
    Thanks
    Ajay.

    SELECTION-SCREEN BEGIN OF LINE .
    SELECTION-SCREEN COMMENT 12(31) text-024.<-----Goto text elements and add text.
    PARAMETERS:P_FILEN LIKE RLGRAP-FILENAME .
    SELECTION-SCREEN END OF LINE

  • How to default date values in Selection Screen

    Hi everyone,
    I would like to display the 1st day of the previous month into the I_GSTRP-LOW field and the last day of the current month into the I_GSTRP-HIGH field.
    For example, this in the 5th month of the year (May), therefore, in the selection screen it should appear like this:
    Basic Date: <u>01.04.2006</u>    to   <u>31.05.2006</u>
    How do i do it?
    *& SELECTION-SCREEN                                                    *
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:
      I_AUFNR FOR AFIH-AUFNR,                           "ORDER NUMBER
      I_GSTRP FOR AFKO-GSTRP,                           "BASIC DATE
      I_BUDAT FOR AUFM-BUDAT,                           "POSTING DATE
      I_IWERK FOR AFIH-IWERK DEFAULT '6010' OBLIGATORY, "PLANNING PLANT
      I_ARBPL FOR CRHD-ARBPL,                           "WORK CENTER
      I_ERNAM FOR AUFK-ERNAM,                           "CREATED BY
      I_MATNR FOR RESB-MATNR,                           "MATERIAL
      I_KTEXT FOR AUFK-KTEXT.                           "EQUIPMENT
    SELECTION-SCREEN END OF BLOCK 1.

    Here is the code to populate default values,as per your requirement.
    data : V_date type sy-datum,
           v_month(2) type c,
           v_low_value(8) type c,
           v_high_value(8) type c,
           v_month1(2) type n,
            V_NO_OF_DAYS type T009B-BUTAG,
           v_curr_month type T009B-BUMON,
           v_curr_year  type T009B-BDATJ.
           select-options : i_gstrp for sy-datum.
    initialization.      
    v_date = sy-datum.
    v_month1 = v_date+4(2) - 1.
    write v_month1 to v_month.
    concatenate v_date+0(4)
    v_month
    '01'
    into v_low_value.
    I_GSTRP-LOW = v_low_value.
    v_curr_month = sy-datum+4(2).
    v_curr_year  = sy-datum+0(4).
    CALL FUNCTION 'NUMBER_OF_DAYS_PER_MONTH_GET'
      EXPORTING
        par_month       = v_curr_month
        par_year        = v_curr_year
    IMPORTING
       PAR_DAYS        = V_NO_OF_DAYS
    concatenate sy-datum+0(6)
    V_NO_OF_DAYS
    into v_high_value.
    I_GSTRP-HIGH = v_high_value.
    I_GSTRP-sign = 'I'.
    I_GSTRP-OPTION = 'EQ'.
    APPEND I_GSTRP.
    regards
    srikanth

  • How to disable save button on selection screen (1000) run from other report

    Hi Experts,
    Can any one let me know how to disable save button on selection screen (1000) run from other report.
    Say I am running from report R1 which submits report R2, but the save button should be disabled on
    report R2(selection screen 100).
    Thanks in advance.
    Regards
    RP.

    Hi RPReddy16 ,
    Try this:
    DATA :BEGIN OF t_extab occurs 0,
                     fcode like rsmpe-func,
                 END OF t_extab.
    REFRESH T_EXTAB.
    MOVE 'SAVE' TO T_EXTAB-FCODE.
    APPEND T_EXTAB.
    CLEAR T_EXTAB.
    SET PF-STATUS 'STATUS' EXCLUDING T_EXTAB.
    Regards,
    José

  • Prepayment exceeded invoice amount, a refund is received. How 2 handle this

    I made a prepayment of $100 to a vendor. The invoice I later received from the vendor was $70. The vendor then sent me a refund for the difference between the prepayment amount and the invoice amount (that is $30).
    1) How can I treat this refund from the vendor in Oracle Payables?
    2) Is the refund going to be a check sent to me?

    Hi
    Please follow the following steps:
    1. Raise a standard invoice for $30 against the vendor and apply it to the prepayment (This is required as the prepayment invoice needs to be knocked off).
    The accounting generated will be
    Std invoice - Clearing A/c dr and liability a/c Cr.
    Prepayment matching - liability a/c dr. and Prepayment A/c cr
    2. Raise a credit memo for $30 against the vendor and receive a refund against the credit memo.
    The accounting generated will be
    Credit Memo - liability a/c Dr. and Clearing A/c Cr.
    Refund - liability a/c cr. and Cash A/c dr
    Note: The distribution account selected in both the standard invoice and credit memo should be the same (this is generally taken as a clearing account)
    Another way (not generally recommended, and used in case you do not use cash management):
    1. Raise a standard invoice debiting the cash account for $30 and crediting the liability account. Then apply the invoice to the prepayment invoice
    Note: in this scenario, you select the cash account in the invoice distribution. But you will not be able to do cash management reconciliation
    Hope this clarifies.
    Vinit

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • How to Add Push Button On Selection Screen

    Hi Experts,
    How to add Push button on Selection Screen.
    Points will b rewarded for useful help.
    Bohra.

    Hi,
    To create a pushbutton on the selection screen, you use:
    SELECTION SCREEN PUSHBUTTON [/]<pos(len)> <push>
    USER-COMMAND <ucom> [MODIF ID <key>].
    The [/]<pos(len)> parameters and the MODIF IF addition have the same function as for the formatting options for underlines and comments.
    <push> determines the pushbutton text. For <push>, you can specify a text symbol or a field name with a maximum length of eight characters. This character field must not be declared with the DATA statement, but is generated automatically with length <len>. The field must be filled before the selection screen is called.
    For <ucom>, you must specify a code of up to four characters. When the user clicks the pushbutton on the selection screen, <ucom> is entered in the UCOMM of the SSCRFIELDS interface work area. You must use the TABLES statement to declare the SSCRFIELDS structure. The contents of the SSCRFIELDS-UCOMM field can be processed during the AT SELECTION-SCREENevent.
    Ex.
    REPORT DEMO.
    TABLES SSCRFIELDS.
    DATA FLAG.
    SELECTION-SCREEN:
    BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
    PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
    END OF LINE,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
    PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
    END OF LINE,
    END OF SCREEN 500.
    AT SELECTION-SCREEN.
    CASE SSCRFIELDS.
    WHEN 'CLI1'.
    FLAG = '1'.
    WHEN 'CLI2'.
    FLAG = '2'.
    WHEN 'CLI3'.
    FLAG = '3'.
    WHEN 'CLI4'.
    FLAG = '4'.
    ENDCASE.
    START-OF-SELECTION.
    TIT = 'Four Buttons'.
    BUT1 = 'Button 1'.
    BUT3 = 'Button 3'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    CASE FLAG.
    WHEN '1'.
    WRITE / 'Button 1 was clicked'.
    WHEN '2'.
    WRITE / 'Button 2 was clicked'.
    WHEN '3'.
    WRITE / 'Button 3 was clicked'.
    WHEN '4'.
    WRITE / 'Button 4 was clicked'.
    WHEN OTHERS.
    WRITE / 'No Button was clicked'.
    ENDCASE.
    This example defines four pushbuttons on a selection screen that is displayed as a
    dialog box. The selection screen is defined in a statement chain for keyword
    SELECTION-SCREEN.
    If the text symbols TEXT-020 and TEXT-040 are defined as 'Button 2' and 'Button 4',
    the four pushbuttons appear as follows on the selection screen displayed as a dialog box.
    Regards,
    Bhaskar

  • Any How-to handle SRM scenarios in BI 7.0

    Hi,
       BI 7.0 is being implemented for a client.He is trying to use SRM 5.0.Can u provide me some how-to handle SRM scenarios in BW guides or documents please.
    Regards,
    Joy

    Hi ,
    I need to retract data from BW-BPS 7.1 to SRM.I am new to BW
    (4 months experience)
    Can anyone send me documentation , links or steps by steps guide to explain how
    to do the link please?
    Is it more or less the same as with retraction into CO-Pa?Is there a standard retractor?
    If there are no standard retractors, what is the solution?
    This a challenging task for me and I really need to do it at work.
    Thanks in advance for your help.
    I'll surely assign points if one can help me.
    My mail is [email protected]
    Nevil

  • How-to handle SRM scenarios in Bi 7.0---any help ???

    Hi,
    BI 7.0 is being implemented for a client.He is trying to use SRM 5.0.Can u provide me some how-to handle SRM scenarios in BW guides or documents please.
    Regards,
    Joy

    Hi ,
    I need to retract data from BW-BPS 7.1 to SRM.I am new to BW
    (4 months experience)
    Can anyone send me documentation , links or steps by steps guide to explain how
    to do the link please?
    Is it more or less the same as with retraction into CO-Pa?Is there a standard retractor?
    If there are no standard retractors, what is the solution?
    This a challenging task for me and I really need to do it at work.
    Thanks in advance for your help.
    I'll surely assign points if one can help me.
    My mail is [email protected]
    Nevil

  • How to hide F8 function on selection screen.

    Hi,
    How to hide F8 function on selection screen.

    Just create a customer status and SET this status in your INITIALIZATION block.
    <i>You can copy the standard status from program RSSYSTDB status %_00.</i>
    Regards

  • How we can assign the customised selection screen to report category

    hai
    gurus
    how we can assign the customised selection screen to report category

    Hi Naresh,
    You can do like this.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF BLOCK SELECTION WITH FRAME.
    SELECT-OPTIONS: S_FKART FOR VBRK-FKART.
    SELECT-OPTIONS: S_FKDAT FOR VBRK-FKDAT OBLIGATORY.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
    SELECT-OPTIONS: S_AUART FOR VBAK-AUART.
    SELECTION-SCREEN END OF BLOCK SELECTION.
    SELECTION-SCREEN END OF BLOCK B1.
    if you give me brief i can help you out more.
    Thank you .
    Regards
    Ram

  • How to handle this type of output?

    Hey everyone,
    I'm looking for a way handling this report for my own job.
    a table having the following attributes exists.
    Create table Test (
    Public_Date varchar2(10),
    City varchar2(10),
    cnt number(3))
    some records of this table are listed below:
    Pubdate City cnt
    2005      a     10
    2005     b      13
    2006     a     21
    2006     b      3
    2006     c     2
    2007     d     10
    2007     a     8
    2007     c     7
    2008     b     9
    2008     c     1
    Query with the following output could be readily produced using group by clause.
    Year Sum
    2005 23
    2006 36
    2007 15
    2008 10
    But the question is that How I can lead to the following output.
    (I want to merge some records into one record in the output, in this example
    sum of all years after 2005 is my interest not each year individually come before)
    Year(s) Sum
    2005 23
    2006 36
    "after 2006" 25
    Could everyone help me how to handle this?

    Year Sum
    2005 23
    2006 36
    2007 15
    2008 10Isnt' the above result wrong based on your input data?
    SQL> select public_date, sum(cnt) from test group by public_date;
    PUBLIC_DAT   SUM(CNT)
    2005               23
    2008               10
    2007               25
    2006               26
    SQL>Here's the one you are looking for.....
    SQL> select decode(public_date, 2005, public_date, 2006, public_date, 'Above 2006') pb_date,
      2         sum(cnt)
      3  from test
      4  group by decode(public_date, 2005, public_date, 2006, public_date, 'Above 2006') ;
    PB_DATE                            SUM(CNT)
    2005                                     23
    Above 2006                               35
    2006                                     26
    SQL>

  • How to Handle Rework Scenario

    Dear Sir,
    We have following scenario :
    We created a Production Order (type PP01) for 1 piece of  Component 'X' . The Order was confirmed using Co11n and subsequently MB31 (GR) was done for the Order .  An Inspection Lot got created after the GR .  During Inspection , it was found that Processed Material need some Rework and Quality Inspector posted the Compopnent under BLOCK Stock during the UD .
    Now we need to start Rework on this Component .  Pl guide us what steps need to be followed for completing the Rework cycle .
    I have gone thru many of posting available in this forum related to REWORK , where it has been suggested to make a PP03 type Order in CO07 .
    But I fail to understand that following issues in this :
    a) How to issue faulty Compponent to Rework Order
    b) How to clear the Stock from earlier BLOCK Stock
    c) How to bring Stock back after Rework Order is confirmed and Inspected .
    I request you to kindly help me pl .
    Rgds
    Sonia Agarwal

    Here is the expalanation..
    THis is how we handle the scenario in our place..
    There are two types.
    1.      Repairing done by external persons or subcontractors..
    2.      Refurbishment done inside the plant.
    The second is done by the production department..
    The Refurbishment process is bit different from other production processes..
    The Defective material is received from different locations to the stores through MIGO.
    Here we will specify from and to locations of the defective Assemblies..
    The TO storage location is RMMS.. Here the valuation tye is SF-DEF..
    The refurbishment order is created in IW81.
    Order type is PM04
    In the Header, Refurbishment tab page is Important..The from to details have to given promptly(from val type defective to val type repaired)..
    Then the other things are like your usual production order..
    The GI is done in MB11,261 movement..(Against the order)
    After the execution is done, in MIGO goods issue is done with movement 531..Receipt of byproduct. the material is now converted from DEF to REP..
    Components issue has to be as followed.In the components tab , the materials to be issued has to given as usual. and the same materials has to be mentioned again as -1.It means you are taking away the defective components and adding the good ones...
    Confirmation is done on IW41..
    Hope the above clarifies..

  • Have started to get  info window from iTune telling "This computer is already associated with an Apple ID. "You can download past purchases on this computer with just one Apple ID every 90 days......" How to handle this situation

    "You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 63 days." How to handle this situation

    https://discussions.apple.com/message/16567363#16567363
    From the  More Like This  section on the right

Maybe you are looking for

  • Trouble with animation playing correctly

    I am using Captivate 5 and Flash CS5 to create a video tutorial. I have created a few animations in Flash and imported them into Captivate without any problems; however, the last couple of animations that I have tried to import are not playing correc

  • HELP! Transferring 80gb of itunes folder from MAC to PC - how do I do it?

    Have just bought a new PC (acer quad core running vista) having never owned one (due to necessity) and I can't figure out how to transfer my itunes folder over to it from my G4 runing 10.5.6. If anyone can help I would be ever so grateful. Thanks.

  • Regarding date formatt

    Hi   Can anyone give me sample code to fetch the date as: YYYYMMDD. Points are assured for correct answers. Regards, Sreeram

  • Program error while accessng data from table

    Hi all, In report , while accessing data for Sales order printing for Export, in sales order the NETWR is 1,070,000 (same as in sales order) but in Cond.table it is diplaying KAWRT and KBETR as 10,700.00. In program  in select query for VBAK , it is

  • Finding the desktop menu bar like in Mac PC

    Hi everybody, I am looking for a Menu bar on the desktop that look like the Menu bar in Mac PC. I remember i set it up before but now i forgot its name. Another question is that do you know any add-on so that i can run it on my desktop screen like th