Programming an Exit in a Maintenance View Function Group
Hi all,
I have the requirement to fill some administrative data fields of a table which is maintained using a generated maintenance dialog and a maintenance function group. Does anyone have an example of how one can do this?I defined a subroutine to be called before the data is saved to the database, but I have no clue where exactly I must implement this subroutine and how i can reach the data of function group, or which data to reach?Thanks.
Kind Regards,
Sukru
Hi Sukru,
go to your table maintenance, throught SE11 or directly SE56.
Set your table name and go to menu Environment > Modifications.
There you can enhance your table maintenance.
Just remember that if you regenerate source code you will lose your custom modifications.
Regards,
Frisoni
Similar Messages
-
Maintenance View Function group transport,
Dear all,
I've made some change on the screen related to my Z maintenance view in dev. It did not requested for a transport order. Therefore I am wondering if there would be any way to transport the whole Maintenance view without having to re create it.
Regards.Hi Nikhil,
I've tried using as u said the Transport Organizer from se80 but how can I add all object related to my maintenance view to the transport order from here. I tried with Include object then freely selected object but I 'm not sure which object to chose to make the list complete (function groups / tables...)
Regards -
Program names L... are reserved for function group includes
Hi All
Im involved in a migration project from GTS to ECC server where i have problem while creating a function group, when am creating a same include LZFR1T00 in ECC server am getting an error *'Program names L... are reserved for function group includes' Please help.
Thanks & Regards,
D. Sandeep.I'm not sure what GTS is, but I guess you'll need to go to SE80 and create a function group (Z...). SAP will automatically generate the include with the L... name.
-
Getting msg 'Program names L... are reserved for function group includes'
Hi all,
When I try to create a SAP standard Include which start with L, I get the message which says <b>''Program names L... are reserved for function group includes".</b>
I have already created two standard SAP FMs.
Please let me know how should I go ahead and create the Include.
Thanks and regards,
AnishurHi,
When you create the Function group, then if you look at the Fucntion group in SE80, then tehre inlcudes will be created, for FORMS if it will create the includes, and for TOP it will create the include, for L also it will create the Incldue(L referefs coding of subroutines).
So, goto SE80 and activate the Include directly, then you can write the code in that include
Regards
Sudheer -
Table Maintenance Generator - Function Group regeneration issue
I have table maintenance genertor in a function group that contains lot of tables . I by mistable regenerate the whole function group using table mainteance generator.
Now i want to check which of the programs changed during the regenerator. I am looking for some sap table that contains all the changed objects and their transport number.
Please rememebr i have still not released the transport,
I have checked E071, E071, VRSD . That contains the entry for function group and does not contains the programs inside the function group changed
Thanks
a®Thomas,
Thanks for your reply. Currently I don't want to release the transport.
Is there any table i can check which are programs changed without releasing transport
a®s
Edited by: a®s on Jul 13, 2009 12:42 PM -
Table maintenance view -user exit
Hello, as you all know, there is a program generated behind the table maintenance view. I want to add certain validation on the values entered in the table maintenance.
I know that modifying the program is not the best practice.
Is there any user exit which will permit me to do this?
thx.Hi Antish,
Try to go with the table events. For this goto the Table Maintenance Generator Screen --> Environment --> Modification --> Events. Here you can handle some events according to your requirement. Validations can be done only in this way.
Regards,
Swapna. -
Add Table maintenance program for custom table to an existing func group
Hi Guys,
Can I add Table maintenance program for custom table to an existing function group or I need to create a new
function group for each custom table.
Thanks,
miniYou can add to an existing function group, there's nothing technically to stop you doing this. However, consider that this is creating generated function modules in this function group and you would be wise to avoid using a function group containing manually created modules.
I personally always create a new function group, using the name of the table as the name of the function group.
Regards,
Nick -
Table Maintenance & View Clusters
Hi,
I am trying to generate table maintenance views and group them using a view cluster. The following is what I have done so far.
I created 2 tables. TAB_A is the primary table with TAB_B the description by language table. They are not linked to each other in any way (even though they probably should).
TAB_A - FLD_A (key, char2)
FLD_B (date)
FLD_C (time)
FLD_D (fltp16)
TAB_B - FLD_E (key, char2, same type as FLD_A)
FLD_F (key, char3, language field)
FLD_G (char50)
FLD_H (date)
FLD_I (time)
FLD_J (fltp16)
I then created 2 maintenance views based on the tables above.
VIEW_A - FLD_A
FLD_B (hidden)
FLD_C (hidden)
FLD_D (hidden)
VIEW_B - FLD_E
FLD_F (hidden)
FLD_G
FLD_H (hidden)
FLD_I (hidden)
FLD_J (hidden)
I've then used the table maintenance generator to create the screens as well as the unique events to populate the hidden fields.
Using SE54, I've created a view cluster. I have added both of my views to the view cluster as follows:
View/table TAB_A TAB_B
Predecess. TAB_A TAB_B
Dep R R
Pos 1 2
Start true
I have clicked the field-dependence button and generated the dependencies successfully.
So far everything is okay.
I now need to change the hierarchy in the cluster, so that TAB_B is dependent on TAB_A.
What I have tried so far is to add a foriegn key to TAB_B (this worked but is not an ideal solution).
I also changed the dependency type in the cluster to 'S' (only worked in conjunction with FK)
The documentation indicates that what I am trying to do is possible, but I'm not sure how.
So do any of you bright people out there have any ideas?
Be gentle I'm new to both the forum and SAP in general (hence being given table maintenance).
Kind regards
ChrisIn my experience, cluster maintenance view Table 1 keys where always used as foreign keys in Table 2. Then these common fields were used in dependencies and subset.
- Creation of maintenance view on table 1
- Then generation of maintenance dialog on Table 1
- Creation of maintenance view on table 2 defining the keys of Table 1 as subset fields (test the dialog, a popup should appear with the subset fields)
- Then generation of maintenance dialog on Table 2
- Creation of the cluster generating the dependency between Table 1 and itself (without specifying any field) and between Table 1 and table 2 using the subset fields (should work automatically)
Look also at [Create a View Cluster|http://help.sap.com/saphelp_nw04/helpdata/en/d0/999249b2aa11d1a5700000e82deaaa/frameset.htm]
Regards -
How to create table maintence with function group
plz send me replay.
urgent.Hi,
Refer this:
1.
Create Maintenance Dialog
To generate the maintenance dialog for a table or view:
Choose Development ® Other tools ® Gen.tab. maint. dialog. You go to the maintenance transaction initial screen.
Enter the name of the table or view.
Choose Generated objects.
Choose Create/Change.
Confirm the maintenance module creation prompt.
Enter the generation data:
Maintenance module function group
You can put maintenance modules for several tables or views in a function group.
Authorization group
Maintenance type (one/two-level)
Maintenance screen numbers
Recording routine (standard/individual or none)
Choose Create. All components required are generated.
When a maintenance dialog is generated, an entry with an object list is created in the maintenance object description table. All tables involved are in this object list.
http://help.sap.com/saphelp_nw04/helpdata/en/a7/513477407a11d1893b0000e8323c4f/frameset.htm
2. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc
3. Important : u must activate Function group before generating table maintainance.
Jogdand M B -
Export Function Group or Funtion Module
Dear all,
I'm new in ABAP development. I had a set of function module inside the same function group and i want to test it in another sandbox system. Since, there is no transport routing between the development and sandbox server. Is there any faster way to export the whole function group content to another system??
Regards,
KitHi Chun..
you can do One thing to achieve this :
In the Dev system :
Tcode SE37: Open the Source code of The Function Group.
Copy the Souce code of the Main program and also Each include in this Function group to Notepad files.
Note: Function modules are stored as includes in a Function group.
In the Sandbox system:
Tcode SE37: Create a function Group with the Same name.
Copy all the includes and source code in this system.
Activate them.
<b>reward if Helpful.</b> -
Hi experts,
I have copied a standard program 'SAPLHRHAP_UI_DOCUMENT_REPORT' and I would like to create a batch in sm36 with this copied program, the problem is , that its a function group type. Does anybody know how to create a batch with a function group or any workaround?
Thanks in advance,
Regards,
MuraiHi,
For example use transaction 'phap_admin', I would like to create a batch with this screen and a variant that I have previously created.
Is there any workaround?
Thanks,
Murai -
Adding functions to customers maintenance views (customizing)
Dear experts,
I've just been asked the following question that I don't have an answer to (I actually would expect it to be "No" but I want to cross-check it with you experts):
Thinking of the generated maintenance views as they are used hundredfold in SPRO/customizing: Do you know any way to add a dialog function (button) to those standard dialogs? For example to provide a shortcut to one of our own customizing dialogs that are meant to enhance the SAP standard customizing (let's say the settings for house bank accounts). To make it even more unlikely to get a positive answer: the solution should not require any kind of manual work at the customers side other than performing a regular import of a transport (or at least not much more than that). It shouldn't be necessary to do any programming on user-exits, et cetera.
Thanks in advance
AndreasHi Yadesh,
to be more precise: take the generated view V_T012 for house bank settings.
Next to the standard functions such as "Toggle Display/Change", "New Entries", etc. I would like to have a button with which I could call up an own program for the maintenance of customizing settings that enhance the house bank settings.
regards
Andreas -
How to call a maintenance view from a program
Hello Abapers,
Can anybody explain with some examples. How to call a mainetenance view from a program.
Thanks
Ranjith.Use FM 'VIEW_MAINTENANCE_CALL'.
REPORT zmaintaintest.
VARIABLES / CONSTANTS
CONSTANTS:
c_action(1) TYPE c VALUE 'U', "Update
c_viewname TYPE tabname value 'ZEMP_EXAMPLE', "View Name
c_field(6) TYPE c VALUE 'EMPNO'. "Field Name
INTERNAL TABLES
DATA: itab_rangetab TYPE STANDARD TABLE OF vimsellist,
v_empno TYPE zempno,
wa_rangetab TYPE vimsellist.
SELECTION SCREEN
PARAMETERS: p_empno TYPE zempno OBLIGATORY. "Emplyee ID
AT SELECTION-SCREEN
AT SELECTION-SCREEN.
Chcking the existence of the user in EMPLOYEE table
PERFORM validate_employee.
START_OF_SELECTION
START-OF-SELECTION.
This will restrict the user view so that user can only view/change
Table data corresponding to his/her Employee ID
PERFORM define_limited_data_area.
Displaying table maintenance view for a particular employee ID
PERFORM call_view_maintenance.
*& Form validate_employee
Validate plant entered in the selection screen
FORM validate_employee.
SELECT SINGLE empno u201CEmployee ID
FROM zemp_example u201CEmployee Table
INTO v_empno
WHERE empno = p_empno.
IF sy-subrc <> 0.
MESSAGE 'Not an Valid User' TYPE 'I'.
ENDIF.
ENDFORM. "validate_employee
*& Form DEFINE_LIMITED_DATA_AREA
To restrict the user view so that user can see/change table data
corresponding to his employee ID. Here one internal table is
getting populated with field name as u201CEMPNOu201D (Key field of the table)
And value as given by user in Selection Screen and this is passed as
Parameter in function module 'VIEW_MAINTENANCE_CALL'
FORM define_limited_data_area.
CLEAR wa_rangetab.
wa_rangetab-viewfield = c_field.
wa_rangetab-operator = 'EQ'.
wa_rangetab-value = p_empno.
APPEND wa_rangetab TO itab_rangetab.
ENDFORM. "define_limited_data_area
*& Form CALL_VIEW_MAINTENANCE.
Displaying table maintenance view for a particular employee ID
FORM call_view_maintenance.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = c_action
view_name = c_viewname
TABLES
dba_sellist = itab_rangetab.
ENDFORM. "call_view_maintenance
Regards,
Joy. -
How to read data in a program from a MAINTENANCE View
Hi Experts,
Requirement:
1. I have maintained a maintenance view on three Database tables.
2.Data can be entered in the view as it is a Maintenace view as i have created maintenance generator for that and it is a requirement.
3. In one of my programs i need to read this data, into an internal table, that is maintained through this view.
Problem: When i am firing a SELECT query on this view, it goves me a syntax error that i cannot get data by select query on a Maintenance view.
Solution required for: Is there any way i can get the data from this Maintenance view.
Thanks in advance for your exteemed replies.
Regards,
Raghavendra Goutham P.Hi,
Only projection view or database view can be used
in select query.
Find the tables used in view and
Select data into report program by
joining tables .
Regards
Amole -
Maintenance view program for a table
Hi All,
How can i create a maintenance view program for a table. i did maintenance view in sm30 for that table. now it needs a transaction code for maintenance. can somebody help me with this.
Thanks,
KiranHi
Create a new transaction Z**** linked to SM30 for that table:
- trx SE93: while creating trx choose transaction with parameter and insert these data:
- TRANSACTION = SM30
- set the flag SKIP INITIAL SCREEN
At the end of screen, section Default Value, if you want to open dialog for updating:
NAME OF SCREEN FIELD VALUE
VIEWNAME <here insert the table name>
UPDATE X
...for displaying:
NAME OF SCREEN FIELD VALUE
VIEWNAME <here insert the table name>
SHOW X
Max
Maybe you are looking for
-
I posted a couple of days ago about a problem my iPhone 4 was having trying to stream video via WiFi Basically, since I upgraded to iOS 6.0.1 I cannot stream YouTube videos via the app or via Safari, Netflix will not work nor will services such as BB
-
Transferring iTunes - is there a way to fix this?
I'm a senior lady, please be gentle! I wanted to copy my iTunes library on my iMac to my new MacBook Air so I'd have everything on both computers. I went here: http://support.apple.com/kb/HT4527 -- and walked through the steps for transferring via
-
ITunes 11.0.1 will not sync iPhone 5 and iPad
ITunes 11.0.1 will not sync either my iPhone 5 or ipad. After a sync attempt, a box appears which says the device cannot be read or written to.
-
Removing credit card number from my account
How do I remove my credit card number from my account. My son who is 8 lost his iPod touch or gave it away and I would like to cancel my account so that my credit card is not charged for any apps.
-
Using trial version of iWord. I know I can save a document as a ms word file. However, is there a way to have all docs saved as ms word docs automatically, without having to choose that option at each save?