‎2009 May 21 5:45 AM
Hi All
I am modifying TCode PA30. Some fields & 2 table controls are added in new screen.
When displaying the data, only the data of the fields are getting displayed but data of table control in not displayed.
Instead a message in Status Bar is showing "Data hidden by Screen Modifications".
Any suggestions.?
Regards.
‎2009 May 21 6:51 AM
Hai nikhil,
Can you please mention the BADI or exit that you used for modification, that would be quiet useful.
Warm Regards,
Suvendu
‎2009 May 21 6:58 AM
Hi Suvendu
I have created new Infotype using TCode PM01.
It automatically creates a default screen. After that I have added some fields & table controls.
Regards.
‎2009 May 22 5:10 AM
Hi
The data is not getting populated in table control.
Is the code correct?
LOOP AT T_ARBZT
WITH CONTROL TARB
CURSOR TARB-CURRENT_LINE.
MODULE TARB_get_lines.
ENDLOOP.
MODULE TARB_GET_LINES OUTPUT.
DESCRIBE TABLE T_ARBZT LINES g_tarb_lines.
ENDMODULE.
‎2009 May 22 5:46 AM
Hi Nikhil.
Small change to your code
LOOP AT T_ARBZT
WITH CONTROL TARB
CURSOR TARB-CURRENT_LINE.
MODULE TARB_get_lines.
ENDLOOP.
MODULE TARB_GET_LINES OUTPUT.
DESCRIBE TABLE T_ARBZT LINES g_tarb_lines.
Move-corresponding T_ARBZT to <table control table parameter>
ENDMODULE.
-
your table control must be having parameter
ex. MARA-matnr, MARA-ernam, MARA-erdat
then pass
Move-corresponding T_ARBZT to MARA.
-
This will surely solve your problem.
Cheers,
Suvendu
‎2009 May 22 6:59 AM
Thanks for reply Suvendu.
Actually my table control parameters are T_ARBZT-BEGDA, T_ARBZT-ENDDA etc....
In that case, what should I write?
‎2009 May 22 7:07 AM
LOOP AT T_ARBZT
WITH CONTROL TARB
CURSOR TARB-CURRENT_LINE.
MODULE TARB_get_lines.
ENDLOOP.
MODULE TARB_GET_LINES OUTPUT.
DESCRIBE TABLE T_ARBZT LINES g_tarb_lines.
Move T_ARBZT to T_ARBZT.
ENDMODULE.
OR
-
MODULE TARB_GET_LINES OUTPUT.
READ TABLE T_ARBZT INDEX tarb-current_line.
ENDMODULE.
-
try this incase if doesn't work then please revert back.
The problem is what I think the screen variable is carring nothing to the table control and therefore nothing is getting printed.
Best Regards,
Suvendu
Edited by: Suvendu Swain on May 22, 2009 11:41 AM
‎2009 May 22 7:48 AM
Dear Suvendu
I have tried these also, but again data is not coming in the table control.
When I'm checking IT, data is populating perfectly.
‎2009 May 22 10:16 AM
‎2009 May 24 7:20 AM
Just change your screen name to ARBZT and declare the same in TOP include
and try this code. I think the program is not able to make out with similar kind of names.
LOOP AT T_ARBZT
WITH CONTROL TARB
CURSOR TARB-CURRENT_LINE.
MODULE TARB_get_lines.
ENDLOOP.
MODULE TARB_GET_LINES OUTPUT.
Move T_ARBZT to ARBZT.
ENDMODULE.
OR
MODULE TARB_GET_LINES OUTPUT.
READ TABLE T_ARBZT INDEX tarb-current_line.
ENDMODULE.
Hope this works out.
Best of luck.
Suvendu
‎2009 May 25 4:55 AM
hi
try this
SE51
PBO
module_screen_0800.
module_display_screen.---> this module for screen modifications
whether to display in enable or disable mode.
PAI
module_user_command_0800.
module read_data.
se38
module_screen_0800.
loop at screen.
do screen modifications here
endloop.
endmodule.
module read_data.
read itab with key tablecontrol-currentline
if sy-subrc = 0.
move-corresponding itab to itab1.
endif.
endmodule.
Regards