11-08-2006 9:44 AM
hi experts,
I am doing automatic debtor clearing using tcode f-32. in transaction f-32 second screen i need to select the items which i need to clear. how i know how many items fit in first page. because in my system its showing 16 items, but another user its showing 12 items. can anybody know this please help me.
Thanks & regards,
praveen.
11-08-2006 9:46 AM
Hi
It depends on the screen risolution of the pc.
When the screen was created, the developer decided how many rows can be listed in the table control, but this number menas the max number of items can be listed in each page.
So the user can see a number of items from 1 to max and this number depends on the resolutions.
If you're creating a BDC program u should use the option to set the default window size.
Max
11-08-2006 9:46 AM
Hi
It depends on the screen risolution of the pc.
When the screen was created, the developer decided how many rows can be listed in the table control, but this number menas the max number of items can be listed in each page.
So the user can see a number of items from 1 to max and this number depends on the resolutions.
If you're creating a BDC program u should use the option to set the default window size.
Max
11-08-2006 9:53 AM
Hi max,
How can i write in the program, i need to select 17 items.i write the code like this.
lt_item1 got line item numbers.
LOOP AT lt_item1.
lv_cnt = lt_item1-cind.
CONCATENATE 'DF05B-PSBET(' lv_cnt ')' INTO lv_field.
PERFORM bdc_dynpro USING 'SAPDF05X' '3100'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=PI'.
PERFORM bdc_field USING 'BDC_CURSOR'
lv_field.
PERFORM bdc_field USING 'RF05A-ABPOS'
'1'.
endloop.
after finish selecting first page its not selecting second page line items. iam getting error like this 'DF05B-PSBET(17) does not exist in the screen'.
could yoy please help me how can i write the code for this.
thaks in advance,
praveen.
11-08-2006 10:03 AM
Hi
U should try to understand the max row for every page and if you need to select a number of rows greater than max, you have to reset the counter.
I don't how you calculate lt_item1-cind, but your code should be:
index = 0.
LOOP AT lt_item1.
index = index + 1
if index > max.
index = 1.
* Here the code for new page
endif.
lv_cnt = index.
Max
11-08-2006 10:23 AM
hi max,
could you please tell me how to set the default window size in bdc program.
Thanks in advance,
praveen.
11-08-2006 10:54 AM
Hi
- CALL TRANSACTION:
TABLES CTU_PARAMS.
CTU_PARAMS-DISMODE = 'N'.
CTU_PARAMS-DEFSIZE = 'X'. <--- defaut size
CALL TRANSACTION .......USING ITAB
OPTIONS FROM CTU_PARAMS.
- Session method:
U have to set it when you run the session (trx SM35), but the system should set it by default.
Max
11-09-2006 6:48 AM
hi max,
i dont need to select all the items in the page because iam clearing oldest debit line item, so i need to select in first page some line items, in second page some line items, in third page some line items.
the maximum line items per page is 7.
lt_item1 got line item numbers like 1,2,3,4,9,10,12,16,18.
how can i write the code for this. could you please help me for this.
Thanks & Regards,
praveen.