Application Development and Automation 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: 
Read only

LSMW TEST RUN

Former Member
0 Likes
2,565

Hello Gurus,

Is there any method to do LSMW test run.

I am working on LSMW for FB01 with standar batch program RFBIBL00. Is there any option to do test run the records.

Like in BAPIS we will be having a flag where we can check the data. Is this function is avalible in LSMW recording.

Urgent...... Plz.........-.......

Thanks,

Feroz.

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
2,090

This is independent of the LSMW.

RFBIBL00 has an option "check file only", which might serve your purpose.

Speaking about own recordings, no test run possible, unless the recorded transaction itself allows for one.

Thomas

Hello Gurus,

Is there any method to do LSMW test run.

I am working on LSMW for FB01 with standar batch program RFBIBL00. Is there any option to do test run the records.

Like in BAPIS we will be having a flag where we can check the data. Is this function is avalible in LSMW recording.

Urgent...... Plz.........-.......

Thanks,

Feroz.

9 REPLIES 9
Read only

ThomasZloch
Active Contributor
0 Likes
2,091

This is independent of the LSMW.

RFBIBL00 has an option "check file only", which might serve your purpose.

Speaking about own recordings, no test run possible, unless the recorded transaction itself allows for one.

Thomas

Read only

Former Member
0 Likes
2,090

Hi Feroz,

You can write the code for the same.........

1. define one variable like pc_test in global data event in 5th step of LSMW ie field mappings and conversion step.

PARAMETERS: PC_TEST AS CHECKBOX DEFAULT 'X'

2. do all the validations.

3. If pc_test = 'X'.

then in the end of transaction step write the code like......

IF pc_test = 'X'.

skip_transaction.

thats it, it will not transfer the records for further process.

You can see this parameter in convert data step.

Read only

0 Likes
2,090

What is the use of this? The "convert data" step does not change anything in the database yet (unless you quickly and dirtily code that into conversion logic...).

Read only

0 Likes
2,090

hi,

Basically it is used for the validation.

Before converting the data if you want to do any kind of validation to check whether the records are properly passing to load or not and not only that,

espcially in bapi and idoc method we can directly create the idocs from convert data step. So before doing that if we check this test run check box nothing will happen that means records will not transfer to idocs....

Bottom line , its a kind of simulation mode. In my project, before I load the data i run the file in test mode if there would be any errors or anything I notify this to process team for their approval.

Read only

0 Likes
2,090

I used to work with LSMW for three years (many years ago...), but only with methods "standard" and "recording". No problem there if a flat file with converted data is created or not.

Your check makes good sense to me in the BAPI/IDoc context. I think for RFBIBL00 (standard method) it might not be required.

Cheers

Thomas

Read only

0 Likes
2,090

Thanks for the solutions.....

But i wan to do the test run for the batch record created by standarded program.

If we click the check file only option in RFBIBL00, it will is not doing all the checkings......So i wan to do test run for the batch record in sm35. where i can find out errors populated by screen....

Read only

0 Likes
2,090

Unfortunately there is no such test option to my knowledge. All you could do is run the session in foreground, and type in "/n" into the command box just before it would do the posting. You can do that for a few transactions to see if it looks OK, but not for all transactions, obviously. Also, you would not run through all checks, since some only kick in once you really post the document.

Thomas

Read only

0 Likes
2,090

Thanks Thomas Zloch´. I have founded some some enhancement Sport in ECC 6.0, Where i can exit form the program by wtiting the code before updating the posting to date base....

But we have to acitvate the code and run the test run... if we wnat to post the documents we have to deactivate the code...But i am looking SAP had given any option for test run the batch job.....

Read only

0 Likes
2,090

Can any one help me................SAP had given any option to test runn the batch recording.... SM35....