Hidden fields in a maintenance dialog

Hi,
I have created a table maintenance dialog based on a view and I want to hide certain fields of the view. I know that this can be done by setting the 'P' field of that particular field to 'H' (hidden). But, I want the hidden value to be displayed in the form of asterisks(*) . How can this be achieved?
Thanks,
Divyaman

Hi.
You have to Change the code of the Function group generated (which is in customer namespace anyway)
In the PBO event of the Screen :
  MODULE SET_FIELDS.
Module definition:
  MODULE SET FIELDS.
    LOOP AT SCREEN.
        IF SCREEN-NAME = '<YOUR FIELD>'.
           SCREEN-INVISIBLE = 0.
            MODIFY SCREEN.
        ENDIF.
   ENDLOOP.
ENDMODULE.
<b>reward if Helpful</b>

Similar Messages

  • Adding F4 help to a field in a table maintenance dialog

    I have used SE54 to create a maintenance dialog for my table. I need to be able to use F4 in a field in the maintenance dialog that will read several values that have been entered into the table (in the same row) but not yet saved and then execute an SAP delivered function module that will present the user with valid selections based on the data input.
    I am somewhat familiar with events and modifications in SE54 but I am struggling with how to implement this.
    Thanks for your help
    Corwin Slack

    Hi Corwin,
    You can have Process on Value-Request on your screen where the field exist. You can use SE80 to edit the screen of the function group that table maintenance generator created.
    1. Edit the screen using SE80.
    2. Place a 'process on value-request' at the bottom of the flow logic.
    3. Below that, put this line
    field fieldname module get_help.
    4. Double click on GET_HELP and create an input module pool program.
    5. In this module pool, pass the values of the other fields in your screen to the function module that can provide you the list of values
    6. Use function module F4IF_INT_TABLE_VALUE_REQUEST within this module pool to popup the values.
    However, please keep in mind that the values from other fields on the screen are not populated in its field unless you hit enter.

  • Field description / label become a plus (+) sign in maintenance dialog

    Hi expert,
    I've create a maintenance view & use it in a maintenance dialog screen. All fields shows ok except one field , the label show a '+' sign only, why huhh ?
    Did anyone face this problem before ? Please help. Thanks
    Janice

    In the Generate Table Maintenance Dialog screen, go to Environment->Modification->Maintenance Screens via the menubar. Then go to the screen layout by clicking the Layout button.
    Now double click on the column name where you have the '+' sign and type over your required label. Save and activate. Now run this via SM30 you should see the correct label.
    Hope this helps.
    Cheers,
    Sougata.

  • How to hide a field from table maintenance view?

    Hi,
    How to hide a field from table maintenance view? 
    The field is used for data created date. I need to hide it from display.
    Thanks

    Chk this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
    Maintenance Attributes
    You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be  H (hidden)
    H (hidden)
    A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
    The system writes R and H fields to the database like all other fields when a new data record is saved.

  • How to create a cross-client table maintenance dialog?

    Hello everybody,
    I have a client specific table (mandt is the first key field) that should be maintained cross-client: In the table maintenance dialog, I want to change/create/insert values belonging to clients other than the current logon client. Can I do this with a generated maintenace dialog? If yes, how?
    Thank you for your help, regards, Kathrin!

    Hi Kathrin,
    I think you can't, you must create your own dialog maintenance program.
    They are some program to copy data from client to others .. but never seen any dialog cross client. (or remove the mandt  in your key).
    Regards
    Frédéric

  • Help, signatureValidate() function doesn't work on hidden fields

    I am trying to use the signatureValidate() function to check if any signature fields are signed. I am doing this because I need to have the signature fields lock the form manually so that a specific department can make changes after signatures have been applied (via a password field). I got the signature fields to lock the form and I can unlock everything with a password dialog. However, I am trying to add some code to the Change event so that if a user clears their signature and no other signatures have been applied, then the form will unlock. I wrote a script that checks the signature validation of each signature field to verify that all of them are unsigned, and it works perfectly until one of the signature fields becomes hidden. Then the code just doesn't work. Am I doing something wrong? Is there a way to check if a signature field (which may or may not be hidden) has been signed? Below is the code that I am using:
    var engMgrSig = event.target.getField("form1[0].Subform1[0].signatures[0].Eng_Manager[0].eng_manager_sign ature[0]").signatureValidate();
    var mfgMgrSig = event.target.getField("form1[0].Subform1[0].signatures[0].Mfg_Eng_Manager[0].mfg_engr_sig nature[0]").signatureValidate();
    if (mfgMgrSig == 0 && engMgrSig == 0)  {       
         oTargetField = this.resolveNode("ECO_table");
              oTargetField.access = "open";
    else {
         oTargetField = this.resolveNode("ECO_table");
              oTargetField.access = "readOnly";

    The fields are supposed to be hidden when the form is opened, but can be "added" (made visible) by the user to allow for additional signatures. I use hidden fields rather than a simple Add Instance because of data binding issues.
    I tried modifying the script to make the fields visible, fire the validation, and then hidden again, but for some reason it would either not work or it would make them visible after the first change and then hidden only if the field was changed again. Also, the code has to be able to recognize whether the fields were hidden before the code fired. If the were, they should be hidden afterwards. If they weren't then nothing needs to happen to them.
    I have tried using an IF statement to run a validation on the fields based on which ones are visible, but that doesn't seem to work either. Here is an example:
       // this field is always visible
        var status = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Eng_Manager[0].eng_manager _signature[0]").signatureValidate();
        var engMgrSig2 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Eng_Manager2[0].eng_manage r_signature[0]").signatureValidate();
        var engMgrSig3 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Eng_Manager3[0].eng_manage r_signature[0]").signatureValidate();
        // this field is always visible
        var mfgMgrSig1 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Mfg_Eng_Manager[0].mfg_eng r_signature[0]").signatureValidate();
        var mfgMgrSig2 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Mfg_Eng_Manager2[0].mfg_en gr_signature2[0]").signatureValidate();
        var mfgMgrSig3 = event.target.getField("form1[0].Subform1[0].signatures_REV1[0].Mfg_Eng_Manager3[0].mfg_en gr_signature3[0]").signatureValidate();
        //if all sig fields are visible
        if (this.resolveNode("signatures_REV1.Eng_Manager1").presence == "visible" && this.resolveNode("signatures_REV1.Eng_Manager3").presence == "visible" && this.resolveNode("signatures_REV1.Mfg_Eng_Manager2").presence == "visible" && this.resolveNode("signatures_REV1.Mfg_Eng_Manager3").presence == "visible") {
            if (status == 0 && mfgMgrSig1 == 0 && engMgrSig2 =0 && engMgrSig3 == 0 && mfgMgrSig2 == 0 && mfgMgrSig3 == 0)
                oTargetField = this.resolveNode("ECO_table");
                    oTargetField.access = "open";           
        //if eng_mgr2 is visible
        if (this.resolveNode("form1.Subform1.signatures_REV1.Eng_Manager2").presence = "visible" && this.resolveNode("form1.Subform1.signatures_REV1.Eng_Manager3").presence = "hidden" && this.resolveNode("form1.Subform1.signatures_REV1.Mfg_Eng_Manager2").presence = "hidden" && this.resolveNode("form1.Subform1.signatures_REV1.Mfg_Eng_Manager3").presence = "hidden") {
           if (status == 0 && mfgMgrSig1 == 0 && engMgrSig2 =0)
                oTargetField = this.resolveNode("ECO_table");
                    oTargetField.access = "open";

  • Missing Date fields in table maintenance generation

    I have some non-key date fields in my custom table and have noticed that they do not get generated on the overview screen of my two-step table maintenance dialog. They are present on the detail screen.
    If I change the domain of the fields to CHAR they appear.
    If I change the maintenance type to one-step they appear.
    It seems it is standard behaviour for date fields to be omitted from the overview screen.
    Can anyone confirm that this is standard behaviour or give an explanation for date fields being treated in this manner?...or come up with a way of including the fields on the header screen.
    I already know that I can:
    1. customize the screen to include the fields
    2. create a non-date domain for the fields which uses date-type calendar dropdown
    Thanks,
    Neil

    Thankyou Jonathan, I would have been too lazy to go into debug if I didn't have the form name you supplied! It wasn't the reason you suspected but it was failing the following check in that routine:
    maintenance in list screen required?
          CHECK p_tvdir-type = one_step_maint OR
           ( <w_dfies>-keyflag NE space    "force only keyfields
            OR ( 'CHARNUMC' CS <w_dfies>-datatype     "and view char-fields
             AND p_skip_fields = space )
            OR ( 'CHARNUMC' CS <w_dfies>-datatype     "and view char-fields
             AND <w_dfies>-intlen GE 20 )       "int 3263961/2000
            OR <w_dfies>-rollname = 'BEGDA'    "time dependence
            OR <w_dfies>-rollname = 'ENDDA'    "time dependence
            OR <w_dfies>-tabname NE p_gencb-viewname ). "or text table field
    Because the datatype was DATS.......looks like it will only include key fields and CHAR, NUMC non-key fields or those with a rollname of BEGDA/ENDDA or texttable fields. In debug I changed the datatype to CHAR and it generated with my field included. I think there might be an OSS note to fix this but haven't found it yet.

  • Maintenance dialog with Number Range Object

    Hello Experts,
    i want to create a maintenance dialog with some fields for maintain a db table. In this field i have a id. This i should increment automatically like a Number Range Object. How can i do this.
    E.g.
    id    name
    1    manfred
    2    steve
    When i will write a new name i only want to write the name not the id. The id should be the 3 in this case automatically. Can anybody say how i can do this?
    Regards
    Chris

    I would guess you can create a number range object and then use the NUMBER_GET_NEXT FM to get the next number as part of your event (before saving like event 01 or other events as per your requirement) ...
    Check out the following links which talks about making field READ only
    HOW TO MAKE FIELDS AS READ ONLY IN TABLE MAINTAINANCE
    and also the wiki entry on table maintenance
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=93454609

  • Maintenance Dialog Date Subscreen

    Hi,
    I have implemented a 2-level-maintenance dialog. I have generated it based on a view, additionally I used the function "time-depended" generation, consequently I got a date subscreen on the detail subscreen.
    This date subscreen sometimes causes problems: Usually if we enter the subscreen, an element is marked by the ">". But sometimes no element is marked by entering the detail screen.
    Any ideas?

    Hi,
    well the maintenance dialog is more or less automatically generated:
    I have got a maintenance view and then generated maintenance dialogs by "se54". additionally i have used the function "time-dependent" generation.
    In the detail dialog I have the following code:
    PROCESS BEFORE OUTPUT.
    MODULE detail_init.
    MODULE DATE_D0001_IF_EXP.                        
    CALL SUBSCREEN DATELIMITS                         
      INCLUDING 'SAPLSVIM' '0001'.
    PROCESS AFTER INPUT.
    CALL SUBSCREEN DATELIMITS.                        
    MODULE DATE_D0001_IF_IMP.                         
    chain.
        FIELD <Keyfield1>.
        FIELD <keyfield2> .
      module detail_pai.
      MODULE DATE_D0001_COMNDS.                        
    endchain.
    Any idea?

  • How to define hidden field

    Hi,
    I have to use submitForm by http, I have some hidden fields and some input fileds. I am facing problem how to define hidden fields with aFields?
    Thanks

    I kow it but this is all about Javascript, how to to display off lnam text field?
    Here is code:
    var dialog1 = {
            initialize: function (dialog) {
                // Create a static text containing the current date.
                var todayDate = dialog.store()["date"];
                todayDate = "Date: " + util.printd("mmmm dd, yyyy", new Date());
                dialog.load({ "date": todayDate });
            commit:function (dialog) { // called when OK pressed
                var results = dialog.store();
                // Now do something with the data collected, for example,
                console.println("Your name is " + results["fnam"]
                    + " " + results["lnam"] );
            description:
                name: "Personal Data",    // Dialog box title
                align_children: "align_left",
                width: 350,
                height: 200,
                elements:
                        type: "cluster",
                        name: "Your Name",
                        align_children: "align_left",
                        elements:
                                type: "view",
                                align_children: "align_row",
                                elements:
                                        type: "static_text",
                                        name: "First Name: "
                                        item_id: "fnam",
                                        type: "edit_text",
                                        alignment: "align_fill",
                                        width: 300,
                                        height: 20
                                type: "view",
                                align_children: "align_row",
                                elements:
                                        type: "static_text",
                                        name: "Last Name: "
                                        item_id: "lnam",
                                        type: "edit_text",
                                        alignment: "align_fill",
                                        width: 300,
                                        height: 20
                                type: "static_text",
                                name: "Date: ",
                                char_width: 25,
                                item_id: "date"
                        alignment: "align_right",
                        type: "ok_cancel",
                        ok_name: "Ok",
                        cancel_name: "Cancel"
        app.execDialog(dialog1);

  • The maintenance dialog  for SM 30

    Hi i am maintaining a table through SM30. and i have used one display field in transaction for that table. when i am entering data through transaction that disply is getting displayed when i press ENTER. but when maintaining through SM30 thet display Maintanance dilog Incomplte,
    then i went tbel maintanance and create ,but it doesnt save
    please help me
    This is the  error i am getting'
    <b>The maintenance dialog for ZFT017_GLCST_TR is incomplete or not defined</b>
    kanishka

    Hi,
    there is a prob in Table maintenace Generation Cretaion.
    se11> table name> change.
    Menu- utilities- table mauintenace Gen .
    Give Authorisation Grp and Funct Group.
    Single Step
    Provide Screen No.
    Then Assigning the tCODe.
    Se93.
    In this U shud give TABLE VIEW :    TABLE NAME.
                              UPDATE       : X  <----
    Ensure This u have given.
    Rvert Back if any issues,
    Reward with points if helpful.
    regards,
    Naveen

  • 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

Maybe you are looking for

  • Converting CMYK PDF in InDesign to only hold 2 PMS / Black.

    I've been given a PDF file to place in InDesign that has bleeds and needs to carry only three colors. PMS 185c, PMS 300c, and Black. However the original PDF file the client sent has a logo on the cover and back cover that holds CMYK and a third PMS

  • Read item code from Sales Order with formatted search

    hi, i'm tring to read tha values of the item or items of a sales order (before save it) with a formatted search. i have no problem to read the value of card code or cardname but i can't read the item's value. i tried with this [code]Select $[RDR1.Ite

  • Coldfusion 8 hanging on startup

    I'm trying to install coldfusion 8 on leopard, following various instructions from the web. But, when I try to start coldfusion from terminal with command "sudo /Applications/JRun4/bin/jrun -start cfusion", it hangs there with lots of error msg, the

  • StackOverFlowError with Expression query

    We have an Expression query that will generate a query with 1500 to 2000 OR conditions based on some user input. The query does not return more than 2000 rows. We sometimes get a StackOverFlowError when the query is executed. We notice that the log h

  • PAR Deploy

    I deploy my PAR file using an Administration Console by the Enterprise Portal. I try to deploy my PAR file from Netweaver. I use the export-> par file-> deploy but this is the error: Hppts protocol is not supported. Please help me