Periodic Transfer of Data
You can use the program /SAPDMC/SAP_LSMW_INTERFACE to transfer data to the SAP system periodically rather than once only.
/SAPDMC/SAP_LSMW_INTERFACE is an additional program of the LSMW.
· 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.
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.
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.
Programs/User Parameters
Program |
Parameters Used |
|||||
|
Test without update |
Create batch input session |
BI, DI, call transaction, test |
Lock mode |
Measure |
User group |
RAALTD01 RAALTD11 |
X |
|
|
|
|
|
RCCLBI01 RCCLBI02 RCCLBI03 RCCTBI01 |
|
X |
|
|
|
|
RCSBI010 RCSBI020 RCSBI030 RCSBI040 |
|
X |
|
|
|
|
RCVBI010 |
|
X |
|
|
|
|
RFBIBL00 |
|
|
X |
|
|
|
RHALTD00 |
|
|
X |
|
|
|
RLBEST00 RLPLAT00 |
|
X |
|
|
|
|
RMDATIND |
|
|
|
X |
|
|
RPUSTD00 |
|
|
|
|
X |
X |

You can specify a variant for the read program, the conversion program, and any batch input or direct input programs that you use. You must define these variants in advance.