'SET PF-STATUS EXCLUDING fcode' not working in Selection Screen event

Hi all,
I am trying to set PF-Status dynamically in Selection Screen based on Radio button.
For that i have inserted following code under event --> AT SELECTION-SCREEN OUTPUT
* SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS: s_inc  RADIOBUTTON GROUP rad DEFAULT 'X'
                   USER-COMMAND inc MODIF ID mod,
            p_inc(10) MODIF ID m1,
            s_lbr  RADIOBUTTON GROUP rad,
            p_lbr(10) MODIF ID m2.
SELECTION-SCREEN END OF BLOCK b1.
*  AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
  REFRESH fcode.
  IF s_inc IS INITIAL.
    APPEND 'CRTE' TO fcode.
    APPEND 'CHNG' TO fcode.
    APPEND 'DISP' TO fcode.
    APPEND 'PRNI' TO fcode.
    APPEND 'CRTL' TO fcode.
    SET PF-STATUS 'STATUS_IN' EXCLUDING fcode.
  ELSE.
    SET PF-STATUS 'STATUS_IN'.
  ENDIF.
Though s_inc is initial, i can see all the buttons from Status 'STATUS_IN' after execution of above code. EXCLUDING statement is not taking any effect which we normally get in Module pool program.
Please tell me what went wrong in above code?

Problem solved ......Thanks Keshav,
Giving code correction -->
* SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 1.
PARAMETERS: s_inc  RADIOBUTTON GROUP rad DEFAULT 'X'
                   USER-COMMAND inc MODIF ID mod,
            p_inc(10) MODIF ID m1,
            s_lbr  RADIOBUTTON GROUP rad,
            p_lbr(10) MODIF ID m2.
SELECTION-SCREEN END OF BLOCK b1.
*  AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT.
  REFRESH fcode.
  IF s_inc IS INITIAL.
    APPEND 'CRTI' TO fcode.
    APPEND 'CHGI' TO fcode.
    APPEND 'DISI' TO fcode.
    APPEND 'DELI' TO fcode.
    APPEND 'PRNI' TO fcode.
    APPEND 'CRTL' TO fcode.
    APPEND 'DATA' TO fcode.
  ELSE.
    APPEND 'CHGL' TO fcode.
    APPEND 'DISL' TO fcode.
    APPEND 'PRNL' TO fcode.
  ENDIF.
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status        = 'STATUS_IN'
      P_PROGRAM       = sy-repid
    TABLES
      p_exclude       = fcode

Similar Messages

  • Customized Button code not working on selection screen.

    Hello Experts,
    I have a button on the selection screen next to Execute button on the Application Tool Bar.
    I have written some validations on the button.It was defined on the PF-Status and its funtion text i have given as 'Show'.
    But the problem is that the code is not working.When I execute the button,the screen just remains their.
    The sy-comm always returns the value of 'UCOM' for whatever even takes place on the screen.The execution of the program does not stops their in debugger.
    Can anyone help me with some sample code and also provide the value of sy-ucomm which i should use for the customized button.
    Good points will be rewarded.

    Here is the short program which will show how to do it. You are simply checking for the USER-COMMAND value CHK and changing it to ONLI which is the F8 button, then the START-OF-SELECTION will be fired and you can output the list.
    REPORT zyou_0001.
    TABLES:  sscrfields.
    SELECTION-SCREEN PUSHBUTTON 2(10)  pbut1 USER-COMMAND chk.
    AT SELECTION-SCREEN OUTPUT.
      pbut1 = 'Test This'.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'CHK'.
        sscrfields-ucomm = 'ONLI'.
      ENDIF.
    START-OF-SELECTION.
      DO 10 TIMES.
        WRITE:/ sy-index.
      ENDDO.
    Regards,.
    Mohammed

  • Satellite L50-A-10Q: Win8.1 Pro Wi-Fi status LED is not working

    Hello,
    I have an Toshiba L50-10-A-10Q Notebook running BIOS Version 1.30 and EC Version 1.10.
    I recently updated from Windows 8 to Windows 8.1 Pro.
    I followed the update instructions found on the Driver Download page.
    All function keys and modules (Wifi, Bluetooth, etc.) work fine.
    However, the status LEDs do not work properly.
    The status LED for Wifi is always off, even when Wifi is activated and connected.
    The status LED for the Touch Pad is also always off, even when it is deactivated.
    Power LED and charge indicator work fine.
    All status LED were working properly before the update to WIN 8.1.
    Is there a solution for this problem?
    Kind Regards
    Niko

    Why you dont try to update or reinstall the Intel WLan driver and Toshiba System Driver again?
    Since this procedure helped to solve the touchpad issue and I guess this would solve problem with the WLan indicator too.
    [Intel Wireless Lan Driver 16.0.2.1.0.s64 for Windows 8.1 - 64 Bit|http://www.toshiba.eu/innovation/download_driver_details.jsp?service=EU&selCategory =2&selFamily=2&selSeries=178&selProduct=7948&selSh ortMod=3983&language=13&selOS=46&selType=all&yearu pload=&monthupload=&dayupload=&useDate=null&mode=a llMachines&search=&action=search&macId=&country=al l&selectedLanguage=13&type=all&page=2&ID=88542&OSI D=46&driverLanguage=42]

  • My appstore n camera icon has gone..anyone can help me..i already try to go setting and restriction but did not works..

    My appstore n camera icon has gone..anyone can help me..i already try to go setting and restriction but did not works..
    I also cannot update ios..how to solve this problem..?

    Your going to have to perform a restore.

  • How to fix keyboard clicks and lock sounds when they are on in setting , sounds and still do not work?

    How to fix keyboard clicks and lock sounds when they are on in setting , sounds and still do not work?

    Double-click the Home button and swipe the Task Bar to the right. Check Volume and Mute Settings.
    Message was edited by: Diavonex

  • To whom it may concern      Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E  2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in goo

    To whom it may concern
    Hi my name is Silvana Pires,I purchased an I Phone 4 S Model A 1387 EMC 2430 SCC.ID DCG E
    2430 AIC.579 C-E 243 A in California one year ago,Unfortunately its Not working well the screen is getting black,and the phone is in good shape I can prove it,the Apple support in Brazil doenst work like in USA.
    I look forward to your reply and a resolution of this problem.
    Thank you very much!!!

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • Cannot log in to Nationwide internet banking in Firefox. I get the front page but Login says internet banking is not working. Next screen says it's ok and sends you back to the first screen, which says it isn't. Works throughInternet explorer

    Question
    Cannot log in to Nationwide internet banking. I get the front page but Login says internet banking is not working. Next screen says it's ok and sends you back to the first screen, which says it isn't. Works throughInternet explorer

    That issue can be caused by corrupted cookies.
    *https://support.mozilla.org/kb/Cannot+log+in+to+websites
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • HT4865 Have tried to verify my icloud account, but its not working the Verifying screen is just scrolling round, but not doing anything

    Have tried to verify my icloud account, but its not working, the Verifying screen has been scrolling for ages now, it seems stuck, but it wont let me do anything, please help

    " I ordered the Snow Leopard software and tried installing it, but it stopped and said to clean the disk."
    First off, your installation disc is in all likelihood faulty.
    This has been a known issue in the past:
    Faulty Snow Leopard install discs - Apple has no timeline on ...
    http://store.apple.com/us/help/returns_refund#policy:
    *You can return software, provided that it has not been installed on any computer. Software that contains a printed software license may not be returned if the seal or sticker on the software media packaging is broken.

  • In the middel of updateing my IPod the connectione stopd and since then the device is not working. only white screen no connectivity to win or to the Appstore

    In the middel of updateing my IPod the connectione stopd and since then the device is not working. only white screen no connectivity to win or to the Appstore

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • My imac is not working well, the screen is  flashing.I can´t open any program.there is a monsterflashing

    my imac is not working well, the screen is  flashing.I can´t open any program.there is a monsterflashing

    Hello,
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • I have some problem .i update my iphone3gs software .software downloaded now its not working .warning select network connect to itunes ..please help me

    I have some problem .i update my iphone3gs software .software downloaded now its not working .warning select network connect to itunes ..please help me

    please help me ?

  • Multipl selection not working in Select Options, NO-EXTENSION not specified

    Hi,
    My code for the selection screen is as given below:
    data: v_bukrs type ekko-bukrs.
    select-options: s_one    for v_bukrs default '1234',
                    s_two    for ekko-lifnr,
                    s_three  for ekko-ekgrp.
    select-options: s_last   for ekko-llief no intervals.
    However, when I execute my program, all for select-options show Multiple selection icon. When I click on the icon for multiple selection, it is not processed.
    I tried to debug and find out but to no avail. Also I have searched extensively over SDN, but have not found any solution for my problem.
    Kindly help with relevant solution.
    Regards,
    Smruthi

    Hi Anurag and Vinod,
    Thanks for your replies.
    The FM - SELECT_OPTIONS_RESTRICT has not been used in my program.
    The issue is however, resolved. There was an error in the selection screen events, that was triggering the disabling.
    Regards,
    Smruthi

  • Field is not coming in selection screen

    Hi all,
    In one of my report there is a field customer group in selection-screen. Report is working fine so i transport request to qas in qas that field is coming on selection screen and its working fine.
    But when i transport same request from qas to prd that field is not coming on selection screen.
    I try 2-3 times by making diffrent diffrent request but still same result. can any body please tell me why its happen in prd??
    regards
    Ankit

    Hi,
    What i would like to suggest u that u need to first
    is u have to convert the R/3 Production systems into the Quality one
    try using tcode BDLS
    read the documentation of BDLS.
    hope this helps u !!
    thanks
    ravi

  • Alert set through timer job is not working in sharepoint 2010 as expected

    Hi,
    I create the standard sharepoint alerts through timer job.
    in my timer job, i loop through a list and based on the user value in the alert to field i create alert for the users and the condition for the alert are only when new items are created and something changes in the below view.
    all the properties are set fine. Email triggered on new items additions and on specific daily or weekly summary.
    The view filteration is not working at all:(
    But after the timer job ran and set the alert, if i open the alert settings on UI and without changing anything if i click ok , then the view filteration is happening and alerts are working fine.
    What is wrong here? is it a bug or anything am missing?
    Aruna
    try
    SPList Configlist = web.Lists.TryGetList("Configuration");
    foreach (SPListItem oItem in Configlist.Items)
    ProfilePicker = oItem["ProfilePicker"].ToString();
    ProfileViewer = oItem["ProfileViewer"].ToString();
    string MIS = oItem["MIS"].ToString();
    SPList list = web.Lists.TryGetList(ProfileViewer);
    SPList ProfileList = web.Lists[ProfilePicker];
    foreach (SPListItem oItem in ProfileList.Items)
    frequency = oItem["Frequenzy"].ToString();
    created = (DateTime)oItem["Created"];
    string createdDate = created.ToString();
    createdDate = DateTime.Parse(createdDate).ToShortDateString();
    DateTime today = DateTime.Today.Date;
    string dateonly = today.ToString(); ;
    dateonly = DateTime.Parse(dateonly).ToShortDateString();
    SPFieldUserValue fieldValue = null;
    SPFieldUser UserColumn = (SPFieldUser)oItem.Fields.GetField("Alert_x0020_owner");
    fieldValue = UserColumn.GetFieldValue(oItem["Alert_x0020_owner"].ToString()) as SPFieldUserValue;
    if (fieldValue != null)
    alertowner = fieldValue.User;
    alert = alertowner.ToString();
    //if (createdDate == dateonly)
    SPUser user = web.EnsureUser(alert);
    SPAlert newAlert = user.Alerts.Add();
    newAlert.AlertType = SPAlertType.List;
    newAlert.List = list;
    newAlert.DeliveryChannels = SPAlertDeliveryChannels.Email;
    newAlert.EventType = SPEventType.Add;
    if (frequency == "Daily")
    createDailyAlert(newAlert, list, user);
    else
    createWeeklyAlert(newAlert, list, user);
    catch (Exception ex)
    // Danfoss.Sharepoint.Logger.DanfossLogger.LogToOperations(ex, "Exception occurred in setting the profile alert", 0, EventSeverity.Error, DanfossExceptionCategory.General);
    private static void createDailyAlert(SPAlert newAlert, SPList list, SPUser user)
    newAlert.Title = "My Daily Profile viewer Alert";
    newAlert.AlertFrequency = SPAlertFrequency.Daily;
    newAlert.AlertTemplate = list.AlertTemplate;
    newAlert.AlertTime = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 10, 0, 0);
    newAlert.AlertTime = newAlert.AlertTime.AddDays(0);
    SPAlert existingAlert = null;
    newAlert.Properties.Add("filterindex", "4");
    newAlert.Properties.Add("viewid", list.Views["Daily Alert"].ID.ToString("D"));
    newAlert.Properties.Add("filterpath", string.Format("{0}/", list.Views["Daily Alert"].ServerRelativeUrl.TrimStart('/')));
    foreach (SPAlert alerts in user.Alerts)
    string al = alerts.AlertFrequency.ToString();
    // Filter down the alert to the list you wish to report on.
    if (al == "Daily")
    // Found your existing your custom alert. Don't create one.
    existingAlert = alerts;
    if (existingAlert == null)
    newAlert.Update(false);
    private static void createWeeklyAlert(SPAlert newAlert, SPList list, SPUser user)
    newAlert.Title = "My weekly profile viewer Alert";
    newAlert.AlertFrequency = SPAlertFrequency.Weekly;
    newAlert.AlertTemplate = list.AlertTemplate;
    newAlert.AlertTime = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 10, 0, 0);
    newAlert.AlertTime = newAlert.AlertTime.AddDays(0);
    SPAlert existingAlert = null;
    newAlert.Properties.Add("filterindex", "4");
    newAlert.Properties.Add("viewid", list.Views["Weekly Alert"].ID.ToString("D"));
    newAlert.Properties.Add("filterpath", string.Format("{0}/", list.Views["Weekly Alert"].ServerRelativeUrl.TrimStart('/')));
    foreach (SPAlert alerts in user.Alerts)
    string al = alerts.AlertFrequency.ToString();
    // Filter down the alert to the list you wish to report on.
    if (al == "Weekly")
    // Found your existing your custom alert. Don't create one.
    existingAlert = alerts;
    if (existingAlert == null)
    newAlert.Update(false);
    This is my code. alerts are not sending based on the view:(

    Hi sathyaav,
    I followed the example and made a test in my environment, it works like a charm.
    I suggest you check if you have inputed the valid site URL when you create the project solution.
    If you deployed succeed in the Central Administrator Site using Visual Studio, then the job named "Simple Job Definition" will appear in the job definition list.
    Best Regards
    Forum Support
    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]
    Zhengyu Guo
    TechNet Community Support

  • The setting date and time is not working

    Bought an apple TV, installed it as per instruction, connected to my internet but the seting date  and time is not occuring and the activation cannot occur either.  Spent 1 hr on the phone with Apple support staff - they told me it may be a router blockage and to contact my internet provider.  contacted internet provider , they tell me everything is working from their end so must be the apple TV device.  I was told this was easy techonology and that I would not have issues - I have spent 3 hrs on this and truly frustrated as its not working .  any suggestions would help!

    That would be a network issue as you were initially advised. When the date and time can not be set it means it is having trouble connecting to the network.
    Make sure router is up to date, reboot router and ATV. Make sure location is set correctly via ATV and also DNS (settings - general - network - configure DNS - automatic)
    Make sure your router allows access over port 123.
    Failing that try a restore on the unit

Maybe you are looking for