Application Development and Automation 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: 
Read only

How to create controls like input/output,Text dynamically in Module pool.

Former Member
0 Likes
593

Hi Gurus,

How to create controls like input/output,Text dynamically in Module pool.

I dont want to create static controls using screen painter.

using report program we can use by select-option where we can able to create controls dynamically too,

but in module pool prog,can not able to use select-option.

Is there any option like Create Objet so i can able to create instance of the control.

please send code if possible.

Thanks and Regards

Vinayak Sapkal

Hi Gurus,

How to create controls like input/output,Text dynamically in Module pool.

I dont want to create static controls using screen painter.

using report program we can use by select-option where we can able to create controls dynamically too,

but in module pool prog,can not able to use select-option.

Is there any option like Create Objet so i can able to create instance of the control.

please send code if possible.

Thanks and Regards

Vinayak Sapkal

4 REPLIES 4
Read only

Former Member
0 Likes
564

hi

I hope u can use selection screen as subscreen in module programs...

Check this link

[http://help.sap.com/saphelp_46c/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm]

Hope the content fullfills ur requirements and ensure that the thread is closed if ur issue is resolved...

regards

R@SAP

Read only

Former Member
0 Likes
564
Read only

Former Member
0 Likes
564

Hello Vinayak,


 
MODULE passdata OUTPUT.

  READ TABLE it_revision INTO wa_rev INDEX tab_clc-current_line.
  IF sy-subrc = 0.
    LOOP AT SCREEN.
      IF screen-group1 = '111'.      " 111 IS THE GROUP NAME
        screen-input = 1.            " input mode
        screen-active = 1.         " input mode.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 = '111'.       "GROUP NAME
        screen-input = 0.           " display mode
        screen-active = 1.          
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.


make a group for which field that you want to open for input mode.

Hope it will help you.

Thanks

Arun Kayal.

Read only

Former Member
0 Likes
564

Thanks guys...