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 AIAB-Table control

Former Member
0 Likes
482

Dear Apapers,

I am trying upload data in AIAB t.code Via BDC.In table control.Tc visible in 17 rows upload no issues.After 18 yo 300 rows is not uploaded.I here send my code please correct it. How to upload bdc in table control.

Cnt = 0.

loop at it_record.

cnt = cnt + 1.

PERFORM bdc_dynpro USING 'SAPMA15B' '0110'.

PERFORM bdc_field USING 'BDC_CURSOR'

'AICOM-ANLN1'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=AUSF'.

PERFORM bdc_field USING 'AICOM-BUKRS'

'KSL'.

PERFORM bdc_field USING 'AICOM-ANLN1'

it_record-anln1.

PERFORM bdc_field USING 'AICOM-ANLN2'

'0'.

PERFORM bdc_field USING 'P_DISVAR'

'1SAP'.

PERFORM bdc_field USING 'ANLB-AFABE'

'1'.

PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.

PERFORM bdc_field USING 'BDC_CURSOR'

'07/03'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=&ALL'.

PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.

PERFORM bdc_field USING 'BDC_CURSOR'

'07/03'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=BURG'.

PERFORM bdc_dynpro USING 'SAPLKOBS' '0130'.

IF cnt > 17. " CODE FOR SCROLLING

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'/00'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=P+'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=YES'.

Cnt = 1.

ENDIF.

concatenate 'COBRB-KONTY( ' cnt ' ) ' into fld.

perform bdc_field using fld it_record-konty.

concatenate 'DKOBR-EMPGE( ' cnt ' ) ' into fld.

perform bdc_field using fld it_record-empge.

concatenate 'COBRB-PROZS( ' cnt ' ) ' into fld.

perform bdc_field using fld it_record-prozs.

concatenate 'COBRB-BETRR( ' cnt ' ) ' into fld.

perform bdc_field using fld it_record-betrr.

PERFORM bdc_dynpro USING 'SAPLKOBS' '0130'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=BACK'.

PERFORM bdc_dynpro USING 'SAPMSSY0' '0120'.

PERFORM bdc_field USING 'BDC_CURSOR'

'07/03'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=BUCH'.

PERFORM bdc_dynpro USING 'SAPLSPO1' '0200'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=YES'.

PERFORM bdc_transaction USING 'AIAB'.

regards,

max

1 REPLY 1
Read only

Former Member
0 Likes
336

Hi Raj ,

Please check out if it is possible to give the input as ' individual records' instead of list entries .

Table control may not work if the screen resolution of the user changes .The total number of records displayed on one screen may not be the same with the other system if the screen resolution changes.