Found 92 Articles for ABAP

Seeing list of all program screens in SAP ABAP

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

539 Views

If you want to check all Dynpros belongs to one program, you can use table D020S. D020S is known as SAP Table to store screen sources information. This is available within R/3 SAP systems depending on the version and release level. To display or maintain this table, use T-code SM30 You can use T-code SE11 to view the fields in table D020S: It is text table D020T with the key program = sy-repid

Getting a syntax error unknown fields in SAP ABAP

karthikeya Boyini
Updated on 18-Feb-2020 05:39:08

765 Views

You need to add spaces after or before braces as follows −SELECT  * FROM CNTRB WHERE AGE > 30 AND   CNTRB > 10000 AND NOT ( FUND1 = 'value' AND FUND2 = '0' )

Making an SAP ABAP program to wait

Monica Mona
Updated on 18-Feb-2020 05:40:07

1K+ 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.

Inserting rows in an empty table to test output of ABAP code

Samual Sam
Updated on 16-Dec-2019 06:51:16

301 Views

You can find the option to either insert a row into a table or change the content of the table using the Table tools/Table display services

Loading External Libraries in SAP UI5

Nikitha N
Updated on 12-Mar-2020 12:26:25

1K+ 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/

Inserting rows to an internal table through debug in SAP ABAP

Sai Subramanyam
Updated on 12-Mar-2020 12:35:38

2K+ Views

This can be done using any of the below methods −In the Tools window → Navigate to Service menu → you can add a new rowThis can also be done by using T-Code SE11 → Select the relevant table. Navigate to Table Content → DisplayMake sure Debug mode is ON. Click on Pencil to get Edit mode.Type Edit in Value column to edit the table in Debug mode. Press F8 (Continue).Note that for edition it is EDIT and for deletion, it is DELE as shown in below snapshot.This will open the record. You can change the value and save it.

In SAP Class Builder, I am trying to test ABAP classes. When I press F8, it doesn’t show “Create Instance” menu item.

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

327 Views

You can access Class Builder by using T-code: SE24 or via Repository Browser SE80 and navigate to class you want to edit. You have to ensure that you set the below parameter to the public. It is also possible that your class implements an interface. It is also possible that class implements an interface. You have to click on magnifying glass icon and you can execute both static and instance methods.

Create database view in SAP ABAP

Ali
Ali
Updated on 25-Feb-2020 11:00:13

674 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

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

Amit Sharma
Updated on 25-Feb-2020 11:05:26

298 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.

Usage of subqueries in internal table as condition in SAP ABAP source code.

karthikeya Boyini
Updated on 30-Jul-2019 22:30:20

243 Views

Note that if you specify an OPTIONS parameter with parenthesis, it will show an error. When you use Where (itab)In this case, itab has only one field with type C and shouldn’t be longer than 72 characters. “Itab” must be specified in parenthesis without any space between parenthesis and table name.You should use the same condition in the internal table as a condition in ABAP source code.

Advertisements