Application Development 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: 

to invoke scripit(program) written in other system from our program

Former Member
0 Kudos
60

Hi ,

I have written an extract program which will extract data from specified table and places in directory mentioned .

my requirement is

1) i need to include code in my program which should invoke program in other system(say md).( this program which is written in other system(md) is used to pick the file which was extracted earlier ,to that system( md system.)

2) After that program written in other system picks up file,the file need to be deleted in our system.

plz provide me the code to handle above requirement.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
41

Hi

Create an RFC Function module and do it

RFC (Remote Function Call) is similar to the general SAP fun module: except that in the attributes you click the radio button: RFC enabled;

and you will be passing an Import parameter DESTINATION to it.

Other code and usage will be similar to any fun module;

Have a look at any fun module in SE37 to understand better about the different components of Fun modules;

Refer this link:

http://help.sap.com/saphelp_nw04/helpdata/en/22/042518488911d189490000e829fbbd/frameset.htm

check out the following link it might help you

http://help.sap.com/printdocu/core/Print46c/de/data/pdf/BCFESDE2/BCFESDE2.pdf

<b>Reward points for useful Answers</b>

Regards

Anji

4 REPLIES 4

Former Member
0 Kudos
42

Hi

Create an RFC Function module and do it

RFC (Remote Function Call) is similar to the general SAP fun module: except that in the attributes you click the radio button: RFC enabled;

and you will be passing an Import parameter DESTINATION to it.

Other code and usage will be similar to any fun module;

Have a look at any fun module in SE37 to understand better about the different components of Fun modules;

Refer this link:

http://help.sap.com/saphelp_nw04/helpdata/en/22/042518488911d189490000e829fbbd/frameset.htm

check out the following link it might help you

http://help.sap.com/printdocu/core/Print46c/de/data/pdf/BCFESDE2/BCFESDE2.pdf

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos
41

Hi Anji,

Thanks for info you provided.

As you mentioned to use RFC,is there any othergo like useing some unix commands to invoke scrpit(program ) from other system.If so can you pls let me know wht are all the mandatory things i need to know to invoke tht program in other system.

Former Member
0 Kudos
41

> Hi ,

> I have written an extract program which will extract

> data from specified table and places in directory

> mentioned .

> my requirement is

> 1) i need to include code in my program which should

> invoke program in other system(say md).( this

> program which is written in other system(md) is used

> to pick the file which was extracted earlier ,to

> that system( md system.)

> ) After that program written in other system picks up

> file,the file need to be deleted in our system.

>

> plz provide me the code to handle above requirement.

As of one of friend(Anji Reddy) suggested to use RFC concept for this reqirement.

But my reqirement is to use unix commands to invoke scrpit(program ) in other system.

pls send me the needed code.

Former Member
0 Kudos
41

pls provide me needfull code to invoke scrpit written in other system by useing unix commands