Table maintenace - adding my own screen fields

Hi, I made a table zx with 4 columns and table maintenace also. Besides I need a column on the screen wich is not exist in my table. This column must be fiiled  by values that are taken according values of first column..
I add this column on the screen by se80 and made such changes in code
PROCESS BEFORE OUTPUT.
MODULE LISTE_INITIALISIEREN.
LOOP AT EXTRACT WITH CONTROL
  TCTRL_ZPM_144_EQ_STTYP CURSOR NEXTLINE.
   MODULE LISTE_SHOW_LISTE.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE LISTE_EXIT_COMMAND AT EXIT-COMMAND.
MODULE LISTE_BEFORE_LOOP.
LOOP AT EXTRACT.
   MODULE LISTE_INIT_WORKAREA.
   CHAIN.
    FIELD ZPM_144_EQ_STTYP-EQART .
    FIELD ZPM_144_EQ_STTYP-STTYPE_10 .
    FIELD ZPM_144_EQ_STTYP-STTYPE_20 .
    FIELD ZPM_144_EQ_STTYP-STTYPE_30 .
    FIELD ZPM_144_EQ_STTYP-STTYPE_40 .
    MODULE INIT_EARTX.                                                    <--- my module
    MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
   ENDCHAIN.
   FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.
   CHAIN.
    FIELD ZPM_144_EQ_STTYP-EQART .
    MODULE LISTE_UPDATE_LISTE.
   ENDCHAIN.
ENDLOOP.
MODULE LISTE_AFTER_LOOP.:
MODULE INIT_EARTX INPUT.
  DATA: t_EARTX TYPE TABLE OF  T370K_T-EARTX WITH HEADER LINE.
  SELECT SINGLE EARTX FROM T370K_T
    INTO t_EARTX
    WHERE EQART = ZPM_144_EQ_STTYP-EQART AND
          SPRAS = SY-LANGU.
  APPEND t_EARTX.
ENDMODULE.       
But I don't know how to display values on the screen. I know that it must be done ib PBO but HOW???

Hello John
You should not modify the flow logic of the automatically generated dynpros. Instead, use the maintenance events of the view.
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm">Extended Table Maintenance Events</a>
In your case you may use <u><b>Event 26 before displayed data is output in a list</b></u> or <u><b>Event AA instead of the standard data read routine</b></u>.
Please refer to the SAP documentation for details of implementing this events.
The big advantage over your approach is that when you completely regenerate the dynpros your coding will be lost whereas the events remain.
Regards
  Uwe

Similar Messages

  • Adding an extra screen field in CJ88

    Hi,
    The FICO consultant wants to know whether we can add an extra screen field in CJ88.He wants to add the posting year.Currently there is facility to add posting period and the posting year will be same as the fiscal.He wants to change the posting year.Due to this he wants to add an extra screen field - posting year so that the user can change it during reversal.
    If yes then how it is bo done.
    If not, is it possible to copy the entire CJ88 code and make zprogram and ztcode and add this extra field.
    Please let me know your suggestion.
    Thanks,
    Rajani

    HI,
    Perhaps you can try with USEREXIT_CHECK_VBAP in report MV45AFZB.
    Other possibilty is the BADI BADI_SD_SALES_ITEM, where the method ITEM_CHECK.
    Perhaps the most powerful is userexit_save_document in report MV45AFZZ, but it works when you save the document. Here you can compare XVBAP (with the new item will have the field UPDKZ = 'I') with YVBAP (you can compare the line items of both internal tables). Finally, you can use the status of deliveried and billed of XVBUP, YVBUP, XVBUK, YVBUK to do the final checks.
    Perhaps you can fix warning messages in the first exits (in dialog) and in the saving event set the error message.
    Set the break point and check the data in these structures, and think in the right algorithm.
    I hope this helps you
    Regards,
    Eduardo

  • Need help with BBP_CUF_BADI - Adding your own screens for custom fields.

    We are on SRM 5.0 and we need your help to add the custom fields to a separate screen.
    All the item level custom fields are visible in Item Details screen under Basic Data and Header level custom fields are visible under Additional Specifications. Instead we like to add a new Tree as Custom fields just like Basic data or Cost Assignment in item details screen.
    The documentation for the BADI BBP_CUF_BADI does not say how to include a new tree structure. I did everything mentioned in the BADI like creating a screen and two funciton modules and generating the template. But it does not work. Any help is greatly appreciated.
    I went through other threads on this forum. So please do not waste your time pointing me to the old threads.
    Please provide sample code if possible.
    Thanks
    KM

    It seems that you are looking for exact solution but many a times you get pointers on this forum which lead you in correct direction.
    I have heard from one project site that they are able to fulfill the requirement via creating a webdynpro and linking the same to user role.
    if this doesn't help, just ignore.
    BR
    Dinesh

  • Having problems when adding new Curency value field + currency field.

    I need to add a new Currency field (CURR, length 15, 2 decimal places) plus the Currency field itself to a view. 
    I'm really struggerling. I have looked at the existing SAP fields in the Component workbench and I have to admit I can not see how a field is linked/related to the currency itself. Is this link established purlely at the disctionary level?.
    Has anyone added their own Z field value  and Z currency field before. I can create both fields and display them, but what I can not work out is how I related them within the component workbench, or is this done from the dictionary?.
    Any help would be greatly appreciated.
    I should have been able to look at an existing SAP example and work out how it's done, but so far I can not see/determine how this is achieved, even though someone has mentioned that it's controlled via the GET_I_field method. Looking at this method I was expecting to see some mention of both the Currency value field and the Currency field. But as I don't see these confusion reigns.
    Jason

    That's correct, but am I right in thinking that you can't actually create the currency key field itself?.
    I am aware that currency value fields can be created which reference a currency key field, but can see nothing that allows me to create a currency key field to be referenced.
    I hope that makes sense.
    Also, I have amended the structure, changing my value fields from Decimal 15,2 to Currency 15,2  and have created a new currency key field in the structure and referenced this from the Currency value field.
    Witin the Component/view/context node I can see this new currency key field, but it appears as STRUCT.fieldlabel whereas my currency value field appears in the context node as EXT.fieldlabel, because it was created in the AET.
    My problem is that when attempting to add the currency key field onto the screen I don't have it to select from within the list of structures/attributes. All the others attributes in the context node seem to be there, except the new currency key field/attribute.
    The attribute has a SET_fieldlabel, GET_fieldlabel, GET_M_Fieldlabel and a GET_I_Fieldlabel, which I believe is all that should be required.
    Does anyone know what my problem could be?.
    Jason

  • Can we create table maintence generator with out key field

    Hi,
    I have created a ztable in that client is the primary key as I don't want any other field as primary key.
    For this  i have created table maintenace generator but when i open it in sm30 blnak screen is coming.
    Here my question is can we create a table maintenace generator with out key field other than MANDT.
    If it's possible please let me know.
    Regards
    hari

    >
    Mathews Joseph wrote:
    > I agree to the above points , but you can try one thing.
    >
    > When you create the table maintenance screen , from SE11 you assign a function group.
    >
    > Double click on the function group and you can go to the main program and open that in SE80, take screen generated and try manually adjusting the screen and putting the non key field details...
    >
    > Not sure this will work , but may be you can give it a try.
    >
    > Mathews
    But the table could hold at most a single record (per client). The design is lacking.
    Rob

  • Disabling I/O Screen Field in Cost center Screen Enhancement

    Hi all,
         I am doing screen exit for Cost center master. While using KS03 transaction, I have to disable the newly added I/O screen fields. So, I added the following code in PBO module.
    *** PBO
         MODULE modify_screen_input.
    *** Include program of PBO
         MODULE modify_screen_input OUTPUT.
           IF sy-tcode EQ 'KS03'.
             LOOP AT SCREEN.
               IF screen-group1 eq 'CO'.
                 screen-input = 0.
                 MODIFY SCREEN.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDMODULE. 
    But, screen fields with that group are not getting disabled. Is there any way to disable those screen fields?
    Thank You.

    Hello Shrilatha,
    Please try with below code
    IF sy-tcode EQ 'KS03'.
             LOOP AT SCREEN.
               IF screen-name = 'CI_CSKS-ZFIELD'  ->changeit to field name
                 screen-input = 0.
                 MODIFY SCREEN.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDMODULE.
    Thanks

  • How to hide fields in Table maintenace screen

    I have created a view with table maintenance generator. I would like to hide some fields. With event I am able to fill in those fields but I want to hide those from screen.

    HI, 
    This is reff with ur below post, I have been stuck with same problem,
    I got your code, how its functioning, but didn't get get where i have to write it.
    plz tell me in brief.
    Thanks in Advance.
    Regards
    Vivek
    Re: How to hide fields in Table maintenace screen  
    Posted: Feb 6, 2009 11:42 AM   in response to: Aarti Ramdasi in response to: Aarti Ramdasi           
    Click to report abuse...             Click to reply to this thread      Reply
    Hi,
    You can hide the fields like this..
    For example
    select-options:
    s_carrid for spfli-carrid modif id gr1,
    s_connid for spfli-connid modif id gr1,
    s_cityto for spfli-cityto modif id gr2.
    I am going to hide last fied..To do this
    at selction-screen output.
    if s_carrid is initial or s_connid is initial.
    loop at screen.
    if screen-group1 CS 'GR2'.
    screen-active = 0.
    modify screen.
    endif.
    endloop.
    endif.
    whenever u click on any one of the field i.e. carrid or connid the third field will displayed.Otherwies the last field cityto is not visible initially
    Regards
    Kiran

  • Adding a field to a table control of a standard screen

    Hi,
    I need to add a field to a table control of a standard screen (Transaction CAT2).
    Could anybody please tell me how i could go about doing this?
    Also, what customization would be required to display the field because there are way too many fields and only a few are being displyed as of now.
    I will get the access(SSCR) key to modify the screen.
    Regards,
    Monica.

    Hi Monica,
    Did you name you customer field also "FIELD1_W", because the field should get updated then without any modification as in screen 2100 a "move-corresponding" is performed from CATSDB to these fields.
    Regards,
    John.

  • How to find where the screen field is stored in table

    Hi all,
    How to find where the screen field  is stored in the table .
    for some transactions if i press F1 on the field and after checking for the technical help.
    I can only find the struture for the screen field, but whereas i need table name for it.
    Can anybody help me how to find the table name where the field is stored.
    Regards,
    Madhavi

    Hi,
    Just hitting a F1 on screen field and getting structure name will not help in getting table name.
    First you need to know the flow of data in the reqd module, which will help you know all the tables in that module with there most of the fields with the data flow, now you need to work on your own to figure out that in which actual tables that value is stored.
    Hope this helps you.
    Regards,
    Tarun

  • Customer fields on own screen - Shirley Pereira

    Hi Everybody,
       I saw lot of threads on the same issue but i couldnt get a solution for this issue.
    I saw all oss notes which all are mentioned for this issue but its not working for me.
    Requirement is, i have to add my own fields for contact(GOA) at header level.
    Those fields should appear on my own screen with individual tab.
    We are in the implementation of SRM 5.0
    For that i used badi "BBP_CUF_BADI" and studied the documentation of this badi.
    I will just explain the things of what i did and u please suggest that what i missed.
    1) zfields added in the structure Ci_bbp_hdr_ctr and CI_BBP_HDR.
    2) defined screen '100' as subscreen type under function group 'ZCONTRACT_CUSTFIELD '.
    3) created internet service 'zcontractcusfi' and created template using webgui option for program SAPLZCONTRACT_CUSTFIELD(function group program name) of screen 100 .
    (template code generated automatically)
    4) I have created the internet service manually in "SICF" and placed the GUI parameters.
    5) Then i wrote code in badi "BBP_CUF_BADI" into the PUT_DATA method.
    EV_REPID = 'SAPLZCONTRACT_CUSTFIELD'.
    EV_DYNNR = '0100'.
    EV_THEME = '99'.
    EV_TEMPLATE = 'SAPLZCONTRACT_CUSTFIELD_100'.
    EV_SERVICE = 'ZCONTRACTCUSFI'.
    Still its not working. Could you give me the input on this issue.
    I am in the urgency of implementing this issue. So please consider and help me.
    Thanks in advance
    Shirley Pereira

    Hi
    Please try this ->
    Related useful pointers ->
    Re: BBP_CUF_BADI usage in SRM-EBP 4.0
    Custom screen using BBP_CUF_BADI
    Custom screen in BBP_CUF_BADI
    Re: Contract CUF from SRM to Backend
    Re: Screen Enhancement using BADI
    Implementation of BBP_CUF_BADI
    Re: Screen control of customer fuields
    Hope this will help. Do let me know.
    Regards
    - Atul

  • Adding New Screen Fields Through BDT

    Hi All,
          In BP transaction there is a concession tab. i want to add 2 new screen fields from z table.
          i have added from z table in that concession tab.
    But The problem is that screen fields are coming in the last line.but where as i need those all new fields in right corner of first and second lines of the existing fields .plz.. help me
    Thanks Inadvance ,
    Siva Kumar

    Hi Vishnu
    I suggest to use EEWB for adding the new field. Follow the following steps
    1. Run Transaction EEWB (Easy Enhancement Work Bench)
    2. Create new Project.
    3. Select the relevent Z package.
    4. Create Customizing and Workbench Requests.
    5. Select table BUPA
    6. Select the type of field you require (single or table) and follow the wizard.
    The new fields will appeare on a new tab "Customer Data" on BP Screen.
    The Screen Name and Sequence can then be changed with VCT.
    Precautions:
    1. Your user must have developer's key privilages.
    2. There should not be any users working on the system when you are doing this activity.
    3. The workbench request created is client independent. The customization request created is client specific.
    4. The process is reversable and does not get effected by patch upload.
    hope this may help.
    Cheers
    Avi

  • How to fill internal table with selection screen field.

    Hi all,
    i am new to sap . pls tell me how to fill internal table with selection screen field.

    Hi,
    Please see the example below:-
    I have used both select-options and parameter on the selection-screen.
    Understand the same.
    * type declaration
    TYPES: BEGIN OF t_matnr,
            matnr TYPE matnr,
           END OF t_matnr,
           BEGIN OF t_vbeln,
             vbeln TYPE vbeln,
           END OF t_vbeln.
    * internal table declaration
    DATA : it_mara  TYPE STANDARD TABLE OF t_matnr,
           it_vbeln TYPE STANDARD TABLE OF t_vbeln.
    * workarea declaration
    DATA : wa_mara  TYPE t_matnr,
           wa_vbeln TYPE t_vbeln.
    * selection-screen field
    SELECTION-SCREEN: BEGIN OF BLOCK b1.
    PARAMETERS : p_matnr TYPE matnr.
    SELECT-OPTIONS : s_vbeln FOR wa_vbeln-vbeln.
    SELECTION-SCREEN: END OF BLOCK b1.
    START-OF-SELECTION.
    * I am adding parameter value to my internal table
      wa_mara-matnr = p_matnr.
      APPEND wa_mara TO it_mara.
    * I am adding select-options value to an internal table
      LOOP AT s_vbeln.
        wa_vbeln-vbeln =  s_vbeln-low.
        APPEND  wa_vbeln TO  it_vbeln.
      ENDLOOP.
    Regards,
    Ankur Parab

  • How to deactivate the fields in a table control of a standard screen

    Hi,
       I have an requirement to deactivate the fields in a table control of a standard screen in ME22n transaction.I am using a BADI "ME_PROCESS_PO" and in item mathod i am looping at screen for the screen field name in the table control.But it is not working. Can anyone give me the possible solution . Thanx in advance.
    With Regards,
    Ajit.

    >
    Vivek Joshi wrote:
    > Hello Router ,
    >                      I do not want to set the focus , I want to get focus . User can click on any cell in the table and then press a button in the toolbar . Now in the event handler of the button i want to under which column User has set the focus .
    > I hope , I am clear now .
    > Thanks for your help
    > Regards
    > Vivek
    An yet you keep getting suggestions of how to set the focus.   I looked through the API documentation and I don't see anything that would suggest you can request to see where the current focus is.  Perhaps someone might still come along with a solution, but my hopes wouldn't be too high at this point.  I can pass the requirement onto Product Definition, as the use case does seem interesting.  Perhaps it is something we have even considered in the past. 
    But for now, there might be a better way to solve your problem.  It will probably mean redesign the interaction.  What exactly are your requirements?  Do you need to be able to get the data in a particular cell of table when a button is clicked?  Just throwing out some ideas here, but maybe just use the lead selection to select the row, but then have a button choice to choose the action associated with the column you want. A hack for sure - but it might work.  Also it doesn't help you right now, but in the near future update to NetWeaver 7.0, WDA does have a onColSelect event for the table.

  • How to make screen field enable when table control gives an error

    Hi,
        I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
    How to make the other parameter enable when table control throws an error.
    Regards,
    Jaya

    Hi Gobi,
         Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
    For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
    as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
    please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
    Thanks
    Jaya

  • Screen field f4 help with a table of 5*5 as a popup

    hi all,
    I have screen-field (location id) when the user press f4 a table with 5 rows and 5 columns should popup. When I select any of the cell in the table that value to be taken as input for the screen-field.
    how to solve this requirement?

    Hi uday
    In the following code project id, Object id and object name will display in the F4 screen but only object id will be placed in the screen field.
    Constants:
      c_objectid         TYPE dfies-fieldname
                        VALUE 'OID',       " Object ID for F4 help
      c_fieldoid        TYPE  help_info-dynprofld
                        VALUE 'P_OID',
                                           " To hold fieldname of object ID
      c_char_s(1)        TYPE c
                        VALUE 'S'.         " Approved status - Saved
    * Field-string for it_values............................................
    DATA:
      BEGIN OF fs_value,
        pid   TYPE zcl_prjid,              " Project ID
        oid   TYPE zcl_objid,              " Object ID
        oname TYPE zcl_objname,            " Object description
      END OF fs_value.
    Data:
      it_values    LIKE STANDARD TABLE OF fs_value,
                                           " Table for object ID F4 help
    PARAMETERS:
    p_oid TYPE zcl_objects-oid.
    at selection-screen on value-request for P_OID.
    PERFORM f4help_objectid.
    * FORM F4HELP_OBJECTID                                                 *
    * This subroutine is used for F4help in object ID i.e. to get          *
    * corresponding object ID based on the project ID entered.             *
    * There are no interface parameters to be passed to this subroutine.   *
    FORM f4help_objectid.
      GET CURSOR LINE w_lineno.
      fs_sc_val-fieldname = 'FS_TIMESHEET-PID'.
      fs_sc_val-stepl     =  w_lineno.
      APPEND fs_sc_val TO it_sc_val.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname               = sy-repid
          dynumb               = sy-dynnr
        TABLES
          dynpfields           = it_sc_val
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          invalid_parameter    = 7
          undefind_error       = 8
          double_conversion    = 9
          stepl_not_found      = 10
          OTHERS               = 11.
      IF sy-subrc EQ 0.
        READ TABLE it_sc_val INTO fs_field
              WITH KEY fieldname = c_fieldname.
      ENDIF.                               " IF sy-subrc EQ 0
      SELECT  projectid                    " Project ID
              objectid                     " Object ID
              objectname                   " Object Name
        FROM  zcl_objects
        INTO  TABLE it_values
       WHERE  projectid EQ fs_field-fieldvalue.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = c_objectid   "* Here c_objectid = 'OID' and here OID is the field name in field string*
          dynpprog    = sy-repid
          dynpnr      = sy-dynnr
          dynprofield = c_fieldoid
          value_org   = c_char_s
        TABLES
          value_tab   = it_values.
      CLEAR fs_timesheet-pid.
      REFRESH it_values.
      REFRESH it_sc_val.
    ENDFORM.                               " F4HELP_OBJECTID
    Regards,
    Mahi.
    Edited by: Maheswari Chegu on Nov 5, 2008 7:57 AM

Maybe you are looking for

  • Closing Screen=Sleep? help please

    Is there a way to disable the sleep function from occurring when closing the screen?

  • Notebook as second display?

    Hi all, Is it possible to do this? I want to practice my keynote presentation. I have hooked up through the mini-display (MBP...recent) to a DVI connection on an older Powerbook G4. Should I be able to use to the display on the powerbook as a second

  • Re: Security Profile

    Hi All, When we set the fnd_global.apps_initialize from the backend using begin fnd_global.APPS_INITIALIZE(user_id=>4599,resp_id=>50860, resp_appl_id=>800); end; ,resp_id=>50860------->'San Antonio, TX HRMS User' An employee emp#2565 is not getting r

  • Behaviors Effects Toggle Fails

    When applying Behaviors > Effects (Fade, Slide) and setting visibility to Toggle, it toggles the target DIV on, but it doesn't toggle it off on the subsequent click. And, BTW, on one simple test page it works, but on another, not much different, it f

  • Dummy title

    I am trying to log into my bank account through firefox mobile on my i-phone and once I put my username and password it goes to a light blue screen and says - Dummy Title. What is this? Why can't I log into my bank account?