Abap program to triger lsmw

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
parthamurali
Posts: 39
Joined: Thu Mar 06, 2008 11:35 pm
Location: India

Abap program to triger lsmw

Post by parthamurali » Tue May 20, 2008 4:40 am

HI gurus

i am in need of coding abap programme to automatically trigger lsmw prg

your input might be useful
with regards
partha
keep sharing and learning

phillipm
Posts: 376
Joined: Fri Oct 25, 2002 3:54 am
Location: Lyon, France

Re: Abap program to triger lsmw

Post by phillipm » Tue May 20, 2008 8:04 am

What do you need to do exactly?
You can tell LSMW that your import project is periodic. This should enable one or more extra steps, including one with selection screen containing Project, subproject, and object. This is the part you can schedule.

Or else you can enable steps to generate the import and conversion programs...

Phillip

parthamurali
Posts: 39
Joined: Thu Mar 06, 2008 11:35 pm
Location: India

Re: Abap program to triger lsmw

Post by parthamurali » Tue May 20, 2008 8:49 am

HI

wat we are working on it is
step1: uploading the file into sap i.e done(which is having abt 12 coloumns)
step2:converting in to text file for lsmw prg
step3:automatically a pushbutton for lsmw have to start uploading the data

so the idea is lsmw prg should trigger automatically

with regards
partha

abap_doctor
Posts: 6955
Joined: Thu Mar 25, 2004 11:29 am
Location: Airstrip One

Re: Abap program to triger lsmw

Post by abap_doctor » Tue May 20, 2008 9:53 am

LSMW is primarily a migration tool that the user sits in front of and runs loading objects as and when required during a finite period of time.

I don't think it should be used to write anything that will be used periodically...

For one, it's not the most efficient of code-writers, and for two I'd code far more controls into it before releasing it as an interface...

My advice, if you want to write a periodic interface would be to code it yourself in ABAP...
The Doc
Tuly Idiot Magna Grand Docot Image

wilhitern1
Posts: 135
Joined: Thu May 15, 2008 4:25 pm
Location: Butterball LLC., Goldsboro, NC, USA
Contact:

Re: Abap program to triger lsmw

Post by wilhitern1 » Tue May 20, 2008 10:58 am

Now, by code it yourself do you mean like with a BAPI... (I'm a newbie to this forum [though I've been on many other forums for years], so if my inserting like this on this topic is a breach please let me know0 That certainly would have been my first stop.
Neal Wilhite (WilhiteRN1)Image

abap_doctor
Posts: 6955
Joined: Thu Mar 25, 2004 11:29 am
Location: Airstrip One

Re: Abap program to triger lsmw

Post by abap_doctor » Tue May 20, 2008 11:10 am

A BAPI may be part of the code (although it doesn't neccessarily have to be, and you may find there isn't one to use).
The Doc
Tuly Idiot Magna Grand Docot Image

Post Reply