Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
ABAP Articles
Page 6 of 9
Can I change the text of options for SELECT via code in ABAP?
Yes, it can be done but I would request you to go through documentation available on SAP help before asking such questions as such things are well explained in documentation and help you to know the system better. You just need to set the text property to text of your choice.INITIALIZATION %_name_%_app_%-text = Hope it helps.
Read MoreUsing SAP ABAP, how can I read content of CSV files in a directory to an internal table?
There are many functions that can be used to read csv however many are broken and read part of content. You need to go through each file and then process the file content. I would prefer to perform this manually.You can use the READ DATASET to read data from a file on the application server. Below is the syntax:READ DATASET INTO [LENGTH ].Below is SAP documentation link that you can use to know more about reading data from files:SAP DocumentationExampleIncase you are using binary mode, you can use LENGTH to find the length of data transferred to . ...
Read MoreModification not working for both internal table and control table in SAP ABAP
There seems to some mistake in your update modle. PFB the updated oneExampleMODULE update INPUT. MODIFY snctab INDEX ctrl-current_line. IF sy-subrc 0. APPEND snctab. ENDIF. ENDMODULE.
Read MoreDifference between class alv and function alv in SAP ABAP?
Class alv and Function alv are different in terms of features. Below is the difference:Class alv are secured as compared to function alv.While using class alv, it improves the performance.With use of function alv, you can create screens using function module however you need to call separate programs to generate screen.Class alv provides Object Oriented functionality and hence they are easily reusable.You can execute function modules asynchronously and can also be called by other systems remotely.Below is an example of class ALV:DATA: lcl_alv TYPE REF TO cl_gui_alv_grid, t_gly TYPE STANDARD TABLE OF Travels . SELECT * FROM ...
Read MoreHow to connect to an SAP module?
You can create RFC function module and then call this function module from outside. You can create RFC using T-Code SE37You can use the following link to know more about using RFC function module:https://archive.sap.com/discussions/thread/333645This tells about how you can create an FM in SE37 in Target system enabling Remote-Function Enabled and using attributes of FM.To create an RFC connection, you need to use T-Code: SM59 mentioning Username and Password.Another link that you can refer which tells about creating RFC and Remote-enabled FM and call from another SAP system using ABAP Program:https://wiki.scn.sap.com/wiki/display/Snippets/Creating+RFC+and+Remote-enabled+FM+and+call+from+another+SAP+system+using+ABAP+Program
Read MoreExplain the module function to split ABAP date?
You can use module function name “MONTH_NAMES_GET” to get the month’s name. The function will take up the language as a parameter; you can pass the desired language as a parameter and get the month’s name. Similarly, we have a function for fetching day name as well. You can use:“RH_GET_DATE_DAYNAME”
Read MoreHow to have a structure with a table in ABAP?
The basic rule while specifying a table within a structure is that you have to give a non-unique constraint to that field.TYPES: myType TYPE TABLE OF string WITH NON-UNIQUE DEFAULT KEYThen use this in the structure definition:TYPES: BEGIN OF ty_itab, ….. myTable type myType, …….. TYPES: END OF ty_itab.
Read MoreGenerating any custom JSON in ABAP
You can use class ZCL_MDP_JSON Library that can encode/parse any JSON. JSON is supported natively in ABAP by the following features:With the use of JSON-XML- it is known as special XML format that can be used for JSON data to be described using an XML representation. By defining a mapping between ABAP types and JSON. This is used in serializations and deserializations using the identity transformation ID.As you can specify JSON data in different forms as an XML source in the statement CALL TRANSFORMATION and JSON can be specified as a target.Check out the following sample code:Example:DATA text TYPE string VALUE ...
Read MoreHow the Table statement works in ABAP
With table statement, you are able to get a single line of data corresponding to the dictionary structure you specify. The fields of structure can be used as select options and the structure can be passed as variable in the program.
Read MoreUse of Function modules in SAP ABAP to change address independent communication data for BP
You can change address independent communication data using Function Modules like BAPI_BUPA_CREATE_FROM_DATA and BAPI_BUPA_CENTRAL_CHANGE and other FM’s in the same category.Function Module: BAPI_BUPA_CREATE_FROM_DATA Function Group: BUBA_3 Program Name: SAPLBUBA_3 Following are the parameters:Function Module: BAPI_BUPA_CENTRAL_CHANGEFunction Group: BUBA_3 Program Name: SAPLBUBA_3Following are the parameters:Functional Group: BUBA_3You have lot many function modules that comes under function group BUBA_3, Few of them are below and their description:BAPI_BUPA_CREATE_FROM_DATASAP BP, BAPI: Create Business PartnerBAPI_BUPA_ADDRESSES_GETSAP BP, BAPI: Determine All AddressesBAPI_BUPA_EXISTENCE_CHECKSAP BP, BAPI: Check Existence of Business PartnerBAPI_BUPA_GET_NUMBERSSAP BP, BAPI: Read Business Partner NumbersBAPI_BUPA_ADDRESS_GETDETAILSAP BP, BAPI: Read ...
Read More