Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

bapi

in the following bapi , im getting the error message ' CX_sy_CONVERSION_no_number'.

the data type of wmarc-webaz is d,

but i can update the number 4 in mm02.

how to solve this.

SELECT SINGLE * FROM marc

INTO w_marc

WHERE matnr = wmbew-matnr

AND werks = wmbew-bwkey.

MOVE w_marc TO wmarc.

wt_headdata-material = wmarc-matnr.

wt_headdata-ind_sector = 'A' .

wt_plantdata-gr_pr_time = 'wmarc-webaz' .

wt_plantdatax-gr_pr_time = 'X' .

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = wt_headdata

PLANTDATA = wt_plantdata

PLANTDATAX = wt_plantdatax

IMPORTING

return = wt_return

TABLES

returnmessages = wt_returnmessages.

READ TABLE wt_returnmessages

WITH KEY type = 'E' .

IF sy-subrc NE 0 .

COMMIT WORK .

ENDIF .

Tags:
Former Member
Former Member replied

Hello,

Just remove the quotes like follows:

wt_headdata-material = wmarc-matnr.
wt_headdata-ind_sector = 'A' .

******
wt_plantdata-gr_pr_time = wmarc-webaz ." before removed was 'wmarc-webaz'
******
wt_plantdatax-gr_pr_time = 'X' .

Regards

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question