SAP BAPI return code in Agentry
Hi all,
I would like to know if it's possible in Agentry to consider an error code from the LT_RETURN table as a success? We are looking for a way to avoid faulty transaction in Work Manager 5.3 to block the rest of the transaction on the client side.
Is it possible to treat an error code from the LT_RETURN table as a success code in Work Manager? For example, instead of showing an error, we would use this return code to display some sort of warning to the user.
In other words, we want to let the user sending more transactions even if some of them fails in SAP.
I am aware that we can discard faulty transaction with the error handling already in place. That might be our best solution so far, since we can hide all this to the end user.
Thanks for your time.
Hi Neilson,
One way to do that would be to enhance the Syclo classes so they return a warning instead of an error. It would be a complex change because there are many classes you'd need to enhance. Also you'd need to define the business rules e.g. Do you want every error ignored? Should someone back in the office be notified that an error has occurred and attempt to rectify the problem etc.
If you just want to avoid errors stopping the rest of the sync its probably best just to active the "enableTransactionFailureHandling" feature in SMP.
Agentry Server Configuration
Cheers,
Stephen
Similar Messages
-
Hi everybody what is the main purpose of return code.
Data dictionary structures
-BAPIRETURN
-BAPIRETURN1
-BAPIRET1
-BAPRET2.
THANKS IN ADVANCE.Each BAPI has a return parameter that is either an export parameter or an export table.
A BAPI should be able to record and classify all possible errors that may occur.
You have to create a parameter named Return for every BAPI. This parameter returns exception messages or success messages to the calling program.
BAPIs themselves must not trigger any messages (such as MESSAGE xnnn) in the coding. In particular they must not generate terminations or display dialog boxes. Instead, all messages must be intercepted internally and reported back to the calling program in the Return parameter. Otherwise the BAPI will not be processed correctly and control may not be given back to the calling program.
The export parameter Return can be implemented as follows:
As a structure, whereby it must be defined in the function module as an export parameter, as well as in the method in the BOR.
As a table, whereby it must be defined in the function module as a table parameter, as well as in the method in the BOR as an export parameter.
Before filling the Return parameter you should either initialize the structure with CLEAR or the table with REFRESH and CLEAR.
If the return parameter is not set or is set to an initial value this means that no error has occurred.
The Return parameter may be based on the following reference structures:
BAPIRET2
You must use this reference structure when developing new BAPIS.
BAPIRET1, BAPIRETURN
These reference structures are still partly used in old BAPIs.
Both structures must be filled in the logon language.
Have a look at return parameters in below link.
http://help.sap.com/saphelp_nw04/helpdata/en/a5/3ec9f74ac011d1894e0000e829fbbd/frameset.htm
Best Regards,
Vibha
*Please mark all the helpful answers -
Crystal Reports publishing - save on sap bw - Return code 120 error
Hi there,
I jave trouble to save an report on the bw server. The report is created by a mdx query (sap integration kit).
After "Save as" and the publishing window(not selected) it gives me an error saying:
"An error occurred while saving and/or publishing. The return code 120 was returned from the server"
- publishing service is configured
- sap roles are imported
- sap authentication is configured
Installation: BO Edge SP2 (12.2.0.153)
Any ideas?
Thank you,
AlexHy Ingo
In the result of the SAP authorization trace is ok.
But there are some red lines in the Kernel Trace:
09:25:55:503 AUTH - - - S_RFC RC=0 tcode= ;RFC_TYPE=FUGR;RFC_NAME=SYST;ACTVT=16;
09:25:55:940 AUTH - - - S_RFC RC=0 tcode= ;RFC_TYPE=FUGR;RFC_NAME=SUSO;ACTVT=16;
09:25:55:943 AUTH - - - S_RFC RC=0 tcode= ;RFC_TYPE=FUGR;RFC_NAME=SUNI;ACTVT=16;
09:25:55:948 AUTH - - - S_RFC RC=0 tcode= ;RFC_TYPE=FUGR;RFC_NAME=RSCR;ACTVT=16;
09:25:55:949 AUTH - - - S_RFC RC=0 tcode= ;RFC_TYPE=FUGR;RFC_NAME=SH3A;ACTVT=16;
09:25:56:82 AUTH - - - S_RFC RC=0 tcode= ;RFC_TYPE=FUGR;RFC_NAME=RFC1;ACTVT=16;
09:25:56:89 AUTH - - - S_RFC RC=0 tcode= ;RFC_TYPE=FUGR;RFC_NAME=RFCH;ACTVT=16;
09:25:56:125 AUTH - - - S_RFC RC=0 tcode= ;RFC_TYPE=FUGR;RFC_NAME=RZX0;ACTVT=16;
09:25:56:126 AUTH - - - S_RS_RSTT RC=0 tcode= ;RSTTBOBJ=TRACE;USER=22KLAL;ACTVT=01;
09:25:56:130 AUTH - - - S_RS_TOOLS RC=0 tcode= ;COMMAND=WEBPUBLISH;
09:25:56:136 AUTH - - - S_RS_FOLD RC=0 tcode= ;SUP_FOLDER=' ';
09:25:56:596 AUTH - - - S_RFC RC=0 tcode= ;RFC_TYPE=FUGR;RFC_NAME=RZX2;ACTVT=16;
regards alex -
How to retrieve the data from SAP-BAPI by using VB Code
Hi ,
I am new to BAPI.
V have created an application in Visual Basic with the following fields
EmpNo , EmpName, Addr1, Addr2, City and Phone (Only for Test)
We have written the code for SAVING the data into SAP. Already we have
constructed a table with the respective fields in SAP.
For that we ourself created our own BAPI Structure / Function Group /
Function Module/ Business Object - RELEASED related elements.
1)Established the connection successfully.
2)Stored the data into SAP Successfully and v r in need of
3)HOW TO RETRIEVE THE DATA FROM SAP (USING GETLIST.....GETDETAIL....)
Following is the code :
'BAPI Structure : ZBAPIEMP
'Function Group : ZBAPIEMP
'Function Module : ZBAPI_EMP_CREATEFROMDATA
'Business Object : ZBAPIEMP
'Function Module : ZBAPI_EMP_GETLIST
Dim bapictrl As Object
Dim oconnection As Object
Dim boEmp As Object
Dim oZEmp_Header As Object
Dim oImpStruct As Object
Dim oExpStruct As Object
Dim oreturn As Object
Dim x As String
Private Sub Form_Load()
Set bapictrl = CreateObject("SAP.BAPI.1")
Set oconnection = bapictrl.Connection
oconnection.logon
Set boEmp = bapictrl.GetSAPObject("ZBAPIEMP")
Set oZEmp_Header = bapictrl.DimAs(boEmp, "CreateFromData", "EmployeeHeader")
Set oImpStruct = bapictrl.DimAs(boEmp, "GetList", "EmployeeDispStruct")
End Sub
Private Sub cmdSave_Click()
oZEmp_Header.Value("EMPNO") = txtEmpNo.Text
oZEmp_Header.Value("EMPNAME") = txtEmpName.Text
oZEmp_Header.Value("ADDR1") = txtAddr1.Text
oZEmp_Header.Value("ADDR2") = txtAddr2.Text
oZEmp_Header.Value("CITY") = txtCity.Text
oZEmp_Header.Value("PHONE") = txtPhone.Text
boEmp.CreateFromData EmployeeHeader:=oZEmp_Header, Return:=oreturn
x = oreturn.Value("Message")
If x = "" Then
MsgBox "Transaction Completed!..."
Else
MsgBox x
End If
End Sub
Private Sub cmdView_Click()
End Sub
COULD ANYBODY GUIDE ME, HOW TO RETRIEVE THE DATA FROM BAPI, FOR THE WRITTEN CODE.I didn't seen any other answers but here's how it's been done previously in our organization for a custom BAPI. In this example, we give material and language to return the part description. It's not specific to your project but may give you ideas..
-Tim
Option Compare Database
Dim SAPLOGIN As Boolean
Dim FunctionCtrl As Object
Dim SapConnection As Object
Sub SAPLOGOUT()
On Error GoTo LogoutFehler
SapConnection.logoff
SAPLOGIN = False
Exit Sub
LogoutFehler:
If Err.Number = 91 Then
Exit Sub
Else
MsgBox Err.Description, vbCritical, "Fehler-Nr." & CStr(Err.Number) & " bei SAP-Logout"
End If
End Sub
Function SAPLOG() As Boolean
'Verbindungsobjekt setzen (Property von FunctionCtrl)
Set FunctionCtrl = CreateObject("SAP.Functions")
Set SapConnection = FunctionCtrl.Connection
'Logon mit Initialwerten
SapConnection.Client = "010"
SapConnection.Language = "EN"
SapConnection.System = "PR1"
SapConnection.SystemNumber = "00"
'SapConnection.Password = ""
SapConnection.GroupName = "PR1"
SapConnection.HostName = "168.9.25.120"
SapConnection.MessageServer = "168.9.25.120"
If SapConnection.Logon(0, False) <> True Then 'Logon mit Dialog
Set SapConnection = Nothing
DoCmd.Hourglass False
MsgBox "No connection to SAP R/3 !"
SAPLOGIN = False
SAPLOG = False
Exit Function
End If
SAPLOG = True
End Function
Function MatDescr(MatNr As String)
Dim func1 As Object
Dim row As Object, X As Integer, ErsteNr As String
Dim DatensatzZähler As Long
Dim RowField(1 To 50, 0 To 1) As String, RowLine As Long
If Not SAPLOGIN Then
If Not SAPLOG() Then
MsgBox "No connection to SAP !", 16
SAPLOGOUT
Exit Function
End If
End If
' Instanziieren des Function-Objektes
Set func1 = FunctionCtrl.Add("Z_BAPI_READ_MAKT")
' Export-Paramter definieren
func1.exports("MATNR") = MatNr
func1.exports("SPRAS") = "EN"
DoEvents
If Not func1.call Then
If func1.exception <> "" Then
MsgBox "Communication Error with RFC " & func1.exception
End If
DoCmd.Hourglass False
SAPLOGOUT
Exit Function
Else
MatDescr = func1.imports("MAKTX")
End If
If MatDescr = "" Then
MatDescr = "PART NO. NOT FOUND"
End If
End Function -
RFC Communication - error CPIC return code 020, SAP return code 665
Hello,
I have created RFC destination for connecting SCM system from Solution Manager. Both the systems are Unicode.
I am getting the following error --
ERROR service '?' unknown
LOCATION SAP-Gateway on host gva4103 / sapgw00
COMPONENT NI (network interface)
COUNTER 4028
MODULE
LINE
RETURN CODE -3
SUBRC 0
RELEASE 640
TIME Mon Apr 24 11:28:21 2006
VERSION 37
And in SM21, I am getting following description
Communication error, CPIC return code 020, SAP return code 665
Following are the things I have checked..
1. RFC destination user checked, password reset in SM59 and in the target system
2. checked entries in /etc/services - Entry sapgw03 is present.
Please let me know what all things I need to check.
Thanks and Regards,
VaibhavI solved the problem by myself.
The problem was with the entry in services file only.
I was checking the file on Target system, which had the entry. There was no entry in Host system services file. After modifying the file, the connection now works fine.
Thus for RFC connection, entry of the target system gateway MUST be there in /etc/service of Host system.
Regards,
Vaibhav -
DB2SET DB2WORKLOAD=SAP Fails with Return Code 238
Not sure which forum to post this, hopefully this is the right one. I am in the middle of setting up a sandbox for CRM and during the install, updating the database registry, the install fails with the following error;
db2set DB2WORKLOAD=SAP finished with return code 238.
OS AIX PPC64 I think the version is 5.3
DB2 9 FP5
I can't seem to find anything by google, but I am sure this is just a simple fix.Hi All,
The SAP installation stopped with following error ...
DB2SET DB2WORKLOAD=SAP Fails with Return Code 227
Please help me in solving this issue .....
Regards,
Kumar Kadali -
Msiexec failed with return code 1603 / installing SAP MMC Snap-In and creat
I am installing SAP ABAP trial on windows 7 and I have encountered some problems.
Please help me solve this problem.
Phase 2 : install common system files
Error happened during this step: installing SAP MMC Snap-In and creating shortcuts
Error message:
Running msiexec failed with return code 1603: Schwerwiegender Fehler bei der Installation.
Commandline was msiexec.exe /norestart /L sapmmcX86u.log /i sapmmcX86u.msi /qn
If you want the installer to retry, choose Yes. If you want the installer to abort the installation, choose No.
I have alreday given the permission/rights that are necessary for the user who is installing the system.Hello All,
We also faced the same error, I would like to share the solution steps which we have applied.
Solution :
Refer Note 1236002 - Error during the SAP MMC MSI installation or uninstallation
As per the note :
Download utility “Microsoft Fix It” from http://support.microsoft.com/mats/Program_Install_and_Uninstall
You have the option to run this utility online or you can download the folder structure following the instructions on this page
Then copy the Fix it Portable folder to the computer with the problem and run the Launch Fix it application
What Microsoft Fix It fixes...
Removes bad registry key on 64 bit operating systems.
Windows registry keys that control the upgrade (patching) data that become corrupted.
Resolves problems that prevent new programs from being installed.
Resolves problems that prevent programs from being completely uninstalled and blocking new installations and updates.
Use this troubleshooter for an uninstall only if the program fails to uninstall using the windows add/remove programs feature.
Best Regards.. -
Hi experts.
I sent request from DEV system to PRD system at OS level but I am facing interesting problem. I sent request at OS level and return code 8, that means with error but if we look same request transporter log at SAP side vi tranzaction SE01, Transporter log show me no error. I did not test with return code 0(zero), 4 or 12 at OS level.
Our OS is SOLARIS 11.2 and Database Oracle 11G and SAP Netweaver 7.40.
Thank for help.Read what you have posted:
Alternatively, you can find these logs in the following files in the
log directory of your transport directory (usually:
/usr/sap/trans/log):
- tp Step 6: P<YY><MM><DD>.<SID>
- tp Step N: N<YY><MM><DD>.<SID>
- tp Step S: DS<YY><MM><DD>.<SID>
Sort the files by date and check the latest one.
Markus -
Communication error CPIC return code 019 SAP return code 728. Delta error
Hello Experts,
Would just like to ask if what we suspect is correct. We have running deltas in process chains occurring every early morning. However, upon checking the delta that should have run today, I found that the delta did not push through. I only found this one dump in SM21 that I think is related to the issue:
MNo.
R49 Communication error, CPIC return code 019, SAP return code 728
R5A > Conversation ID: 61442686
R49 Communication error, CPIC return code 019, SAP return code 728
R64 > CPI-C function: CMSEND(SAP)
R5A > Conversation ID: 61443687
R64 > CPI-C function: CMSEND(SAP)
R49 Communication error, CPIC return code 019, SAP return code 728
R5A > Conversation ID: 61444687
R64 > CPI-C function: CMSEND(SAP)
Now we think that the delta did not push through because we are encountering issues with regards to our SAP R/3 system (the source system) and it is currently inaccessible. Did the delta not push through because of the issues and inaccessibility/uber slow processing of our SAP R/3 server? And is the error specified above illustrating this? Any explanation would help. I have already tried looking for similar issues but cannot find anything. Please help. Thanks!Hi
As far I know, The SAP Gateway carries out CPI-C services within the SAP world, which are based on TCP/IP. These services enable SAP Systems and external programs to communicate with one another.
CPI-C services can be used either in the ABAP program or for the external programs via the interfaces.
As RFC (remote function call) is based on CPI-C, all RFC connections also pass through the SAP Gateway.
Errors When Starting Remote Programs Using Remote Shell
When you use remote shell to start CPIC programs on other hosts, the following conditions apply:
The (gateway) UNIX ID must be available on the other host
The gateway host must be entered in the remote host in the file ".rhosts". This file must be located in the HOME directory of the (gateway) UNIX ID.
The program you want to start must be installed in the HOME directory of the (gateway) UNIX ID on the remote host.
Read more from help
http://help.sap.com/saphelp_nw04s/helpdata/en/99/5f8c0bcb7d4280aa862254cffceada/frameset.htm -
Communication error, CPIC return code 017, SAP return code 236
Hi guys,
Need your advice, my SAP system suddenly appear this messages ( SM21).
Please assist me.
Communication error, CPIC return code 017, SAP return code 236
> CPI-C function: CMINIT(SAP)Hi Uday,
My SAP using ABAP. Version 4.7
All RFC working fine except for the OSS
Error message
Details Page 2 Line 22 System Log: Local Analysis of ALBANIA 1
Time Ty. Nr Cl. User Tcod MNo Text
13:52:36 DIA 01 800 SYSADM R49 Communication error, CPIC return code 017, SAP return code 236
Details
Recording at local and central time........................ 27.03.2009 13:52:36
Task................ 57584 . 01 D1 Dialog work process No. 01
User................ SYSADM
Client.............. 800
Terminal............ 10.0.38.
Session............. 1
Transaction code....
Program name........ SAPMSSY1
Problem class....... K SAP Web AS Problem
Development class... STSK -
Communication error, CPIC return code 017, SAP return code 450
Hi All,
can anyone please tell me more about this error Communication error, CPIC return code 017, SAP return code 450 which is displayed in sm21.
We done post configuration of pi server yesterday, after the configuration we were able to log into Integration Directory and Visual Administator..
But today were are not able to log into both .....while logging into both we are getting authentication error 401.
we checked for users being locked but all users are not locked..even even tried reseting passwords,
also restarted the server but didnt help..
Reward points for helpfull Answers.
Thanks and Regards,
Srikanth.Hi Naidu,
Most common reason encountered for this problem is authorizations on installation. it is important to have both network and local machine admin rights when installing content server software. If you don't, the installation will be successful but you encounter the 401 error. Try reinstalling with correct authorization and you should resolve the issue.
Try regenerating the roles. SU01 -> display each XI user -> open the roles -> double click on the role -> click on the User tab in the role screen then there will be a button for USER COMPARISON do that for all the roles in red.
If that does'nt work out, Take a look at OSS Note 751856 and 796726.
May be your security roles were not adjusted during the upgrade (Note 796726).
if found worth pls do the req
Thanx
Sampath -
Communication error, CPIC return code 002, SAP return code 679
Hi,
Our production system log displayed, large no.of
"Communication error, CPIC return code 002, SAP return code 679". I could not able to find any OSS notes on this.
Please explain with detail steps to resolve this issue or please tell me, If any OSS notes exists/
Thanks in advance
Regards
SrinivasWell, I meant that there are a lot of notes available. Search for "CPIC error".
Also, have you double clicked on the line in the log? That will also give you more information.
Rob -
Communication error, CPIC return code 017, SAP return code 223
In sm59 its throughing error Communication error, CPIC return code 017, SAP return code 223 for SAPOSS connection.
Return code 223 is Network read error.
Check out SAP Note : 421558, it may help you.
Regards,
Zaheer -
CPIC return code 017, SAP return code 236
We get the following error in our SM21 log production system as
"Communication error, CPIC return code 017, SAP return code 236
> CPI-C function: CMINIT(SAP)"
Please let me know if anybody has ever faced it?Hi
Check these links
[236,,No connection to gateway ???]
[Gateway Connection Failure RC=236]
Also is your Kernel updated?
Regards
Puneeth
Edited by: Puneeth on Jul 10, 2009 3:10 PM -
Communication error, CPIC return code 020, SAP return code 456
Hi Gurus,
I am facing this error in my BW system system log. "Communication error, CPIC return code 020, SAP return code 456"
Can anyone please helpp in resolving this issue.
Regards
PeterHi Peter,
there is an pretty old note about a similar error ([CPIC return code 020, SAP return code 223|https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=512272&_NLANG=EN]). It was related to a BEX Patch. May be you should raise a note at the service market place for your issue.
regards
Siggi
Maybe you are looking for
-
hi every one i have a screen with a mandatory field when i click in 'BACK' it should not leave the screen because the field is mandatory. when i click on 'CANCEL' it should come out of the screen. and when i click on 'EXIT' it should come out of the
-
Problem opening a pdf file?
HI! I have a pdf file, it does open when clicked on it,but quick look of the file shows an error message and same thing happen when i try to send the file as an email attachment, it cannot be opened at the receiving end??
-
Hi, I have a 1st gen iPod touch and an iPhone 3G. When I got my iPhone (Pay and Go), iTunes asked me if I wanted to configure it in the same way as my touch. I said no, but opted to sync my Purchased on +iPod touch name+ playlist to keep all my iTune
-
How To Scale the Rulers and Object Dimensions
Hello. I've been using Corel Xara for a long time - like, since '98 - and recently started using Illustrator CS3. In Xara, one can set the scale for rulers and objects. For example, I can set up the rulers for inches and then define a scale of, say,
-
Does anyone have experience using a Mac to apply to Grants.gov? I'm trying to download an NEA application to my iMac running 10.5.6. I have Adobe Reader 9.0.0 installed but each time I try the download, I get a Grants.gov response that reads "Warning