ABAP Articles

Page 6 of 9

Can I change the text of options for SELECT via code in ABAP?

Anil SAP Gupta
Anil SAP Gupta
Updated on 13-Dec-2019 469 Views

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 More

Using SAP ABAP, how can I read content of CSV files in a directory to an internal table?

SAP ABAP Expert
SAP ABAP Expert
Updated on 12-Dec-2019 4K+ Views

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 More

Modification not working for both internal table and control table in SAP ABAP

SAP ABAP Expert
SAP ABAP Expert
Updated on 12-Dec-2019 730 Views

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 More

Difference between class alv and function alv in SAP ABAP?

Sharon Christine
Sharon Christine
Updated on 11-Dec-2019 3K+ Views

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 More

How to connect to an SAP module?

karthikeya Boyini
karthikeya Boyini
Updated on 11-Dec-2019 426 Views

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 More

Explain the module function to split ABAP date?

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 11-Dec-2019 448 Views

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 More

How to have a structure with a table in ABAP?

Ramu Prasad
Ramu Prasad
Updated on 10-Dec-2019 2K+ Views

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 More

Generating any custom JSON in ABAP

Manikanth Mani
Manikanth Mani
Updated on 05-Dec-2019 2K+ Views

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 More

How the Table statement works in ABAP

Syed Javed
Syed Javed
Updated on 30-Jul-2019 438 Views

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 More

Use of Function modules in SAP ABAP to change address independent communication data for BP

Samual Sam
Samual Sam
Updated on 30-Jul-2019 3K+ Views

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
Showing 51–60 of 84 articles
« Prev 1 4 5 6 7 8 9 Next »
Advertisements