2014 Apr 02 2:45 PM
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.
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.
2014 Apr 03 6:04 AM
Hi vinod,
ABAP gives you a structure called SCREEN. It contains all the screen variables.Find out the field names and put it in the loop and make its visibility property as 0.
loop at screen.
if screen-name = ''.
screen-visible = 0.
endif.
modify screen.
endloop.
Regards,
Ravikiran.K
2014 Apr 03 7:37 AM
Hi Ravi,
as you said i had given SCREEN-VISIBLE but it is showing me error as screen doesn't contain component called visible,but there is a component called INVISIBLE.
2014 Apr 03 6:41 AM
Hi Vinod
Please provide the complete details. Where is this radio button..? Are you calling TMG via call transaction or some FM?
Nabheet
2014 Apr 03 7:21 AM
2014 Apr 03 6:51 AM
2014 Apr 03 6:52 AM
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.
2014 Apr 03 7:28 AM
Hello,
It is very difficult and unacceptable to make modification to generated code of TMG.
Also there will be a risk involved if the TMG is regenerated then custom code may be over written.
Better you develop a simple ALV grid report to maintain the table rather than going for changes into TMG.
Thanks,
Zuber
2014 Apr 03 10:45 AM
After Writing this code i got only the empty values for that particular field but i dont want the whole column.
Can any one help me in this.
2014 Apr 03 10:54 AM
Hi vinod,
Use screen-visible = 0. not screen-invisible.
Screen-invisible means data will not be visible. To hide column we have to use screen-visible = 0.
Regards,
Ravikrian.K
2014 Apr 03 12:17 PM
hi ravi ,
i accept your point but the thing is showing error as invisible doesn't exists.
Thanks,
Vinod Bhaskar.
2014 Apr 03 11:14 AM
Hi,
we can control how to access a field of TMG with the maintenance attribute.
Maintenance Attribute of a View Field - BC - ABAP Dictionary - SAP Library
Thanks
vijay
2014 Apr 03 11:21 AM
2014 Apr 03 12:00 PM
Hi vinod,
Just do like this , first go to tmg screen then uble clik on maintain screen then clik on tabcelementry list after simply uncheck u r required field.thats it
2014 Apr 03 12:34 PM
HI Vinod,
There might be few things which could be a problem,
1. Just check whetehre the field name is correct.
2. You can use only active property not invisble.
3. Just check in debug mode whether the code is executing perfectly.
Just make sure these things. Because i think except these there is no other mistake in code.
Regards,
Sri Hari Anand Kumar.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |