‎2007 Sep 26 9:48 AM
Hi,
I got a Recording Text file for " CN21",
Now I Need to write a ABAP Program to import that Recording file and run it in the background.
CAn We do this,
Points will be awarded for the Solution.
Regards,
Jayasimha Jangam.
‎2007 Sep 26 10:00 AM
Hi,
U can create the Program . The option will be available in recording only i.e
SHDB. After going into SHDB, Select recording which u created and menu option
edit->create programe. There u have to specify the program name. After program creation it will generate the code. U have to change that code and should write
custom logic.
Rewardpoints if useful.
Regards
(YUGANDHAR.P)
‎2007 Sep 26 10:03 AM
Yes,
Go to transaction SHDB
click on create recording .
give name for that recording say ZREC.
then donot enter TCODE or start recording button.
Just press enter .
New screen appers.
Here you take your cursor to menu bar and see import and export buttons are there, click on the import button and specify the location of your recording text file.
you will see that it is copied to ur system. Save this and now you are able to use the same as any other.
reward if useful.
Amit Singla
‎2007 Sep 26 10:08 AM
Hi Amit Singla ,
Just I need to Browse that recorded txt file through the abap program and execute it it should run in background .
‎2007 Sep 26 10:14 AM
go to table d0100 and check for required recording and execute it in background
‎2007 Sep 26 10:14 AM
Ok dear,
I think you have a LSMW file in this text file.
so open LSMW>extras>import projects
ASSIGN YOUR FILE HERE.
THEN EXECUTE THIS LSMW.
REWARD IF USEFUL.
‎2007 Sep 26 10:10 AM
u already got the recording text file. so no need for going to SHDB now.
now follow the following steps.
1. seeing the recording identify the fields needed.
2. build an internal table with those fields.
3. build another internal table like BDCTAB.
4. do mapping.
5. now if u select session method, call
a) bdc_open_group
b)bdc_insert
3)bdc_close_group.
or if u use call transaction.
to run it in background,
RSBDCSUB and RSBDCBTC are the programs, schdule any one of them in sm37 by setting variant with qid /session name.
Message was edited by:
Hymavathi Oruganti