If you want to copy any user favourite menu to other user favourite menu, first use the donwload function; MENU_FAVORITES_DOWNLOAD Fill the parameter uname with the name you want to copy. Run the function and copy the file to your PC. Then use the upload funciton with the username and the file you have already“How to Copy Any User Favourite Menu to Other User Favourite Menu?” yazısının devamını oku
Yazar arşivleri: mericdonmezer
How to Reset SAP ALV Buffer?
Sometimes you change the ALV in your program but these changes can not be seen. You need you clear your ALV buffer. Execute the programs below: BALVBUFDEL BCALV_BUFFER_DELETE BCALV_BUFFER_DEL_SHARED
How to Find SAP Authorization Values from Table?
AGR_1251 table can be used to list the values of authorization. If you want to list the LGORT with value ‘0001’, it can be listed as below.
How to Increse Max Number of GUI Session in SAP?
Open RZ10 transaction. Choose the profile that you use. It can be DEFAULT or your Instance Profile. Change Extended Maintenance Set rdisp/max_alt_modes parameter as you wish.
How to Create Area Menu in SAP?
Use SE43 Transaction Code. Click Create Button. Then give name to your area menu. Select your Area Menu Description Line and click Add Entry as Subnote button. If you want to collect tcodes under a package first create subnotes without transaction code. Don’t forget to select the box (Reference to a Menu) Then select the“How to Create Area Menu in SAP?” yazısının devamını oku
How to Send E-Mail from SAP ABAP code?
DATA: receivers TYPE TABLE OF somlreci1 WITH HEADER LINE, contents LIKE solisti1 OCCURS 0 WITH HEADER LINE, subject TYPE so_obj_des, dl_receiver TYPE so_recname. Subjectsubject = ‘Mail Header’. Receivers“If receivers are distribution list from SAP (SO15)dl_receiver = ‘Distrubiton_List_Name’.receivers-receiver = dl_receiver.receivers-rec_type = ‘C’.APPEND receivers. “Else if receiver is a single Mail addressdl_receiver = ‘singlemailaddress@blabla.com’.receivers-receiver = dl_receiver.receivers-rec_type = ‘U’.APPEND receivers. Contentcontents-line = ‘This is first line of e-mail’.APPEND contents.contents-line = ‘This is second line of e-mail’.APPEND contents.contents-line = ‘This is third line of e-mail’.APPEND contents.contents-line = ”.APPEND contents.contents-line = ‘This mail is send by SAP automatically’.APPEND contents. Call FunctionCALL FUNCTION ‘Z_SEND_MAIL_REPORT’ EXPORTING subject = subject attach_req = ” TABLES receivers = receivers contents = contents EXCEPTIONS too_many_receivers = 1 document_not_sent = 2 document_type_not_exist = 3 operation_no_authorization = 4 parameter_error = 5 x_error = 6 enqueue_error = 7 OTHERS = 8. IF sy-subrc <> 0.* Implement suitable error handling here ENDIF. FunctionFUNCTION z_send_mail_report.*”———————————————————————-*”*”Local Interface:*” IMPORTING*” VALUE(PROG) TYPE REPID OPTIONAL*” VALUE(VARIANT) TYPE RALDB_VARI OPTIONAL*” VALUE(SUBJECT) TYPE SO_OBJ_DES DEFAULT ‘No subject’*” VALUE(ATTACH_NAME) TYPE SO_TEXT255 OPTIONAL*” VALUE(ATTACH_REQ) TYPE CHAR1 DEFAULT ‘X’*” TABLES*” PARAMS STRUCTURE RSPARAMS OPTIONAL*” USERLIST STRUCTURE SLS_UNAMES OPTIONAL*” RECEIVERS STRUCTURE SOMLRECI1 OPTIONAL*” CONTENTS STRUCTURE SOLISTI1 OPTIONAL*” EXCEPTIONS*” TOO_MANY_RECEIVERS*” DOCUMENT_NOT_SENT*” DOCUMENT_TYPE_NOT_EXIST*” OPERATION_NO_AUTHORIZATION*” PARAMETER_ERROR*” X_ERROR*” ENQUEUE_ERROR*”———————————————————————-* INCLUDES **———————————————————————-* INCLUDE rssocons.*———————————————————————-** CONSTANTS **———————————————————————-* CONSTANTS: htm_ext(4) TYPE c VALUE ‘.htm’, htm_type(3) TYPE c VALUE ‘HTM’, internet(1) TYPE c VALUE ‘U’, dist_list(1) TYPE c VALUE ‘C’. *———————————————————————-** VARIABLES **———————————————————————-* DATA: length TYPE i. DATA: doc_chng LIKE sodocchgi1. DATA: tab_lines LIKE sy-tabix. DATA: raw_lines LIKE sy-tabix.*———————————————————————-** INTERNAL TABLES **———————————————————————-* DATA: BEGIN OF html_tab OCCURS 0. INCLUDE STRUCTURE w3html. DATA: END OF html_tab. DATA: itab LIKE abaplist OCCURS 0 WITH HEADER LINE. DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE. DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE. DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE. DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.*———————————————————————-** FUNCTION CODE **———————————————————————-** Submit prog and create .htm attachment IF prog IS NOT INITIAL. IF variant IS NOT INITIAL. SUBMIT (prog) AND RETURN EXPORTING LIST TO MEMORY USING SELECTION-SET variant. ELSEIF params[] IS NOT INITIAL. SUBMIT (prog) AND RETURN EXPORTING LIST TO MEMORY WITH SELECTION-TABLE params. ENDIF. CALL FUNCTION ‘LIST_FROM_MEMORY’ TABLES listobject = itab EXCEPTIONS not_found = 1. IF sy-subrc NE 0. LEAVE PROGRAM. ENDIF. CALL FUNCTION ‘WWW_HTML_FROM_LISTOBJECT’ EXPORTING template_name = ‘WEBREPORTING_REPORT’ TABLES html = html_tab listobject = itab. ENDIF.“How to Send E-Mail from SAP ABAP code?” yazısının devamını oku
How to Find Authorized T-Code List in SAP?
Firstly find the Role Names(AGR_NAME) from AGR_USERS table with SAP user name. With these Role Names use AGR_TCODES table. You can find the T-Code texts in TSTCT Table
How to Search Any Word in SAP ABAP?
Use EWK1 transaction.
How to send message to all users of SAP?
Use SM02 tcode. Push Create button and write the message that you want.You can determine start time and end time.
How to Add T-Code to Every SAP Users Favourite?
Use GUI_ADD_TCODE_TO_FAVORITES function. SELECT * FROM usr21. CALL FUNCTION ‘GUI_ADD_TCODE_TO_FAVORITES’ EXPORTING transaction_to_add = p_tcode user_name = usr21-bname no_par_tcode = ‘X’. ENDSELECT.