Application Development 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: 

LSMW for XK01

Former Member
0 Kudos
179

Hi Experts,

I want to generate a lsmw for vendor master (XK01).

Here i need to create a vendor with different comapny codes and Purchase Orgs.

I had 2 flat files . One is having Vendor data, another contains Company code and Pur. Orgs for that vendor.

I did my recording and created 2 structures for both 2 files.

When i run the session , vendor was created for a comp.code and Pur.org, but for the other comp.code or pur.org it is directly going to vendor purchasing screen and no it is showing No batch input data is available and getting error. But in converted data file contails all the records.

Pls tell me how to do this.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
82

HI Chandra,

try with direct input method in lsmw.

or use bdc / bapi.

regards,

sekhar.

3 REPLIES 3

agnihotro_sinha2
Active Contributor
0 Kudos
82

hi,

there are better ways of creating Vendor Master data like using BAPIs or IDOCS.

You can get details in the ABAP Development » Data Transfer Forum.

hope it helps,

ags.

Former Member
0 Kudos
82

Hi,

Try this BAPI 'BAPI_VENDOR_CREATE'

Regards,

Jyothi CH.

Former Member
0 Kudos
83

HI Chandra,

try with direct input method in lsmw.

or use bdc / bapi.

regards,

sekhar.