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

Problem With BDC

Former Member
0 Likes
672

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.

6 REPLIES 6
Read only

Former Member
0 Likes
640

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)

Read only

Former Member
0 Likes
640

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

Read only

0 Likes
640

Hi Amit Singla ,

Just I need to Browse that recorded txt file through the abap program and execute it it should run in background .

Read only

0 Likes
640

go to table d0100 and check for required recording and execute it in background

Read only

0 Likes
640

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.

Read only

hymavathi_oruganti
Active Contributor
0 Likes
640

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