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

errors comes when populating bdctable

Former Member
0 Likes
413

hi,

in bdc programming when i popolating bdctable by using

this

PERFORM POPULATE_BDCTABLE USING:

'1''sapmf02d''0101',

''' rf02d-kunnr ' w_kna1-kunnr,

''' rf02d-d0110 ''x',

''' bdc_okcode ''/00',

'1''sapmf02d''0110',

'''kna1-land1''w_kna1-name1',

'''kna1-ort01''w_kna1-ort01',

'''kna1-pstlz''w_kna1-pstlz',

'''bdc_okcode''/11'.

a error comes that

Different number of parameters in FORM and PERFORM (routine:

POPULATE_BDCTABLE, number of formal parameters: 3, number of actual

parameters: 1).

what is this error plz explain to me and plz give its solution.

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
391

You just need to separate those parameters with a space

Insted of '1''sapmf02d''0101',

put '1' 'SAPMF02D' '0101',

You should also use UPPER CASE letters .

Hope it helps

2 REPLIES 2
Read only

Former Member
0 Likes
391

Hi Zuhi,

Since im not much clear with your code, I will just say how i will proceed. If it helps you, i will be so happy.

Coding Part:

  • To Populate the BDC Table:

PERFORM bdc_dynpro USING 'SAPMF02D' '0110'.

PERFORM bdc_field USING 'BDC_CURSOR'

'KNA1-SPRAS'.

PERFORM bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM bdc_field USING 'KNA1-NAME1'

wa14_stab-name1.

PERFORM bdc_field USING 'KNA1-SORTL'

'SE'.

PERFORM bdc_field USING 'KNA1-ORT01'

wa14_stab-city1.

PERFORM bdc_field USING 'KNA1-PSTLZ'

'64104'.

&----


*& Form bdc_dynpro

&----


  • Function to include the form for the DYNPRO

----


FORM bdc_dynpro USING program dynpro.

bdc_tab-program = program.

bdc_tab-dynpro = dynpro.

bdc_tab-dynbegin = 'X'.

APPEND bdc_tab.

CLEAR bdc_tab.

ENDFORM. " bdc_dynpro

&----


*& Form bdc_field

&----


  • Function to include the form for the FIELD

----


FORM bdc_field USING fnam fval.

bdc_tab-fnam = fnam.

bdc_tab-fval = fval.

APPEND bdc_tab.

CLEAR bdc_tab.

ENDFORM. " bdc_field

This particular code will populate the BDC Table.

Read only

Former Member
0 Likes
392

You just need to separate those parameters with a space

Insted of '1''sapmf02d''0101',

put '1' 'SAPMF02D' '0101',

You should also use UPPER CASE letters .

Hope it helps