2008 Jun 19 3:15 PM
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.
2008 Jun 19 3:19 PM
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.
2008 Jun 19 3:19 PM
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
2008 Jun 19 3:36 PM
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.
2008 Jun 19 3:42 PM
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...).
2008 Jun 19 3:46 PM
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.
2008 Jun 19 3:54 PM
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
2008 Jun 19 4:15 PM
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....
2008 Jun 19 4:37 PM
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
2008 Jun 20 9:01 AM
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.....
2008 Jun 20 10:27 AM
Can any one help me................SAP had given any option to test runn the batch recording.... SM35....