05-21-2009 8:55 AM
Hi,
How can we handle table control in BDC,If i have the transaction like
1>having scroll bar
2>having InsertButton for the tablle control
3>Even though if we have scroll bar or Insert button(+) , is there any limit for the number of rows in table control
or can we insert as many records as we want?
If there is limit how can we identify ,what is the limit of table control.
4>How can we know for table control ,how many records are inserted for each scroll down or Insert button.
i think it varies accroding to the resolution.How can we handle this
Thanks
05-21-2009 9:02 AM
Hi,
Click [here|https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/usingTableControlinBDC] for the solution. its a complete program regarding table control in BDC
05-21-2009 9:08 AM
Hi,
In many transactios u will have ENTER LINES button. U can find the function code of it and use it. That works like after entering each line in table control u will press that. so table control enteries will be visible for 2 enteries at a time.U do not want to worry for the resolution or anything.
Regards,
Nithya
06-17-2009 7:09 AM
Hi Nithya,
If i press enter lines button , every time the fields names are field(01) or incrementing
06-17-2009 7:18 AM
Hi,
For first field it will be 01 and from the second field it will be 02 for all.
Regards,
Nithya
05-21-2009 9:17 AM
05-21-2009 9:23 AM
05-21-2009 9:28 AM
Hi,
While Recording the Tcode, use the scroll bar or use the insert button of the table control.
This will be recorded in your bdc steps.
While writing the code, try to loop your internal table, so that you can pass all the records to the
table control.
The limitation of the table control will be based on the number of line items u have passed in the loop.
Thanks,
Mohanraj.N
05-21-2009 9:40 AM
Hi ,
You can use INSERT LINEs of the table control.
In the Table control after filling each row you need to click the INSERT LINEs push button
to for filling the new line from you BDC program.
Other wise you can scrool the table control once all the lines of the table control are filled.
I sujjest you to use the INSERT LINEs from your BDC program because it does not
change SCREEN SIZE.
Check the link -
[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fwiki%2fsdn_wiki%2fwiki%2fdisplay%2fabap%2fbdc%2btable%2bcontrols%2busing%2bthe%2bnew%2bline%2bbutton%2bon%2bthe%2bgui%2bstatus]
Regards
Pinaki
05-21-2009 1:34 PM
Hi Rama Krishna,
While recording the scroll bar will not be recorded.
There is no limit for the number of records,depends on configuration
say suppose the visible lines are 16 then after pressing the new-page then again 16 lines will be available which includes one of the previous lines.
the logic can be as
loop at it_tab.(say 100 records are there)
steps to be executed for table control.
I hope u know hw to capture the line no into v_no.
if v_no = 16.(visible lines)
step for new-page.
endif,
endloop.
Example :
IF V_COUNT = '13'. "Counter reached visible lines
PERFORM BDC_FIELD USING 'BDC_OKCODE' " For New Document Number
'=FDPE'.
V_COUNT = 1.
Hope this will be helpful.
06-17-2009 7:22 AM
How can we know the visible lines in table control dynamically.
Is there any maximum limit that tabe control can handle.If yes how can we know that