10-16-2007 4:21 PM
hi fnds dis is kamesh ,, i need small help if anybody know abt multiple recordings in LSMW let me know
thanks in advance
10-16-2007 4:31 PM
Hi Kamesh,
Please refer to the below forum:
https://forums.sdn.sap.com/click.jspa?searchID=5250831&messageID=2544864
In case you have any further clarifications,do let me know.
Regards,
Puneet Jhari.
10-16-2007 4:41 PM
hi puneet i dont know even procedure to do multiple recrdings in lsmw ..i could not find proper answer in link what u have given .. can u give me total procedure if possible or atleast clue
10-16-2007 4:54 PM
Kamesh,
what do u mean by multiple recordings in lsmw
If I understood correcty u can do multiple recordings in a single object of same project and subproject with different names.
but.....
You will not be able to use 2 recordings for the same session.
You will be able to use multiple files for different structures e.g one for header ,one for one line item and so on.
10-16-2007 5:16 PM
utilize search option in the forum,
u come across multiple threads for ur questions,
if u r struck at some point while using multiple recordings.
let us know, so that we can try our level best to resolve ur issue.
Thanks
10-17-2007 1:02 AM
Hi Kamesh,
First mention your both records in the first step of Batch Input recording in the LSMW object by clicking on Right Arrow button. After that in the Field Mapping and Conversion rules step, you can use Events i.e., Beginof_Record_,_End_of_Record_ to handle two different records. For example, in FS00 transaction we can have two types of G/L Accounts, one is P&L Statement account and another is Balance sheet account. So, I have two records for creation of the these different accounts.
Based upon the field value in the file, I need to trigger any one recording. So, we need to write the code in this fashion:
At the Beginof_Record_ of first recording, open the IF condition like
IF <acct_type> = 'P'
and in the Endof_Record_ event of first recording, after "transfer_record" statement, write "ENDIF".
Similarly, write IF condition for another recording. In this way you can handle both recordings in one LSMW object.
Note: If you are not able to see anything in blue colour with the events I am mentioning, press CTRL+F7, set the Global Data Definitions and Processing times indicator and save it. You will see the events.
Regards,
Adithya K
askSAP@googlegroups.com
P.S: Reward points if its useful.