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 IN Function Module

Former Member
0 Likes
953

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
Read only

Private_Member_49934
Product and Topic Expert
Product and Topic Expert
0 Likes
817

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
Read only

Former Member
0 Likes
817

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

Read only

Private_Member_49934
Product and Topic Expert
Product and Topic Expert
0 Likes
818

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.

Read only

Former Member
0 Likes
817

Check your program

parameters: NODATA_CHARACTER default '/' .

change default value to space. It should work,

Regards,

Shaik

Read only

Pratik_Ingawale
Participant
0 Likes
817

This message was moderated.