Add fields to maintenance view and update then using events

Hi experts:
  I've created a table with 4 fields, one of them is userid. Also, there is a maintenance view to add new entries.
  I want to display user name when typing userid using events (1 or 21). I know how to do it if username is one of the fields of the table, but there is a requirement to not store username in the table, just userid.
My question is: is possible to add a field into the maintenance view and update it using events but not store the value in DB?.
Thanks in advance for your help.
Regards,
Carlos.

In the save event just clear the entries of the field(user name) in the internal table.

Similar Messages

  • How to add fields in custom infotype and update its screens

    Hi Experts
        I want to enhance a custom infotype ( Add some new fields, and add special function on its screen). This custom infotype is created in previous release.   is there any way to add fields in infotype? and let system automatcailly modify corresponding screens to add new fields

    Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the u2018Employee Infotypeu2019 radio button.
    4) Select the u2018PS Structure Infotypeu2019.
    5) Click on Createu2026 A separate table maintenance window appearsu2026
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on u2018Allu2019 push button. It takes a few moments.
    10) Click on u2018Technical Characteristicsu2019. Infotype list screen appears
    11) Click on u2018Changeu2019(pencil) button
    12) Select your Infotype and click on u2018Detailu2019 (magnifying glass) button
    13) Give u2018T591Au2019 as subtype table
    14) Give u2018T591Su2019 as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on u2018Infotype Characteristicsu2019 u2026 Infotype list screen appears
    18) Click on u2018Changeu2019 (pencil) button
    19) Click on u2018New Entriesu2019
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotypeu2019s infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirementu2026
    25) In the PM01 initial screenu2026Select u2018Screenu2019 radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select u2018Layout Editoru2019 and click u2018Changeu2019.
    27) Screen default layout appearsu2026here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Donu2019t forget to u2018Activate at every level
    i think u have to select CI_INCLUDE while enhanceing the Standrad Infotype

  • Adding field in Maintenance view of table

    Hi,
    I am trying to create a custom maintanable table.  Now the requirement is I need to add one more extra  field in the maintenace view of the table which should not be in the table fields and is for display only in the maintencae view.
    I tried adding a cloumn by editing the screen program generated by the table maintenance generator. I get the the display in the maintenance view of that extra field. But I dont get the values populated.
    Can you please let me know in which PBO or PAI i should write the module programe ..
    Help will be rewarded with points.

    Hello Bluesh
    Normally the extra field should be from a table that has a foreign-key relationship to your main table. Thus, add this additional table to the list of tables for the view. If it does not have a suitable relationship you cannot add it to the list of tables.
    Afterwards add the required field to the list of view fields and set its property to 'R' = read-only.
    If correctly defined there is no need at all to modify the screen(s) or the coding of the PBO/PAI modules.
    Example: your z-table contains field KUNNR (value table KNA1) and you want to add the NAME1 field to your maintenance view
    add table KNA1 to the list of tables
    add field NAME1 to view fields
    set its property to 'R'
    regenerate function modules and screens
    Regards
      Uwe

  • HIde table field in maintenance view

    HI ,
    i have table with 5 column and i want to create new maintenance view  but hide one of the field for maintenance ,
    i need to deliver this table to prod so i need to keep the changes on transport .
    i don't want to do it via code since when i regenerate the maintenance view again it will deleted .
    there is another option ?
    Regards
    Nina
    Moderator message - moved to the correct forum.
    Edited by: Rob Burbank on Oct 1, 2009 4:26 PM

    Hi
    1 ) I need to delete the maintenance that i do to the table like i mention in previous post ?
    Yes u can delete the maintenance program created for your Z (transparent table): it'll be useless, anyway it's not necessary to delete it, but if you think it won't be used, it's better to delete it.
    2 ) create to the table maintenance view and i hide the field
    Yes, u need to create a maintenance view based on your Z (transparent) table and set the flag for the fields to be hidden.
    when i create it in the tab view fields i see just the key fields of the table why ?
    Because the system inserts the key fields by default, the other fields has to be placed manually, u can also decide to insert only the fields u need to show and manage in maintenace program, i.e. the maintenance view (but in generally a table view) can have only certain fields of a transparent table, it's not necessary it has all fields.
    in the table join condition i just put the table name do i need to do something else ?
    No u don't need to do anythingelse
    Max

  • How to deselect refrence table fields in Maintenance view.

    Hello,
            Could any one tell me how to deselect all fields here except mara .
    In the first link as below it shows the table selection tab in maintain view window.
    http://postimage.org/image/6701iidlh/
    When i click Relationships after selecting one base table , i get the second link as u see below
    http://postimage.org/image/p7wpknnht/
    I m unable to deselect the referenced tables Could some one throw light on this.
    Thanks
    Edited by: sarat on Nov 23, 2011 11:50 AM

    HI ,
    Find the below thread ,
    Hiding primary key field in Table maintenance generator
    It will help you to deselect refrence table fields in Maintenance view.  
    Regards,
    Saravana.S

  • Why and how to use events in abap objects

    Dear all,
      Please explain me why and how to use events in abap objects with real time example
    regards
    pankaj giri

    Hi Pankaj,
    I will try to explain why to use events... How to use is a different topic.. which others have already answered...
    This is same from your prev. post...
    Events :
    Technically speaking :
    " Events are notifications an object receives from, or transmits to, other objects or applications. Events allow objects to perform actions whenever a specific occurrence takes place. Microsoft Windows is an event-driven operating system, events can come from other objects, applications, or user input such as mouse clicks or key presses. "
    Lets say you have an ALV - An editable one ...
    Lats say - Once you press some button  you want some kind of validation to be done.
    How to do this ?
    Raise an Event - Which is handled by a method and write the validation code.
    Now you might argue, that I can do it in this way : Capture the function code - and call the validate method.
    Yes, in this case it can be done.. But lets say .. you change a field in the ALV and you want the validation to be done as soon as he is done with typing.
    Where is the function code here ? No function code... But there is an event here - The data changed event.
    So you can raise a data changed event that can be handled and will do the validation.
    It is not user friendly that you ask the user to press a button (to get the function code) for validation each time he enters a data.
    The events can be raised by a system, or by a program also. So in this case the data changed event is raised by a system that you can handle.
    Also, Lets say on a particular action you want some code to trigger. (You can take the same example of validation code). In this case the code to trigger is in a separate class. The object of which is not available here at this moment. (This case happens very frequently).
    Advantage with events : Event handlers can be in a separate class also.
    e.g : In the middle of some business logic .. you encounter a error. You want to send this information to the UI (to user - in form of a pop up) and then continue with some processing.
    In many cases - A direct method call to trigger the pop up is not done. Because (in ideal cases) the engine must not interact with UI directly - Because the UI could be some other application - like a windows UI but the error comes from some SAP program.
    So - A event is raised from the engine that is handled in the UI and a pop up is triggered.
    Here -- I would have different classes (lets say for different Operating Systems). And all these classes must register to the event ERROR raised in application.
    And these different classes for different Operation systems will have different code to raise a pop-up.
    Now you can imagine : If you coded a pop-up for Windows (in your application logic) .. it will not work for Mac or Linux. But of you raise a event.. that is handled separately by a different UI classes for Win, Linux or Mac  they will catch this event and process accordingly.
    May be I complicated this explanation .... but I couldn't think of a simpler and concrete example.
    Cheers.
    Varun.

  • Add a field in  maintenance view V_FMC_B

    i want to add a field SORTL from LFA1 table  in maintenance view V_FMC_B  for checking the duplicate vendor name and search term. how it is possible?

    Hi,
    Copy the view V_FMC_B into ZV_FMC_B and the you will be able to add new fields to that standard view V_FMC_B
    OR
    Just request for the access key from your Basis Admin so that you will be able to add that new field in the standard view V_FMC_B.
    Regards,
    koolspy.

  • F4 help for fields in maintenance view resp. generated maintenance screen

    Hello,
    I’m new to ABAP and I have to deal with the following requirement:
    I have a maintenance view V1 what from a maintenance screen was generated automatically by the maintenance screen generator.
    Now I have to add a search help for one field F1 of the maintenance screen. The values for the search help of F1 depend on a specific value of a second field F2 of the maintenance screen. So I need value of F2 as import parameter for f4-help. F1 and F2 come from different tables.
    As I’m new to ABAP I have several questions or thoughts:
    - I’m not able to easily add a search help to F1 because I’m using the maintenance view V1 and that’s why it is not possible to assign the import parameter F2 to the search help – right?
    - In general, its not that easy to add search help to views than tables or structures - why?
    - I’m not able to just modify the generated objects because further automatic generation of the maintenance screen will delete it – right?
    - The generated function module provides user includes to add user specific coding. Is there any chance to add a f4-help to field F1 and assign value of F2 to that search help as import parameter with coding in user include?
    - any other ideas? I did not expect this topic to be so complicated as the requirement to change f4-help in a maintenance view resp. screen isn't very special.
    can anyone help me?
    Thank You!
    Regards
    Fabian

    Hi Fabian,
    Phew! Thats quite a few questions in one... I'll try to answer them to best of my knowledge..
    You can definitely have an external Search Help for a field of a Maintenance View, by calling it directly in the Screen Action Flow, using a PROCESS ON VALUE-REQUEST (like PAI or PBO). While defining such custom code on a generated screen, always make sure you do not write the coding inside the generated includes (SVIM* or <FUGR>TOP, <FUGR>DAT, etc..). Define new includes, or use those which are not generated by View Maintenance. This way, even if the dialogue is regenerated, your custom code will not vanish.
    This will answer your questions 1 and 2 generally, and your question 3 also.
    A Maintenance View, is something where values are read and populated purely at run-time. It does not have an Entry Help or such options, as it depends on the underlying tables. I hope this further helps with questions 1 and 2.
    Coming to your question 4 and 5, which form the main question - pre-filling value of F2 while calling search-help for F1 - yes, it is possible. On the view maintenance screen, there are standard structure variables (like EXTRACT TOTAL etc), which will give you the field values of the current record. But, it can no way assure that when you call the help for F1, the field F2 is already filled!
    For this, I can suggest that you programmatically implement a check to see if F2 value is filled, and read if it is. Or, if it is not filled, maybe you can shoot a Pop-up for F2, take the value at run-time, find help for F1 and get value, and also fill the F2 value (from your implementation) into the currect screen F2 value! (Phew...it is complex...)
    But am sorry, there is no other way, wherein you can gaurentee that F2 value is pre-filled always, when you can help for F1. (You could try making F2 as obligatory on screen, but it still doesnt necessarily solve this purpose..!).
    Hope it helps. Get back to me by e-mail if you need more help, or simple post a reply.
    Regards,
    Rekha

  • Adding Field to maintenance view

    Hi
    I have added a field to Z Table wich has already created a maintenance view (SM30) , but this field does not appears in maintenance view even the table is active.  (This is a basic Z table with one key field, the new field is not key field)
    I go to Maintenance Table Generator in SE11 and there is its Function Group but i do not know how to regenerate the Function Group and Function Module for make the new field appears in SM30.
    Can somebody please help me , wich step must i do to regenerate the maintenance view in order the new field appears in SM30 ?
    Regards
    Frank

    Hi,
    Hope you have created the table and done the TMG (Table maintenance generator). Then you changed the table.
    Now proceed like:
    goto se11 & give your table name#
    clieck on change
    goto utilities-> TMG
    In the TMG, just click on the icon - pencil (or press F7).
    Just select all the options and press enter
    Now the TMG will be regenerated.
    After this please check, it will work fine.
    Regards,
    Selva K.

  • Add fields to Existing DSO and DS in R/3

    Hi Friends,
    I have got to change my LO datasource which is running on production, 2lis_va_vatim, i need to add 2 fields to the exisitng DS from Comm Stru, so could anyone point me inthe right direction, Hoow to Add the fields with out disturbing the production,
    and the same way i need to cgane my DSO aswell for new fields, please tell me how to meet this.
    Thanks,
    Kiran.

    Hi Kiran,
    Before applying your changes in Production do the below steps:
    1)run V3 job as immediate, which picks data to delta queue and delete the acive V3 job.
    2)run the IP which loads data to BW(Delta IP).
    3)Apply your changes to the 2lis_va_vatim and DSO.
      i)Do the changes(adding your fields to 2lis_va_vatim and DSO)in DEV and active the 2lis_va_vatim and DSO.(insert this in transports).
    ii)first apply the R3 transport and then BW side.
    4)from now on wards your 2 fileds will get populated in BW side.
    5)Maintain the V3 job for 2lis_va_vatim in R3.
    If you need any clarification how to add fields to 2lis_va_vatim and create transport req pelase check the below article.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2050db8b-9d90-2c10-2980-b13a4b0938f6
    Hope this helps.
    Regards,
    Venkatesh.

  • Adding a new field in BCONT table and updating it

    Hi All,
    Is there any BAPI/BADI which will allow to add a new field in standard BCONT table and update its value?
    Your solution will be really helpful.
    Thanks,
    Nirupam

    Hi Santosh,
    This is required for UCES. We need to add a field in BCONT table (SE11/SE16), which will hold a flag value, i.e Y/N.
    The value will be updated through a custom FM being used in UCES, and also based on the value there is a validation inside UCES.
    This field need not be displayed inside any SAP screen.
    thanks,
    Nirupam
    Edited by: Nirupam Deb on Jun 8, 2011 11:44 AM

  • Customed maintenance view and assign T-Code

    Hello SAP exports,
    I have one question needs your help!
    We do not want the end users to maintenance V_T008 table directly by using SM30 in PRD.
    Therefore, I copy V_T008 view and create a custom view ZV_T008 by using SE11.
    The purpose is to create a maintenance view (ZV_T008) and assign a new T-Code in order to let user allows to maintenace ONLY in V_T001C table in PRD without using SM30.
    Is above the solution workable?
    I know how to assign a program to a new T-Code by using T-Code SE93.
    But, I do not know how to assign a maintenance view (ZV_T008) to a new T-Code.
    Please help.
    Thank you.
    Regards,
    Sylvia Chen

    Great thanks for the tips!
    Now I can run T-Code and SAP display the data table immediately.
    I can modify the data table directly without using SM30.
    This is great!
    Two more things need to solve.
    Can SAP only show one of the record of the data table?
    There are 10 records in the data table.
    The user ONLY needs to modify one record when the ZV_T008-ZAHLS = "K".
    The other thing needs to solve is following:
    when user inputs T-Code, SAP display the data table immediately.
    But, the description field (ZV_T008-TEXTL) is able to modify.
    How can I make this field become not able to modify?
    If you can provide the above solution, it will make me a very Merry Christmas!
    Regards,
    Sylvia Chen

  • I forgot my password and am trying to reset my ipod,but it won't work. It says that my ipod is in recovery mode and that I must restore it. I click ok, and then restore, and then restore and update. then it says contacting ipod software update server and

    I forgot my password and am trying to reset my ipod, but it won't work.It says that my ipod is in recovery mode and that I must restore it. I click ok, and then click on restore and update. Then it says connecting ipod software update server and a screen pops up with ipod software update on the top and iOS 5.1. It lists a bunch of stuff this update contains and on the bottom it says next, which I click and nothing happens, it just goes back to the ipod restore page. Help, what am I doing wrong?

    This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
    Update to the latest version of iTunes. Mac OS X 10.5.8 (Leopard) users may need to download iTunes 10.6.3.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to performunauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.

  • How to add a New schedule line and update the order quantity?

    Hi all,
       I have to add a new schedule line in VA01/VA02 so that when ther is partial confirmed quantity against a schedule line, we have to create a new schdule line based on the existing so that it will contain confirmed in one and unconfirmed in the other.
    The schedule line will split once the user go to Header data screen in VA01/VA02. So I used USEREXIT_MOVE_FIELD_TO_VBAK  user exits in MV45AFZZ include program.
        I splited the order quantity against the confirmed quantity and added it as new schedule line in the XVBEP internal table and update UPDKZ flags for XVBEP & YVBEP.
      Could anyone tell me is there any other way to do this without updating XVBEP? Because it is affecting some other place because of index table is not updating. How to you think use if update xvbap-etenr_high and update index table IVBEP1 for new line insert into XVBEP instead directly inseritng it into?
    My code as follows:
    xvbep-WMENG = t_temp-WMENG .
    modify xvbep TRANSPORTING WMENG.
    t_temp1- ETENR = '0002'.
    if SY-SUBRC <> 0.
      t_temp1-UPDKZ = UPDKZ_NEW.
      modify xvbep TRANSPORTING WMENG UPDKZ.
    endif.
    With Regards
      Raj

    Have you got thru this one if so please provide me with the solution as i got the same req' ..

  • Add field to a view

    HI All,
    I need add the field IDTYPE to view BP_EMPL_SEARCH.
    WHAT ARE THE STEPS TO DO SO?
    well as possible detailing the steps because I'm new to crm
    Thank you very much

    Hi,
    Can you please explain your requirement, do you want to search contact's by identification types?
    If that's the requirement let me know will explain in detail how to enhance contact search by bp identification number's..
    Cheers,
    Sumit Mittal

Maybe you are looking for

  • My old iMac died...how do I get my songs back???

    I had an Mac from work that finally died. I was using it to load my iPod and all my songs from iTunes and the CD's I ripped were on there. I bought a brand new Powerbook and I want to load the songs from my iPod to my new computer without having to s

  • Problem in message mapping index.

    HI All, I am doing idoc to file scenario. I have a problem in message mapping. Issue is, pallet1   palletheader(here i used counter to increment the value)   palletline(here i used INDEX to increment the value)         pallet linenumber1(it should be

  • R61 System update not working

    System update is not working: It tells me that it has to install a new version of system update. When I press OK, it shows a message from lenovo and gives the option to install a new version of system update. When I select install the download fails

  • ADG Tree - Linked Checkbox Item Renderers

    Hi Everyone, I've put together an AdvancedDataGrid that displays nodes from an XML (generated from a MySQL DB) in a tree format with two columns. The first column is the actual tree and the second column utilizes a checkbox item renderer. What I need

  • Problems during service lookup

    Hello , I have some weird problem using "keystore" service. In the normal way I make this call and things look good InitialContext ctx =  new InitialContext(); o = (Object) ctx.lookup("keystore"); manager = (KeystoreManager) o; the result of the look