‎2007 Nov 27 11:50 PM
Hello Friends,
I have a BDC in Me22 , how I can find how much lines the table control from SAP will be displayed in foreground All display mode when processing BDC.
Based on this I need to populate only those lines & I will do the next page after that.
Regards
Prashant
‎2007 Nov 28 12:23 AM
Prashant,
Sometimes when working with table controls and BDC Sessions it is easier to do a new line command after every line in the table control. When doing this, you do not have to worry about increasing the index and doing a page down for the table control. Typically what happens is the second record in the table control is always the next available for input after the new line command.
Hope this makes sense and helps.
Best Regards,
Chris H.
‎2007 Nov 28 12:29 AM
Thanks Christopher,
But what about table control shows 10 input lines for some user & for someother it shows 15 lines.In such cases , I need to do a page down to fill the line.
I want all these lines always to be filled.
is there no mechanism that we can find the number of visible lines based on resolution?.
Regards
Prashant
‎2007 Nov 28 1:41 AM
Hi Prashant,
To always get the default screen size you can use the CTU_PARAMS structure in call transaction.
Just refer standard SAP help
DATA class_name TYPE c LENGTH 30 VALUE 'CL_SPFLI_PERSISTENT'.
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
<b>
DATA opt TYPE ctu_params.</b>
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPLSEOD'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'SEOCLASS-CLSNAME'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'.
bdcdata_wa-fval = class_name.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=CIDI'.
APPEND bdcdata_wa TO bdcdata_tab.
<b>opt-dismode = 'E'.
opt-defsize = 'X'.</b>
CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt.
Regards,
Atish