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

reg va01 bdc program

Former Member
0 Likes
921

hi to all

while running bdc i am getting rabax

as

Unable to interpret "/" as a number.

The program attempted to interpret the value "/" as a number, but since the value contravenes the rules for correct number formats, this was not possible

i am trying to pass kwmeng value to bdcdata

i found this error

how to correct this error

regards

vijay

8 REPLIES 8
Read only

Former Member
0 Likes
871

Hi,

1. You cannot pass a special character to a number field. Some how you need get your data right.

2. Why are you not using a BAPI for this. BAPI_SALESORDER_CREATEFROMDAT2

Regards,

Ravi

Note : <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>

Edited by: Alvaro Tejada Galindo on Aug 15, 2008 4:50 PM

Read only

dani_mn
Active Contributor
0 Likes
871

You are passing '/' into a number field.

Get the name of the field from your dump analysis and correct it into the upload program. pass the correct value to this field.

Regards,

Wasim Ahmed

Read only

Former Member
0 Likes
871

Hi,

is the error coming from KWMENG or FROM ANY DATE field.

i doubt the error is from the Data not with the BDC.

<b>check your Data is going correctly into ITAB while uploading from PC or Application server.</b>

Regards

vijay

Read only

0 Likes
871

hi vijay

while debugging

i found error when assigning value from internal table (item table ) to bdc_feild

loop at it_item where kuagv eq it_header-kuagv.

*perform bdc_field using 'BDC_CURSOR'

  • 'RV45A-MABNR(01)'.

concatenate 'RV45A-MABNR(' n ')' into mabr.

part of my progrom.

perform bdc_field using mabr

it_item-mabnr.

*perform bdc_field using 'RV45A-KWMENG(01)'

  • it_item-kwmeng.

concatenate 'RV45A-kwmeng(' n ')' into kmeng.

perform bdc_field using kmeng

it_item-kwmeng.

(am facing problem here)

concatenate 'RV45A-werks(' n ')' into werk.

*perform bdc_field using 'VBAP-WERKS(01)'

  • it_item-werks.

perform bdc_field using werk

it_item-werks.

perform bdc_dynpro using 'SAPMV45A' '4001'.

perform bdc_field using 'BDC_OKCODE'

'=ITEM'.

regards

vijay

Read only

0 Likes
871

perform bdc_field using kmeng

<b>it_item-kwmeng</b>

what is the value in <b>it_item-kwmeng.</b>

and are you using BDCRECX1 then in the selection screen provide No Data Indicator as '/'.

Regards

vijay

Read only

Former Member
0 Likes
871

Hi

If you're using the std routines of BDC program BDCRECX1, here there's a control to set NO_DATA value in the bcd table:

FORM BDC_FIELD USING FNAM FVAL.

IF FVAL <> NODATA.

CLEAR BDCDATA.

BDCDATA-FNAM = FNAM.

BDCDATA-FVAL = FVAL.

APPEND BDCDATA.

ENDIF.

ENDFORM.

If FVAL is number your dump'll occur.

So you should transfer the numaber value to char variable:

PERFORM BDC_FIELD USING <FIELD> NUMBER.

Max

DATA: NUMBER(20) TYPE C.

WRITE KWMENG UNIT <UNIT> TO NUMBER.

Read only

Former Member
0 Likes
871

declare that field as type c in declaration part.

Read only

Former Member
0 Likes
871

Use the BAPI for creating sales orders instead - it is a much better approach than old-fashioned BDC's.