Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Moving screen fields up in the screen

Former Member
0 Kudos

hi all,

wanted to know whether the following scenario is possible or not. if yes, then how?

i have 5 fields in a custom screen arranged in a sequential order one below other. my requirement is. in case, 2 of the middle field are invisible (or inactive) then below fields should move up.

for reference, if we see in MM01 and MM02 transaction, "Change Number" field moves up and down respectively. both the transaction uses same include and same screen. I tried using Group Id functionality however, was not able to acheive much.

do let me know anything related to above scenario.

thanks

Debs

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

I think you need to make use of dynamic screen generation concepts using the function modules SWY_CREATE_DYNPRO and RS_DELETE_PROGRAM .

Regards,

Ravi

10 REPLIES 10

Former Member
0 Kudos

I think its not possible to do this automatically.

what you can do is ..

delete the 2 fields and rearrange the other fields acordingly.

For this you can loop on SCREEN internal table and get the fields which are displayed.

0 Kudos

hi,

well, the scenario is we want to have middle 2 fields as editable for some condition like for particular Order type, we want them to be editable nd for rest, we dont want to display those 2 fields at all. hence, at present, we are getting huge gap in between just because we have hidden those 2 middle fields. we dont want any gap and hence need to move the fields up.

just to point out, rearranging the fields wont solve the purpose as it wud again result in same problem for order type condition,

former_member181962
Active Contributor
0 Kudos

I think you need to make use of dynamic screen generation concepts using the function modules SWY_CREATE_DYNPRO and RS_DELETE_PROGRAM .

Regards,

Ravi

0 Kudos

i think creating subscreen will help....based on your options, you can call subscreen

0 Kudos

well, creating a subscreen - are you referring to tab type screens or subscreen one below the other.

in case of subscreen one below other case, how to move a whole subscreen if the above subscreen is invisible???

0 Kudos

hi,

just u refar tab type screen that is enogh........

with regards

m.srikanth

0 Kudos

hi skikanth,

but then going for tab subscreens wud change the functional requirement.

we can atleast go for subscreens one below other. but then, in that case will it be possible to move whole subscreen up if some above subscreen is invisible....??

Debs

0 Kudos

Hi Debarya,

if you want to move the screen fields up then you can do that in two ways...

1. using Subscreens and you can make the sub screen active or inactive.

2. you can directly use the fields, assign them Groups and make them Inactive at run time using the PBO module. the fields which are below will be moved up automatically.

Regards

Vijay

0 Kudos

hi Vinay,

i tried using Group ids, but then it didnt work. will it b possible for u to provide me with some reference/ code for the same.

Debs

0 Kudos

Hi,

LOOP AT SCREEN.
        IF screen-group1 = 'GRP1'.
            screen-input = 0.
          ELSE.
            screen-active = 0.
          ENDIF.
      MODIFY SCREEN.
  ENDLOOP.

i did the same way it worked for me..

Regards

vijay