Skip to Content
0
Former Member
Jun 30, 2006 at 06:55 PM

Program termination in BDC upload

29 Views

Hi ,

i am using the BDC method to upload data into infotype table pa2010 . on the selection screen of the include of the BDC method i.e INCLUDE bdcrecx1 there is field called NoDataIndicator as / . In the program i am doing some calculation to get no of hours worked like .

IF NOT record-stdaz_006 IS INITIAL.

v_days_006 = record-stdaz_006 / v_arbst.

PERFORM bdc_field USING 'P2012-ANZHL' v_days_006.

ELSE.

v_days_007 = record-anzhl_007 / v_arbst.

PERFORM bdc_field USING 'P2012-ANZHL' v_days_007.

ENDIF.

the program is terminating when it coming to ' / ' in the calculation part and shows the error in

FORM BDC_FIELD USING FNAM FVAL.

IF FVAL <> NODATA. -


error is shown at this point

CLEAR BDCDATA.

BDCDATA-FNAM = FNAM.

BDCDATA-FVAL = FVAL.

APPEND BDCDATA.

ENDIF.

ENDFORM.

when i remove the / in the selection screen it is not showing error . Please advise me on this how to handle as i want the option nodataindicator as / on the selection screen .