Skip to Content
0
Former Member
May 14, 2013 at 09:45 AM

BDC code - Delete Customer Fax number

76 Views

Hello Experts,

I'm using BDC code to delete the Fax number of Customer (table KNA1 / ADRC) - Field TELFX.

But it is not deleting the Fax number. 😔

The same code is working for 'Change / Add' operations but not 'Delete'.

Here's my code:

PERFORM bdc_dynpro USING 'SAPMF02D' '0101'.

PERFORM bdc_field USING 'BDC_CURSOR'

'RF02D-D0110'.

PERFORM bdc_field USING 'BDC_OKCODE'

'/00'.

PERFORM bdc_field USING 'RF02D-KUNNR'

p_kunnr.

PERFORM bdc_field USING 'RF02D-D0110'

'X'.

PERFORM bdc_dynpro USING 'SAPMF02D' '0110'.

PERFORM bdc_field USING 'BDC_CURSOR'

'KNA1-TELFX'.

PERFORM bdc_field USING 'BDC_OKCODE'

'=UPDA'.

PERFORM bdc_field USING 'KNA1-TELFX'

' '.

test-dismode = 'N'.

test-updmode = 'S'.

CALL TRANSACTION 'XD02' USING g_t_bdcdata OPTIONS FROM test

MESSAGES INTO tab_mess AND SKIP FIRST SCREEN .

Please do let me know why DELETE is not working.

Please help.

Thanks & Regards,
Sowmya