Found 30 Articles for Sap Rfc

Callback is not working on remote but working locally in SAP CRM

Samual Sam
Updated on 30-Jul-2019 22:30:20

149 Views

The issue lies in the class you are using for making a method call. This class is basically making RFC callback with the help of SAP GUI. SO, when you are using the function builder, it works well because it has an SAP GUI connection present.But when you are using an external system, the GUI is missing and it doesn’t works. What you can try is to use some other method which does not have an RFC callback and thus will not have any problem. Try to use ‘create_with_table’ in place of your used method.

BAPI to upload documents to SAP system is throwing an exception

Swarali Sree
Updated on 30-Jul-2019 22:30:20

333 Views

As mentioned in exception message, it seems that the function module tries to access GUI related function and it doesn’t support BAPIs. So it seems to be a custom RFC module or there is some bug in SAP coding and you should open a support ticket with SAP.Also, you shouldn’t use GUI services in non-GUI operations, and it is not suggested to use class cl_gui_frontend_services and functions GUI_* and you should use OPEN_DATASET FOR INPUT/OUTPUT instruction in RFC function.

Using SAP Tables from C# application - RFC_READ_TABLE

vanithasree
Updated on 10-Dec-2019 09:01:35

453 Views

Many users use RFC_READ_Table as API for generic table access.Joins are not supported in RFC_READ_TABLE - Not correct as you can any time join your application. If you face any issues, you can ask user ABAP developer to create a Function Module.Select * query does not work for most cases as the data_buffer_exceed error is thrown- You shouldn’t run select * all the time as you don’t need all the data. You should only pull information that is required.

Source code of ABAP reports without restriction

Sai Subramanyam
Updated on 14-Feb-2020 08:00:24

310 Views

If you have to use RFC, you can write RFC enabled function module. You can write a new FM that allows you to retrieve program source code. To start with, you need to create a structure as shown in below and based on which you have to create a table type. This table can be passed to a RFC function.Here shows a table type that you can use in Function Module:Next step is to create a function module with RFC-enabled. You have to pass parameters while creating function module.function zsrcex_extractor . *"---------------------------------------------------------------------- *"*"Local Interface: *"  IMPORTING *"     VALUE(PACKAGE_SIZE) ... Read More

Request Timeout while using Odata call to a gateway in SAPUI5 application

varma
Updated on 10-Dec-2019 09:52:36

1K+ Views

As you have already tried different parameters, I would suggest to check timeout option for ICM and Web Dispatcher.In SAP, you have ICM and Web Dispatcher with different timeouts, controlled by different parameters:Timeout for opening a connection: icm/conn_timeoutTimeout for receiving a request: icm/traffic_control Keepalive timeout for the network connection: icm/server_port_ option TIMEOUT and icm/keep_alive_timeoutProcessing timeout in the back end: icm/server_port_- option PROCTIMEOUTSAP Recommendation for these scenarios:In systems where the standard timeout setting of 60 seconds for the keep-alive and processing timeouts is not sufficient due to long-running applications, SAP recommends that both the TIMEOUT and PROCTIMEOUT parameters are set for the ... Read More

RFC returns exception while using SAP RFC_READ_TABLE to output data to software

Swarali Sree
Updated on 30-Jul-2019 22:30:20

245 Views

You can check if there are any short dumps in SAP system using T-Code: ST22. When there are short dumps, it leaves ABAP Processor in an invalid state. This results in a failed call with an unspecified error message.

Retrieve list of linked documents in SAP

Sharon Christine
Updated on 10-Dec-2019 10:24:23

64 Views

There are lots of RFC present to fetch the list of documents. You can try any permutation and combination to identify which suits your requirementBAPI_MATERIAL_GETLISTBAPI_DOCUMENT_GETOBJECTDOCSBAPI_DOCUMENT_GETOBJECTLINKSBAPI_DOCUMENT_GETDETAIL I prefer that you better try with BAPI_DOCUMENT_GETOBJECTDOCS, I have used it to achieve something similar in the past.

Executing an inner join over RFC on database tables in SAP system

Akshaya Akki
Updated on 05-Dec-2019 10:32:27

359 Views

You can do this by creating your own function module that can perform selection as per the requirement.You could also use to create a database view and that can be used to call RFC_READ_TABLE. Also, check for prebuilt SAP connectors provided by companies for SQL joins:http://www.plsapconnector.com/

Existing RFC to load table data, and to get list of tables and list of BAPI’s in SAP

Akshaya Akki
Updated on 16-Mar-2020 06:57:46

794 Views

I am not sure that there exists a BAPI to see list of all BAPI’s in SAP system. You can use the Function module RFC_FUNCTION_SEARCH to search for function modules starting with BAPI*.ExampleYou can call Function Module-BAPI_MONITOR_GETLIST to get list of all available BAPI’s.CALL FUNCTION'BAPI_MONITOR_GETLIST' EXPORTING OBJECTTYPE = p_ojtpe SHOW_RELEASE = p_rel BAPIS_POTENTIAL = p_poten BAPIS_NEW = p_new_pabi BAPIS_OLD = p_old_bapi RELEASED_BAPI = p_rel_bapi RELEASED_FUNC = p_released_func IMPORTING RETURN = d_ret TABLES COMPONENTS2SELECT = int_cs SYSTEMS2SELECT = int_sss BAPILIST = int_bapilistThere exists a Function module - RFC_READ_TABLE, this can be used for external access to SAP R/3 system via RFC.Using ... Read More

Using table parameter in SAP RFC Function module

Sharon Christine
Updated on 30-Jul-2019 22:30:20

1K+ Views

RFC enabled function modules, you should use a structure as line type for the table.  You should declare a dictionary structure Z_MY_PARTS_DATA with a single field DESCRIPTION TYPE CGPL_TEXT2.Declare a data dictionary table type Z_MY_PARTS_TABLE using this structure.Next is to use the table type in Function module.

Advertisements