Application Development and Automation 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: 
Read only

BDC Table control using page down

Former Member
0 Likes
1,516

HI Apapers,

I am Using t.code AIAB. t.code based on table control.I upload 100.records.its only allowing for 17 records.Reason is first page 17 line items only. but i am using in Case ok code P+ is no effective. Please tell me how to resolve the issues.

Code: cnt is my line items.(using concatinate statement) is working fine "

IF cnt > 17.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'/00'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=P+'.

endif.

regards,

raj.

3 REPLIES 3
Read only

Former Member
0 Likes
605

hi. can you try erasing

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'/00'.

Read only

Former Member
0 Likes
605

hi ,

your code needs a refinement in handling hte cursor positions with the appropirate field positon.

perform bdc_field using 'PLPOD-LTXA1(01)'

this is a normal recording procedure .. (01) here indicates place holder for 01 position ..

now for filling 10 line the code should be

perform bdc_field using 'PLPOD-LTXA1(10)'

so to achieve this u need to modify the code (xx) to the number u want to populate by concatenation the count

'PLPOD-LTXA1 ( xx ) as some wa_ltxa1

perform bdc_field using W_LTAX1 .

and this should be breaked up populating the count no passing it dynamically . in interval of 5 or some minimum no u should use the code of page scrolling .. this count is intermediate count .. suppose say from 10 - 15 records this should be scrolled once ..

and 15-20 again once ..

//

IF cnt > 17.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'/00'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=P+'.

endif

// this count will do once and every no greate than 17 which should not be the case ..

use the bdc cursor and clear of the count as and when necessary ..

br,

vijay.

Read only

Former Member
0 Likes
605

1.Click new line button

2.Enter record

3. Click new line button again

4. enter the reocrd

Repeat this this you have entered all the records...

Just sumilate the above steps in the BDC recording(Use Tcode: SHDB)and use in you program.

Regards,

Gurpreet