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

uploading of material master data using bapi BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
572

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

4 REPLIES 4
Read only

Former Member
0 Likes
527

Hi Nishant,

You need to convert the value of gross weight from C to P before assigning it to BAPI.

Regards,

Rahul.

Read only

0 Likes
527

ITS DOESNT WORK

Read only

Former Member
0 Likes
527

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

Read only

0 Likes
527

IT DOESNT WORK