Transaction SU01

How to Unlock User in SAP System

Unlock User in SAP System You may run into situation that your User ID gets locked (e.g. when you type wrong password 3 times). Here is the step list, how to unlock user in SAP system, if you have access to the system from different user id.

STMS problem: Could not start transport control program tp

Sometimes I have the following problem on my localhost machine, in STMS transaction when trying to read import queue: Could not start transport control program tp RFC error: timeout during allocate / CPIC-CALL: ‘ThSAPCMRCV’ [sociallocker id=”1121″] When having such problem, it helps to run the following report: “RSTPTEST” and import works again [/sociallocker]

How to trigger DATA_CHANGED event in CL_GUI_ALV_GRID

If you have problem getting changed data in ALV from DATA_CHANGED event, you must do the following: [sociallocker id=”1121″] Call method CHECK_CHANGED_DATA in PAI module. This method automatically triggers the DATA_CHANGED event. Example: go_alv_grid->check_changed_data( ). [/sociallocker]

Transport control program tp ended with error code 0208

[sociallocker id=1121] Here is the procedure how to solve the problem: Go to STMS transaction -> Transport Routes (Shift+F7) -> Edit -> Save [/sociallocker]  

STMS RFC problem on local SAP system

When configuring STMS on your local SAP system, you might get the following problem: RFC communications error with system/destination email@removed _NSP Message no. XT101 Diagnosis An RFC error occurred in the TMS communications layer. Target system: NSP.DOMAIN_NSP(000) Function: TMS_PS_WRITE_PROFILE_TO_DISK RFC message: RFC error when sending logon data. System Response The function terminates. Procedure Correct the...

Get class or interface definition information

Get information of class definiton: SEO_CLASS_TYPEINFO_GET Get information of interface definiton: SEO_INTERFACE_TYPEINFO_GET Get method definiton: SEO_METHOD_SIGNATURE_GET

How to load data into data target only from PSA

-> Go to particular data source-> then go to data source manage-> select the particular request which you want-> below you have the option like ” update with scheduler “-> then it will show the info package click start the load Then the will load the data to target from PSA If no data targets...

Exit screen when obligatory fields are not filled

Define function button in GUI status with functional type ‘E’ – Exit command. In Process after input call module at exit command as follows: PROCESS AFTER INPUT.MODULE cancel AT EXIT-COMMAND. And implement module: MODULE cancel INPUT.* Just leave the screen without checking any obligatory fields  LEAVE TO SCREEN 0.ENDMODULE. ” CANCEL_POPUP INPUT

Dynamic SORT of dynamic internal table

Use the following example in your program: * Dynamically sort data using table keyDATA: ls_sort_key_field TYPE abap_sortorder. DATA: lt_sort_key_field TYPE abap_sortorder_tab.LOOP AT it_key INTO ls_key.  ls_sort_key_field-name = ls_key-fieldname.  APPEND ls_sort_key_field TO lt_sort_key_field.ENDLOOP.TRY.  SORT BY (lt_sort_key_field).   CATCH cx_sy_dyn_table_ill_comp_val.*    Unable to process dynamic sort ENDTRY.

Dynamic call FOR ALL ENTRIES

How to dynamically call FOR ALL ENTRIES DATA: lt_table TYPE STANDARD TABLE OF fieldname. CONCATENATE lv_key_field ‘= lt_table-table_line’   INTO lv_where SEPARATED BY space.   APPEND lv_where TO lt_where. SELECT fieldname   FROM (lv_table)   INTO TABLE lt_output   FOR ALL ENTRIES IN lt_table   WHERE (lt_where).