Skip to Content
0
Aug 13, 2007 at 07:01 AM

BDC related problem

20 Views

Dear friends

I am developing a bdc for the migo... here i am having one problem at the spliting time. as i am doing concatenation with index for passing the values to the table control of the screen, from the BDCDATA table i am receiving the error message ( 'L_FIELD doesnt find in the screen 1000). please see the code and tell me what i am supposed to do to rectify this issue,

LOOP AT int_record1 WHERE po_number = int_record-po_number AND

lfsnr = int_record-lfsnr AND

exnum = int_record-exnum AND

exdat = int_record-exdat AND

detail_zeile = int_record-detail_zeile.

l_index = l_index + 1.

PERFORM bdc_dynpro USING 'SAPLMIGO' '1000'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=OK_SP_CH'.

CONCATENATE 'GOSPLIT-ERFMG(' l_index ')' INTO l_field.

PERFORM bdc_field USING 'BDC_CURSOR'

'l_field'. <--- here i am inserting the values of screen field with the index to make this way 'GOSPLIT-ERFMG(1).

PERFORM bdc_field USING 'l_field'

int_record1-erfmg1.

CLEAR l_field.

CONCATENATE 'GOSPLIT-LGOBE(' l_index ') ' INTO l_field.

PERFORM bdc_field USING 'BDC_CURSOR'

'l_field'.

PERFORM bdc_field USING 'l_field'

int_record1-lgobe1.

CLEAR l_field.

CONCATENATE 'GOSPLIT-CHARG(' l_index ') ' INTO l_field.

PERFORM bdc_field USING 'BDC_CURSOR'

'l_field'.

  • 'GOSPLIT-CHARG'.

PERFORM bdc_field USING 'l_field'

  • PERFORM bdc_field USING 'GOSPLIT-CHARG'

int_record1-charg.

PERFORM bdc_dynpro USING 'SAPLMIGO' '1000'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=OK_GOON'.

ENDLOOP.

In the BDC data table i am receiving the output this way.

SAPLMIGO 1000 X

0 BDC_OKCODE #NAME?

0 BDC_CURSOR l_field

0 l_field 2

0 BDC_CURSOR l_field

0 l_field SGN1

0 BDC_CURSOR l_field

0 l_field A1

i think instead of the l_field value 'GOSPLIT-ERFMG(1) the modified value should be appear over there... can you please tell me how can i do this.

Any help will be appreciated,,,

Regards

Naeem