Dear all,
now my program problem ...
when i upload excel file and convert date from excel to sytem SAP
i call function 'CONVERT_DATE_TO_INTERNAL', this ok
but when i call funtion 'BAPI_REQUIREMENTS_CHANGE'
data: begin of SCHEDULE_IN occurs 0,
DATE_TYPE like BAPISSHDIN-DATE_TYPE,
REQ_DATE like BAPISSHDIN-REQ_DATE,
REQ_QTY like BAPISSHDIN-REQ_QTY,
end of SCHEDULE_IN.
READ TABLE i_upload INDEX 1.
CALL FUNCTION 'BAPI_REQUIREMENTS_CHANGE'
EXPORTING
MATERIAL = i_upload-MATERIAL
PLANT = i_upload-plant
REQUIREMENTSTYPE = ' '
VERSION = '00'
REQMTSPLANNUMBER = ' '
VERS_ACTIV = 'X'
TABLES
REQUIREMENTS_SCHEDULE_IN = SCHEDULE_IN.
commit work.
ENDFORM.
ERROR with :
***The call to the function ***module "BAPI_REQUIREMENTS_CHANGE" is incorrect:
***In the function module interface, you can specify only
***fields of a specific type and length ***under "REQUIREMENTS_SCHEDULE_IN".
***Although the currently specified field
**"SCHEDULE_IN" is the correct type, its length is incorrect.***
pls help me solve
thanks so much/Tham.