Found 1039 Articles for SAP

Handling errors in SAP GUI Scripting code

Ayyan
Updated on 12-Jun-2020 13:58:32

2K+ Views

You can take reference from GUI Scripting help section and it can explain things in detail.It provides you default property types as per requirement. If you want to perform next step, stop or abort user step, you can use the following properties.ValueDescriptionSSuccessWWarningEErrorA Abort I  InformationSee the below code that uses above property type to display different messages −Public Sub get_status_bar_value_exit_if_Error()    Dim usr_resp AsString    If(session.findById("wnd[0]/sbar").messagetype = "E"Or       session.findById("wnd[0]/sbar").messagetype= "W") Then    usr_resp =MsgBox(session.findById("wnd[0]/sbar").Text & Chr(13) &"Show the Error in SAP ?", vbYesNo)     If usr_resp =vbYes Then  Else     Callgo_to_Sap_home  End If  End  End If End ... Read More

Incrementing an integer inside loop in an ABAP program

Fendadis John
Updated on 30-Jul-2019 22:30:20

780 Views

You need to use the following:You are missing spaces between ls_id+1. You can also use Add 1 to ls_idIn case you are using internal tables, you can directly use SY-TABIX and SY-Index depending upon whether the loop is nested or not.

I am getting GUID Key columns truncated while using proxy ERP tables to query SAP tables

Alankritha Ammu
Updated on 06-Dec-2019 11:12:59

211 Views

I think there is a restriction in SAPand when you use default functional module it only shows 16characters.To overcome this you should install Z module in SAP system and you can activate it by entering the name of LINQ table.Custom function "Z_XTRACT_IS_TABLE"

How to check all objects belong to list of TR’s in SAP system

varma
Updated on 10-Dec-2019 08:33:06

7K+ Views

SAP provides standard tables that you can use to get the detail about Transport objects.E070: Change & Transport System: Header of Requests/TasksE070T: Change & Transport System: Short Texts for Requests/TasksE071: Change & Transport System: Object Entries of Requests/Tasks (This table provides you details of transport objects).E070A: Change & Transport System: Attributes of a RequestE070C: CTS: Source/Target Client of Requests/TasksTo open any of the table, you can T-code: SE11 Enter table E071. You can group result in Grid Display by PGMID, OBJECT, and OBJ_NAME.

Using Breakpoint in SAP system

Jai Janardhan
Updated on 14-Feb-2020 05:36:30

212 Views

There is a problem with your code. Here is the correct syntaxSyntaxBREAK username.If you want to implement it for all the users you can just codeBREAK-POINT.

Checking active process in SAP system and which code is running

George John
Updated on 30-Jul-2019 22:30:20

4K+ Views

There are a couple of Transactions- SM66 and SM50 that can be used for your requirement. The transaction SM66 is used to see all the active processes on the current system. You can choose a particular process you want to monitor by clicking on “process” and then click the “debugging” button. The Transaction SM50 shows only the process running on a current application server in which you are logged. To monitor your program, select “Administration”, then “program” and then debugging option. You would require finding out the process in which your program is running. This can be done by ... Read More

Concatenate 2 strings in ABAP without using CONCATENATE function

Moumita
Updated on 14-Feb-2020 05:32:25

3K+ Views

In ABAP you can use && sign to concatenate variables as belowDatahello TYPE string, world TYPE string, helloworld TYPE string. hello = 'hello'. world = 'world'. helloworld = hello && world.If you want to concatenate strings directly, you can usehelloworld = 'hello' && 'world'.If you want to keep space in between, you would require ` symbol as belowhelloworld = hello && ` and ` && world

Assigning debug roles to few users of SAP ABAP program

Anjana
Updated on 06-Dec-2019 11:14:34

872 Views

Hope the role that you have added contains only one permission:Object S_DEVELOP    ACTVT = 03    DEVCLASS = *    OBJNAME = *    OBJTYPE = DEBUG    P_GROUP = *Try to perform a permission trace usingTransaction ST01If you still don’t find a check for the permission, there might be a problem in generating roles in the system. Sometimes when you add a role, it might add a different set of roles to such users.There might be a different program written for Debugging. This can be checked using Transaction SU53 in the system. This can be used to display authorization data for user:

Existing RFC to load table data, and to get list of tables and list of BAPI’s in SAP

Akshaya Akki
Updated on 16-Mar-2020 06:57:46

1K+ Views

I am not sure that there exists a BAPI to see list of all BAPI’s in SAP system. You can use the Function module RFC_FUNCTION_SEARCH to search for function modules starting with BAPI*.ExampleYou can call Function Module-BAPI_MONITOR_GETLIST to get list of all available BAPI’s.CALL FUNCTION'BAPI_MONITOR_GETLIST' EXPORTING OBJECTTYPE = p_ojtpe SHOW_RELEASE = p_rel BAPIS_POTENTIAL = p_poten BAPIS_NEW = p_new_pabi BAPIS_OLD = p_old_bapi RELEASED_BAPI = p_rel_bapi RELEASED_FUNC = p_released_func IMPORTING RETURN = d_ret TABLES COMPONENTS2SELECT = int_cs SYSTEMS2SELECT = int_sss BAPILIST = int_bapilistThere exists a Function module - RFC_READ_TABLE, this can be used for external access to SAP R/3 system via RFC.Using ... Read More

Using ABAP Function module RSAQ_REMOTE_QUERY_CALL, NO_DATA_SELECTED exception using selection parameters

Manikanth Mani
Updated on 14-Feb-2020 05:44:59

493 Views

As SAP provides flexible options that allow selection parameters easy to use. As you are using multiple parameters please note the following:Set KIND to “s” only for using select option. If you are using parameters, it should be “P”Instead of using EN, try using internal language “E”RSAQ_REMOTE_QUERY_FIELDLIST- this function module can be used to find the types as below −Use T-code SE37 and enter the FM name → Display

Advertisements