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 4 of 9
Sending a table from UI5 application to ABAP Function Module
This can be done using an OData service that accepts POST request from your UI5 application and writes data to a database table. While implementing OData service, you have to call ABAP Backend Class method.You have to remember that all application and classes are instantiated for processing and will end as soon as the request is completed. An OData service can be created using SAP Gateway Service Builder (SEGW).Following steps has to be performed for creating an OData service:Creation of Data ModelGenerate Runtime ObjectsRegistration of ServiceService ImplementationOnce you create a project in Gateway Service Builder, you have to create Entity ...
Read MoreSuppressing duplicate entries in classical and ALV report in SAP ABAP
To delete adjacent duplicate entries in an internal table, you can use the below command −DELETE ADJACENT DUPLICATE ENTRIES FROM [COMPARING ... |ALL FIELDS].Also, consider the below points −The system deletes all adjacent duplicate entries from the internal table . Entries are duplicate if they fulfill one of the following compare criteria:Without the COMPARING addition, the contents of the key fields of the table must be identical in both lines.If you use the addition COMPARING ...
Read MoreLoading External Libraries in SAP UI5
External libraries can be inserted using a file in a normal script tag. SAP UI5 also supports JQuery so it can be done by extending your heading from the controller.var s = document.createElement("script"); s.type = "text/javascript"; s.src = "http://domainname.com/somescript"; $("head").append(s);You can also add any external file using the following command −jQuery.sap.registerModulePath("ModuleName","http://Domainname.com"); jQuery.sap.require("ModuleName.jsFileName");You can navigate to the following path for more details−https://blogs.sap.com/2016/04/22/include-external-javascript-library-in-sapui5/
Read MoreHow to use constant in ABAP program which has trailing space?
This is because you are declaring constant as type c. The type c variable always trims the trailing space. I would suggest you define it as string as followsCONSTANTS: co_abc type string value ' b '.This will keep the trailing spaces.
Read MoreCreate database view in SAP ABAP
In ABAP, you can make use of Function modules - DDIF_VIEW_PUT and DDIF_VIEW_ACTIVATE for view activation. All table parameters should be defined correctly otherwise it can result in an error in the creation process.DDIF_VIEW_PUT − Interface for writing a view in the ABAP Dictionary.You can refer to below link for more details −http://www.se80.co.uk/sapfms/d/ddif/ddif_view_put.htmCALL FUNCTION 'DDIF_VIEW_PUT' "DD: Interface for writing a view in the ABAP DictionaryEXPORTINGname = " ddname Name of the view to be written * dd25v_wa = ' ' " dd25v View header * dd09l_wa = ' ' " dd09v Technical settings of the view * TABLES * dd26v_tab ...
Read MoreHiding SAP ABAP table control column
You can use the structure CXTAB_CONTROL that has the following components:INVISIBLE C(1) Flag (X or blank) for visibility of entire table control.You can use sample program: RSDEMO02 that allow you to modify properties of table control and view the results.When you use this Table control INVISIBLE, this changes the content to “xxxxxxxxxxxx” like a hidden password. If you want to hide the complete column including data and header, your code should be like this −MODULE MODIFY_100 OUTPUT. DATA wa_tabctrl TYPE cxtab_column .looping the table controlLOOP AT TABCTRL-COLS INTO WA_TABCTRL. IF WA_TABCTRL-NAME = 'POSNR'. When you get on the desired screen you ...
Read MoreMaking an SAP ABAP program to wait
You can use WAIT to hold the program for few seconds. Here is the syntaxSyntaxWAIT UP TO 36 SECONDSHowever, you need to be careful about using it. WAIT does an implicit commit. So you need to be sure that the commit does not corrupt the database. It also releases the work process.An alternative is to use below code −CALL FUNCTION 'ENQUE_SLEEP' EXPORTING seconds = 36.
Read MoreCalling an ABAP Function Module using Python script to put data in SAP HANA
You can refer this SAP blog how to use SAP NetWeaver library with Python.SAP Link
Read MoreView the valid values of profit center groups in SAP ABAP
You need to select SETNAME from table SETLEAF with SETCLASS value 0106. To reduce number of values in search you can pass a Controlling area in field SUBCLASS or value of Profit center in VALFROM field.For more details, refer this SAP discussion: How to find profit center group for any profit centerSAP DiscussionOpen the Table SETLEAF, and follow below steps:Pass in field SETCLASS as '0106'.Pass in field SUBCLASS with controlling area.Pass Profit center in Field VALFROM.You will get Group name in Field SETNAME.
Read MoreTriggering outbound shipment IDoc on change data in SAP
You need to ensure that Output Type has got "Multiple issuing" checkbox ticked in T-code: V/82. This is available in “General data" section of your message type.It seems to be a configuration issue. You should try checking this:Go to SPRO → Logistic execution → Transportation → Basic Transportation Functions → Output control → Maintain Output determination for shipments → Maintain Output Determination procedure.You can refer this SAP Thread for more details:SAP ThreadRefreshing list viewer data selectively in SAP ABAP
Read More