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 error

Former Member
0 Kudos

Hi All,

I have created a LSMW object in one server and one entry is cretaed in a table /SAPDMC/LSMCUST. Now I transported the LSMW object to a different server. But this particular entry was not created. Can somebody help me what needs to be done?

Regards,

Jeetu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use You can use the program /SAPDMC/SAP_LSMW_INTERFACE to transfer data to the SAP system periodically rather than once only.

Integration

/SAPDMC/SAP_LSMW_INTERFACE is an additional program of the LSMW.

Prerequisites

· The LSMW object has been created completely and tested.

· The "source application" periodically provides one or several files on the application server.

· The LSMW object does not access files stored on the front end.

· You have set the indicator for periodic data transfer in step Maintain object attributes.

Features

The periodic data transfer is carried out in the following steps:

...

1. Reading of data.

2. Conversion of data.

3. Import of data.

Files stored on the PC must not be used.

Activities

Schedule the program /SAPDMC/SAP_LSMW_INTERFACE according to your requirements. To do this, create a variant and use transaction SM36 (System ® Services ® Jobs ® Define job) to create a job.

When you define the parameters for executing the program, you can specify a flag file. This flag file is optional. The file is used to construct a handshake with the application that provides the input file(s).

· The main program for the periodic transfer of data only runs if the specified flag file exists.

· Once the transfer of data has been completed, the main program deletes the flag file.

· The application that provides the input file(s) must be compatible with this flag file: Before new files are generated, a check is made to see whether the flag file exists. If so, the program stops. Otherwise, the files are generated and the flag file is created.

Some of the standard batch input and direct input programs use additional parameters. Some of these parameters are sent externally. For information on which parameters are used by which programs, see the table below or the source code of the program /SAPDMC/SAP_LSMW_INTERFACE.

Hope this is useful for u.

Regards.

1 REPLY 1

Former Member
0 Kudos

Hi,

Use You can use the program /SAPDMC/SAP_LSMW_INTERFACE to transfer data to the SAP system periodically rather than once only.

Integration

/SAPDMC/SAP_LSMW_INTERFACE is an additional program of the LSMW.

Prerequisites

· The LSMW object has been created completely and tested.

· The "source application" periodically provides one or several files on the application server.

· The LSMW object does not access files stored on the front end.

· You have set the indicator for periodic data transfer in step Maintain object attributes.

Features

The periodic data transfer is carried out in the following steps:

...

1. Reading of data.

2. Conversion of data.

3. Import of data.

Files stored on the PC must not be used.

Activities

Schedule the program /SAPDMC/SAP_LSMW_INTERFACE according to your requirements. To do this, create a variant and use transaction SM36 (System ® Services ® Jobs ® Define job) to create a job.

When you define the parameters for executing the program, you can specify a flag file. This flag file is optional. The file is used to construct a handshake with the application that provides the input file(s).

· The main program for the periodic transfer of data only runs if the specified flag file exists.

· Once the transfer of data has been completed, the main program deletes the flag file.

· The application that provides the input file(s) must be compatible with this flag file: Before new files are generated, a check is made to see whether the flag file exists. If so, the program stops. Otherwise, the files are generated and the flag file is created.

Some of the standard batch input and direct input programs use additional parameters. Some of these parameters are sent externally. For information on which parameters are used by which programs, see the table below or the source code of the program /SAPDMC/SAP_LSMW_INTERFACE.

Hope this is useful for u.

Regards.