2013 Nov 04 6:30 AM
Hi Experts,
I have a requirement, where i need to create a check box in TMG. Please guide me ???
Kind Regards,
Ajit
2013 Nov 04 6:39 AM
Hi Ajit,
you need a field in your table or view, that can only keep values SPACE and X.
Create TMG in normal way. You will create one or two screens mmmm (and nnnn) in function group xyz.
After that call tcode SE51 and change the screen attributes of your table field to checkbox.
(Program name SAPLxyz, screen number mmmm or nnnn.
Regards,
Klaus
2013 Nov 04 7:14 AM
2013 Nov 04 6:43 AM
For the field of the table for whom you need a check box in TMG, change the data element of the same to be "FLAG". I guess TMG will automatically populate the same as checkbox.
Cheers!
Abhinab
2013 Nov 04 6:50 AM
Hii Ajit,
You can diplsay a field as check box in TMG.If this is your requirement then do the followings,
In your custom table for which you are creating TMG , create a dataelement for that field (Displaying as check box) and domain with datatype as CHAR length 1.
Now in value range as shown below
Now create your TMG and amintain it in SM30.
Your filed will be diplayed as Check box in TMG as shown in output
regards
Syed
2013 Nov 04 6:53 AM
Hi Ajit,
Do it in below way.It will solve ur requirement.
Scenario: To maintain a field as a checkbox in the transaction SM30 (as shown below)
Procedure:
Create a domain for the field that you want to display as checkbox in SM30, with values “X” and “ “ (blank).
DOMAIN-VALUE RANGE ---- Maintain X or Space.
Now create a data element with this domain.
Use this data element to define the field in the actual table.
Now create table maintenance generator for this table.
Thanks
Tarak
2013 Nov 04 6:55 AM
Hello Ajit,
Please follow this;
1) Go to SE11 and create a table. Let's say Table Name = "ZTEST".
2) Create Field with Fieldname = ZCHECK of Data Element = CHAR1. This would be your checkbox field.
3) Got to Table Maintanance Generator. Create the Function Group = ZFNGRP (for example), and define the screen number. For example you selected "one step" and put the screen number = 1010.
4) Activate and come out.
5) Goto SE80 and Select Function Group. and Put the function group name = ZFNGRP and click "enter".
6) The Function group "ZFNGRP" would be displayed with all objects under it. This is SAP defined function group which is created due to creation of Table Maintanance = ZTEST.
7) Now go to screen and select screen Number = 1010 and click on "enter".
😎 Once the screen is displayed, select "Layout" of the screen from top and you will be redirected inside the screen.
9) Delete the column from table control which is created with fieldname ZTEST-ZCHECK. You need to create one column with "Checkbox" attribut and assign fieldname ZTEST-ZCHECK. So you delete the original column that was created.
10) On the left side of screen you would see all the screen atrributes. Select the "Checkbox" and drag it to your table control. Then click on it and change the attributes so that it is assigned to field name ZTEST-ZCHECK.
11) Save and Activate.
Hope this helps.
Message was edited by: Anirban RoyChoudhury
2013 Nov 04 11:07 AM