Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

tab strip control

former_member182412
Active Contributor
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

hi max,

could you please tell me how to set the default window size in bdc program.

Thanks in advance,

praveen.

0 Kudos

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

0 Kudos

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.