Maintenance View for checktables
Hi,
I had a scenario where I had to create around 30 check tabels(Z Tables). I have to create maintenance view for these tables. Instead of creating 30 transactions is there a better way to do this.
If I create a report for this purpose with radio buttons in the selection screen for each table, can I call transaction SM30 and pass the table name, skip the first screen and do the entries.
Thanks,
Viswas
Hi,
There is no need to go for call transaction
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
ACTION = 'U'
VIEW_NAME = 'ZTAB'
TABLES
DBA_SELLIST = IT_RANGETAB
EXCEPTIONS
CLIENT_REFERENCE = 1
FOREIGN_LOCK = 2
INVALID_ACTION = 3
NO_CLIENTINDEPENDENT_AUTH = 4
NO_DATABASE_FUNCTION = 5
NO_EDITOR_FUNCTION = 6
NO_SHOW_AUTH = 7
NO_TVDIR_ENTRY = 8
NO_UPD_AUTH = 9
ONLY_SHOW_ALLOWED = 10
SYSTEM_FAILURE = 11
UNKNOWN_FIELD_IN_DBA_SELLIST = 12
VIEW_NOT_FOUND = 13
MAINTENANCE_PROHIBITED = 14
OTHERS = 15.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
aRs
Similar Messages
-
Reg :-maintain a table maintenance view for the z table.suggest me the code
i have question.i have created a z table related to pp module.the requirement is to maintain {table maintenance view} for this z table.how could this be done.can any one suggest me the code for this?
Hi ,
We have a lots of queries on table maintainance creation in the forum posted and replied to.Pls have a look at it first.
In se11 -> change mode of the ztable -> goto -> utilities -> table maintainance generator -> click on it...
it will give a new screen-> enter the required details like function group , authorisation(use &NC& or leave it blank if you dont know) and screens
2 step and 1 step means=> number of screens displayed in maintainace
if step1 is selected then we have a screen which will be like a table control for data entry.........
for step2 we have a table control screen and a more detailed individual field display as second screen
click on the button 'find screen numbers' so that system automatically proposes the screen numbers
after which click on the "create" button and follow the required instructions/messages
once done go to SM30 enter the table name to check if maintainance has been created properly
Hope it helps,Pls check and revert
Regards
Byju -
Need to create maintenance view for a custom infotype
A custom infotype 90XX is created. The data cannot be modified or created through PA30 in this infotype. Through PA 40 actions only we can create/change the record/data. We have created some 1000 records in it. Now can we create a maintenance view for the infotype so that we can create, delete or change the data in the infotype as and when we want.
Hi,
pls chk dat u have maintained the 'Infotype Charecteristics' and 'Technical Attributes' correctly.
thanks,
teja. -
Create a Maintenance view for table T500P
Hi Experts,
We have a requirement where customer want an additional field in table T500P and for the same a custom maintenanve view has to be created.Moreover, If there is any update insert or change in the ZView/Ztable the same should be reflected in standard table T500P.
Steps already taken :-
We have created a ztable (copy of T500P ) and add the required custom field to it.
We have also copied the view i.e V_T500P to our custom view and also use base table as T500P .
We also create a foreign key for PERSA in Ztable and use T500P as check table for that with cardinality 1:1.
To update the MOLGA & BUKRS field data in ztable we have set both the field as a primary key & create a foreign key with check table T500L & T001 & cardianality as 1:CN for key fields.
In custom maintenance view we have set the realtionship of ztable t500l & t001 with the base table T500P.
Now, if we are trying to maintain the view only T500P table is getting updated and Ztable is updated with only PERSA value.
Please provide some directions for the resolution of this issue.
Thanks,
Pooja Goel.Scheduler007 --
The view you selected by clicking File > Options > Project View is the default view for every new project you create from a blank project template. This is a global option, so setting it from the checked out Enterprise Global file serves no purpose.
When you select a view as your default view, you will see that view applied to the blank project that is opened when you launch Microsoft Project 2010, and you will see it applied if you create new blank projects. If you create enterprise templates for
people to use in your organization, you should simply apply the view to the template that you want as the default so that users will see this view immediately when they create a new project from the template. In addition, if you apply a view to an open
project, close and check in the project, and then reopen the project, you will see the last view applied in that project (as Guillaume correctly points out).
Beyond this, there is no method possible for the Project Server administrator to specify a default view for the Microsoft Project application used by the project managers in your organization. This is an option each PM must set. Hope this helps.
Dale A. Howard [MVP] -
How to regenerate a table maintenance view for a table.
A new customer defined field(y_status) was added to the table(ykxrdarea). But the field is not reflected in the view maintenance.busiess adviced me to regenerate the table view maintenance.
Can any one help me how to regenerate the table view maintenance.Go to transaction SE11.Enter the table name and choose utilities from the menu and click on table maintenence generator.You will get the table maintenance dialog.Choose generated objects from the menu and click on change.You will get the change generation elements screen.Enter the reason for regeneration.In your case it is new field/sec.table in structure.hit enter and the table maintenance will be regenerated.If you go back and see the maintenance view now you should see your field.
cheers
Nishanth -
Maintenance View for custom table with foreign key relationship
Hi Folks,
I have created a custom table with foreign key relationship with other check tables. I want to create a maintenance view / tablemaintenance generator. What all things I need to take care for the foreign keys related fields while creating the maintenance view / tablemaintenance generator.
Regards,
santoshHi,
You do not have to do anything explicitely for the foreign key relationships in the table maintainance generator.
Create the table maintainance generator via SE11 and it will take care of all teh foreign key checks by itself.
Regards,
Ankur Parab -
Problem in creating a maintenance view for a ztable
hi, all, what should I fill in the function group and authorization group and other contents required? thank you in advance, I really confused with it.
Hi Dawson,
Go to SE11, give the table name and click on change. Then Go to utilities--> Table
maintenance generator.
In the table maintenance generator screen, we should give Authorization Group (to whom this table maintenance should be allowed),
Function Group name (Function Group name can be same as table name or it should start with 'Z' or 'Y'),
Maintenance type can be one step or two step, usually we will create with one
step. we should give maintenance screen number. After clicking on create button,
a table maintenance generator will be created.
To check it go to SM30 . In SM30, we find display, Maintain options.
Function Group: We need to provide a Z function group name, so that SAP generates an module pool program in the background for the table maintenance.
Authorization Group: To which group of users this table maintenance should be allowed (Eg: MM, SD etc).
Regards,
Ramesh -
Maintenance view for standerd table
hi . i want to update a field in standerd table. i try &sap_edit.but i dont know why people suggest that...its not working...any alternate to update standerd table .
Hi ,
First talk to your Function Consultant , why the standard table needs tobe updated .
if there is a purpose or a reason , then see the table attribute whether it is Masterdata/Customdata /Transcation data.
Masterdata table
Becuase for all Master data there will be define Transcationcode with screen program .
Ex: for creating Vendor Master/Customer Master/Hr Master,etc so for all Master data ,there is Change Transcation code also ,so the Functional Consultant can change it , if it is bulk then just record that screen using LSMW or BDC so that you can modify the data in the Screen which will update the corresponding tabels.
Customdata table
If it is Customizing table then there will be a define Table Maintainance directly or a View with Table maintaintance View. so Again Function Consultant can change the data. one thing here if that data field is Primary Key ,then in the table maintaince view he or you cannot change the data directly ,so either way is to delete the entry and create new entry with the changes you/he want .
Transcationdata table
If it is Transcation data then you should not do the change's for the transcaction data , if still it is required then there will be reversable entry process (Ex: In Finance if posting with incorrect entries of Currency or GL, then that record should be reversed .)likewise in SD ,HCM also they can reverse .
Final OPTION is already you are trying already with SAP_EDIT and also Our Community friends told how to play with editing table data.
Regards, -
Can I use classes and methods for a maintenance view events?
Hello experts,
Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!Hi viraylab,
1. The architecture provided by maintenance view
for using EVENTS and our own code inside it -
It is provided using FORM/PERFORM
concept only.
2. At this stage,we cannot use classes.
3. However, inside the FORM routine,
we can write what ever we want.
We can aswell use any abap code, including
classes and methods.
(But this classes and methods won't have any
effect on the EVENT provided by maintenance view)
regards,
amit m. -
How to Extract Data for a Maintenance View, Structure and Cluster Table
I want to develop 3 Reports
1) in First Report
it consists only two Fields.
Table name : V_001_B
Field Name1: BUKRS
Table name : V_001_B
Field Name2: BUTXT
V_001_B is a Maintenance View
For this one I don't Find any Datasource
For this Maintenance View, How to Extract the Data.
2)
For the 2nd Report also it consists Two Fields
Table name : CSKSZ
Field Name1: KOSTL (cost center)
Table name : CSKSZ
Field Name2: KLTXT (Description)
CSKSZ is a Structure
For this one I don't Find any Datasource
For this Structure How to Extract the Data
3)
For the 3rd Report
in this Report all Fields are belonging to a Table BSEG
BSEG is a Cluster Table
For this one also I can't Find any Datasource,
I find very Few Objects in the Datasource.
For this One, How to Extract the Data.
Please provide me step by step procedure.
Thanks
PriyaHi sachin,
I don't get your point can you Explain me Briefly.
I have two Fields for the 1st Report
BUKRS
BUTXT
In the 2nd Report
KOSTL
KLTXT
If I use 0COSTCENTER_TEXT Data Source
I will get KOSTL Field only
what about KLTXT
Thanks
Priya -
Maintenance view entries asking for Tr. request
Hi ,
I have created a Maintenance view for a table.
While creating entries through view it is asking for
transport request.
How can I get rid of this prompt for transport request ?
Thanks,
Sandip.Hi sandip,
1. Thats bcos in se11,
the DELIVERY CLASS
for this table must be C
(customizing table)
2. Make it to A (applicatkion table)
save, and activate the table,
and once again, create table maintenance.
regards,
amit m. -
Validate field in the pop up for a Table Maintenance View
Hi,
I have created a maintenance view for a Z table. Among the many fields the table, I needed to display the records based on a selection criterion. So, I have enabled a popup for sales org and customer no'.
Now the sales org and cust no' are being validated individually at the pop up screen itself.
The requirement is that I need to validate for presence of records for their combination.
( FYI: KNVV is the table with the combination of both)
Kindly let me know how this requirement can be fulfilled.
Thanks in Advance.Hi,
Try like this..
in the Table Maintenance Generator>Environment>Modification-->Events.
in the event on_save(didn't remember exact name)
select * from ztable into itab where kunnr in kunnr
and vkorg in vkorg..
Regards,
Nagaraj -
Possibility to edit datasets, when there is already a maintenance view?
Hello again,
is it right that I can modify datasets even when there exists a generated maintenance view for the table?
It was usual for me, that in the transaction SE16 don't allow that.
Thank you for your answers!
MelanieDepends on the setting for "delivery and maintenance" in SE11, should be set to "allowed with restrictions" for the underlying tables of the view. Also check the very good F1 help for this field.
Thomas -
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. -
Obligatory fields in a Maintenance View
Hi All,
I have a Z table. I have created a Maintenance View for this table. My requirement is to have a few fields as mandatory in this view so that when the user enters data, these fields should appear with the Obligatory symbol in the grid.
Regards,
MadhurHi Madhur,
Whenever u craete a table maintainence view one or two screens are generated depending upon the option u have selected.
goto SE11 ->utilities ->table maintainence .
there find ur screen no ( 1 by default)
click on that u will enter into screen painter.
There find ur field and specify its attribute as required. Dont forget to activate the screen onece done.
Thanks & Regards,
Ankur
Maybe you are looking for
-
I heard that if you sych your iPhone from a new computer, it overwrites or throws out the things that you stored before. I don't want that to happen, so what do I do? I am changing jobs and the best computer I had before was the one at work, so I s
-
Erro in SAP VC with SAP ERP Web Services
Hello SDN, I wanna use the SAP WebService of an ERP 2005 system in the SAP Visual Composer 7.0 SPS8. I have configured the logical destinations as decibed in http://help.sap.com/saphelp_nw2004s/helpdata/de/f8/7889ce12924273a379c1c590675573/frameset.h
-
BI process has gotten stuck and the data from CRM hasn't gotten updated
hai friends am working for BI in CRM.... BI process has gotten stuck and the data from CRM hasn't gotten updated in the BI cubes. can any one help me to solve this issue??? WHAT MAY BE THE PROBLEM AND WHAT WILL BE THE SOLUTION??? IS THERE I NEED TO R
-
Curve 8310 will not charge in pod
Hi All My 8310 won't charge and I'm looking for any suggestions before I buy a new phone. Here's the sequence of events: Phone not charging via car charger or wall charger - the lightning bolt symbol goes on but the battery doesn't charge. I figure t
-
I install sunCluster 3.1 Update 4 on solaris 8 : V440 + v440 + v240 (2+1 architector, that meend that the therd node is the standBy and he atached to all disks). + 2* D1000 storageas that was splited. I install the cluster OK, but after I check with