‎2007 Apr 20 5:49 AM
Hi Friends,
I used table control wizard in my module pool program. I can also display the data in the table control, But I am not able to see my vertical scroll bar of the table control, where I am missing some data what I capture in the final internal table.
Kindly help me how to solve this issue.
Regards,
Line
‎2007 Apr 20 1:30 PM
Hi...
Just write down this code
<b>table_control_name -v_scroll = 'X'.
table_control_name-LINES = ITAB-LINES</b>
‎2007 Apr 20 5:53 AM
Hi
Goto screen layout of Table control & there will be option for vertical scroll bar.
Please mark it checked, you will get the vertical scroll bar, if record exceeds the displayed records at a time.
Thanks
Sandeep
Reward if helpful
‎2007 Apr 20 5:54 AM
Hi,
Look at the demo Programs ....
demo_dynpro_tabcont_loop
demo_dynpro_tabcont_loop_at.
Reward me ,if it is useful.
Regards
Vinoth
‎2007 Apr 20 5:56 AM
‎2007 Apr 20 5:57 AM
Line,
set the more lines than visible line, then you get the vertical scrollbar .
if there are visible lines in table control is 20 lines, then give
DATA FILL TYPE I.
Then in PBO of the table control write the code like this
&----
*& Module STATUS_1000 OUTPUT
&----
text
----
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
Here you r filling the fill field with the no of lines in internal table.
DESCRIBE TABLE <internal table name> LINES FILL.
Here assigning that lines to the tablecontrol.
<tablecontrol name>-LINES = FILL.
ENDMODULE. " STATUS_1000 OUTPUT
Don't forget to reward if useful..
‎2007 Apr 20 5:58 AM
Line,
set the more lines than visible line, then you get the vertical scrollbar .
if there are visible lines in table control is 20 lines, then give
DATA FILL TYPE I.
Then in PBO of the table control write the code like this
&----
*& Module STATUS_1000 OUTPUT
&----
text
----
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
Here you r filling the fill field with the no of lines in internal table.
DESCRIBE TABLE <internal table name> LINES FILL.
Here assigning that lines to the tablecontrol.
<tablecontrol name>-LINES = FILL.
ENDMODULE. " STATUS_1000 OUTPUT
Don't forget to reward if useful..
‎2007 Apr 20 8:28 AM
Hi MuraliKrishana,
I tried with your coding even I have the same value.
Regards,
Line
‎2007 Apr 20 6:01 AM
Hi Line,
syntax:
CONTROLS .
if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.
u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.
Check these link:
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://www.sap-img.com/abap/question-about-bdc-program.htm
http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
http://www.planetsap.com/bdc_main_page.htm
Hope this resolves your query.
Reward all the helpful answers.
Regards
‎2007 Apr 20 6:03 AM
Hi Line,
Otherwise, Check this coding.
WA_CTU_PARAMS type ctu_params.
WA_CTU_PARAMS-DISMODE = 'N'. "no screen mode
WA_CTU_PARAMS-UPDMODE = 'S'. "synchronous update
WA_CTU_PARAMS-NOBINPT = 'X'.
WA_CTU_PARAMS-NOBIEND = 'X'.
WA_CTU_PARAMS-DEFSIZE = 'X'. "Default size
CALL TRANSACTION 'VA01' USING it_bdcdata
OPTIONS FROM WA_CTU_PARAMS
MESSAGES INTO it_mesg.
Default size will play good role in terms of resolution. in one system in table control you can see 10rows, but in others system it will show 20 records. it depends on resolution. but when you set the default size then it will take same (default screen size) in all the systems when you run BDC.
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards
‎2007 Apr 20 1:30 PM
Hi...
Just write down this code
<b>table_control_name -v_scroll = 'X'.
table_control_name-LINES = ITAB-LINES</b>