Application Development 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: 

BDC DUMP IN Function Module

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Private_Member_49934
Contributor
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

Private_Member_49934
Contributor
0 Kudos

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.

Former Member
0 Kudos

Check your program

parameters: NODATA_CHARACTER default '/' .

change default value to space. It should work,

Regards,

Shaik

Pratik2228
Participant
0 Kudos

This message was moderated.