‎2008 Aug 07 7:40 AM
hi guys,
i am uploading data from a flatfile (say notepad file).
the value for the field BRGEW(gross_wt) is displayed as 0.0000 WHEN i run the transaction MM03 where as in the flat file its value is 0000000000003
the data type of BRGEW is P
what should i do to solve this issue.
my flat file looks like this
000000000000010760FERTRNY01test material KG 005 NY010KG 0000000000003
My structure is
DATA:
BEGIN OF MATERIAL_MASTER,
MATNR(018) TYPE C, "Material number
MTART(004) TYPE C, "Material type
MBRSH(001) TYPE C, "Industry sector
WERKS LIKE MARC-WERKS, "TYPE C Plant
MAKTX(040) TYPE C, "Material description
MEINS(3) TYPE C, "base unit of measure
MATKL(009) TYPE C, "Material group
SPART(002) TYPE C, "Division
WEBAZ(03) TYPE C, "GR processing time
GEWEI LIKE MARA-GEWEI, "Weight unit
BRGEW(13) type c, "Gross weight
end of MATERIAL_MASTER.
thanks
Edited by: nishant patel on Aug 7, 2008 11:16 AM
‎2008 Aug 07 12:00 PM
Hi Nishant,
You need to convert the value of gross weight from C to P before assigning it to BAPI.
Regards,
Rahul.
‎2008 Aug 11 6:17 AM
‎2008 Aug 07 5:50 PM
Hi,
try to fill the BAPI structure
WRITE ds_output1-brgew
TO <bapi_structure>
UNIT 'Pass the unit here'
NO-GROUPING.Hope it will work.
Thanks,
Kamesh Bathla
Edited by: Kamesh Bathla on Aug 7, 2008 6:51 PM
‎2008 Aug 11 6:10 AM