Found 1039 Articles for SAP

Error while selecting into field-symbol in SAP ABAP

Rishi Raj
Updated on 05-Dec-2019 09:13:59

414 Views

The problem is that you have not declared Field-symbol. Try using the below code.data:  ws_bkpf      TYPE bkpf_type. SELECT MANDT    INTO CORRESPONDING FIELDS OF ws_mandt UP TO 1 ROWS    FROM bkpf    WHERE belnr = '1700001016'. ENDSELECT.

Call screen on clicking the button in SAP ABAP

Vikyath Ram
Updated on 05-Dec-2019 09:17:37

3K+ Views

Please follow the steps below to make it functional.First, open the screen painterNow, double click on the button you want to make functionalAbove “Context Menu Form", you will find a field to enter Functional code where you enter the functional code.This will convert your button to functional trigger theOK code which will run the dynpro “PROCESS AFTER INPUT". Now add a PAI module to this dynpro which indicates the screen you want to call when the button is clicked. Below is the examplecase sy-ucomm. " the ok code   when 'Functioncode’.       call screen screennumber.   when others. ... Read More

Using AT_FIRST be used to initialize variables used in loop in SAP ABAP\\\

Rishi Raj
Updated on 30-Jul-2019 22:30:20

170 Views

There would not be much of difference in both ways. The only thing is without AT_FIRST, the counter variables will be cleared in all cases while using AT_FIRST, the counter variables will be cleared only if there is at least one execution of the loop. So, the only difference would come into the picture if ls_itab is empty.

References are not allowed in a SAP remote function call

Giri Raju
Updated on 30-Jul-2019 22:30:20

380 Views

You are trying to make use of references but you should be aware that it is accessible only with the same stack and in your case, it is not. You are creating a remote function module and here references will not work. So, you should be going with parameters as ‘pass by value’ instead of ‘pass by reference’.

Rfcabapexception error while querying a number of columns using RFC_READ_TABLE in SAP

Vikyath Ram
Updated on 30-Jul-2019 22:30:20

322 Views

It is not because of a number of columns but the actual total size of the fields you are querying. It should not be more than 512 bytes.  For RFC communication, the types likes DATA or STANDARD table are not supported. So the RFC_READ_TABLE function module has to convert the data into the generic format and the data is transferred as a series of lines. It is the size of these table lines that matter. The size cannot exceed 512 characters.  If the size is greater than 512 characters, the module throws a Rfcabapexception exception with a short dump.  The ... Read More

Finding minimum value across different columns in SAP HANA

Rishi Raj
Updated on 05-Dec-2019 09:20:19

638 Views

You need to use LEAST instead of min as below:“SELECT ID, LEAST(DAY_1, DAY_2, DAY_3) FROM ...” Please make sure that none of the values in your column in “NULL”.

Storing Personal Information in LDAP/AD or in SAP HR module

Daniol Thomas
Updated on 30-Jul-2019 22:30:20

163 Views

LDAP can store sensitive information but it is not recommended to store sensitive information in LDAP from a security point of view. This information should go to some HR information or you can also develop a middleware to store this information. You can use EMP ID to track this information back to middleware or LDAP.

Make a custom function call without using SAP NetWeaver

mkotla
Updated on 30-Jul-2019 22:30:20

138 Views

I know a couple of ways how can you can go ahead and use the RFC you have created from SAPUI5 but without using SAP NetWeaver.You can try to create a web service or a REST service which uses the RFC that you have created. Host the service in the SAP environment and then you can use the service in SAP UI5 with the help of URL.Or you can go for a SICF service and have a handler for the service. In the handler of the service, you can have the same logic for fetching the content as you have ... Read More

Different ways to interact with SAP system from a web application

Lakshmi Srinivas
Updated on 14-Feb-2020 09:59:21

831 Views

Using any of above method depends on what you are connecting, and version of your SAP system. You can use Standard BAPI’s to read or update a service order. BAPI is a Remote Function Call RFC with a standard API.In latest releases of SAP ERP, many of Function Modules are exposed as Web Services.In SAP system, you need to follow some administration task to allow access to SAP system. Following T-Codes can be used: SICF or SOAMANAGER.When you install ABAP Application Server, all the services are available in an inactive state. When a call is made to a URL, multiple ... Read More

Using SAP connector 3.0 on an MVC application

Krantik Chavan
Updated on 06-Dec-2019 11:03:47

285 Views

Try adding a new row before calling SetValue. Please check the below:employeeHoli.Append(); employeeHoli.SetValue("ColumnName", "0000345");You use a table parameter that can hold multiple lines. You have to append the above lines that will return some structure and you can fill that structure.

Advertisements