In disable fields in table maintenance
Hi,
In table maintenace I have done with save user id and last changed date. Now I need to make this fields disable(in gray), means no it should not be edited manually in table maintenance. It should only pick up the system.
if any one have code for this and also in which maintain event i need to do this, please post me.
Thanks in Advance,
Ravi
hi,
in SE80
goto Function Group
then click on Screen
then click on Element List Tab
below u can see list of ur fields strting with ZTT-......
and against that u can have to uncheck the checkbox in INPUT column ......
so that the input for the field will be disabled..... when u go in edit mode......
if any query revert back........
reward points if useful.......:-)
and mark the post answered once ur problem is solved ....
Similar Messages
-
Disabling fields in table Maintenance generator
Hi Experts,
I would like to restrict some fields in table maintenance generator dynamically/ statically.
Here is the situation.
I have generated table maintenance for the table ZMARA and I have created three transactions for the above single table maintenance generator.
i.e .. Transaction --- Table
ZT1 --- ZMARA
ZT2 --- ZMARA
ZT3 --- ZMARA
I am using above three transactions in my module pool program. Based on the certain conditions I am calling different transactions i.e ZT1, ZT2, etc
Here is my requirement:
Suppose if I call ZT1 transaction, I need to display only few fields. i.e ZMATNR, ZMTART, ZPRODH.
or remaining fields should disable. User should not allow to change the content, even if it is new entries/existing entries. only ZMATNR, ZMTART, ZPRODH.
Suppose if I call ZT2 transaction, I need to display only few fields. i.e ZMATNR, ZMTART, ZHTSCODE
How can we restrict dynamically when you call table maintenance generator table through transaction
or
How can we generate table maintenance for few fields?
Edited by: r badveli on Mar 16, 2009 4:27 PM
Edited by: r badveli on Mar 16, 2009 4:27 PM
Edited by: r badveli on Mar 16, 2009 4:28 PMHi ,
go to Se11->Table maintenace generation. Double click on screen to edit and assign the field you want to display/hide to groups. In PBO , after the following lines..
LOOP AT EXTRACT WITH CONTROL
TCTRL_ZMARA CURSOR NEXTLINE.
MODULE LISTE_SHOW_LISTE.
ENDLOOP.
Write a new module in PBO and edit the SCREEN as per the Tcode, you are calling,,'
Hope this helps you
Rj -
Need to Disable field in Table maintenance generator
Hi Frds,
I have created a custom table .But i stuck at one point. In the TMG one field is User ID and next field is filled with Full name of this User ID(made it noneditable). To get user name i implement '01' event in TMG. and its working fine. But when i change the user ID in the row ramdamly the user name is not updated. its because Event not trigger.
Please help me by giving valuable suggestion either of two query.
1) When any row field value get change. Which TMG event trigger and capture the changed row
2) How can i make field disable once it get filled and saved.
Thanks
ImranHi,
When you create any entry in TMG event get occurred is 05 and if you are changing any row content than you have to use 01. And if you want to disable fields ,double click on overview screen number which is you have given when you created TMG and than it opens flow logic of screen than click on Element List tab and uncheck the fields which you wants dsiable in input column as i am attaching screenshot have a look at it.
in this user ID is unchecked.
Regards,
Shahezad -
How to disable some of the table fields in Table Maintenance Generator
HI,
I am creating one table which contains 10 fields.
But i wanted to disable some 2 fields in Table maintenance generator.
So can any one plz tell me how to disable those 2 fields.Generate a maintenance view for the table,
Goto- Table/Join Conditin Tab-- Put the name of your table
Goto-viewfield tab--- Put the fields whatever you required.
Then generate table maintenance for the view created.
pls chk
Thanks
Anurag -
How to hide a field from table maintenance view?
Hi,
How to hide a field from table maintenance view?
The field is used for data created date. I need to hide it from display.
ThanksChk this link.
http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
Maintenance Attributes
You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be H (hidden)
H (hidden)
A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
The system writes R and H fields to the database like all other fields when a new data record is saved. -
How to disable fields in Table control???
Hi
How to disable fields in Table control??? I want to disable particular row in table control when enter datas are correct.lets take as example ME41 or ME51 table control.
Can anyone tell how to do disable in this table control
Points will be rewarded if its helpful.
Thanks
senthilIf you want to disable the row then you can use
in pbo module create a module in side loop,
loop at itab with control tc.
module change_screen.
endloop.
in module,,,,,
loop at screen.
if condition.
screen-input = 0.
modify screen.
endif.
endloop.
Regards
Vijay -
How to hide fields in table maintenance generator dynamically.
Hello Experts,
I have one requirement and that needs to do dynamically display the fields in table maintenance generator based on the selected radio button.I have written the code in pbo but it is not working properly,can anyone figure me out in this.
Thanks,
Vinod Bhaskar.Hi vinod
when you are creating tmg , you will specific a function group name and sap generate a func group which contains that tmg . you can view in se80 , specifying function group name. In that , screen contains single screen 100 or two screen 100,200 .
screen you can create module in pbo .u can find all field name in that screen.
loop at screen.
if screen-name = ''.
screen-visible = 0.
endif.
modify screen.
endloop.
regards,
vijay. -
Search Help for field on table maintenance generator ECC 6.0
Hi All.
To maintain search help for a custom field on table maintenance generator.
Only through coding.
Cannot use domain or data element or table field search helps.
Have to code only.
Is there any way?
Can I do modifications/additions to screen code and achieve this?
Regards,
Veeranji Reddy P.Scenarion:
1. table with 2 fields.
2. table maintenance generator.
3. Function group with one screen(0001-mentioned in table maintenance) created.
4. For one field on table maintenance generator...where we add new entries to table, i want a search help.
Conditions : only coding has to be done..no search helps I can use.
Coding where and what?
one option is to code on the screen 0001- either in PBO/PAI.
Is it a rite place...? or any other option? But no search helps as mentiond in my first message can be used.
Thanks and Regards,
Veeranji Reddy P. -
Add field in table maintenance generator screen of maintenance view
Hi,
I am having a table with field user-id. I want to generate a maintenance view which will have corresponding user name as input disabled field. Since there are two tables USR21 and ADRP I need to access(not a direct check table) I will have to modify the code generated by the table maintenance generator.
Problem is that it is having one internal table EXTRACT at table control loop. That internal table cannot be accessed if you write a module inside the table control loop and try to catch. The error coming as EXTRACT is not object of structure and therefore no component. I tried to capture the value of the Loop but could not be successful. Any suggestion please.
Thanks,
AtanuHi,
sample:
MODULE LISTE_UPDATE_LISTE.
ENDCHAIN.
*--->begin of your change
CHAIN.
FIELD YTAB1-BILKS .
FIELD YTAB1-BILKH .
module check_bewar ON CHAIN-input. "your checks
ENDCHAIN.
*-----> end of your change
ENDLOOP.
MODULE LISTE_AFTER_LOOP.
-> module check_bewar is in an includ z123_INCL
Regards Andreas -
Open T-code on double click of field in table maintenance
Hi Gurus,
I have one scenario, I have to show a transaction on double click event on a field of Table Maintence.
Please guide me in this .
Is there is any event in Table Maintenance Events to capture double_click of a field.
Regards,
Sowmen1. In the field attributes of the particular field there is a chechbox in display tab which says respond to double click, check that.
2. Assign the fuction code "PICK" for function code F2 in GUI status.
3.Now whenver you double click the field function code "PICK" gettes triggeed.
Now you can wrie yyou code based on this function code.
CASE sy-comm.
WHEN 'PICK'.
*If you want the name of the field and the value in that field use the below code.
GET CURSOR FIELD gv_field VALUE gv_cursor_value.
*DO your operation based on the field and the value.
ENDCASE.
Regards,
Smithesh -
Max nos of fields in table maintenance generator screen
Hello,
Is there any restriction on the number of colums(fields) to be displayed in the screen of table maintenance?
Actually, I am having a Ztable with some 100 fields and when I generate the table maintenance using Single Screen, it give me error for dynpro creation. But it works with 68 or less fields.
Can anyone help me out in this?
Thank You.
reg,
PankajHi,
you can change your table:
if your table is like glt0 or lfc1,
you can assign month to key of the table :
FIELD KEYFLAG
MANDT X
BUKRS X
GSBER X
GJAHR X
WAERS X
MONAT X "<-
WRBTR
Andreas -
Missing Date fields in table maintenance generation
I have some non-key date fields in my custom table and have noticed that they do not get generated on the overview screen of my two-step table maintenance dialog. They are present on the detail screen.
If I change the domain of the fields to CHAR they appear.
If I change the maintenance type to one-step they appear.
It seems it is standard behaviour for date fields to be omitted from the overview screen.
Can anyone confirm that this is standard behaviour or give an explanation for date fields being treated in this manner?...or come up with a way of including the fields on the header screen.
I already know that I can:
1. customize the screen to include the fields
2. create a non-date domain for the fields which uses date-type calendar dropdown
Thanks,
NeilThankyou Jonathan, I would have been too lazy to go into debug if I didn't have the form name you supplied! It wasn't the reason you suspected but it was failing the following check in that routine:
maintenance in list screen required?
CHECK p_tvdir-type = one_step_maint OR
( <w_dfies>-keyflag NE space "force only keyfields
OR ( 'CHARNUMC' CS <w_dfies>-datatype "and view char-fields
AND p_skip_fields = space )
OR ( 'CHARNUMC' CS <w_dfies>-datatype "and view char-fields
AND <w_dfies>-intlen GE 20 ) "int 3263961/2000
OR <w_dfies>-rollname = 'BEGDA' "time dependence
OR <w_dfies>-rollname = 'ENDDA' "time dependence
OR <w_dfies>-tabname NE p_gencb-viewname ). "or text table field
Because the datatype was DATS.......looks like it will only include key fields and CHAR, NUMC non-key fields or those with a rollname of BEGDA/ENDDA or texttable fields. In debug I changed the datatype to CHAR and it generated with my field included. I think there might be an OSS note to fix this but haven't found it yet. -
Currency field in Table maintenance generator
Hi,
I have created a table with fields amont and currency..When I create generate the table maintenance for this table I am not able to see currency and amounts field on the generated screen. Please do help me whats missing from my end.
raghumake the foriegn key for the currency TCURC
This was for those whose currency keys are not maintained
Resaon might be the Currency is not maintained in the table TCURC
they can be maintained in SPRO
SAP Netweaver - > General Setting - > Currencies - > Check Currency Codes
Regards
- Gopi -
How to Set Position Cursor Option to Non key fields in Table Maintenance .
Hi,
I have created a Ztable and i am using table maintenance for that table. In TMG ,by default we have position cursor option to key fields only . User wants that position cursor option for non key fields also. Please help me out of this issue .
How to provide Position Cursor option to Non key fields.
Thanks & Regards,
Prasad.Hi Nabheet,
I tried using TYPE S DISPLAY LIKE E and am setting vim_abort_saving as X and sy-subrc as 4. However, this is also not enabling the fields. In this case, the first 2 fields - key fields are getting enabled but not the required ones. The above snapshot is for the same.
lv_date1 = table1-date1.
lv_date2 = table1-date2.
lv_diff = lv_date2 - lv_date1.
IF lv_diff LT 0.
CLEAR: lv_err_msg.
lv_err_msg = text-005.
MESSAGE lv_err_msg TYPE 'S' DISPLAY LIKE lc_e.
vim_abort_saving = lc_x.
sy-subrc = 4. -
Validating non key fields in table maintenance generator
Hi,
I ma using events for table maintenance generator event 05 ,there i want to validate non key fields ......i am throwing error message ....all the non key fields are getting in display mode ...i need them to enable to enter values ....
please suggest
Thanks,
Shailaja Ainala.Hi Shailaja,
Its property of error message, which makes it as non-editable.
You can display either status or info message after validation check.
And finally before saving (before save event) display error message, so that it invalid entries doesnt get saved.
Thanks,
Nisha Vengal.
Maybe you are looking for
-
ITunes 11 will no longer rewind in stop/pause mode !
iTunes used to be able to rewind while in stop/pause mode : alt cmd arrow left would rewind 5 seconds. I use it on a daily basis for transcribing music. Now, I suppose because of iTunes 11 (or is it Mountain Lion..?) rewind is only possible in play
-
Nothing is known as a reason, suddenly it was only a little part of the display, so I can't use the iPhone. I have done a reset to the situation how I bought it, and after that a new synchronisation. But nothing has changed... Do you have a solution
-
ICM_HTTP_INTERNAL_ERROR in SM59 Transaction
Hello guys, I am getting a ICM_HTTP_INTERNAL_ERROR, when I try to test a RFC Destination (Connection Type G) - HTTP Connection to Ext. Server. We are trying to connect to an external URL with a path prefix and service number, with SSL (Active ANONYM
-
Report S_ALR_87012993
Hello, We are using report S_ALR_87012993 for investment orders to know the actual costs and the plan costs. But in this report we have all the inv. orders (open and close) and if we want to know only the open orders what report can we use? *We want
-
i have MacBook Pro (15-inch, Mid 2010) i7 , 2.6 GHZ, 8GB RAm, 500GB, I try to install mavericks it be come slow, Let me know the reason