‎2006 Jun 20 8:43 AM
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
‎2006 Jun 20 8:50 AM
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
‎2006 Jun 20 8:51 AM
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
‎2006 Jun 20 8:58 AM
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
‎2006 Jun 20 9:04 AM
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
‎2006 Jun 20 9:13 AM
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
‎2006 Jun 20 9:04 AM
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.
‎2008 Aug 15 10:51 AM
‎2008 Aug 15 11:25 AM
Use the BAPI for creating sales orders instead - it is a much better approach than old-fashioned BDC's.