Update maintenance view data by FM .
Hi friends,
I want to update Maintenance view data not by using sm30,sm34,transactions . i want to update by FM . i will pass the data and view name so that it should update the data in views( and corresponding tables ) .
and we need these changes should be stored in change request also .
Regards,
Shiva.
you can use FM
VIEW_MAINTENANCE_NO_DIALOG
with action parameter = 'SAVE'
just do a where used list of this FM to check how this can be used
Regards
Raja
Similar Messages
-
Very urgent : Update maintenance view
Hi
I would like to know if i update a maintenance view ,will that change be included
in the correction instruction or do i need to do anything special for the same.
Regards
LeonHi,
it should update the data in views( and corresponding tables ) .
and we need these changes should be stored in change request also .
you can use FM
VIEW_MAINTENANCE_NO_DIALOG
with action parameter = 'SAVE'
just do a where used list of this FM to check how this can be used
<b>Reward points</b>
Regards -
Hi There,
I want to update the Maintenance View so that the dependent tables must be updated as in SM30 transaction, rather by using Update statement.
However can I update the maintenance view using the Update statement, as I am unable to select the data from it.
Is there any FM which serves this purpose.
Regards,
Anil .Check the ENQUEUE_MODE... if it is 'S' or 'E' type.
Lokesh -
Very urgent:Updating maintenance view
Hi
I would like to know that if i update a maintenance view and attach the same to the
request,will it be included in the correction instructions ?
Or do i need to do anything special for the same?
Please let me know
Regards
LeonAny relavance to Oracle?
-
Hi all
I would like to know if is there any function that allow me to read data from a maintenance view into an internal table of a report.
I find some function like VIEW_MAINTENANCE_CALL. I would like to find something like this without using maintenance dynpro of TMG instead.
Thanks
GabrieleI remember Suhas once suggesting VIEW_GET_DATA Please try.
-
Updates through a maintenance view
Hi,
I'm having difficulty with maintenance views. I thought it ws possible to construct a maintenance view consisting of two or more tables and be able to update non-key fields in any table, provided the tables were linked via FK and had suitable cardinality of C:1.
However, this seems to be what I've found: you can only update non-key fields in the primary table. Although fields in the secondary tables appear as though you can update them (via SM30), any data changes you make are erased (as you look at it!) when you hit Save - the original value returns.
Is my assessment correct? SAP Help is vague and ambiguous on the matter.
Also, maybe someone could explain the cardinality requirements. SAP Help states the FKs must have N:1 cardinality, but as far as I can see it should be C:1.
Thanks,
T.Hello Tenchy
You are talking about view clusters (SE54) where you have hierarchical linked tables that can be maintained together.
Obviously, you cannot edit key fields of the primary table. Instead you need to use execute two operations:
- DELETE entry
- CREATE new entry
It goes without saying that the same operations are propagated to the dependent entries in secondary tables.
The cardinality between primary table and secondary table should be 1:N meaning
- for each entry in the primary table you can have none or multiple entries in the secondary table
- you cannot have secondary records for which the corresponding primary record does not exist
Regards
Uwe -
Update a maintenance view.
Hi ,
I want to update a maintenance view.
Data is coming from a text file which i am uplaoding.
Which function module should I use to update the maintenence view.
Thanks,
Ram.hi,
use this FM VIEW_MAINTENANCE_CALL
hope it will work.
use this code .
&----& Report Z_TEST_PROGRAM&--*& Demo program for blog http://abap-explorer.blogspot.com/&--
REPORT z_test_program.DATA:i_sellist TYPE STANDARD TABLE OF vimsellist INITIAL SIZE 0,i_header TYPE STANDARD TABLE OF vimdesc INITIAL SIZE 0,i_namtab TYPE STANDARD TABLE OF vimnamtab INITIAL SIZE 0.PARAMETERS: p_view TYPE viewname MATCHCODE OBJECT viewmaint OBLIGATORY.AT SELECTION-SCREEN.CALL FUNCTION 'VIEW_GET_DDIC_INFO' EXPORTING viewname = p_view VARIANT_FOR_SELECTION = ' ' TABLES sellist = i_sellist x_header = i_header x_namtab = i_namtabEXCEPTIONS no_tvdir_entry = 1 table_not_found = 2 OTHERS = 3 .IF sy-subrc <> 0. data: l_message type NATXT. CONCATENATE 'Table/View' p_view INTO l_message SEPARATED BY space. MESSAGE e001(00) WITH l_message ' not in the Dictonary'.ENDIF.START-OF-SELECTION.CALL FUNCTION 'VIEW_MAINTENANCE_CALL' EXPORTING action = 'S' view_name = p_viewEXCEPTIONS 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 i001(00) WITH 'Error while calling the view'. LEAVE LIST-PROCESSING.ENDIF.
Edited by: katigiri linganna on Apr 20, 2009 4:31 PM -
How to capture the data that the user modified in SM30(Maintenance view)
Hello experts,
I have a new requirement wherein when the user modifies a particular record in SM30(maintenance view)
it would also update that certain records in another table. For example, I modified the address
of record 1 in table1 so I need to automatically update that same record in table2. Help would be greatly appreciated.
Again, thank you guys and have a nice day!Hi again,
1. But how can I capture the data that was modified
Yes, u are right.
We will have to use the event,
'BEFORE SAVING'.
2. In that,
u must fire a select query,
from the same table,
for the same record.
3. In this, u will get the OLD DATA (which was already saved),
4. Using this,u can compare,
(either thru LOOP, or field by field)
to know, which field value has been changed.
regards,
amit m. -
Problem regarding updation of Z-table through maintenance view
hi ,
I m facing problem in updation of Z-table through maintenance view (SM30).
The scenario is that I have one customizing field in my Z-table which is checkbox.
Now I need to populate 2 fields in Z-table on tick of this checkbox and clicking of SAVE button.
For this I have created one module ''change_field'' in PAI.
Actually my database table is being updated but as soon as the control left my module all the updation that take place vanishes away.....
So please help me in this matter.Thanks for ur previous effort it is updating the database but its effect is not shown immediately on screen.After i referesh the transaction it is dispalying the data.
So can u please suggest me any way....
Now i have one scenario infront of me....
I need to restrict the data shown in maintenance view.
I think it would be same as pop-up window displayed when we tick on 2nd radiobutton ("ENTER CONDITIONS")
of intial screen of t-code SM30.
Please suggest what shud i do....
Thanks and reagrds,
Amit
Edited by: amit gupta on Jul 18, 2008 1:35 PM -
Retrieve data from a maintenance view
Hello,
I created a specefic table.
i want to add a check when deleting lines from a maintenance view.
How to retrieve selected data ?
thanks,
Meriem.Hello Sudeesh,
I think i must use extract table and Field Symbol <XMARK>.
Can any body give an exemple.
thanks,
Meriem. -
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 -
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 -
Is it possible to maintain table data in a maintenance view
hi all,
is it possible to maintain data in a table by using maintenance view.Hi,
if you maintain texts of your objects in different languages it's better to use a maint. view:
example
1) ZTAB01 - CU-Data
2) ZTAB01T - texts to CU-Data
3) ZTAB01_V - maint.-view of 1) and 2)
hope that helps -
Can I manipulate data in a table maintenance view (SM30)?
Hi Everybody,
I have a "z" transparent table with 3 fields:
Field 1: User
Field 2: Name
Field 3: Address
In its maintenance view (SM30) I want next:
When I capture the "User", I want to populate the "Name" and "Address" automatically. (Obviously with a previous calculate of "Name" and "Address")
Is it possible? How?check this blog
Extracting data in Table maintenance -
Refresh data in Table Maintenance view
Hi,
I have created a table maintenance view for db table A and added my function button to this view. When I click the button I append a few records to the table A from table B. But this recoreds are not displaied in the view.
If I rerun the view I can see added records.
How I have to refresh the view to display added records?
Regards,
IlyaHi Jesus,
COMMIT WORK isn't help me.
I found that I have to use TOTAL and EXTRACT structures to modify data in maintenance view.
It's fine. I do something like this in my FM
MODULE 9CUSTOM_PF_BUTTON INPUT.
lt_total[] = total[].
lt_extract[] = extract[].
CASE function.
WHEN '9DOWNSH'.
modify lt_total from wa_total.
modify lt_extract from wa_extract
ENDCASE.
total[] = lt_total[].
extract[] = lt_extract[].
ENDMODULE. " 9CUSTOM_PF_BUTTON INPUT
But TOTL and EXTRACT tables contain data of the current maintenance view.
I work with a view cluster and I have to append or delete records from one view if I do something in other view.
How I can modify data one view from another maintenance view?
If I have modified database tables directly I don't see changes in the view cluster.
Regards,
Malnor
Edited by: Malnor on Nov 23, 2010 9:19 AM
Edited by: Malnor on Nov 23, 2010 9:38 AM
Maybe you are looking for
-
Query in Parameters in Oracle Forms 6i
Can any one explain me how to go with parameters in oracle forms 6i's Object Navigator.If explained with an example it will be of great help for me. Thanks, Prathap
-
IN-PLACE eDiscovery & hold Error
IN-PLACE eDiscovery & hold Error: Having Error 404
-
Help! Need a quick answer about motherboard + vid card
Hi everyone, Okay I am pretty scared right now. I got a new vid card, the MSI n9008gt. I also got a 6pin PCI connector for my power supply to power the card. I have a 450watt power supply. And my motherboard is a GeForce7050M. I put my card in, I att
-
Can I charge iPhone with old iPod charger
I left my iPhone charger at work. Can I use the charger from the 2nd gen iPod?
-
I had problems and firefox kept crashing along with other programs, I couldnt backup my bookmarks, fortunately they are on my Iphone 4, now my comp is working fine again how do I resync my bookmarks back onto my comp from the phone?