04-17-2012 8:10 AM
Hi
I have created bdc program in FM .
After the below statement it is going to dump.
subrc = 0.
PERFORM bdc_field USING 'RP50G-PERNR'
<fs>-pernr.
FORM BDC_FIELD USING FNAM FVAL.
IF fval <> NODATA_CHARACTER. " After This Line coming Dump
CLEAR BDCDATA.
BDCDATA-FNAM = FNAM.
BDCDATA-FVAL = FVAL.
APPEND BDCDATA.
ENDIF.
ENDFORM.
Error
Unable to interpret "/" as a number.
and also am using standard include program BDCRECXY in my FM
How i can resolved .
Thanks
Sandy
04-17-2012 8:32 AM
Always
call the form BDC_FIELD with the value of type BDC_FVAL.
The target assignment below should always match.
BDCDATA-FNAM = FNAM.
Solution below. Check if it works
L_V_FIELD TYPE BDC_FVAL.
WRITE <fs>-pernr TO L_V_FIELD
PERFORM bdc_field USING 'RP50G-PERNR'
L_V_FIELD.
04-17-2012 8:23 AM
Hi Sandy,
May i know what is the value of "NODATA_CHARACTER". apart from this pl check whether fval and NODATA_CHARACTER are same datatype.
Thanks
Sridhar
04-17-2012 8:32 AM
Always
call the form BDC_FIELD with the value of type BDC_FVAL.
The target assignment below should always match.
BDCDATA-FNAM = FNAM.
Solution below. Check if it works
L_V_FIELD TYPE BDC_FVAL.
WRITE <fs>-pernr TO L_V_FIELD
PERFORM bdc_field USING 'RP50G-PERNR'
L_V_FIELD.
04-17-2012 8:44 AM
Check your program
parameters: NODATA_CHARACTER default '/' .
change default value to space. It should work,
Regards,
Shaik
06-11-2013 8:37 AM