View Maintenance

Hello all,
In custom table maintenance view I'm using a couple of events in PAI to format records to be inserted.  I also have a program that inserts entries into that table. Is there a function call that I can use instead of regular insert statement that would also go through those events?
Thank you,
Leon

If you want to call subroutines created for table maintenance events from another abap program, you don't need to use VIEWPROC_<view> VIEWFRAM functions...
  What are the Table maintenance dialog events (event numbers) did you use? I believe there are no insert statements in those subroutines, just formatting.. isn't it?
Ifur abap program and the subroutines process one record at a time, then here's the pseudo code of the external abap program for using the event subroutines.
report ZPROGRAM
tables ZTAB
select single * from ZTAB where ...
perform event_sub_routine(include_prog_name)
insert ztab.
Include program
form event_sub_routine
Do the required format changes to ZTAB.
Adjust the code to work for both table maintenance and the external program
endform

Similar Messages

  • Changes and Logical Delete in View Maintenance

    Hi everybody.
    I've defined a table view maintenance V_TABLE for T_TABLE, with five fields. One of them is defined as 'R' (not editable field).
    I defined an event 05 and an event 02 (for create and save) where I move SY-DATUM to the CREATED_DATE or UPDATE_DATE fields depending on it is a new record or a modification.
    But if I modify several records only one is updated.
    Besides, if the action is "delete" in the view maintenance, it must be a logical delete and move an 'X' to one of the editable fields.
    Can you help me please ?
    I can't see the action for each record in global tables.
    Event f_save  ( 02 )
      IF t_table-created_date IS INITIAL.
        t_table-created_date = sy-datum.
      ELSE.
        t_table-last_upd_date = sy-datum.
      ENDIF.
      MODIFY t_table.
    Event f_new_entry ( 05 )
      t_table-created_date = sy-datum.
    Thanks in advance,
    Liliana.

    Hello Karol, thank you for your answer.
    Now, when  I create new entries and select modify, hidden fields are updated.
    But when I select the delete option, it must be a logical delete, not physical. I must update one field with an 'X', but not delete. Can you help me with this ?
    Below is the include up now.
    FORM f_delete
    TYPES: BEGIN OF t_data.
    INCLUDE STRUCTURE /tenr/t_ppintwc.
    TYPES: action,
    END OF t_data.
    DATA: ls_total   TYPE t_data.
    DATA: lt_total   TYPE TABLE OF t_data.
    DATA: ls_extract TYPE t_data.
    DATA: lt_extract TYPE TABLE OF t_data.
    * get data from table maintenance
    lt_total[] = total[].
    lt_extract[] = extract[].
    LOOP AT lt_total INTO ls_total WHERE action = 'D'.
    IF sy-datum BETWEEN ls_total-begda AND ls_total-endda.
    ls_total-endda = sy-datum.
    IF ls_total-created_date IS INITIAL.
    ls_total-created_date = sy-datum.
    ls_total-created_time = sy-uzeit.
    ls_total-created_by = sy-uname.
    ELSE.
    ls_total-last_upd_date = sy-datum.
    ls_total-last_upd_time = sy-uzeit.
    ls_total-last_upd_by = sy-uname.
    ENDIF.
    ENDIF.
    IF sy-datum < ls_total-begda.
    ls_total-endda = ls_total-begda.
    IF ls_total-created_date IS INITIAL.
    ls_total-created_date = sy-datum.
    ls_total-created_time = sy-uzeit.
    ls_total-created_by = sy-uname.
    ELSE.
    ls_total-last_upd_date = sy-datum.
    ls_total-last_upd_time = sy-uzeit.
    ls_total-last_upd_by = sy-uname.
    ENDIF.
    ENDIF.
    MODIFY lt_total FROM ls_total.
    total[] = lt_total[].
    append ls_total to lt_extract.
    extract[] = lt_extract[].
    ENDLOOP.
    ENDFORM.                    " F_DELETE
    Thanks in advance.
    Liliana.
    Code Formatted by: Alvaro Tejada Galindo on Jan 4, 2010 3:12 PM

  • Reg:View Maintenance

    Hi Abapers,
    One new field is being added to a joining table and view during upgrade activity.. I have accepted these changes to both joining table and view.. generated table maintenance successfully.. When i'm trying to delete the existing maintenance for view to re-generate again, i'm getting below error: J_1GSL_CTRL_V maintenance interface cannot
    deleted because of IMG link
    Can someone please help me as how to regenerate this view maintenance...
    Thanks & Regards,
    Padmasri.

    You don't have to delete your maintenance - just go into change mode and select 'Create Modules' 'Create maintenance screen' and 'New field/sec.table in structure'.
    On the next popup select the screens you would like to have regenerated and select if you added key fields or secondary fields.
    That should do it.
    The other option would be to remove the link from IMG - delete and regenerate the view maintenance - and put the link back into IMG.
    Hope that helps,
    Michael

  • Data Type with reference and view maintenance

    Dear all,
    There are two questions that I want to ask.
    1.     Error when referencing a table with data type = u2018STRINGu2019.
    I have a Z table with some fields = u2018stringu2019, when I use this as a reference, an error prompted.
    "ZTBL_ABC" must be a flat structure. You cannot use internal
    tables, strings, references, or structures as components.-
    2.     Error in generating the View maintenance for field length > 255.
    Actually, I want to create fields with
    1.     data type = char(255),
    2.     data type = text
    3.     data type = char(3000)
    It is okay if I create the field with the selected size, however, when I generate the View maintenance (which can be access through SM30); it does not allow me to do so. It still not working if I change it into string. How can I create such table and use the table maintenance, as well as using that as the reference type of an internal table for another program?
    Regards,
    Mandy Au

    Hello,
    1st of all a table which has a field of type string can be converted in to table maintenance because TM does not support string type as it becomes a very big field to be displayed on screen ... so u need to change that.
    and then about the CHAR of length 3000 is too big ... to have a max limit of 255.
    If you change this both u will be able to generate TM.
    Incase after changing the field length it it gives error in activatin your table then go to SE14 put your table name EDIT and then Adjust n activate it....
    hope this was helpful
    --- Close the post once you get the solution

  • View Maintenance disabled in development and quality

    Hi,
    In my development , except client 100 where I generate request, and in quality , i cannot maintain view maintenance data like fiscal period, exchange rate. Is anything missing from basis side. Also I have observed that exchange rate is creating a request in development where i generate transport request. But in production it is enduser functionality.
    Cheers

    Hi Chandan,
                           Client copy is the last option. I want you to ask your functional consultants to go through all the TP's which are transported, ask them to check modified  object are transported or not?
           You check the all the TP's return codes, this will give you idea of weather they are successful or not.
    Regards,
    Hari.
    PS: Points are welcome

  • View maintenance dialog

    Hi all,
    I am facing an issue in view maintenance dialog, during UCCHECK, it is showing as error with description as follows:
    Generated Code for View Maintenance Dialog is not Unicode-Compatible You can
    regenerate with the program RSVIMT_UC_VIEW_MAINT_GEN
    I am still doubt. What is the impact if I generate it as proposed? Are our own coding removed after generation? Thus we need to code manually again.
    Thanks !
    Chika

    It seems that you're in the Unicode system and the dialog is not Unicode compatible. This program will not remove any code, as long as it has been added using the proper methods (user exit, designated enhancement, etc.). In the worst case it will display an error message.
    You might want to check in advance whether your code is Unicode compatible though.

  • What is the Authorization group in Cash Journal View Maintenance (FBCJC0)

    Question 1: In Cash Journal View Maintenance (Tcode: FBCJC0), what is the Authorization group? 
    Question 2: How / Where can I define this Authorization group?
    As per the F1 Help  document in SAP :
    The authorization group enables you protect access to certain objects.
    In order to carry out a specific activity, the user must have authorization for the combination of the activity and the authorization group.

    Hi,
    Authorisation in Cash journal is meant for controlling of FBCJ transaction with an user ID. 
    For example, if you have a multiple cash book (Cash journal) or you are maintaining a cash book according to Business Area wise, Plant wise, etc.,
    In this case, you don't want to allow the other people to view / transact your cash book, then you can assign some unique identification in the authorisation group column against the each of your cash journal.
    These unique identification can be of any thing eg. 1001, 1002, 1ABC, ABC, etc.,  After this, the indentification has to be assigned in the respective user profiles in the below mentiond objects,
    F_BKPF_BED
    F_BKPF_BEK
    F_BKPF_BES
    F_BKPF_BLA
    F_FBCJ
    Hope it helps
    Saravanan.A

  • Parameter transaction for view maintenance

    Hi there, please help
    I've created a parameter transaction(ZTRN) for a view maintenance(ZVIEW) with the ff
    Skip initial screen = X
    VIEWNAME = 'ZVIEW'
    UPDATE = X.
    How can i change this transaction/view so that only 1 record can be maintained, i.e how/what
    parameters to provide before calling the transaction so that only one record can be maintained. With the above settings all records are displayed.
    I've tried using UPDATE_LTD = X but its not helping either.
    Thanks in advance

    I don't think this is possible in the way you want it to. What you could do is use the standard events provided by the maintenance view. In these event create a check that only one record can be changed or even displayed.
    I don't have a SAP system to give you an example but I can refer you to this:
    [Maintenance events|http://help.sap.com/saphelp_nw70/helpdata/EN/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm]
    Edited by: Micky Oestreich on Aug 6, 2008 2:41 PM

  • How to add button to view maintenance.

    Hi,
    I have a table view maintenance (accessing by sm30) an I need to add "Filter Button" and other buttons if is possible.
    How can I do this??
    Thanks.

    Hi,
    In table Maintenance generator, u have the scree no. double click on that. then in the status put buttons according to ur requitrement.
    Regards,
    Renjith Michael.

  • How to generate view maintenance

    Hi Experts,
    wat do u mean by view maintenance,
    how to do view maintenance for function pool,
    please let me know about this as soon as possible.
    i have a big issue on this.
    Thanks in advance
    Srinivas

    Hello Srinivasulu
    Report RSVIMT_UC_VIEW_MAINT_GEN is used to unicode-enable already existing views. Thus, if you have the function pool (containing the views) run the report (transaction SA38) with your function group and a transport request. The report will display the views that need to be re-generated in order to become unicode-enabled. Execute the generation. The report will put the required objects into the transport request.
    Please note that this report will NOT take care of any unicode errors in FORM includes in the function group that you have added (e.g. when you modify the views using time points).
    To find out if your function group is completely unicode-enabled run transaction UCCHECK with your function group (probably you select here for the package).
    Regards
      Uwe

  • Problem in View Maintenance -  Prompting for a request

    Dear Experts,
    We have upgraded from 4.6c system to ECC system.  i have a table maintenance generator for a Z table. it has been transported across systems ( DEV, QA). now when i try to edit some data in that view using SM30 and saving it...
    its prompting for a request in Quality system, whereas in DEV its not asking..
    kindly help on this regard.
    thanks
    Krish

    Thanks for the reply..
    In both systems the following are the setting in SE54
    Transport is in -> Automatic transport
    Adjustment is in -> Automatic Adjustment
    any othe clues...
    Thanks
    Krish

  • Problem in copying view maintenance screen

    Hi to all experts,
    I have requirement to copy a standard view with maintenance to z view . The view name V_T71ADM23 which has a function group HRECM00ADMVIEW05 i copied it to z function grp but the problem is im getting this error when im trying to put the custom function grp to the table maintenance generator.
    first error
    The screen number 0501 is already assigned
    but not referenced in the control directory
    for another maintenance dialog.
    Overwrite old screen number
    in control directory?
    yes or no
    if click yes
    second error
    View VT71ADM19 has no active version and no entry in the control directory
    View VT71ADM20 has no active version and no entry in the control directory
    View VT71ADM21 has no active version and no entry in the control directory
    View VT71ADM22 has no active version and no entry in the control directory
    View VT71ADM23 has no active version and no entry in the control directory

    how to do this
    Delete the generated modules for view VT71ADM19 from the function group ZHRG0007 using the function library.

  • IMG - View maintenance  - View suppress existing entries and do not save

    Hi there,
    within the customizing maintanence I wanted to change a view cluster with an existing view (within transaction /simgh). But after replacement of the vc with the view the view do not show any existing entries and do not save my new entries.
    I already regenerate the whole view again, but the behavior do not change.
    I also deleted the whole maintenance dialog and generated again, but the behavior do not change.
    Now when I access the view, only a number of rows are changeable but empty (number of these entries = number of existing entries) and when I save a new entry, the whole line shift to the end, of empty changeable (open) lines and when I access the screen again, this entry is not saved and not displayed.
    Have anybody an idea how to solve this?
    Kind regards, Kathrin
    Edited by: Kathrin Gossmann on Mar 12, 2009 1:28 PM
    Edited by: Kathrin Gossmann on Mar 12, 2009 1:29 PM

    Hi,
    There is nothing called as basic list in web dynpro
    There are 2 ways of displaying more than one record (internal table data) in either ALV or Table.
    Using ALV you have an advantage of directly downloading onto excel.
    You need to process success and error records separately into 2 internal table, show them in 2 ALVs differently with 2 messages, so that the users can directly download them on to excel file as ALV provides it.
    If the user does not want the records (success or error) ones, if the user wants only a message with number of records uploaded/not uploaded then you do not require them to display it in ALV, you can just give them a message.
    In this case you can hide the ALV and only display messages in a single view or based on  radio button. 2 views or not required.
    In the selection screen itself, you  can show the number of records uploaded/not uploaded.
    Hope this helps.

  • ASA view maintenance release

    We have a Cisco ASA 5520 and I need to view the maintenance release version. When I do a show version I see 8.2(5) and when I view the file in flash I don't see details of the maintenance number.
    I'm checking our ASA due to the bulletin below where its mentioned to have 8.2(5.47) or 8.2(5.48) but I can't find the .47 or .48 on the ASA.
    Thanks for any help.
    Jeff
    http://www.cisco.com/c/en/us/support/docs/csa/cisco-sa-20140409-asa.html#@ID

    The maintenance releases (sometimes referred to as interim builds) are usually not published on the download portal. If you have a documented need for one (as is the case with this SA), the TAC can give you access to download the necessary build.
    Once you've reloaded with that version as your boot image, your "show version" will then show it as running.

  • MRP view maintenance

    Hi All,
    I have developed a programme to uplaod MRP views for huge number of materials across Plants.
    There are few material for which one strange thing is observed
    1. Material A plant 1-MSTA -D not mantained, but the same is there in MM01
    2..MaterialA plant 2-MSTA-D maintained and its maintained in MM01.
    Is MRP maintained on the basis of Plant or Storage location or both...because my programme is looking at material plant combination level and uploading the MRP as per maintenance status maintained in table MSTA.
    But in above case, it gave an error probably  because for one storage location MRP was maintained  and for other not...
    Can you all throw some light on this....
    Regards,
    Satyendra

    One thing i missed...there are few plants for which above things are appearing for all the materials...
    i.e MRP view maintained in MM03 but for the same materials MSTA doesnt have D status for those plants..
    Regards,
    Shailesh

Maybe you are looking for