Startrfc & SAPBC_DATA_GENERATOR
Can anyone help me to execute SAPBC_DATA_GENERATOR using startrfc.exe only?
Thanks and regards.
Joe
Strings must be enclosed in single quotes:
insert into SYSTEM.EMPLOYEES (EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, HIRE_DATE, SALARY, JOB_ID, MANAGER_ID)
values (232, <font color=red size=2>'</font>Robbie<font color=red size=2>'</font>, <font color=red size=2>'</font>Reilly<font color=red size=2>'</font>, '[email protected]', 0586862301, to_date('09-08-2009', 'dd-mm-yyyy'), 4262, 421, 135);
And we have no idea what generator you use. I suggest contacting vendor.
SY.
Edited by: Solomon Yakobson on Apr 4, 2013 11:48 AM
Similar Messages
-
Startrfc - how to call with "input table"?
I have not been able to get sapnwrfc for Perl to compile correctly on my AIX systems so i want to try something different.
I started to investigate using startrfc to get my data but am running in to a problem.
Problem Summary: I want to get information via RFC_READ_TABLE using startrfc. I can successfully call function modules but cannot figure out how to send in a "WHERE" clause using startrfc. Does anyone know how to send "input tables" to startrfc so that I can limit my results?
Background: I want to dump a list of the dialog UIDs in a SID/client. When I do RFC_READ_TABLE via SE37, it asks for an "OPTIONS" input table that you use to put the "WHERE" clause. I fill in the information in the "TEXT" field and all is well.
I can call startrfc with the -T option and capture the output to a file, but I cannot figure out how to use an input file to provide the OPTIONS table. -E doesn't work.
Here is what I call:
/usr/sap/<SID>/DVEBMGS60/exe/startrfc -t -3 -h <hostname> -s 60 -c 000 -l E -u <my id> -p <my password> -F RFC_READ_TABLE -E QUERY_TABLE=USR02 -E "DELIMITER=|" -T DATA,1000,w=output.txt -T OPTIONS,100,r=input.txt
My input file (input.txt) looks like:
TEXT="BNAME = 'someuid'"
Here is the error message I get when I run this.
RFC Call/Exception: SYSTEM_FAILURE
Group Error group 104
Key RFC_ERROR_SYSTEM_FAILURE
Message A dynamically specified column name is unknown.
Note that I know that there are other functions to check for existence. I am attempting to get a dump of all dialog users with some information from USR02 not normally provided by the builtin function modules (ERDAT). This is just the first step to getting there. Once I have this figured out, I'll send in a "*" to match all. Also, I am able to do this sort of successfully via Perl's sapnwrfc but am unable to get it compile on AIX and that is where I need to run this.
Can anyone help?
Edited by: Eric Young on Apr 7, 2011 5:59 PM
Edited by: Eric Young on Apr 7, 2011 6:00 PMIt's fairly obtuse as well, but I can see that I'm sending something. I just don't know what it should look like so that SAP likes it. Here's the relevant send section:
000240 | 04000000 01033003 02000800 0001F400 |......0.......ô.|
000250 | 00000003 02030100 074F5054 494F4E53 |.........OPTIONS|
000260 | 03010330 00040000 00020330 03020008 |...0.......0....|
000270 | 00000032 00000001 03020303 00325445 |...2.........2TE|
000280 | 5854203D 2022424E 414D4520 20202020 |XT = "BNAME = 'S|
000290 | 20202020 20202020 20202020 20202020 |SOMEUID'" |
0002a0 | 20202020 20202020 20202020 20202020 | |
Please note that I've obfuscated "SOMEUID" and the corresponding HEX dump.
Edited by: Eric Young on Apr 7, 2011 6:26 PM -
Startrfc - SAP utility to invoke ABAP programs from External systems
We have used the startrfc uitlity that comes along with the SAP Presentation CD. This is bundled with the SAP RFC SDK kit. The startrfc utility can be used to invoke ABAP programs from external systems or servers.
When using the startrfc from the SAP server using the parameters
startrfc -h 10.60.0.31 -s 01 -c 100 -u USERNAME -p PASS -F <Function Module> -E TPPARAM=\usr\sap\trans\bin\tp_domain_<SID>.PFL -T LIST,300,w=list.txt
the desired results are achieved.
However when using the same startrfc with the exact parameters from another server we get the message " Incorrect user or password". If we use the SAP GUI from this server to connect to the SAP server using the same username and password we are able to connect to the SAP system.
Has anyone encountered any similar issues with Startrfc? Any suggestion will be appreciated.
Thanks,
~NileshHi NIlesh,
Did you check that the password and user ID entered are in capita letters?
Thanks and Regards,
RK -
Startrfc: Error message after calling a FM/report
Hello Experts,
I am working on a solution to call a RFC function module from outside of SAP via startrfc. This FM opens a report displaying standard report output.
The call via startrfc works as expected. The sapgui opens. As long as the report is open the startrfc command console hangs. When I close the SAPGUI window with the report, logoff popup is displayed. But in the console I got an error message:
RFC Call/Exception: SYSTEM_FAILURE
Group Error group 104
Key RFC_ERROR_SYSTEM_FAILURE
Message connection closed without message <CM_NO_DATA_RECEIVED>
Does anybody kow what causes this behavior? And further on: can I change the behavior that the startrfc call blocks the console? Why does it not return immediatly?
Any hints are welcome?
Regards,
AndreasYes, we are using RAS. Our setup is BOE XI 3.1 on Linux. We are using the RAS/CrystalReportViewer java API to execute/view the reports from a JBoss server also running on Linux.
We did find a CRConfig on the BOE server and it did contain a <SocketTimeout>60000</SocketTimeout> entity. We modified it to 600000 and restarted the BOE service. Unfortunately, we still the same problem ("Failed to retrieve data from the database; Error in File {B608A22A-1E54-11E0-ABFC-000E0CB8A71E}.rpt: Failed to retrieve data from the database").
We thought that when using the CrystalReportViewer java API, rendering is done "locally" (that is, on our web server). In that case, shouldn't we have a CRConfig.xml on our web server? We're seeing conflicting information about this on the forum. If we do need CRConfig.xml on our web server, then should we copy it from the one on the BOE, and where should we put it? -
I can't find startrfc.exe in SAPGUI 640
I use the program startrfc.exe to execute a function of sap to print invoices, but with the new version of sapgui 640 this file doesn't appear.
Where can I find this file, or how can I execute this function out of sap?
Thanks in advance.
Best regards.hi
in that new version what i heard is that
setup icon appears that is in redd and orange color
go to that and double click that one
and then next and next
and at last finish button
regards,
srikanth -
Startrfc user authorization profile
Hi,
I have this command:
startrfc -3 -d DEV -u USER -p PASSWORD -c 101 -s 01 -h somehost -x sapgw00 -F EDI_DATA_INCOMING -E PATHNAME=/some/location/idoc.idc -E PORT=IDOCS
which is giving me a headache. With SAP_ALL on USER the script works, but I do not want SAP_ALL on this system account as the password is in plain text. With only the RFC profile the USER cannot read from the filesystem with the message:
RFC Call/Exception: SYSTEM_FAILURE
Group Error group 104
Key RFC_ERROR_SYSTEM_FAILURE
Message No authorization to open the file /some/location/idoc.idc
and dumps a file dev_rfc
<* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION
<* RfcCallReceive [1] : returns 3:RFC_SYS_EXCEPTION
Now <sid>adm and sapsys have read/write permissions on the filesystem. I've tried to use SU53 to get information on the missing authorizations but apparentely that doesn't work with startrfc. Have any of you an idea which user profile ore role to use to read the file from the filesystem.
Kind regardsUse ST01 to trace authorization checks
-
Startrfc.exe cannot be executed
Hello,
My environment consists of a Windows Server 2003 and SAP ECC 6.0.
An application on Windows Server executes a SAP F.M. using startrfc via a command.
When the command startrfc.exe is executed with a command like
C:\Program Files\SAP\FrontEnd\SAPgui\rfcsdk\bin\startrfc.exe -3 -h <sap_system> -s <system_nr> -c <mandt> -l IT -u <user> -p <password> -F <function_module> -E <parameter>
the error
The system cannot executed the specified program
is returned.
Looking into event viewer at the execution moment three errors are returned. Two of them reports that dependent assembly Microsfot.V80.CRT is not installed on the system.
But the .NET Framework 1.1 is installed.
Has anyone an idea how to solve the problem ?
Regards.
Corrado Audero
corrado.audero<at>syn.itThanks for your replay.
I forgot to write in my message that i copied same program on my laptop with XP and it's run correctly.
startrfc.exe is include in a package named rfcsdk that it's possible to download from SAP Marketplace.
And also is competly platform independent.
Regards,
Corrado Audero. -
Good day.
I was curious if there was a command line tool, similar to startrfc, that would leverage the <i><b>RFC Server Groups</b></i> (RZ12) as opposed to the <i><b>Logon Groups</b></i> (SMLG).
We currently have 2000 iDocs to post at once and are bombarding a single APP server since the logon load balancing algorithm is not rapid enough. Since the RFC Server Groups are designed for this exact purpose, I find it silly that startrfc would not leverage them.
Any help or ideas would be greatly appreciated.
Thank you,
Charles
DBA & BASIS AdminHi Charles,
We are developing an interface between SAP and an external system.
Estimated load for inbound documents is about 5000 iDocs per hour.
We plan to use "startrfc" command to load IDocs to SAP.
We are also interested in using RFC Server Groups (RZ12).
Have you found a WorkAround ?
Best regards
Jean Christophe -
I want to call a function module GET_MON_OS_HIST, and write the result to a file. I use the follow command:
startrfc -d BHS -u user -p passward -t -3 -h 172.16.114.13 -x sapgw00 -F GET_MON_OS_HIST -T TF_OSMON,201,w=result.txt
but in the result.txt, I only get the column that it's type is character. the startrfc don't write the other column with diff type to the file.
Could anyone can help me? is it a problem of startrfc?
Message was edited by: yidong zhuHi,
Are you sure the parameters of your RFC call are set correctly? Do you get results when calling the RFM using Transaction SE37?
Regards, Joerg -
How to retrieve export parameters using startrfc?
When using the standard SAP client program <b>startrfc</b> to remotely call an ABAP function in SAP, is it possible to retrieve the export parameters?
The startrfc program only seems to allow you to send an import parameter (using the E option) and to send/retrieve a table, using the T option.
For example, the function BAPI_USER_EXISTENCE_CHECK exports the parameter RETURN of type BAPIRET2. How can you retrieve this export parameter using the startrfc program?HI Linda,
Create an export variable and in the parameter reference give the field reference of the field like this VBELN[], then this forms a structure parameter...
Then place all your recorded SAPGUI/TCD with in Message/EndMessage Block, and make a rule as an expected message, something like this...
MODE MSGID MSGNR MSGV1
'E' '/DBM/COMMON' 467 E_VBELN
MSGID & MSGNR might differ in your case use them accordingly, also check the previous log and make sure that the order number is MSGV1, if it is in MSGV2, place the variable E_VBELN in the MSGV2 field of the message Rule.
This should generally fetch you all the order numbers...
But in some situations it didnt work in my case, so here is the second solution...
MESSAGE ( MSG_1 ).
SAPGUI/TCD RECORDING
ENDMESSAGE ( E_MSG_1 ).
DO ( &TFILL ).
IF ( E_MSG_1[&LPC]-MSGID = '/DBM/COMMON' AND E_MSG_1[&LPC]-MSGNR = 467 ).
E_VBELN[V_COUNT]-TABLE_LINE = E_MSG_1[&LPC]-MSGV1.( V_COUNT Should also be declared, but as a local variable)
V_COUNT = V_COUNT + 1.
ENDIF.
ENDDO.
This was you will get all the order numbers in one variable, which you can access in any script while looping the varable based on its length..
Check and modify accordingly.
Hope this helps..
Best regards,
Harsha
PS: award points if this answer helps solve your issue. -
Startrfc in community developer edition of NW 7.02
I downloaded the Netweaver community developer edition a month ago (7.02) but apparently the executable startrfc is not part of the package. Can this be obtained?
Did you extract the file you downloaded ?
-
Hi EDI Experts,
We are running the STARTRFC script on our environment.
startrfc <logon parameters>
- EDI_DATA_INCOMING
- PATHNAME=<Inbound-file-path>
- PORT=<portname>
The Port name we are entering is LOGCLNT800.
which is the logical system name of the SAP we are connecting to.
when we are executing this script, with valid parameters, we are getting a small error.
The error is " The Port name doesn't exist in the table of port definitions."
Can anyone explain how to deal with this and what is wrong with this??
Thanks and Awaiting your reply,
Creasy MattI got it, we have to use the name of file port. Not the Logical system name, not the tRFC port.
-
Calling system with startrfc.exe. Log
Hi.
We are involved in upgrade from 46c to 60 and we have some problems with execute a call RFC from external systems with program startrfc.exe. To determine the error firsts we need to locate the error log. Anybody know where is located the error log of startrfc process? Or it is possible to read the error with a SAP transaction?
Regards,This may be a Hint
I think if you are using addition option -T in startrfc then this will turn trace on. internally this will write to the trace file 'dev_rfc'
a® -
Calling startrfc.exe from within a vbs script
Hello, can someone help me please
I am trying to process xml idocs into SAP on a Windows 2008 server. I have written a vbs script to process the file and am trying to call STARTRFC.EXE from within the vbs script. However I keep getting an error that it cannot open the file. The code is shown below. I have changed the server name and gateway and user/passwd for security. I'm passing the filename as a variable (str_expfile) but it does not seem to be able to extract the actual file name from the variable. I know from past experience that you can pass it variables if its running on a unix box and in a shell. But for some reason it not decipering the variable name in the vbs script
Set objShell = CreateObject("Wscript.Shell")
str_startrfc = "D:\usr\sap\SID\SYS\exe\uc\NTAMD64\startrfc.exe -d SID -3 -h hostname -s 00 -g hostname -x sapgw00 -u user -p passwd -c 100 -l EN -t -F EDI_DATA_INCOMING -E PORT=MYPORT -E PATHNAME=str_expfile"
objShell.Run str_startrfc, ,True
The error I'm getting is shown below:
ERROR file opened at 20110510 134219 GMT Daylight Time, SAP-REL 700,0,278 RFC-VER 3 1200864 MT-SL
T:2584 Error in program 'startrfc': ======> Error at OPEN 'str_expfile' (check file)
T:2584 Error in program 'startrfc': <* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION
T:2584 Error in program 'startrfc': <* RfcCallReceive [1] : returns 3:RFC_SYS_EXCEPTION
Thanks
Regards
SteveHi Markus
Unfortunately I can't do that because I need it to process hundreds of files one after another and I would have to hard code the file path each time. That's why I need it automated.
Can startrfc.exe not take a variable for the pathname in a vb script? It works fine in a unix shell. We are migrating from unix to windows and I need to convert all my unix scripts into vb scripts.
I notice there is a nother rfc type program available, can I use rfcexec.exe instead of startrfc.exe and would it take variables?
Thanks
Regards
Steve -
Capturing return status from a call to STARTRFC from a shell script.
Hi All
I am trying to use startrfc to integrate a Unix (Solaris) batch process with SAP. I want to determine whether an SAP user exists.
Here is the command as run in the Unix shell: -
startrfc -t -3 -h ourHost -s 01 -c 550 -l EN -u SAPuser -p secret -F BAPI_USER_EXISTENCE_CHECK -E USERNAME=testSAPuser
This command always exits with a status of zero, whether or not the user exists. (With the -t flag) It creates a file, dev_rfc and a second file of the form CPICTRCnnnnn. However there is no output to stdout, irrespective of whether testSAPuser exists.
Can I force this utility program to write its output to stdout instesd of writing it to a file? How?
Alternatively can I force the utility to write its output to a specific (named) file instead of writing to dev_rfc?
Thank you for your attention
Stephen BroadbridgeHi,
You could create an RFC in SAP and put your BAPI function, an the result into a table parameters:
- use -T parameter to get the table
- use w to set your file
<b>Example:</b>
startrfc -E PEBELP=00010 -t -d AR1 -h S01AZ03A01 -s 10 -g S01AZ03A01 -x sapgw10 -u LOLA -p flores -c 130 -l EN -F Y_RFC_EXAMPLE2 <b>-T RESULTADO,250,w=outputname.txt</b>
<b>Explanation of parameters:</b>
-T <table name>,<width>,[r=<file>][,w=<file>]
Where <file> is a path name to read from (r) or write to (w) the internal table. If <file> is -, stdin or stdout is used.
<b>Example of Y_RFC_EXAMPLE2</b>
FUNCTION Y_RFC_EXAMPLE2.
""Local interface:
*" IMPORTING
*" VALUE(PEBELP) TYPE EBELP
*" TABLES
*" RESULTADO STRUCTURE TAB512
DATA fecha(10).
DATA wa TYPE string.
WRITE sy-datum TO fecha.
CONCATENATE pebelp fecha INTO wa SEPARATED BY '/'.
ds_rec 'sample' wa.
append wa to resultado.
ENDFUNCTION.
Maybe you are looking for
-
Does anyone else have an LG Revolution with NEVER ENDING PROBLEMS?! My biggest issue right now: I can't get any service when I'm at work. I work with about 5 others who have Verizon as their provider and they will all have 4 bars of service when I ha
-
Binding to directory server vs. OD replica
Can someone explain the practical differences between binding a server to an OD master vs. being a replica of that OD master? Why would I bind a server instead of making a replica? Seems like the replica would always be easier to admin and would prov
-
Can I use .msn email address on iMAC?
Still have an old msn email account that I use for some business - Now that my PC has crashed again - I know I can download messenger, but I just want to be able to get a hold of the msn email account to check emails. Mostly use my .mac but still nee
-
SQL table or Txt file as target
Hi, I have been asked my my IT department if FDM can have a Sql table or a txt file as a target instead of using the normal EPM products like esbase/hfm. They like the interface as a user friendly interface for collecting data and validating data fro
-
How to passing value into Captivate from html?
How to passing value into Captivate from html? Or How to communicate between objects in one slides?