Wednesday, December 8, 2010

abap error Unable to interpret "/" as a number

Posted by Aries Wandari

I have batch bdc program to close PR, but always error on assigning PR item on ME52 screen “Unable to interpret / as a number”.

Below is screen where error happen, when PR item number inserted.

image 

My old itab already shows that bnfpo is like eban-bnfpo. Change it to character type did solve the problem.

data: begin of itab occurs 0,
             banfn like eban-banfn,
             'bnfpo like eban-bnfpo, 'error here
             bnfpo(5) type C,
        end of itab.

LOOP AT ITAB into wa_itab.

perform open_group.

perform bdc_dynpro      using 'SAPMM06B' '0105'.
perform bdc_field       using 'BDC_CURSOR'
                              'EBAN-BANFN'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'EBAN-BANFN'
                              wa_itab-BANFN.
perform bdc_dynpro      using 'SAPMM06B' '0106'.
perform bdc_field       using 'BDC_CURSOR'
                              'RM06B-BNFPO'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'RM06B-BNFPO'
                              wa_itab-BNFPO.
perform bdc_dynpro      using 'SAPMM06B' '0106'.
perform bdc_field       using 'BDC_CURSOR'
                              'EBAN-BNFPO(01)'.
perform bdc_field       using 'BDC_OKCODE'
                              '=DETA'.
perform bdc_field       using 'RM06B-BNFPO'
                              wa_itab-BNFPO.

perform bdc_field       using 'RM06B-TCSELFLAG(01)'
                              'X'.
perform bdc_dynpro      using 'SAPMM06B' '0102'.
perform bdc_field       using 'BDC_CURSOR'
                              'EBAN-EBAKZ'.
perform bdc_field       using 'BDC_OKCODE'
                              '=BU'.
perform bdc_transaction using 'ME52'.

endloop.

1 comments:

Denny said...

Hello there,
I have same problem on my custom table. I changed all fields data type but still issue is there. Please help how to resolve it.

thabk you

Post a Comment