ECC6 : Actions- When select Employee from Hit list No records selected.

Hi Gurus,
In TCODE PA30,
in info type Actions , when i select any employee  to display from Hitlist it says No records found .
Please help .

solved...

Similar Messages

  • ALV grid - using f4 search help - want separate value from hit list

    I have the following scenario that I am trying to resolve.
    I have created my own search help with a search help exit for a bespoke maintenance table which lists categories against HR positions which are to receive workflow for these categories.  I am designing a front-end for this table using an ALV grid whereby the person holding that position (i.e. name) is shown instead of position number.  The search help allows you to select by First name and last name and brings up a hit list which includes employee number, first name last name, formatted name field, position number, position description and org unit it belongs in.
    The issue occurs where the list brings back more than one hit.
    e.g.:
    1 Fred     Bloggs Fred Bloggs 50000001  pos1  org 1
    2 Frederic Bloggs Fred Bloggs 50000002  pos2  org 3
    If you select an entry, the formatted name field goes in the ALV grid field. I call the search help via F4IF_FIELDVALUE_REQUEST using the onf4 event .
    What I want to do is retrieve the position number of the entry selected and put this into another table without having to add this to my ALV grid and make available for input. I want to use name only for the input in my ALV grid (i.e. if I select the second example, the return table in F4IF_FIELDVALUE_REQUEST shows the name Fred Bloggs but does not show the position number which I need to add to another table to update my maintenance table).
    Can anyone suggest any way around this?
    Many thanks
    Larissa

    You are right, you can add this fields as an import parameter to the list.
    In Custom search help you must have marked fields as Export or Import parameters.
    If field is marked as Export parameters, it will be displayed in the selection pop up.
    If Import paramter check box is selected then this will be imported to the screen.
    Check this SAP documentation for both these options -
    Flag for IMPORT parameter of the search help                      
         Flag if the parameter is an import parameter.                                                                               
    Context information from the processed input template (screen) can be
         copied to the help process with an import parameter. Where an import 
         parameter gets its values from is defined when the search help is    
         attached to the corresponding field of the input template.           
    Flag for EXPORT parameter of the search help                                                                               
    Flag if the parameter is an export parameter.                                                                               
    Values can be returned from the hit list to the input template (screen)
         with an export parameter. The fields of the input template in which the
         contents of the export parameter are returned are defined by the search
         help attachment.
    Message was edited by: Ashish Gundawar

  • Enabling a reports region when a item from a list is picked up.

    Hello,
    Can you help me with this ..
    I have 2 regions on the page 1. will have a select list .. when an item is picked from the list i want to automatically enable the region with report displaying the database records that matches the select pattern
    Thanks in Advance
    -Vasu

    Hi Vasu,
    This depends on what you mean by "matches the select pattern".
    Do you mean that the select list is, effectively, a filter - the user picks one of two reports from the select list and it is then displayed?
    If so, you should have a Select List with Submit. The select list item and its values would then be used as the Conditional Display settings for both reports.
    Regards
    Andy

  • Safari action when selected from dock...

    So let’s say you have Safari running and you have a webpage minimized down in your dock. And there is no Safari browser on your desktop so you click the icon in your dock to make the Safari program your active or current program. When you click on the icon the action preformed is that Safari maximizes your once minimized browser window in the dock. Instead I would rather the action be either Safari just becomes the active program and I can then hit “Open Apple” + N for a new browser window. Or even better so when I click on the Safari icon in the dock it just opens a new window by itself. Is there anyway to get these functions working?
    Thanks in advance
    Tm

    The only way I know to do roughly what you're after is to use 'command+tab' to switch to Safari without activating docked windows.

  • Loud noise when iSight launches from iMovie

    Hi everyone,
    I just bought a MacBook Pro and when I launch iMovie and slide the little button (scissors to movie camera) to turn on the iSight my MBP makes a loud (EEEEEHHHHHH) sound. When it happens it sounds like my speakers are going to blow. It lasts for about a second or two. Is this a known problem?
    The problem doesn't occur when I launch Photo Booth, only iSight.
    I'm current on all updates.
    Steve

    Hello Steve,
    Is this a known problem?
    It is not a known problem with iSight. Here are a couple of things you should try.
    First, try turning your speakers' volume off before sliding the button. Then turn you sound up gradually, and let us know if the problem still exists.
    If you use an external microphone or speakers, you can also try disconnecting them to see wether they might be causing your problem.
    Next, try every suggestion re: Built-in iSight in How to Troubleshoot iSight. Be sure to include the checks to determine whether the problem is "application-specific" or "user-specific".
    If I am correct that you have already tested both iMovie and Photo Booth, you were wise to test with more than one application. However, Photo Booth does not record sound, so that may be why you are not getting the noise with Photo Booth. Try some other applications that can record sound.
    In addition to iMovie, any of the other video or movie clip applications from this list can record both video AND SOUND with your iSight. So can the apps linked in the "iSight as a surveillance or Nanny cam section of that page.
    If you have it, QuickTime Pro is an easy one to use with your iSight.
    Some clip recording applications, like Gcam, are free.
    Others, like WebcamTweaker, offer free demos that you could use to test if they give better results than iMovie.
    These tests will let you determine whether your problem is in your iSight itself or is an iMovie problem, and they may help you fix the problem while you are doing the checks.
    Please let us know what fixes your problem.
    If your problem remains after the tests, please post back what you tried and include any new info that your testing provides.
    Cheers,
    Jim
      Mac OS X (10.4.9)    G5 DP 1.8  External iSight

  • Igonre calls from contact list

    Does anyone know how to set where in I can ignore calls from the people on my contact list. I get the screen to ignore when people not in my contact list call, however when some one from the list calls, I do not get that option. Any set up changes. ideas ????

    Well, technically you can/could. It's a feature called 'Smart Limits'. However, AT&T no longer allows you to block incoming calls due to potential 911 call-back issues. If you had the feature when it first came out you can still use it but no new subscribers are able to add the feature. It will allow toy block up to 15 specific numbers. It is currently being tested until it has all of the issues sorted out.
    Message was edited by: dongle

  • Return 0 count when a Department within a CTE contains records for one set, but not another

    This is a bit of a complicated question to explain, but I am hoping not as complicated to resolve. I will try to describe this generically to allow anybody who can provide a solution to provide a generic example that anybody could adapt to their data.
    In my query, I created a CTE which combines two separate sets of data. One set of data lists who is within a given audience (call it audiencelist). The other set lists people who are in that same audience and have completed a given course (call if courselist).
    This is then all brought into one table by the CTE.
    My resulting report in Visual Studio 2008 is then going to include an expression to count each employee from both lists by department within the same field. (I will achieve this by first grouping by department, and then by the appropriate measure,
    which in the case of this example, I am calling audiencelist and courselist. Then, I will include an expression that counts the Employees.) The problem is, if a department has somebody in the audience, but NOBODY from that department has completed the
    course yet, I need the department to still show up in the "courselist" but with a count of 0.
    Example of the desired result:
    Dept 
    Field            
    Count
    A       Audiencelist  25
    A       Courselist     15
    B       Audiencelist  20
    B       Courselist     10
    C       Audiencelist  20
    C       Courselist     0
    I was trying as best I can to make this a generic example, but let me know if it would be easier if I share some of my actual code so you can provide a solution. My hope was that somebody could offer a generic example I could adapt to my data.

    I am having a little trouble following this example, or the one provided at the link above. I was hoping to just allow for a generic example, but I guess it may help if I share my actual code. My query is rather long, but I will just share the relevant parts
    for the sake of the sample.
    gm101measures
    AS
    select
    dimUser.EmpFK MeasureEmpFK,
    RIGHT(OrgCode2, LEN(OrgCode2) - 2) MeasurePC,
    audusersName MeasureAudName,
    dimActivity.ActivityName MeasureActName,
    dimActivity.Code MeasureActCode,
    CASE
    WHEN OrgCode2 LIKE 'US%' then 'US'
    WHEN OrgCode2 LIKE 'CA%' then 'CA' END
    CountryCode,
    'ACTUALS_GM101' SOURCESYSTEMID,
    Null CURRENCYCODE,
    'GM101CERT' MEASUREID,
    Null MEASUREDOLLARS,
    CASE
    WHEN GETDATE() Between '20131001 00:00:00' AND '20140930 11:59:59' THEN '2014'
    WHEN GETDATE() Between '20141001 00:00:00' AND '20150930 11:59:59' THEN '2015'
    WHEN GETDATE() Between '20151001 00:00:00' AND '20160930 11:59:59' THEN '2016'
    WHEN GETDATE() Between '20161001 00:00:00' AND '20170930 11:59:59' THEN '2017' END
    FiscalYear,
    CASE
    WHEN MONTH(GETDATE()) = '10' THEN '1'
    WHEN MONTH(GETDATE()) = '11' THEN '2'
    WHEN MONTH(GETDATE()) = '12' THEN '3'
    WHEN MONTH(GETDATE()) = '1' THEN '4'
    WHEN MONTH(GETDATE()) = '2' THEN '5'
    WHEN MONTH(GETDATE()) = '3' THEN '6'
    WHEN MONTH(GETDATE()) = '4' THEN '7'
    WHEN MONTH(GETDATE()) = '5' THEN '8'
    WHEN MONTH(GETDATE()) = '6' THEN '9'
    WHEN MONTH(GETDATE()) = '7' THEN '10'
    WHEN MONTH(GETDATE()) = '8' THEN '11'
    WHEN MONTH(GETDATE()) = '9' THEN '12' END
    FiscalMonthNbr
    from
    dimUser INNER JOIN
    audusers ON audusers.DataSetUsers_EmpFK = dimUser.EmpFK INNER JOIN
    Org ON dimUser.PrimaryDomFK = Org.Org_PK INNER JOIN
    factUserRequiredActivity ON factUserRequiredActivity.UserID = dimUser.ID INNER JOIN
    dimActivity ON dimActivity.ID = factUserRequiredActivity.ActivityID INNER JOIN
    dimRequirementStatus ON factUserRequiredActivity.ReqStatusID = dimRequirementStatus.ID LEFT OUTER JOIN
    UsrOrgs ON dimUser.ID = UsrOrgs.UserID LEFT OUTER JOIN
    UsrDoms ON dimUser.ID = UsrDoms.UserID
    WHERE
    dimActivity.ActivityName = 'GM101 Program Completion'
    AND
    dimRequirementStatus.name = 'Satisfied'
    AND
    (audusersName = @audparam)
    UNION
    select
    dimUser.EmpFK MeasureEmpFK,
    RIGHT(OrgCode2, LEN(OrgCode2) - 2) MeasurePC,
    audusersName MeasureAudName,
    Null MeasureActName,
    Null MeasureActCode,
    CASE
    WHEN OrgCode2 LIKE 'US%' then 'US'
    WHEN OrgCode2 LIKE 'CA%' then 'CA' END
    CountryCode,
    'ACTUALS_GM101' SOURCESYSTEMID,
    Null CURRENCYCODE,
    'GM101AVAIL' MEASUREID,
    Null MEASUREDOLLARS,
    CASE
    WHEN GETDATE() Between '20131001 00:00:00' AND '20140930 11:59:59' THEN '2014'
    WHEN GETDATE() Between '20141001 00:00:00' AND '20150930 11:59:59' THEN '2015'
    WHEN GETDATE() Between '20151001 00:00:00' AND '20160930 11:59:59' THEN '2016'
    WHEN GETDATE() Between '20161001 00:00:00' AND '20170930 11:59:59' THEN '2017' END
    FiscalYear,
    CASE
    WHEN MONTH(GETDATE()) = '10' THEN '1'
    WHEN MONTH(GETDATE()) = '11' THEN '2'
    WHEN MONTH(GETDATE()) = '12' THEN '3'
    WHEN MONTH(GETDATE()) = '1' THEN '4'
    WHEN MONTH(GETDATE()) = '2' THEN '5'
    WHEN MONTH(GETDATE()) = '3' THEN '6'
    WHEN MONTH(GETDATE()) = '4' THEN '7'
    WHEN MONTH(GETDATE()) = '5' THEN '8'
    WHEN MONTH(GETDATE()) = '6' THEN '9'
    WHEN MONTH(GETDATE()) = '7' THEN '10'
    WHEN MONTH(GETDATE()) = '8' THEN '11'
    WHEN MONTH(GETDATE()) = '9' THEN '12' END
    FiscalMonthNbr
    from
    dimUser INNER JOIN
    audusers ON audusers.DataSetUsers_EmpFK = dimUser.EmpFK INNER JOIN
    Org ON dimUser.PrimaryDomFK = Org.Org_PK LEFT OUTER JOIN
    UsrOrgs ON dimUser.ID = UsrOrgs.UserID LEFT OUTER JOIN
    UsrDoms ON dimUser.ID = UsrDoms.UserID
    WHERE
    audusersName = @audparam
    The final main query actually just pulls in everything from this CTE. My next step was going to be to pull this information all into the report, sort and group by MeasurePC (the Department, referred to in my company as a "Profit Center" and by
    the MeasureID (GM101Cert for those who completed the course, GM101Avail for those who are part of the audience) and then have an Expression that would count each MeasureEmpFK (the employee codes). However, that is when I realized it wouldn't count 0's for
    any MeasurePC in the GM101Cert set of data that did not have any people complete the course.
    Here is a mock-up of how the data would currently look from this above query:
    Country   Code
    SOURCESYSTEMID
    Fiscal Year
    Fiscal Month Nbr
    Org Value
    CURRENCYCODE
    MEASUREID
    MEASUREDOLLARS
    Measure Emp FK
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    170445
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    2671
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    113
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    271
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101AVAIL
    272
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101AVAIL
    317
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101AVAIL
    375
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101CERT
    170445
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101CERT
    2671
    From here, I was going to pull the data into a report to count. Using the above example, my desired result would be:
    Country   Code
    SOURCESYSTEMID
    Fiscal Year
    Fiscal Month Nbr
    Org Value
    CURRENCYCODE
    MEASUREID
    MEASUREDOLLARS
    Measure Emp FK
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    4
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101CERT
    2
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101AVAIL
    2
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101CERT
    0
    I had planned to achieve this just by pulling the data into my report and then, instead of pulling the EmpFK, I would create an expression to count them. However, I realized this wouldn't achieve the 0 counts when some PC's did not have anybody who had completed
    the course yet.

  • Very urgent..........how to pass a paramter list containing record group as

    hi
    can any one help me , i am getting frm-41214 when i pass a paramter list containing record group as data parameter to run_report_object as parameter, calling report from forms 10g, but when i dont pass the parameter list the report runs displaying no data(as it should do), otherwise it dont run and display the frm-41214
    zulfiqar

    Hi,
    Try using a lexical parameter(&parm_1) for a string of values or a bind parameter(:parm_1) for a single value
    Thanks,
    Kimosabe

  • How to update value stored in a table when we select a value from a list

    In my jsp page i have given
    <html:select property="function" >
         <html:option value="select">Select Actions</html:option>
    <html:option value="open">Marks as open</html:option>
    <html:option value="closed">Marks as closed</html:option>
    </html:select>
    I am using lookup dispatch action in action class
    public class LoginAction extends LookupDispatchAction{
    protected Map getKeyMethodMap() {
              Map map=new HashMap ();
              map.put("open","open");
              map.put("closed","closed");
              return map;
    public ActionForward open(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
              System.out.println("success");
              return mapping.findForward("success");
         public ActionForward closed(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
              System.out.println("success");
              return mapping.findForward("success");
    but when i select a value from the list,the corresponding action is not occuring.What should i put in my code??

    Put your code between the code tags, it makes it so much easier to read.
    To do that, just highlight your code and click on the "code" found between " and the circled ?.
    From what I can read of your code I don't even see a table or a list, so i have no idea what you are trying to do. You probably need to show more code.
    JSG

  • When clicking on a lookup, firefor does not allow me to select from the list

    When I use firefox, the website I am on has lookup fields located on it, firefox does not allow me to select my preferred option from the list. also when I slect another lookup from a list it displays the message 'invalid lookup value located in field ......'
    This does not happen in IE

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Adobe Form Section is Not Showing When Value is Selected from Dropdown List

    Hello Experts
    We have this issue where an ADOBE FORM is embedded in a WEBDYNPRO APPLICATION. 
    When selecting a value from the dropdown field in the ADOBE FORM, some particular section in the ADOBE FORM is not shown.
    Here's the ADS and NW versions that we were using.  We are running on EHP5 landscape.
    - ADS - 7.3 SPS 3
    - NW 7.3 SPS 3
    PS. The same program is working in EHP4 correctly.
    Any idea on how to resolve this issue?

    This is a custom built form, the thing is we just upgraded our system to EHP5 and we are in the test phase. The same form works in system in EHP4.
    Based on the dropdown list selection, there are some sections in the form which are hidden previously will be shown now. when you change the country in the dropdown the new sections appear. The sections will not be visible before you select the couuntry from dropdown.
    Should I upgrade my Adobe live cycle designer version to a higher one?
    Thanks

  • How to select multiple items when on safari?  Ex: when I have to choose countries where I have worked from a list.

    Hi Everyone
    Please advise: how do I select multiple items when on Safari? Ex. when I have to select multiple countries where I have worked.

    Hi Carolyn
    I am trying to select multiple items from a list on a particular website. I tried using the 'command' button, but to no avail.
    Grateful for any advice.

  • ALV grid list  report when selected  from  selection screen

    Hi folks,
                I need to get ALV grid display in my list report when selected the interval values from  the selection screen. If I change the values in list of ALV grid it needs to be updated when I press UPDATE pushbutton. The output of list should be in ALV grid display.I need sorting ,flitering,totaling functionality in the list output.
    For example if I selected BUKRS = 100 and 200 in the selection screen ,I need to display the ALV grid list in below the selection screen as ALV grid display...
    Its urgent as  I am new to ALV grid functionality...
    Thanks in advance..

    hi raja,
    check with the folllowing code.
    REPORT zca0m_zca0fcstftop NO STANDARD PAGE HEADING
                                    MESSAGE-ID zcsv_usrtbl_maintain.
    Type pools                                                           *
    TYPE-POOLS : slis.                          " Used for ALV display
    Tables
    TABLES: zca0fcstftop,
            dd04t,                         "R/3 DD: Data element texts
            tactt.                         "Activities that can be protected
    internal tables
    DATA: BEGIN OF wa_zca0fcstftop .
            INCLUDE STRUCTURE zca0fcstftop.
    DATA: END OF wa_zca0fcstftop.
    DATA: t_zca0fcstftop LIKE STANDARD TABLE OF wa_zca0fcstftop.
    DATA: BEGIN OF i_fcode OCCURS 0,
            fcode LIKE sy-ucomm,
          END OF i_fcode.
    *Record for variant selection
    DATA : BEGIN OF ws_variant,
             selected TYPE c,
             variant  LIKE ltdx-variant,  "Variant name
             text     LIKE ltdxt-text,    "Variant description
           END OF ws_variant.
    *Table for variant selection
    data : itab_variant LIKE STANDARD TABLE OF ws_variant WITH HEADER LINE.
    Variant selection pop-up global variables
    DECLARATION OF TABLECONTROL 'VARIANT_CNTL' ITSELF
    CONTROLS: variant_cntl TYPE TABLEVIEW USING SCREEN 0200.
    LINES OF TABLECONTROL 'VARIANT_CNTL'
    DATA:     g_variant_cntl_lines  LIKE sy-loopc.
    DATA:grid1 TYPE REF TO  cl_gui_alv_grid ,
         g_custom_container TYPE REF TO cl_gui_custom_container.
    Work fields
    DATA: table_name LIKE dd02l-tabname,   "To store table name
          field_name LIKE dd03l-fieldname, "To Store Field Name
          act_auth LIKE tactz-actvt,       "To pass Activity ID
          tab_maint LIKE dd02l-tabname,    "To pass Table Name to be Maintd.
          wg_confirm_ind,                  "To trap User responses
          flag,                            "To trap changes made to an entry
          f_copy,                          "To Identify 'COPY' Command Use
          f_select,                        "To decide between Select-options
                                           " and Internal Table
          l_transaction_code LIKE tstc-tcode,
          v_langu LIKE sy-langu,
          v_repid LIKE sy-repid,
          s_variant TYPE disvariant.
    DATA: ok_code LIKE sy-ucomm.
    DATA:selected_rows TYPE lvc_t_row  ,
         sel_rows TYPE lvc_t_row WITH HEADER LINE.
    DATA:t_lines TYPE i.
    Constants                                                            *
    CONSTANTS :
               c_x TYPE c VALUE 'X',             " Constant 'X'.
               c_f TYPE c VALUE 'F'.             " Constant 'F'.
    Parameters and Selection Options
    *Selection Screen for table maintenance
    *Selection option for Plant
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-b01.
    PARAMETERS:  p_werks   LIKE zca0fcstftop-werks OBLIGATORY.
    SELECT-OPTIONS: s_prdfml  FOR zca0fcstftop-product_family,
                    s_bmach   FOR zca0fcstftop-base_machine,
                    s_factop FOR zca0fcstftop-factory_top,
                    s_optval  FOR zca0fcstftop-option_value,
                    s_week    FOR zca0fcstftop-week.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-b02.
    PARAMETERS     : p_varant LIKE ltdx-variant.          " ALV variant
    SELECTION-SCREEN END OF BLOCK block2.
    At selection screen                                                  *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varant.
      PERFORM alv_variant_f4 CHANGING p_varant.
    AT SELECTION-SCREEN ON p_werks .
    Validating Plant on the selection screen
      PERFORM validate_plant.
    Initialization
    INITIALIZATION.
    Check Authorization for the Transaction
    Authorization Check For T Code
      SELECT tcode
         INTO l_transaction_code
         FROM tstc UP TO 1 ROWS
         WHERE pgmna = sy-repid.
      ENDSELECT.
      AUTHORITY-CHECK OBJECT 'S_TCODE'
                          ID 'TCD' FIELD l_transaction_code.
      IF sy-subrc NE 0.
        MESSAGE e001 WITH l_transaction_code.
      ENDIF.
      v_langu = sy-langu.                             " language
      v_repid = sy-repid .                            " abap Program name
    Start Of Selection
    START-OF-SELECTION.
      CALL SCREEN 0050.
    *&      Form  validate_plant                                           *
          Validating Plant on the selection screen                       *
    FORM validate_plant .
      DATA : l_werks LIKE t001w-werks.                          " Plant
      IF p_werks IS NOT INITIAL.
        SELECT SINGLE werks
            FROM t001w
            INTO l_werks
            WHERE werks EQ p_werks.
        IF sy-subrc NE 0.
          MESSAGE e100(ra) WITH text-001 .
        ENDIF.
      ENDIF.
      AUTHORITY-CHECK OBJECT 'Z_PP_PLANT'
               ID 'ACTVT' FIELD '03'
               ID 'WERKS' FIELD p_werks
               ID 'TCD' FIELD l_transaction_code.
      IF sy-subrc NE 0.
        MESSAGE e000(oo) WITH 'No authorization for plant:'(e80) p_werks.
      ENDIF.
    ENDFORM.                    " validate_plant
    *&      Form  get_data                                                 *
          Get data                                                       *
    FORM get_data .
      SELECT * FROM zca0fcstftop
        INTO TABLE t_zca0fcstftop
        WHERE werks           = p_werks
          AND product_family IN s_prdfml
          AND base_machine   IN s_bmach
          AND factory_top    IN s_factop
          AND option_value   IN s_optval
          AND week           IN s_week.
    ENDFORM.                    " get_data
    *&      Form  fill_fcode
    FORM fill_fcode USING    value(p_0029).
      i_fcode-fcode = p_0029.
      APPEND i_fcode.
      CLEAR i_fcode.
    ENDFORM.                               " fill_fcode
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'UPDATE'.
      CLEAR flag.
    ENDMODULE.                             " STATUS_0100  OUTPUT
    *&      Module  MODIFY_0100  OUTPUT
    MODULE modify_0100 OUTPUT.
      IF sy-ucomm = 'CHNG' OR
           sy-ucomm = 'PICK'.
        LOOP AT SCREEN.
          CHECK screen-group1 = 'CHG'.
          screen-required = '0'.
          screen-output   = '1'.
          screen-input    = '0'.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    Check if you are in create mode & if yes then set the screen elements
    as mandatory
      IF ok_code = 'CREA'.
        LOOP AT SCREEN.
          CHECK screen-group1 = 'CHG'.
          screen-required = '1'.
          screen-output   = '1'.
          screen-input    = '1'.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                             " MODIFY_0100  OUTPUT
    *&      Module  Check_Exit  INPUT
          text
    MODULE check_exit INPUT.
      IF ( sy-ucomm = 'BACK' OR sy-ucomm = 'CANC' OR sy-ucomm = 'EXIT' ) AND
           ( flag = 'Y' ).
        CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
          EXPORTING
            defaultoption  = 'Y'
            textline1      = text-008
            textline2      = text-009
            titel          = text-004
            cancel_display = ' '
          IMPORTING
            answer         = wg_confirm_ind.
        CASE wg_confirm_ind.
          WHEN 'J'.                                             "Yes
            sy-ucomm = 'SAVE'.
            CLEAR flag.
          WHEN 'N'.                                             "No
            sy-ucomm = 'BACK'.
            CLEAR flag.
        ENDCASE.
      ENDIF.
    ENDMODULE.                             " Check_Exit  INPUT
    *&      Module  Exit_0100  INPUT
          text
    MODULE exit_0100 INPUT.
      SET SCREEN 0. LEAVE SCREEN.
    ENDMODULE.                             " Exit_0100  INPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'SAVE'.                       "Save
        Check to see if the user has the appropriate authorization
          IF p_werks NE zca0fcstftop-werks.
          could not update - not in selection
            MESSAGE e000(oo) WITH 'Entry not within selection'.
            SET SCREEN 0. LEAVE SCREEN.
            PERFORM get_data.
          ENDIF.
          IF f_copy = 'X'.
            INSERT zca0fcstftop.
            IF sy-subrc = 0.
              MESSAGE s004.
              PERFORM initialize.
              SET SCREEN 0. LEAVE SCREEN.
              PERFORM get_data.
            ELSE.
              MESSAGE w005.
            ENDIF.
          ELSE.
            MODIFY zca0fcstftop.
            IF sy-subrc = 0.
              MESSAGE s004.
              PERFORM initialize.
              SET SCREEN 0. LEAVE SCREEN.
              PERFORM get_data.
            ELSE.
              MESSAGE w005.
            ENDIF.
          ENDIF.
          PERFORM get_data.
        WHEN 'BACK'.                       "Back
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'CANC'.                       "Cancel
          SET SCREEN 0. LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
      COMMIT WORK.
    ENDMODULE.                             " USER_COMMAND_0100  INPUT
    *&      Form  Initialize
    FORM initialize.
      CLEAR :   table_name,
                field_name,
                wg_confirm_ind,
                f_copy,
                flag,
                t_zca0fcstftop,
                zca0fcstftop,
                wa_zca0fcstftop,
                i_fcode.
      REFRESH: t_zca0fcstftop.
    ENDFORM.                               " Initialize
    *&      Form  alv_variant_f4
          text
         <--P_VARIANT  text
    FORM alv_variant_f4  CHANGING variant.
      DATA: rs_variant LIKE disvariant.
      DATA nof4 TYPE c.
      CLEAR nof4.
      LOOP AT SCREEN.
        IF screen-name = 'VARIANT'.
          IF screen-input = 0.
            nof4 = 'X'.
          ENDIF.
        ENDIF.
      ENDLOOP.
      rs_variant-report   = sy-repid.
      rs_variant-username = sy-uname.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant = rs_variant
          i_save     = 'A'
        IMPORTING
          es_variant = rs_variant
        EXCEPTIONS
          OTHERS     = 1.
      IF sy-subrc = 0 AND nof4 EQ space.
        variant = rs_variant-variant.
      ENDIF.
    ENDFORM.                               " ALV_VARIANT_F4
    *&      Module  STATUS_0050  OUTPUT
          text
    MODULE status_0050 OUTPUT.
    In this module Initialize the container and put the grid in it
      DATA:grid_layout  TYPE lvc_s_layo,
           fieldcat TYPE lvc_t_fcat,
           wa_fieldcat LIKE LINE OF fieldcat.
      PERFORM set_auth.
      SET PF-STATUS 'UPD_0050' EXCLUDING i_fcode.
      SET TITLEBAR 'UPD_0050'.
      IF g_custom_container IS INITIAL .
        CREATE OBJECT g_custom_container
           EXPORTING
              container_name = 'FTDATA'.
        CREATE OBJECT grid1
           EXPORTING
            i_parent = g_custom_container.
      ELSE.
        CALL METHOD grid1->free.
        CALL METHOD g_custom_container->free.
        CREATE OBJECT g_custom_container
           EXPORTING
              container_name = 'FTDATA'.
        CREATE OBJECT grid1
           EXPORTING
            i_parent = g_custom_container.
      ENDIF.
    Every time refresh The variables
      PERFORM initialize.
      PERFORM get_data.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'ZCA0FCSTFTOP'
        CHANGING
          ct_fieldcat      = fieldcat.
      grid_layout-grid_title = text-t01.
      grid_layout-sel_mode = 'A'.
      grid_layout-stylefname = 'CT'.
      s_variant-report   = sy-repid.
      s_variant-username = sy-uname.
      s_variant-variant  = p_varant.
      CALL METHOD grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'ZCA0FCSTFTOP'
          is_layout        = grid_layout
          is_variant       = s_variant
          i_save           = 'A'
        CHANGING
          it_outtab        = t_zca0fcstftop
          it_fieldcatalog  = fieldcat.
      Create Object to receive events and link them to handler methods.
      When the ALV Control raises the event for the specified instance
      the corresponding method is automatically called.
    CREATE OBJECT event_receiver.
    SET HANDLER event_receiver->handle_button_click FOR grid1.
    ENDMODULE.                 " STATUS_0050  OUTPUT
    *&      Module  USER_COMMAND_0050  INPUT
    MODULE user_command_0050 INPUT.
      CALL METHOD grid1->get_selected_rows
        IMPORTING
          et_index_rows = selected_rows.
      DESCRIBE TABLE selected_rows LINES t_lines.
      IF t_lines > 1 .
        MESSAGE e048(zcsv_sfdr).
      ENDIF.
    Clear Header
      CLEAR wa_zca0fcstftop.
      sel_rows[] = selected_rows .
      READ TABLE sel_rows INDEX 1.
      READ TABLE t_zca0fcstftop INTO wa_zca0fcstftop INDEX sel_rows-index.
      CASE ok_code.
        WHEN 'EXIT'.
          PERFORM exit_program.
        WHEN 'CREA'.
          CLEAR zca0fcstftop.
          ok_code = sy-ucomm.
          zca0fcstftop-werks = p_werks.
          CALL SCREEN 100.
        WHEN 'COPY'.
          MOVE wa_zca0fcstftop TO zca0fcstftop .
          CLEAR wa_zca0fcstftop.
          f_copy = 'X'.
          CALL SCREEN 100.
        WHEN 'CHNG'.
          CHECK NOT wa_zca0fcstftop IS INITIAL.
          MOVE wa_zca0fcstftop TO zca0fcstftop .
          CLEAR wa_zca0fcstftop.
          ok_code = sy-ucomm.
          CALL SCREEN 100.
        WHEN 'DELE'.
          CHECK NOT wa_zca0fcstftop IS INITIAL.
          CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
            EXPORTING
              defaultoption  = 'N'
              textline1      = text-005
              textline2      = text-006
              titel          = text-007
              cancel_display = ' '
            IMPORTING
              answer         = wg_confirm_ind.
          IF wg_confirm_ind EQ 'J'.
            DELETE zca0fcstftop FROM wa_zca0fcstftop .
            IF sy-subrc EQ 0.
              MESSAGE s004.
            ELSE.
              MESSAGE e005.
            ENDIF.
          ELSEIF wg_confirm_ind EQ 'N'.
          ENDIF.
      ENDCASE.
      CLEAR ok_code.
    ENDMODULE.                 " USER_COMMAND_0050  INPUT
    *&      Form  exit_program
    FORM exit_program .
      CALL METHOD g_custom_container->free.
      CALL METHOD cl_gui_cfw=>flush.
      SET SCREEN 0.
      LEAVE SCREEN.
    ENDFORM.                    " exit_program
    *&      Form  set_auth
    FORM set_auth.
      REFRESH: i_fcode.
    Check authorization for change
      MOVE '02' TO act_auth.        "02 --> Change
      MOVE 'ZCA0FCSTFTOP' TO tab_maint.
      AUTHORITY-CHECK OBJECT 'ZZ:TABLMNP'
        ID 'ACTVT' FIELD act_auth
        ID 'TABLE' FIELD tab_maint.
      IF sy-subrc NE 0.
        PERFORM fill_fcode USING 'CHNG'.
      ENDIF.
    Check for authorization for create
      MOVE '01' TO act_auth.        "01 --> Create
      MOVE 'ZCA0FCSTFTOP' TO tab_maint.
      AUTHORITY-CHECK OBJECT 'ZZ:TABLMNP'
        ID 'ACTVT' FIELD act_auth
        ID 'TABLE' FIELD tab_maint.
      IF sy-subrc NE 0.
        PERFORM fill_fcode USING 'CREA'.
        PERFORM fill_fcode USING 'COPY'.
      ENDIF.
    Check for authorization for delete
      MOVE '06' TO act_auth.        "06 --> Delete
      MOVE 'ZCA0FCSTFTOP' TO tab_maint.
      AUTHORITY-CHECK OBJECT 'ZZ:TABLMNP'
        ID 'ACTVT' FIELD act_auth
        ID 'TABLE' FIELD tab_maint.
      IF sy-subrc NE 0.
        PERFORM fill_fcode USING 'DELE'.
      ENDIF.
    ENDFORM.                    " set_auth
    *&      Module  check_change  INPUT
    MODULE check_change INPUT.
      flag = 'Y'.
    ENDMODULE.                 " check_change  INPUT
    regards,
    vikas.
    plz reward if helpful

  • Tab pages not changed when selecting from TAB LIST

    Hi All,
    I have a form which has 15 tabs, 1st 10 Tabs are dynamic (enabled at new form instance, depending on configuration) and 11 to 15 are Static tabs visible for all.
    My problem is when i am clicking on tabs iam able to switch tabs, but when I select tab from Tab List I am not going to the selected TAB.
    Ex: when I am in TAB 1 and Select TAB15 from Tab list My form Still Stays in TAB1 and not moving to TAB 15
    Please provide me a Solution.
    My code in WHEN TAB PAGE CHANGED is
    DECLARE
    l_curr_rec NUMBER;
         BEGIN
              l_curr_rec := :SYSTEM.CURSOR_RECORD;
              --Get the Top Default Tab Page for the Form
              SHOW_VIEW('HDR_CANVAS_FIXED');
              :global.headers:=GET_CANVAS_PROPERTY('TAB_CANVAS', topmost_tab_page);
         IF(:GLOBAL.HEADERS='AS_REC_IMAGE')THEN      
    SHOW_VIEW('AS_REC_IMAGE');
    SET_VIEW_PROPERTY('AS_REC_IMAGE',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('AS_REC_IMAGE',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('AS_REC');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSIF(:GLOBAL.HEADERS='TRIM_REC_IMAGE')THEN      
    SHOW_VIEW('TRIM_REC_IMAGE');
    SET_VIEW_PROPERTY('TRIM_REC_IMAGE',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('TRIM_REC_IMAGE',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('TRIM_REC');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSIF(:GLOBAL.HEADERS='AS_SHIP_IMAGE')THEN      
    SHOW_VIEW('AS_SHIP_IMAGE');
    SET_VIEW_PROPERTY('AS_SHIP_IMAGE',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('AS_SHIP_IMAGE',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('AS_SHIP');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSIF(:GLOBAL.HEADERS='TRIM_SHIP_IMAGE')THEN      
    SHOW_VIEW('TRIM_SHIP_IMAGE');
    SET_VIEW_PROPERTY('TRIM_SHIP_IMAGE',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('TRIM_SHIP_IMAGE',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('TRIM_SHIP');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSIF(:GLOBAL.HEADERS='EXTRA')THEN      
                   ---Show the Export Canvas---------     
    SHOW_VIEW('EXTRA');
    SET_VIEW_PROPERTY('EXTRA',VISIBLE,PROPERTY_TRUE);
    SET_TAB_PAGE_PROPERTY('EXTRA',ENABLED,PROPERTY_TRUE);
              GO_BLOCK('EXTRA');
                   --Hide the other canvases except the Pricing Canvas                     
         ELSE -- DYNAMIC TABS
    --Hide all the other  static canvases
    IF (:GLOBAL.HEADERS='CT01')THEN
         GO_BLOCK('CT01');
    ELSIF (:GLOBAL.HEADERS='CT02')THEN
         GO_BLOCK('CT02');
    ELSIF (:GLOBAL.HEADERS='CT03')THEN
         GO_BLOCK('CT03');
    ELSIF (:GLOBAL.HEADERS='CT04')THEN
         GO_BLOCK('CT04');
    ELSIF (:GLOBAL.HEADERS='CT05')THEN
         GO_BLOCK('CT05');
    ELSIF (:GLOBAL.HEADERS='CT06')THEN
         GO_BLOCK('CT06');
    ELSIF (:GLOBAL.HEADERS='CT07')THEN
         GO_BLOCK('CT07');
    ELSIF (:GLOBAL.HEADERS='CT08')THEN
         GO_BLOCK('CT08');
    ELSIF (:GLOBAL.HEADERS='CT09')THEN
         GO_BLOCK('CT09');
    ELSE --ELSIF (:GLOBAL.HEADERS='CT10')THEN
         GO_BLOCK('CT10');
    END IF;
              END IF;
         END;
    Thanks,
    Durga Srinivas.
    Edited by: DurgaSrinivas_886836 on Dec 3, 2012 8:12 PM

    In your trigger, you are doing a SHOW_VIEW ('HDR_CANVAS_FIXED'); before you select the :GLOBAL.HEADERS information. I'm not sure what HDR_CANVAS_FIXED is, but I am wondering if that is what is messing you up. What happens if you either comment that out:
    DECLARE
      l_curr_rec     NUMBER;
    BEGIN
      l_curr_rec := :SYSTEM.CURSOR_RECORD;
      --Get the Top Default Tab Page for the Form
      --SHOW_VIEW ('HDR_CANVAS_FIXED'); /* <-------------------------------------------------------Comment it out */
      :global.headers := GET_CANVAS_PROPERTY ('TAB_CANVAS', topmost_tab_page);
      IF (:GLOBAL.HEADERS = 'AS_REC_IMAGE') THEN
        SHOW_VIEW ('AS_REC_IMAGE');
        .or if it is necessary move it to after the :GLOBAL.HEADERS:
    DECLARE
      l_curr_rec     NUMBER;
    BEGIN
      l_curr_rec := :SYSTEM.CURSOR_RECORD;
      --Get the Top Default Tab Page for the Form
      :global.headers := GET_CANVAS_PROPERTY ('TAB_CANVAS', topmost_tab_page);
      SHOW_VIEW ('HDR_CANVAS_FIXED'); /* <------------------------------------ Swap it with :global.headers */
      IF (:GLOBAL.HEADERS = 'AS_REC_IMAGE') THEN
        SHOW_VIEW ('AS_REC_IMAGE');
        SET_VIEW_PROPERTY ('AS_REC_IMAGE', VISIBLE, PROPERTY_TRUE);
        SET_TAB_PAGE_PROPERTY ('AS_REC_IMAGE', ENABLED, PROPERTY_TRUE);
        GO_BLOCK ('AS_REC');
      --Hide the other canvases except the Pricing Canvas
      ELSIF (:GLOBAL.HEADERS = 'TRIM_REC_IMAGE') THEN
        SHOW_VIEW ('TRIM_REC_IMAGE');
        .

  • I have edit access to someone else's calendar.  In iCloud i can add an event to this calender.  In My calendar on my Mac I can see the calendar in the list, but when I try to add an event to this calendar, it is not avail from the list in event to select

    I have edit access to someone else's calendar.  In iCloud i can add an event to this calender.  In My calendar on my Mac I can see the calendar in the list, but when I try to add an event to this calendar, it is not avail from the list in event to select.  Any help appreciated.  Thanks

    Hi Chris,
    You can't get rid of an alert. The least you can have is one that says "none".
    Nevermind, I see you learned how to edit the event.

Maybe you are looking for

  • My MacBook Runs Very Slow After BootCamp.

    Today i decided to install a windows partition using bootcamp. At first I didnt'g give the partition enough memory so i deleted it and partitoned it once again. After going back to OSX i noticed a huge difference in performance. Everything ran incred

  • I-tunes wont download podcasts or purchased music

    I keep getting the same error message when trying to subscribe to a podcast or purchase music from the i-tunes store saying you have entered a wrong url and you are not connected to the internet when i cam check and listen to the songs on the store o

  • Starting Classic while running OS 10.4.11

    I can no longer start up classic while OS 10.4.11 is running. If I go to system pref. I can choose 9.1 as start up and OS 10.4.11 will close and 9.1 will open but this proves to be a pain. I reinstalled classic and now have two system folders (one la

  • JTextArea:  How do I force a JTextArea to refresh?

    Hi All, I have a JTextArea that I append data do when I'm in a while loop. The JTextArea displays the text after the loop has finished, not as data is appended to it during the while loop. How can I force the JTextArea to refresh immediately after te

  • Lion server and Share Points

    My company just got a new iomega SAN and I wanted to test it on a lion server. So I setup lion server on a mac pro and configured the SAN to the switch. The problem is that when I go to server app, File sharing & click + to add a share point Im not a