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

hai

why we r working with idoc in lsmw,we can directly update from

internal tables??

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

IDocs has specific structure to update the data.

Just enough to populate the fields to the IDoc segments.

You don't need to write the code.

IDoc standard function modules will update the data into database.

And we can easily monitor the IDocs.

Other wise you have to write the code manually.

Regards,

7 REPLIES 7

Former Member
0 Kudos

Hello Sudhir,

LSMW is mainly use to transfer data from legecy system i.e. non sap to SAP R/3 system.

There are three ways to to that and one of the way is via IDOCS.

Now suppose u have 10 thousand records in ur file then, either u have to do with BDC or LSMW.

It's easy to develop a LSMW tool compaire to fetch all the value in internal table first then to update the data base.

Rewards points if it is usefull.

Thanks

Satyam

Former Member
0 Kudos

Hi,

IDocs has specific structure to update the data.

Just enough to populate the fields to the IDoc segments.

You don't need to write the code.

IDoc standard function modules will update the data into database.

And we can easily monitor the IDocs.

Other wise you have to write the code manually.

Regards,

Former Member
0 Kudos

one transaction will update sevaral tables

based on some conditions some filed of the tables may be filled or may not

but if you want to do it by using the intrenal tables you need to take care of each and every check

if you for got even a single step it will leads to data inonsistancy

and difficult morevoer

Former Member
0 Kudos

Hi,

This is one of the methods in lsmw.

IDOC

IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system.

Idocs are processed asynchronously and no information whatsoever is returned to the client.

The target system need not be always online. The IDOC would be created and would send the IDOC once the target system is available (tRFC concept). Hence supports guaranteed delivery.

With asynchronous links the sub-process on the client can be finished even if the communication line or the server is not available. In this case the message is stored in the database and the communication can be done later. The disadvantage of asynchronous links is that the sub-process on the server cannot return information to the calling sub-process on the client. A special way for sending information back to the client is required. In addition, a special error handling mechanism is required to handle errors on the receiving side.

IDOCs may be more changeable from release to release.

IDOCs are poorly documented.

IDoc Status Codes ? Outbound

Hope this helps you.

Reward points if helpfull.

Thanks & Regards,

Y.R.Prem Kumar

Former Member
0 Kudos

hi,

There are many methods through which we can upload data in LSMW.

We are using IDOCS bcoz it has a structure in which data is stored.

Moreover if u r using internal tables you have to keep in in mind each and every check that was created during table creation.

reward if useful...

Thanks,

Manish

satsrockford
Active Participant
0 Kudos

hi

IDocs has specific structure to update the data.

Just enough to populate the fields to the IDoc segments.

one transaction will update sevaral tables

IDoc standard function modules will update the data into database.

And we can easily monitor the IDocs.

but if you want to do it by using the intrenal tables you need to take care of each and every check

if you for got even a single step it will leads to data inonsistancy

and difficult morevoer

Other wise you have to write the code manually.

thanks

Satish

Former Member
0 Kudos

hi,

Because instead of individual tables or field contents, the LSMW tool migrates user-defined datasets (known as objects), which are combined according to business criteria. In addition to using standard import techniques, you can also generate user-specific objects.

please reward if it helps.

thanks