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

Lsmw - using bapi's (file structure)

vinothkumar_g
Product and Topic Expert
Product and Topic Expert
0 Likes
666

HI,

I am trying to use LSMW to upload the purchase order using the bapi.

I am using the Business object - BUS2012

Method - CREATEFROMDATA

Message type - PORDCR

Basic type - PORDCR05

In source structure - Posource_head is given and in the lower level

POsource_item is given.

In the maintain source fields,

For POsource_head, following fields are given,

IDENT C(001) Identifier

LIFNR C(010) Vendor

EKORG C(004) Purch. Org

EKGRP C(003) Purchasing group

for Posource_item , following fields are given,

IDENT C(001) Identifier

EMATN C(018) MPn material

NETPR C(011) Net price

MATKL C(009) Material group

WERKS C(004) Plant

DDATE C(010) Delivery date

Mapping also done.

In the excel sheet or notepad, how the fields should be ordered.?

I just need to know the file format which should be specified in the specify file.

can anyone give the fields and length that i should create in the excel file or notepad?

Points will be awarded.

Regardss,

Vinoth.

3 REPLIES 3
Read only

Former Member
0 Likes
568

Hi,

Field should be ordered as per the source structure of your own.

In header you can have unique data (strictly) and one more file of item whch will be having correpsonding data for header records.

Length is as per the Data Element.

Reward if useful!

Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
568

Hi,

Look at service.sap.com/LSMW

Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
568

Hi,