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 7 of 9
Extending SAP ABAP 30 characters long limit
For SAP ABAP tables, you can enter up to maximum 16 characters. There is a limit of up to 30 characters on use of ABAP Variables, Classes and Method.When you run SE11 you can press F1 and it will show you maximum permitted limit on SAP ABAP Table name.It is not possible to extend this limit as for this you need to make changes in Kernel.
Read MoreGenerating SAP ABAP code/ script from XML coming from an external application
Yes, this is feasible. You can create simple transformation for XML in ABAP. You can also use cl_proxy_xml_transform to transform data between XML and ABAP. Let us say that you have created ABAP proxy using T-Code: SPROXY or it is generated via WebService generation utility, you can use utility class “cl_proxy_xml_transform” to convert data of the ABAP to XML format or also from XML → ABAP.
Read MoreSkipping mandatory fields in an ABAP screen
You can make use of function code which is assigned to push button with “Exit” as function type and an event “AT SELECTION-SCREEN ON EXIT-COMMAND” to achieve this.A call is made to this event to validate the fields on the screen and you can implement all logic here.
Read MoreCan we get same features in SAP ABAP as they are in VS?
If you want to show all the occurrences of a variable in an ABAP program, you can use a shortcut- ctrl+shift+F3 or you can also make use of Yellow icon at the top.
Read MoreHow to use EXPORT / IMPORT to Memory ABAP – SAP?
As per your requirement, you are utilizing ABAP memory to transfer data to background session from session of the user. It will not work as per the standard documentation. RFC or updates module will run in different user sessions with different ABAP memory and hence it will not be possible.
Read MoreRefreshing list viewer data selectively in SAP ABAP
Only refreshing the selected or the modified rows is compatible or supported in EDIT mode but not in the display mode.As you said, you are using the display mode so I doubt you can do anything. But in case you switch over to EDIT mode from DISPLAY mode, then you can go for and bind the function with the DATA_CHANGED event.You can use the suggested approach and it should work for you. Hope it helps.
Read MoreHow to write on selection screen after giving any user input in SAP ABAP
You can use the WRITE to write on the selection screen. But still you have other options available to accomplish your task.You can choose to show your text in a message which is shown at the bottom of the screen. Also, you can try with a popup to show your required text.Sample snippet: Message 'Your text' TYPE S
Read MoreGetting error not assigned on running SAP ABAP program
The error is in field symbol. In future if you encounter such issue you can go through the logs created by ST22. It will help you in detail to understand the issue and its root cause. The reason of your error is that the field symbol is not initialized and you are trying to use it. You should have a habit of checking the content before using.check is ASSIGNED
Read MoreHow to switch between different views in ALV Grid in SAP ABAP?
You can achieve something similar to your requirement. Firstly, you need to fetch the layout key information from the layout object. You can look for disvariant to get the key information if not able to find. Then use the key information to specify different handles for different data types. So basically you are having different layouts for different inputs or data types. As soon as you change the data type, the handle will do its job and display will change accordingly. Hope it helps!
Read MoreStoring static attribute values in ABAP
Static attributes of a class and the global variables of a function pool are dealt in a similar manner. In an abstract manner, you can consider static attributes as global variables. How global variables are reinitialized with a new internal session, static attributes do get reinitialized with the new internal session- this can be verified using a recursive function call.
Read More