how to handle errors in rfc?



how to handle errors in rfc?..

Answer / sathish

There are different causes for ABAP errors, depending on the
program. Causes include:

* Incorrect or incomplete entries in the RFC destination
(transaction SM59)

* Network problems

* Authorization problems

* Error in the RFC program

Solution

Check the following:

1. Check all the entries made in transaction SM59. The
destination used must be entered with category T. Enter a
complete path name, if possible, for the program to be
started. Make sure to save the destination.
2. Configuration on operating system level
1. The host name specification in the destination
1. A name is entered into ‘host name’ (radio
button in Release 3.0 is selected ‘explicitely’) or a
non-standard gateway is stored (in gateway options). In the
latter case, the program is started by the standard gateway
program of the system or by the gateway (
gwrd ) specified explicitely via ‘remote
shell’.

Make sure that the entered computer can be
addressed by the computer of gateway process. Enter the
following command on this computer:

/etc/ping <host name> or ping <host name>

To start a program with ‘remote shell’ on
another computer, it is necessary that the user-ID of the
gateway process exists on the target system and that the
HOME directory of this user contains a file. rhosts in the
target system. The name of the calling computer must be
stored in this file. To test this, log in on the computer of
the gateway process under the user-ID of this process and
call the command:

remsh <host name> <program name>

In this case, you have to enter the same
as in transaction SM59 for <host name> and <program name> .

(If an RFC server program is called
without parameters, the call RfcAccept returns an error code
( RFC_HANDLE_NULL ) in any case and the program should
terminate immediately.)
2. No entry is made in ‘host name’ (or in
3.0: Server is selected)

In this case, the program is started from the
SAP application server.

Make sure that the program can be addressed from
the SAP application server.

Make sure that the SAP application server has
the authorization for starting the program.

To do this, log on under the user-ID of the SAP
application server (generally c11adm ). Go into the ‘work’
directory of the application server ( /usr/sap/.../D.../work
), if possible, and start the RFC server program manually
from there.

(If an RFC server program is called without
parameters, the call RfcAccept returns an error code (
RFC_HANDLE_NULL ) in any case and the program should
terminate immediately.)

In Release 3.0, you can also select ‘User’. In
this case, the program is started by ‘Sapgui’, that is,
under the user-ID and the environment of the user.

Make sure that the program can be addressed by
sapgui/saptemu .

Make sure that sapgui has the authorization to
start the program.

To do this, call the RFC server program.
2. Problems in the RFC server program itself

To pick up stderr output of the RFC server program, you can
enter a control program instead of the actual server program
into the destination which in turn starts the actual server
program with the same command line and which in this case
redirects the standard output of the program into a file.

Example

RFC server program is /xxx/xxxx.

However, the C script is called (do not forget the
specification of the shell in the first line):

#!/bin/csh

date >> /tmp/rfclog

/xxx/xxxx $* >>& /tmp/rfclog

echo $status >>& /tmp/rfclog

Display the log file /tmp/rfclog for further error analysis.

You can activate the trace flag in the destination (remember
to save). A file dev_rfc is then written by the RFC server
program in its current directory containing all data
received, operations and errors that occurred.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SAP ABAP Interview Questions

Explain the program flow when we use logical database PNP or PNPCE

2 Answers  


Table ztest has a secondary index on the following fields: tnum, tcode. Select * from ztest where tnum ne '123' and tcode = '456'. Why is the index not used in the above case? Choices: a) Indexes are not allowed on Z tables b) Variables must be used, NOT literals c) Select individual fields, not select * d) Client is not in the where clause e) NE invalidates the use of an index Info: Can someone explain in detail why this happened? It will be really helpful to handle to case in Secondary index:

2 Answers   SAP Labs,


how to debug the program based on the user

1 Answers   ITC Infotech,


how to create the new page in alv.(ex: after 50 records it will trigger new page or based on some condition).

1 Answers   IBM,


Explain buffering concept usage?

0 Answers  






how do the sub-total in sap scripts

2 Answers   ITC Infotech,


What are the components in technical setting while creating a table

1 Answers   ITC Infotech,


In tm, if a group of employees gets 10 days of annual leave, what will be the time evaluation status? : sap abap hr

0 Answers  


Domain-use?

4 Answers   HCL,


what is difference between MOVE and MOVE-CORRESPONDING?

4 Answers   Satyam,


What is a modification assistant?

0 Answers  


Companies in India which are working in SAP-ISU?

10 Answers  


Categories
  • SAP Basis Interview Questions SAP Basis (1262)
  • SAP ABAP Interview Questions SAP ABAP (3939)
  • SAPScript Interview Questions SAPScript (236)
  • SAP SD (Sales & Distribution) Interview Questions SAP SD (Sales & Distribution) (2716)
  • SAP MM (Material Management) Interview Questions SAP MM (Material Management) (911)
  • SAP QM (Quality Management) Interview Questions SAP QM (Quality Management) (99)
  • SAP PP (Production Planning) Interview Questions SAP PP (Production Planning) (523)
  • SAP PM (Plant Maintenance) Interview Questions SAP PM (Plant Maintenance) (252)
  • SAP PS (Project Systems) Interview Questions SAP PS (Project Systems) (138)
  • SAP FI-CO (Financial Accounting & Controlling) Interview Questions SAP FI-CO (Financial Accounting & Controlling) (2766)
  • SAP HR (Human Resource Management) Interview Questions SAP HR (Human Resource Management) (1180)
  • SAP CRM (Customer Relationship Management) Interview Questions SAP CRM (Customer Relationship Management) (432)
  • SAP SRM (Supplier Relationship Management) Interview Questions SAP SRM (Supplier Relationship Management) (132)
  • SAP APO (Advanced Planner Optimizer) Interview Questions SAP APO (Advanced Planner Optimizer) (92)
  • SAP BW (Business Warehouse) Interview Questions SAP BW (Business Warehouse) (896)
  • SAP Business Workflow Interview Questions SAP Business Workflow (72)
  • SAP Security Interview Questions SAP Security (597)
  • SAP Interfaces Interview Questions SAP Interfaces (74)
  • SAP Netweaver Interview Questions SAP Netweaver (282)
  • SAP ALE IDocs Interview Questions SAP ALE IDocs (163)
  • SAP Business One Interview Questions SAP Business One (110)
  • SAP BO BOBJ (Business Objects) Interview Questions SAP BO BOBJ (Business Objects) (388)
  • SAP CPS (Central Process Scheduling) Interview Questions SAP CPS (Central Process Scheduling) (14)
  • SAP GTS (Global Trade Services) Interview Questions SAP GTS (Global Trade Services) (21)
  • SAP Hybris Interview Questions SAP Hybris (132)
  • SAP HANA Interview Questions SAP HANA (700)
  • SAP PI (Process Integration) Interview Questions SAP PI (Process Integration) (113)
  • SAP PO (Process Orchestration) Interview Questions SAP PO (Process Orchestration) (25)
  • SAP BI (Business Intelligence) Interview Questions SAP BI (Business Intelligence) (174)
  • SAP BPC (Business Planning and Consolidation) Interview Questions SAP BPC (Business Planning and Consolidation) (38)
  • SAP BODS (Business Objects Data Services) Interview Questions SAP BODS (Business Objects Data Services) (49)
  • SAP BODI (Business Objects Data Integrator) Interview Questions SAP BODI (Business Objects Data Integrator) (26)
  • SAP Ariba Interview Questions SAP Ariba (9)
  • SAP Fiori Interview Questions SAP Fiori (45)
  • SAP EWM (Extended Warehouse Management) Interview Questions SAP EWM (Extended Warehouse Management) (58)
  • Sap R/3 Interview Questions Sap R/3 (150)
  • SAP FSCM Financial Supply Chain Management Interview Questions SAP FSCM Financial Supply Chain Management (101)
  • SAP WM (Warehouse Management) Interview Questions SAP WM (Warehouse Management) (31)
  • SAP GRC (Governance Risk and Compliance) Interview Questions SAP GRC (Governance Risk and Compliance) (64)
  • SAP MDM (Master Data Management) Interview Questions SAP MDM (Master Data Management) (0)
  • SAP MRS (Multi Resource Scheduling) Interview Questions SAP MRS (Multi Resource Scheduling) (0)
  • SAP ESS MSS (Employee Manager Self Service) Interview Questions SAP ESS MSS (Employee Manager Self Service) (13)
  • SAP CS (Customer Service) Interview Questions SAP CS (Customer Service) (0)
  • SAP TRM (Treasury and Risk Management) Interview Questions SAP TRM (Treasury and Risk Management) (0)
  • SAP Web Dynpro ABAP Interview Questions SAP Web Dynpro ABAP (198)
  • SAP IBP (Integrated Business Planning) Interview Questions SAP IBP (Integrated Business Planning) (0)
  • SAP OO-ABAP (Object Oriented ABAP) Interview Questions SAP OO-ABAP (Object Oriented ABAP) (70)
  • SAP S/4 HANA Finance (Simple Finance) Interview Questions SAP S/4 HANA Finance (Simple Finance) (143)
  • SAP FS-CD (Collections and Disbursements) Interview Questions SAP FS-CD (Collections and Disbursements) (0)
  • SAP PLM (Product Lifecycle Management) Interview Questions SAP PLM (Product Lifecycle Management) (0)
  • SAP SuccessFactors Interview Questions SAP SuccessFactors (33)
  • SAP Vistex Interview Questions SAP Vistex (0)
  • SAP ISR (IS Retail) Interview Questions SAP ISR (IS Retail) (28)
  • SAP IdM (Identity Management) Interview Questions SAP IdM (Identity Management) (0)
  • SAP IM (Investment Management) Interview Questions SAP IM (Investment Management) (0)
  • SAP UI5 Interview Questions SAP UI5 (59)
  • SAP SCM (Supply Chain Management) Interview Questions SAP SCM (Supply Chain Management) (51)
  • SAP XI (Exchange Infrastructure) Interview Questions SAP XI (Exchange Infrastructure) (49)
  • SAP Cloud Platform Interview Questions SAP Cloud Platform (34)
  • SAP Testing Interview Questions SAP Testing (89)
  • SAP SolMan (Solution Manager) Interview Questions SAP SolMan (Solution Manager) (63)
  • SAP MaxDB Interview Questions SAP MaxDB (116)
  • SAP GUI Interview Questions SAP GUI (15)
  • SAP AllOther Interview Questions SAP AllOther (329)