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

BDC dump

Former Member
0 Likes
588

Hi

I have created bdc program for fnfo t.code.

After the below statement it is going to dump.

svym value = 200907

perform bdc_field       using 'VDPOKO-SVYM'    SVYM.

FORM BDC_FIELD USING FNAM FVAL.
  IF fval  NE  NODATA_CHARACTER.       "after this line going to dump
    CLEAR BDCDATA.
    BDCDATA-FNAM = FNAM.
    BDCDATA-FVAL = FVAL.
    APPEND BDCDATA.
  ENDIF.
ENDFORM.

Error

Unable to interpret "/" as a number.

pls help me out

Edited by: Kumar k on Nov 21, 2009 5:09 PM

4 REPLIES 4
Read only

vinod_vemuru2
Active Contributor
0 Likes
539

Hi,

Replace the error statement like below.

Instead of IF fval NE NODATA_CHARACTER.

use IF fval IS INITIAL.

I am assuming NODATA_CHARACTER is constant/variable with blank value.

Thanks,

Vinod.

Read only

0 Likes
539

Hi Vinod

Thanks for ur reply.

I am using standard include program BDCRECXY.

fiel definition

DATA:   NODATA_CHARACTER VALUE '/'.

Read only

0 Likes
539

Hi,

System is trying to interpret the vaue in SVYM as a number(posting period) and comparing with character variable. So try to modify below code in your program.


perform bdc_field       using 'VDPOKO-SVYM'    SVYM. "Delete

l_charactervariable = svym.
perform bdc_field       using 'VDPOKO-SVYM'    l_charactervariable .

You may have to check and change all such type of fields.

Thanks,

Vinod.

Read only

0 Likes
539

solved myself