Hidden fields on PNP LDB

Hi guys,
Is that possible to show hidden fields from PNP LDB, before user have to make any interference? I mean, when I execute program related to PNP,  on selection screen at first time I get, for example, werks that is not on standard showing. I have tried "modify screen" strategy but it did not work.
Thanks anyway.

Hi.
Try using a variant.
First create the layout you want to display, the variant.
Then save it.
Call the variant in the source code.
Don't forget to create the variant all over again, when you migrate from one enviroment to another. The variants are not transportable.
after creating the variant, in the selection screen, paste this code in your report,
and replace /GERAL with your variant name.
DATA gs_variant LIKE disvariant.
clear gs_variant  .
gs_variant-report = sy-repid.
gs_variant-variant = '/GERAL1'.  "the name of the variant must begin with /
hope it solves it.
Filipe Guerra

Similar Messages

  • HR-ABAP: Defaulting Radio Button on Selection Screen of PNP LDB

    Hi all,
    I am using PNP LDB (Logical Database) for program which is used for Payroll Results.
    Now I have a requirement wherein it is necessary to select 'Up to today' as default on the selection screen.
    We are having 4.7C version of SAP. I tried following code in INITIALIZATION event:
    Initializing Selection Screen Data Selection Option to 'Up To Today'
    INITIALIZATION:
      MOVE:  'X'    TO    pnptimr4, " This is the option which I want as Default selection.
             space  TO    pnptimr1,
             space  TO    pnptimr2,
             space  TO    pnptimr3,
             space  TO    pnptimr5,
             space  TO    pnptimr6.
    But still I dont see this Radiobutton getting selected as Default selection while running the program.
    By Default it selects Option : 'Other Period' (pnptimr6).
    Any Idea how to resolve this ??
    Regards,
    Avinash

    hi...
    When the INITIALIZATION event occurs, you can set default values for the selection screen.
    The fields for the data selection are defined in structure QPPNP.
    Possible values for field PNPTIMED are:
    D     =      Today (key date)
    M     =     Current month
    Y     =     Current year
    P     =     To current date
    F     =     From today (from current date)
    The person selection fields are defined in include program DBPNPSEL. They are internal tables that must be filled using APPEND.
    so in intialization you have to write code as
    PNPTIMED : P.
    so up date will be defaulted in selection screen.
    award points if helpful.

  • Create a screen by  teh help of pnp  ldb

    hi  expert ,
                           i   have   a file ( new hire file )
    New Hire file:  This interface program will be scheduled to run in the background and all the mandatory fields will be defaulted as shown below. End date will be defaulted with system current date and Begin date will be defaulted with CURRENT DATE – 7 DAYS. The selection criteria can be changed for testing purposes and can be further be extended by using the logical database PNP. A report category should be created for LDB PNP.  but  i  don't   find  MOLGA  in pa0001 , so  please  give the code for this screen.
      Screen Field       Description
                 TYPE      Reference Field     Comments
       S_MOLGA     Country key       Select option     PA0001-MOLGA     Mandatory. Default with ‘10’
       S_PERSG      Employee group       Select option     PA0001-PERSG     Mandatory. Default with ‘1’
       S_PERNR     Employee       Select option     PA0001-PERNR     Optional
        P_BEGDA     Begin date       Parameter      SY-DATUM     Mandatory. Default with SY-DATUM – 7
       P_ENDDA     End date       Parameter     SY-DATUM     Mandatory. Default with SY-DATUM
    thanks.

    Hi
    You have to create a separate HR report Category in the report of PNP LDB and use
    From the program attributes after assigning the LDB PNP you will get the Report Category in the down.
    click on it
    and check for the related fields
    and you can modify the report category by making some fields disable so that you will get the required fields on the selection screen.
    MOLGA is not there in PA0001
    it is there in T500L,T500T, T500P and HRP1005  tables
    take from it
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • URGENT( PNP LDB SELECTION SCREEN )

    hiiiii,
    can anyone tell about the field PNPDISBD of pnp LDB in sap-hr , and why it is used. Is There any field on selection screen related to this when we use pnp LDB.

    Hi,
    PNPDISBD is nothing but a date.
    Go to SE38 and open the report SAPDBPNP.
    And search for the field PNPDISBD then you will come to know its functionality.

  • Pnp ldb selection screen

    Hi ,
    How to omit few fields in data selection period of pnp selection screen.

    You can disable the selection screen element in at selection screen output event.
    Ex: The following code has been written for one of the FI related ldb.
    Check the field names of pnp ldb in debugging mode and use it.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP3 = 'IXS'.
          SCREEN-ACTIVE = '0'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF SCREEN-GROUP4 = '023'.
          SCREEN-ACTIVE = '0'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF SCREEN-NAME = 'DD_BUKRS-LOW'.
          SCREEN-REQUIRED = '1'.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF SCREEN-NAME = 'DD_BUKRS-HIGH'.
          SCREEN-ACTIVE = '0'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF ( SCREEN-GROUP3 = 'VPU'
            AND SCREEN-GROUP4 = '007' ).
          SCREEN-ACTIVE = '0'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF SCREEN-NAME = 'DUEDATE1'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
          CONTINUE.
        ENDIF.
      ENDLOOP.

  • Reg:Modification of HR Report Category in PNP LDB.

    Hi All,
    My requirement is to modify the selection screen of  PNP LDB, in the report category we used to give the required selection screen.suppose i want to use the Report category as HRIN0000 and want to hide payroll area.
    please help me about this.
    Thanks in Advance
    Regards
    Srinivas

    Hi,
    Go to Tcode SE36 -->LDB PNP >Extras>Select view
    Dispaly the function group.If it does not exit create a new function group and assign the fields need to be displayed
    Field that have no fuction can be suppresed in the output.
    I hope this may helpfull.
    Thanks,
    AMS

  • PNP LDB Sort Order Customization

    Hi all,
    I need to add a custom field to the list of "Sort Order" fields available on PNP LDB Selection screen. Any idea how can we achieve this??

    Hi Markus,
    No, the Sort Order has not been removed in  PNPCE.. which report are you using? If it is tied to the Report Category PNPCE, the Sort Order icon is displayed 4th from the left on the tool bar.. You can alos use the CTRL + F1 keys option.
    Regards,
    Suresh Datti

  • Pivot Table - Calculate Variance - Hidden Fields?

    I need some help adding a target value field inside a pivot table in excel.
    Here is what my current pivot table looks like.
    Regions                  1 year - Actual              1 year - Target??               
    Difference
                       (April 2013 to MArch 2014)                                          
     (Target - Actual)?     
    Region1                $6,355,696.75
    Region2                $6,775,309.87
    Region3                $2,230,424.76
    Regions expand into managers which in turn expand to consultants.
    What I want to do is add a column for target values of the 3 different regions and then create another calculated field that will show the difference between the target and actual values.
    Can this be done without writing any stored procedures in SQL? I want to do this in excel itself.
    The target values are not calculated so can we store them in hidden fields or something in the pivot or excel?

    1. Click anywhere in Pivot and go to Options tab > Formulas > Calculated Field.
    2. Create a calculated field called Target (whatever name your choose). If your target is say 7000000, put this value in Formula field. You may put it with or without =
    3. Now after this, you can once again create a new Calculated Field. Let's say this is Variance. If you variance is Target - Actual, put this as =Target-Actual in Calculated Field.
    4. Your pivot will have whatever you wanted.

  • How to pass hidden field values on a click of a table row

    hi all,
    href = "bookAndNonBook.do"
    I am very new to struts. I have created a table using displaytable tag which displays results in a tabular format. In addtion, i have a hidden field (prodType), the table rows are getting highlighted when i get my mouse on a particular row.
    Following is the code from the results.jsp file
    <body
    onload="addRowHandlers('row', 'rowMouseOver')"
    bgcolor="#FFFFFF" text="#000000" leftmargin="100" topmargin="50"
    marginwidth="" marginheight="" rightmargin="30">
    <html:form action="/bookAndNonBook" method="post">
    <display:table name="sessionScope.productSearchList" id="row"
    sort="list" export="true" defaultsort="1" defaultorder="ascending"
    pagesize="15" decorator="org.displaytag.decorator.TotalTableDecorator"
    class="dataTable">
    <display:column property="prodType" title="ProdType" class="prodType"
    headerClass="prodType" media="html" />
    <display:column title="Title" property="titleName" sortable="true"
    class="title" headerClass="title" />
    </display:table>
    </html:form>
    </BODY>
    I am calling a funtion addRowHandlers which passes the table id (which is row) and the rowMouseover for highlighting the rows on mouse over.
    the code for function addRowHandlers is
    function addRowHandlers(tableId, rowClassName) {
    var previousClass = null;
    var table = document.getElementById(tableId);
    var rows = table.getElementsByTagName("tr");
    for (i = 1; i < rows.length; i++) {
    rows.onmouseover = function () {
    previousClass = this.className;
    this.className = this.className + " " + rowClassName ;
    this.style.cursor="hand";
    rows.onmouseout = function () {
    this.className = previousClass;
    this.style.cursor='';
    rows.onclick = function (){
    var cell = this.getElementsByTagName("td")[0];
    var ProdType = cell.innerHTML;
    alert("value of prodType = " + ProdType);
    when i run the above code and click on a particular row it returns me the value in the hidden field i.e. prodType for that particular row
    Now where i am having problem is i want that on the basis of prodType my jsp file should call different actions for different prodType as returned....somwhat a function like this
    function submitProduct(prodType) {
    if(prodType == "BK")
    resultsForm.action = "/bookProduct.do";
    else if(prodType == "NB")
    resultsForm.action = "/nonbookProduct.do";
    but i am unable to figure out that how do i this..
    Any help will be really appreciated
    Thanks
    Sam

    can you please suggest some good struts forums where i can post my question
    thanks in advance
    Sam

  • Hidden field in form returns null value

    Hi all - I searched for this but found nothing that fit my problem although various other problems came up.
    I have a Login jsp, with a simple form for username and password:
    <form name="login" method="post" action="servlet/ControlServlet"
    onSubmit="return validateForm()"><table width="180" border="0"
    cellspacing="0" cellpadding="0">
                <tr>
                  <td width="96" class="logintext">Username</td>
                  <td width="84"> </td>
                </tr>
                <tr>
                  <td><input name="username" type="text" size="15"
    maxlength="15"></td>
                  <td><input type="submit" name="Submit" value="Login"></td>
                </tr>
                <tr>
                  <td class="logintext">Password</td>
                  <td> </td>
                </tr>
                <tr>
                  <td class="logintext"><input name="password" type="password"
    size="15" maxlength="15"></td>
                  <td><input name="actionCode" type="hidden" value="0"></td>
                </tr>
                <tr>
                  <td> </td>
                  <td><div align="center"><a href
    ="Register.jsp"><i>Register</i></a></div></td>
                </tr>
              </table>
              </form>Nothing complex in that form. my hidden field is actionCode and it should pass a 0 to my ControlServlet servlet.
    Here is a snippet from my servlet:
    import java.io.* ;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ControlServlet extends HttpServlet {
      public void doPost(HttpServletRequest request,
                        HttpServletResponse response)
          throws ServletException, IOException {
        response.setContentType("text/html");
                //get the printwriter to output for debugging
                PrintWriter out = response.getWriter();
                //read in form variables
            //String formUsername = request.getParameter("username");
            //String formPassword = request.getParameter("password");
            String action = request.getParameter("actionCode");
            //convert String to int for action
            //int actionInt = Integer.parseInt(action);
            //add action variable to request
            request.setAttribute("aktion", action);
                //debug point 1
                //use requestDispatcher to forward session info to JSP
               RequestDispatcher dispatcher =
               request.getRequestDispatcher("/mvcoutput.jsp");
               dispatcher.forward(request, response);I have commented out a bit for debugging purposes, but basically, the form variables are read in, the username and password don't give me any problems, but the actionCode does. Upon forwarding to a basic jsp for testing my output displays value "null" when using the command:
    request.getAttribute("aktion")Any reason why the hidden field is playing silly buggers ??
    cheers

    Anyone ???
    If I have a field in an html form which is hidden, do I retrieve it in the SAME WAY that I retrieve the non hidden form fields i.e. using the request.getParameter() method ??
    Cheers.

  • Add hidden fields in ALV

    Hi all,
       I wanna add a new field in ALV field catalog, so that when user choose function Change Layout to decide which fields are showed, they can choose the new field.
    In orginal source, the ALV uses field catalog from structure<b> LIPOV.</b> And the field I wanna add is just a normal text field (char15, for example) and its data will be extracted from a select statement.
    So, Here is the logic of report:
    data: ls_fieldcat type slis_fieldcat_alv.
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
            exporting
              i_internal_tabname     = 'itab_data1'
              i_structure_name       = 'LIPOV'
              i_client_never_display = 'X'
            changing
              ct_fieldcat            = ct_fieldcat[]
            exceptions
              inconsistent_interface = 1
              program_error          = 2
              others                 = 3.
    After this call, i add new field
        ls_fieldcat-col_pos = 110. " above function will retrieve a field catalog with 109 records
        ls_fieldcat-fieldname = 'new_text_field'.
        ls_fieldcat-tabname = 'itab_data1'.
        ls_fieldcat-seltext_l = 'NEW'.
        ls_fieldcat-no_out = 'X'.
        APPEND ls_fieldcat to ct_fieldcat .
        clear ls_fieldcat.
    Here, I copy all data from<b> itab_data</b> to <b>itab_data1</b>
    Display:
       call function 'REUSE_ALV_LIST_DISPLAY'
          exporting
            i_buffer_active          = 'X'
            i_callback_pf_status_set = gf_status
            i_callback_user_command  = gf_user_command
            i_structure_name         = 'LIPOV'
            is_layout                = gs_layout
            it_fieldcat              = ct_fieldcat
            it_events                = lt_events             
            it_sort                  = gt_sort
            is_variant               = gs_variant
          tables
            t_outtab                 = <b>itab_data1</b>
          exceptions
            program_error            = 1
            others                   = 2.
    Please note that there are something special here:
    Originally, ALV displayed with internal table itab_data.
    The new filed is a part of internal table itab_data1.
    <b>And the problem is:</b>
      When I choose Change Layour (Ctrl F8) to select the new field to display, It does not appear in HIDDEN FIELD.
    Any suggestion, plz.
    Thank you very much.

    Clemens Li,
    Thanks for your advice.
    I have a new problem. Now, the new field appears in Selection. However, displaying the new  field is impossible. My problem is:
    - In default, 8 fields will display. Then, I use CHANGE LAYOUT to choose the new field which will be at 9th position. -> <b>I got a dump</b>... It informs that a Field Symbol is not assigned.
    - Now, with the 8 fields above, I replace 8th position by the new field => It does not give me a dump but New field shows value of 8th field. I mean, if at first, 8th field is Quantity with value 10. Then I replace 8th field by my new field. When displaying again, it also gets 10 as its value.
    - It is so strange. Because in function 'REUSE_ALV_LIST_DISPLAY', I used itab_data1, which consists of all field of itab_data and an addition field (NEW). I dont know why it does not show value of the new field while all old fields have right values. (before using that function, I copied all contents of itab_data to itab_data1)
    So, everybody can help me this? Thanks

  • How can I display a letter grade in my gridview after calculating percentage into a hidden field in Visual Studio?

    For school I am working on an app using C# in visual studio that allows a student to enter their name, the number of points they earned and the points possible. When they click a submit button, the grade percentage is calculated in a hidden field and then
    the percentage and letter grade should spit out into the gridview. THe issue I am having is trying to figure out how to translate within the if statements regarding the percentage amount equalling whatever letter grade, and then spit that letter grade out
    into the gridview. Here is the code I have so far:
            protected void btnSubmit_Click(object sender, EventArgs e)
                SqlStudent.Insert();
                hdnGradePercent.Value = (((int.Parse("txtPointsEarned.Text")) / (int.Parse("txt.PointsPoss.Text")) * 100)).ToString();
                if ((int.Parse(hdnGradePercent.Value) >= 0) & ((int.Parse(hdnGradePercent.Value) <= 59)))
    (this is where I am having trouble. I can't figure out how to get the letter grade and percent to spit out into the   gridview.)
                else if ((int.Parse(hdnGradePercent.Value) >= 60) & ((int.Parse(hdnGradePercent.Value) <= 69)))
                else if ((int.Parse(hdnGradePercent.Value) >= 70) & ((int.Parse(hdnGradePercent.Value) <= 79)))
                else if ((int.Parse(hdnGradePercent.Value) >= 80) & ((int.Parse(hdnGradePercent.Value) <= 89)))
                else if ((int.Parse(hdnGradePercent.Value) >= 90) & ((int.Parse(hdnGradePercent.Value) <= 100)))
    Any help would be greatly appreciated! I've been stuck on this for hours and I"m losing my mind!!

    Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).

  • Hidden fields in a form Dreamweaver 8

    I have a problem I can't resolve. I have with a bunch of
    hidden fields in a form. The problem I have is that some of the
    anchor points are not showing in design view for all the fields,
    just a couple show up. I have View Invisible elements in Visual
    aids turned on.
    Fields 1,2,3,9,10,11,15 don't show
    Fields 4,5,6,7,8,12,13,14 show
    Here's the code, can someone tell me what I did wrong?
    Any help will be appreciated

    Hi Max,
    This is possible in portal forms.
    The code to get the value of a field is some thing like this.
    You need to generate this javascript function using pl/sql in the Additional pl/sql Section - ... before displaying the page or ... after displaying the page.
    htp.p('
    <script>
    function myFunc(ele)
    var l_form = ele.form;
    var win;
    var val;
    var l_url = "<url>?";
    for (var i = 0; i < l_form.length ; i++){  // This is the way you traverse along all the form elements.
    if (l_form.elements.name == "<field to be refered>"){   //something like this for the field you wish to refer ==> QUESTION_RESULT.MASTER_BLOCK.QID.01
    val = l_form.elements[i].value;
    l_url = l_url+val;
    win=window.open(l_url);
    </script>
    Then call any fiels you wish to for the purpose of set or get of values.It can be even a hidden field.
    Hope this helps,contact for further clarifications.
    rahul

  • Adding a check box to my page clears the value in a hidden field on page 0

    Hello, I hope that someone can assist me. I have a page that has multiple submit buttons on it. When I click a submit button the page refreshes to render the new content. I have a hidden field, and its region is set to one on page 0. Without any check boxes on my page, I can set a value in the hidden field, and it remains there even if I click on any submit buttons. If I put a check box on the page and then press a submit button, the value is cleared in the hidden element which is not desired. I did notice that in this case with the check box, if I refresh the browser the hidden field value is not cleared. Perhaps the page is being rendered differently after the submit because of the checkbox. Does anyone have any ideas of what is happening?

    That doesn't sound right. Adding a checkbox shouldn't have that effect. Please try to reproduce this on htmldb.oracle.com so we can take a look or post a screenshot of your relevant page components.

  • Setting the value of a hidden field in a Visual Web jsf page

    Hey All,
    I am new to jsf and need some help with the following. I have written a method in the java portion of the jsf page that will get the selection(s) from a listbox and return them as a string. I need to assign the value of that string to a hidden field in the jsp portion of the page, so that I can pass the string as a parameter to a servlet. I have tried the following code in the "button_action", in the java portion of the jsf page, to assign the value of the string, returned from method, to the hidden field:
    hiddenField.setValue(string);
    This is not working. Any and all help on this matter is greatly appreciated.
    Thanks in advance.

    Here is the tag for the hidden field when the "hidden field" component is added from the pallette, I addded the "value" and "id". The name of the class is ReportStandard, which extends the AbstractPageBean.
    <webuijsf:hiddenField binding="#{ReportStandard.utilSelHF}" id="utilSelHF" value="#{ReportStandard.utilParams}"/>This is how I am calling the hidden field in the servlet:
    utils = request.getParameter("form1:utilSelHF_field");Here is the code for the button_action:
    public String runReport_button_action() {
           this.utilParams = get_utilSelection();
           return "sRptrslts";
    }

Maybe you are looking for

  • A new start-up program in my Win 8.1: I can't stop it!

    Hi fellows. What about this article? In the last couple of days I've been getting loads of email from WinPatrol customers asking what is this strange new start-up program? The name is only numbers and no matter how many times I try to block or disabl

  • How long does the parameter sqlnet.expire_time take to call pmon to release the shadow process?

    Hi folks, I had a following test on Oracle 11g in Linux 5.4(a vmware machine) for the parameter sqlnet.expire_time. 1. configure the parameter sqlnet.expire_time in sqlnet.ora and the parameter resource_limit keep false. [oracle@orasrv admin]$ more s

  • Mac Mini has Insomnia

    When I put my Mini to sleep it wakes itself back up. Sometimes after just a few seconds, sometimes after an hour and sometimes (not very often) it stays asleep. It doesn't seem to care whether I leave any programs running or not. I have Time Machine

  • Disp+work.exe is running but not conneceted to message server

    Hi All disp+work.exe is running but not conneceted to message server Regards Blue

  • ICab - HomePage Photo Albums/Slideshows

    I've been trying iCab recently and have encountered a problem with HomePage albums and slideshows. (No problems in WaMCom and IE.) iCab support replies have been helpful but produced no solutions. Clicking on a HomePage photo album thumbnail opens th