09-27-2006 8:13 AM
Hi,
I would like to fill select-options table of cjcf Transaction using BDC. After filling 8 records I have placed the cursor on 9 th record using P+ option . I have tried it using BDC_CUROSOR 'RSCSEL-SLOW_I(09)'. Cursor is going to 1st record again.How to place cursor in 9 th record of table control.
Regards,
Satya
09-27-2006 8:17 AM
Hi naga,
1. In case of select option,
do not write data in rows,
ONE AFTER OTHER.
2. Instead
3. Always write the new record,
on the top line,
by using insert/appropriate code/fcode.
4. This will shift all the records down,
5. and u will have no worries,
for taking care of 9th record, or further.
regards,
amit m.
09-27-2006 8:43 AM
Hi Amit,
Thanks for that. But If I do like this all my previous records are getting disappeared.
Have a look at this code.
LOOP AT g_t_lines.
PERFORM bdc_field USING 'RSCSEL-SLOW_I(01)' g_t_lines-from.
perform bdc_field using 'BDC_OKCODE' 'LIN'.
" This is for inserting new line in top
endloop.
09-27-2006 8:47 AM
Hi again,
1. it should be like this.
LINS (and not LIN)
2.
*----
DO 15 TIMES
DO 15 TIMES.
ctr = ctr + 1.
s = ctr.
PERFORM bdc_dynpro USING 'SAPLALDB' '3000'.
PERFORM bdc_field USING 'BDC_OKCODE' '=LINS'.
PERFORM bdc_field USING 'BDC_SUBSCR'
'SAPLALDB 3010SCREEN_HEADER'.
PERFORM bdc_field USING 'BDC_CURSOR' 'RSCSEL-SLOW_I(01)'.
PERFORM bdc_field USING 'RSCSEL-SLOW_I(01)' s.
ENDDO.
regards,
amit m.
09-27-2006 8:18 AM
it should be like this
i = I + 1.
RSCSEL-SLOW_I(I).
if I eq 8.
I = 0.
endif.
after every 8 rows u have to reset to 1, then only u can get the new records after P+.
regards
Prabhu
09-27-2006 8:28 AM
Hi,
In BDC table control, when you enter 8 records and press pagedown option the the control will come to the first record i mena the previous records will be there but this field 'RSCSEL-SLOW_I(01)' will come from first, so when you press pagedown button you need to pass it again 01 to this one.
so write the like,
define a variable and increase the variable in the loop, if loop triggers 8 time, then press the pagedown button and pass 01 to the variable 'RSCSEL-SLOW_I', so it will take this and insert the row.. do like this after every 8 records
Regards
Sudheer