Monthly Archive: Nisan 2016
call function ‘SUSR_USER_ADDRESS_READ’ exporting user_name = gv_pr_name * READ_DB_DIRECTLY = ‘ ‘ * CACHE_RESULTS = ‘X’ importing * USER_ADDRESS = user_usr03 = gs_usr03 * EXCEPTIONS * USER_ADDRESS_NOT_FOUND = 1 * OTHERS = 2 . if sy-subrc <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. endif. kaynak : https://sapnotlarim.wordpress.com/
Merhaba mail gönderimlerinde işinize yarayabilecek bir fonksiyon. data : lv_address type ad_smtpadr. call function ‘LWE_GET_EMAIL’ exporting username = sy-uname importing email_address = lv_address. veya call function ‘EFG_GEN_GET_USER_EMAIL’ exporting i_uname = lv_uname importing e_email_address = lv_mailadres exceptions not_qualified = 1 user_not_found = 2 address_not_found = 3 others = 4.
Merhaba search helpde çıkacak verileri bazı koşullar ile getirmek isteyebilirsiz bunun için help viwer oluşturmanız gerekcektir. Konu ile ilgili incelemeniz gereken bağlantı şöyle : http://www.saptechnical.com/Tutorials/ABAP/View/Help.htm
Örnek olarak güncelleme için verilmiş bir yetki nesnesi , AUTHORITY-CHECK OBJECT ‘ZONERI_YTK’ ID ‘ACTVT’ FIELD ’02’ “ ID ‘ZONERI_YTK’ FIELD ’02’. IF sy–subrc EQ 0. LOOP AT SCREEN. IF screen–name = ‘BTNDGS’. screen–active = 0. ENDIF. MODIFY SCREEN. ENDLOOP. ENDIF.
Abap parametre kullanımı örnek ; Bu örnek parametre zorunlu giriş , search help ve , parametrede ki değeri hafızada tutma örneği içerir. report z_parametre_yaratma. selection-screen begin of screen 100. * OBLIGATORY zorunlu giriş * VISIBLE LENGTH 10 , 10 karakter uzunluğunda olabilir * MEMORY ID M_I hafızada tutma * MATCHCODE OBJECT A_KUNNR arama yardımı parameters: kid(29) type c DEFAULT sy–uname, ad_soyad(50) type c obligatory matchcode object a_kunnr, il(15) type c default ‘MALATYA’ memory id m_i visible length 10, d_tarih type d memory id m_d....
REPORT ZRICH_002. parameters: p_bukrs type t001–bukrs, p_butxt type t001–butxt, p_ort01 type t001–ort01, p_land1 type t001–land1. data: dynfields type table of dynpread with header line. data: return type table of ddshretval with header line. at selection-screen on value-request for p_bukrs. call function ‘F4IF_FIELD_VALUE_REQUEST’ exporting tabname = ‘T001’ fieldname = ‘BUKRS’ dynpprog = sy–cprog dynpnr = sy–dynnr dynprofield = ‘P_BUKRS’ tables return_tab = return exceptions field_not_found = 1 no_help_for_field = 2 inconsistent_help = 3 no_values_found = 4 others = 5. read table return with key fieldname = ‘P_BUKRS’. * Add it back to the dynpro. dynfields–fieldname = return–retfield. dynfields–fieldvalue = return–fieldval. append dynfields. * Get the company code from db and add to dynpro data: xt001 type t001. clear xt001. select single * into xt001 from t001 where bukrs = return–fieldval....
data: idd07v type table of dd07v with header line. call function ‘DD_DOMVALUES_GET’ exporting domname = ‘RFBSK’ “<– Domain Adı Buraya text = ‘X’ langu = sy-langu tables dd07v_tab ...
REPORT zlistbox_demo. TYPE-POOLS: vrm. PARAMETERS p_carrid LIKE scarr-carrid AS LISTBOX VISIBLE LENGTH 20 OBLIGATORY. DATA: t_carrid TYPE vrm_values, w_line LIKE LINE OF t_carrid. INITIALIZATION. SELECT carrid carrname FROM scarr INTO (w_line-key, w_line-text). APPEND w_line...
Merhaba abap ile mail gönderme işlemi yapabileceğiniz kodlar aşağıdaki gibidir. * Değişken tanımları DATA: LT_MAILSUBJECT TYPE SODOCCHGI1. DATA: LT_MAILRECIPIENTS TYPE STANDARD TABLE OF SOMLREC90 WITH HEADER LINE. DATA: LT_MAILTXT TYPE STANDARD TABLE OF SOLI ...
*&——————————————————————–* *& Report ZTEST_GETDOMVAL *&——————————————————————–* *This report is used to fetch the fixed values associated with domain *&——————————————————————–* REPORT ztest_yh1148. DATA: fs_taba TYPE dd07v. DATA: it_taba TYPE STANDARD TABLE OF dd07v, it_tabb TYPE STANDARD TABLE OF dd07v. CALL FUNCTION ‘DD_DOMA_GET’ EXPORTING domain_name = ‘XFELD’ langu = sy-langu withtext = ‘X’ TABLES dd07v_tab_a = it_taba dd07v_tab_n = it_tabb EXCEPTIONS illegal_value = 1...
Son yorumlar