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 define data objects in programm to available on Screen in module pool

0 Likes
532

Hi,

I have created a module pool program and created a screen and tab strip,

And system will automatically created some data objects in data include and they are availble in screen's dictionary/program fields window.

But I have created a new data strucuture object as below,

Data:begin of gt_test,

          name type char1,

end of gt_test.

And when I check this data object in dictionary/program fields window in the screen it shows this type but fields inside the structure are not displaying correctly..And i got to know that fields inside the structure are overide from structure above it.

ex:

"This is autogenerated from the program for tabstrip,,,,

DATA:BEGIN OF g_tab_strip,
        subscreen   LIKE sy-dynnr,
        prog        LIKE sy-repid VALUE 'SAPMZ_SL_PROFORMA',
        pressed_tab LIKE sy-ucomm VALUE c_tab_strip-tab1,
      END OF g_tab_strip.


*-- Created by me ------------------------


Data:begin of gt_test,

          name type char1,

end of gt_test.

If I check dictionary/program fields window in the screen gt_test is overide by the fields of g_tab_strip.


Please help me.


Thank you.


Hi,

I have created a module pool program and created a screen and tab strip,

And system will automatically created some data objects in data include and they are availble in screen's dictionary/program fields window.

But I have created a new data strucuture object as below,

Data:begin of gt_test,

          name type char1,

end of gt_test.

And when I check this data object in dictionary/program fields window in the screen it shows this type but fields inside the structure are not displaying correctly..And i got to know that fields inside the structure are overide from structure above it.

ex:

"This is autogenerated from the program for tabstrip,,,,

DATA:BEGIN OF g_tab_strip,
        subscreen   LIKE sy-dynnr,
        prog        LIKE sy-repid VALUE 'SAPMZ_SL_PROFORMA',
        pressed_tab LIKE sy-ucomm VALUE c_tab_strip-tab1,
      END OF g_tab_strip.


*-- Created by me ------------------------


Data:begin of gt_test,

          name type char1,

end of gt_test.

If I check dictionary/program fields window in the screen gt_test is overide by the fields of g_tab_strip.


Please help me.


Thank you.


1 REPLY 1
Read only

Former Member
0 Likes
508

What is your requirement? are you trying to display some data in the tabstrips based on the input name or something??