Skip to Content
0
Former Member
Nov 06, 2005 at 07:14 AM

BDC Failing abruptly

37 Views

Hi Guys

i am doing a BDC to change a sales order.i am using this BDC in a Sales Order Change BAPI.the BDC works fine with the material number '1000000002' in the material field as shown below. but when i try passing the same material number in the FM which calls this BDC it fails.any clue why its acting like this?i also tried clipping the additional 0's as well keeping them.it just fails. please see the code below. the first one is working fine and the second one fails.any help will be greatly appreciated and ofcourse rewarded. thanks all

perform bdc_dynpro using 'SAPLV46R' '4001'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'BDC_CURSOR'

'V46R_ITEM-MATNR_G(02)'.

perform bdc_field using 'V46R_ITEM-MENGE(02)'

MENGE_02_012.

perform bdc_field using 'V46R_ITEM-MATNR_G(02)'

'1000000002' .

perform bdc_field using 'V46R_ITEM-VORGA_VAL_106(02)'

'X'.

and this one fails

perform bdc_dynpro using 'SAPLV46R' '4001'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'BDC_CURSOR'

'V46R_ITEM-MATNR_G(02)'.

perform bdc_field using 'V46R_ITEM-MENGE(02)'

MENGE_02_012.

perform bdc_field using 'V46R_ITEM-MATNR_G(02)'

MATNR_G_02_013.

perform bdc_field using 'V46R_ITEM-VORGA_VAL_106(02)'

'X'.

Thanks again