[62320] in SAPr3-news
Re: startrfc
daemon@ATHENA.MIT.EDU (Christian Knappke)
Mon Jan 18 02:50:06 2010
To: sapr3-news@mit.edu
Date: Mon, 18 Jan 2010 08:47:06 +0100
From: Christian Knappke <chknews@gmx.net>
Message-ID: <hj13lr$i6i$1@news.sap-ag.de>
Reply-To: chknews@gmx.net
Am 18.01.2010 07:49 schrieb Gaurav:
> On Jan 15, 2:18 pm, Christian Knappke <chkn...@gmx.net> wrote:
>> Gaurav wrote:
>>> i am able to successfully execute startrfc from command line to call a
>>> function module in SAP system.(the function module takes 2 parametes
>>> as input and generates their sum).How can i get the output of functiom
>>> module on the command prompt.
>>
>> The startrfc from the RFC SDK does not handle IMPORTING parameters. It
>> does handle tables for import and export, nevertheless.
>>
>> But as the source code of startrfc is part of the SDK you could
>> implement the handling of import parameters yourself. It seems easy.
>>
>> HTH and best regards
>> Christian
>
>
> Hi,
> Is there any other way to call a function module from dos prompt and
> get the output of function module back to dos prompt.
> can u please give an example
You could write another function module that wraps your desired module
and transfers the output into an interface table that you can use with
startrfc ... -T <table name>,<width>,[r=<file>][,w=<file>]
HTH
Christian