2005 Aug 02 4:25 AM
Hi all,
Im changing the subscreen from standard screen for mobile device interface, i.e. function group LMOB.
Originally before the changes, the screen 2212 in LMOB displays the fields that contain values and hides the fields that are empty.
But after Ive changed to use customized subscreen 1212 in function group XLRF, all the fields are displayed regardless if they contain values or not.
What should I do in order to have the same display as in the original one in my subscreen 1212?
Thanks in advance.
2005 Aug 02 4:38 AM
if <val of element1> = ''
loop at screen.
if screen-name = <element>
screen-invisible = 1.
endif.
endloop.
endif.
check if this works.
Remember to reward points to the answer(s) that helped you.
2005 Aug 02 4:52 AM
This is perhaps more refined -
if <screen_field> is initial.
loop at screen.
if screen-name = <screen_field>.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
Regards,
Anand Mandalika.
2005 Aug 02 4:58 AM
2005 Aug 02 4:59 AM
Hi,
I'd like to ask what is the <element> in
screen-name = <element> ?
2005 Aug 02 5:04 AM
Hi Macy,
The element that you're talking about is the name of the screen-field that you wish to hide. Obviously, there would be a program variable which will have the same name as the screen element (to support automatic data transfer between the screen and the program).
Regards,
Anand Mandalika.
2005 Aug 02 5:08 AM
Yes, as Anand put it rightly, it is the screen field I was referring to.
2005 Aug 02 5:46 AM
Hi all,
I have the fields defined in the subscreen.
But the logic of checking empty fields in in the PBO module in the main screen.
How could I pass the screen field in the subscreen to the PBO module in the main screen ?
2005 Aug 02 5:51 AM
Hi Macy,
Why don't you put the logic in the PBO of the subscreen instead ?
There's no concept of passing the data between the main screen and the subscreen. Since the main screen and the subscreen cannot have elements with the same name, there's no ambiguity.
Regards,
Anand Mandalika.