ABAP Articles

Page 4 of 9

Sending a table from UI5 application to ABAP Function Module

Johar Ali
Johar Ali
Updated on 15-Jun-2020 985 Views

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 More

Suppressing duplicate entries in classical and ALV report in SAP ABAP

Nikitha N
Nikitha N
Updated on 12-Mar-2020 2K+ Views

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 More

Loading External Libraries in SAP UI5

Nikitha N
Nikitha N
Updated on 12-Mar-2020 2K+ Views

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 More

How to use constant in ABAP program which has trailing space?

Amit Sharma
Amit Sharma
Updated on 25-Feb-2020 621 Views

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 More

Create database view in SAP ABAP

Ali
Ali
Updated on 25-Feb-2020 1K+ Views

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 More

Hiding SAP ABAP table control column

Swarali Sree
Swarali Sree
Updated on 18-Feb-2020 4K+ Views

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 More

Making an SAP ABAP program to wait

Monica Mona
Monica Mona
Updated on 18-Feb-2020 2K+ Views

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 More

Calling an ABAP Function Module using Python script to put data in SAP HANA

John SAP
John SAP
Updated on 17-Feb-2020 793 Views

You can refer this SAP blog how to use SAP NetWeaver library with Python.SAP Link

Read More

View the valid values of profit center groups in SAP ABAP

Anil SAP Gupta
Anil SAP Gupta
Updated on 17-Feb-2020 380 Views

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 More

Triggering outbound shipment IDoc on change data in SAP

SAP ABAP Expert
SAP ABAP Expert
Updated on 17-Feb-2020 2K+ Views

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
Showing 31–40 of 84 articles
« Prev 1 2 3 4 5 6 9 Next »
Advertisements