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

Former Member
0 Kudos
192

Hi All,

I want to create a transaction code for an LSMW object,

For Eg,

Once We go to lsmw transaction

it asks For Project,Subproject,Object

Suppose i give values as,

Project : Ztest_proj

Subproject : Ztest_sub

Object : Ztest_obj

it takes me to a screen where i can do further things,

now i want to create a transaction code say ztest

when i enter the tcode as ztest it should directly take me to that screen.

It's very urgent

Thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos
62

USe SE93 to create Transaction and Select Transaction with Parameters

You have to give the Project , Sub Project and Object Names in the Default values section and give the OKCODE to execute.

6 REPLIES 6

former_member214131
Active Contributor
0 Kudos
62

Hello,

The LSMW objects can be grouped in a Sub project / Project in a data migration acitvity. This is a logical grouping only.

for Ex.

PLANT_XYZ ( PROJECT ),

MM ( SUB PROJECT ),

PP ( SUB PROJECT ),

SD ( SUB PROJECT ),

WM ( SUB PROJECT ),

You can create different LSMW Objects in these sub projects based on the requirement.

Please refer to the ONLINE Documentation which gives more details:

http://help.sap.com/saphelp_erp2004/helpdata/en/87/f3ae63e68111d1b3ff006094b944c8/content.htm

Regards, Murugesh AS

Former Member
0 Kudos
63

USe SE93 to create Transaction and Select Transaction with Parameters

You have to give the Project , Sub Project and Object Names in the Default values section and give the OKCODE to execute.

0 Kudos
62

Hi Abap_FL,

Please clarify a bit on the okcode .rest all is fine

thanks a lot

0 Kudos
62

Create a Variant with SHD0 and use it in SE93.

OK COde is CONT

0 Kudos
62

You could write a small custom report program with the following code and attach your Z tcode as a report tcode. This will skip the first screen of the LSMW transaction.



report zrich_0002.

type-pools: tumls.

data: project  type  tumls_project,
      subproj  type  tumls_subproj,
      object   type  tumls_objectnew.

project = 'CUST01'.
subproj = 'CUST02'.
object  = 'BOM01'.

call function '/SAPDMC/LSM_OBJ_STARTER'
     exporting
          project        = project
          subproj        = subproj
          object         = object
     exceptions
          no_such_object = 1
          others         = 2.

Regards,

Rich Heilman

0 Kudos
62

Hi Rich,

Thanks a lot it's working