This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Parameters in following function is not defined again. | |
*Because they defined in advance . I want to take attention to LOGIC_SWITCH parameter. | |
DATA ls_logic_switch TYPE BAPISDLS. | |
ls_logic_switch-scheduling = 'X'. | |
CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE' | |
EXPORTING | |
salesdocument = p_salesdocument |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Fonksiyondaki parametreler önceden tanımlandığı için | |
*bu örnekte tekrar tanımlanmamıştır. Burada dikkat çekmek istediğim | |
*nokta LOGIC_SWITCH parametresidir. | |
DATA ls_logic_switch TYPE BAPISDLS. | |
ls_logic_switch-scheduling = 'X'. | |
CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE' | |
EXPORTING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*&---------------------------------------------------------------------* | |
*& Report ZAU_CONTROLBREAK | |
*& | |
*&---------------------------------------------------------------------* | |
*& NEW TO SAP CONTROL BREAK EXAMPLE | |
*& http://www.newtosap.info | |
*& | |
*&---------------------------------------------------------------------* | |
REPORT zau_controlbreak. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT zexample_upload_download_excel . | |
FIELD-SYMBOLS: <fs_tab> TYPE STANDARD TABLE . | |
DATA : BEGIN OF gt_itab OCCURS 0. | |
include structure ztable. | |
DATA: silme(1) TYPE c, | |
END OF gt_itab. | |
DATA: gv_tname TYPE string , | |
gv_filen TYPE string. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT zexample_upload_download_excel . | |
FIELD-SYMBOLS: <fs_tab> TYPE STANDARD TABLE . | |
DATA : BEGIN OF gt_itab OCCURS 0. | |
include structure ztable. | |
DATA: silme(1) TYPE c, | |
END OF gt_itab. | |
DATA: gv_tname TYPE string , | |
gv_filen TYPE string. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT zfibonacci_10. | |
DATA : lv_old TYPE i VALUE 1 , | |
lv_current TYPE i VALUE 2 , | |
lv_next TYPE i . | |
WRITE 'First 10 elements of Fibonacci series : ' . | |
WRITE : lv_old, lv_current . | |
DO 8 TIMES. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT zfibonacci_10. | |
DATA : lv_old TYPE i VALUE 1 , | |
lv_current TYPE i VALUE 2 , | |
lv_next TYPE i . | |
WRITE 'Fibonacci dizisinin ilk 10 elemanı : ' . | |
WRITE : lv_old, lv_current . | |
DO 8 TIMES . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT zrapor_mseg_mkpf. | |
TABLES: mkpf, | |
mseg. | |
DATA: BEGIN OF gs_search, | |
mblnr TYPE mkpf-mblnr, "Number of Material Document | |
tcode2 TYPE mkpf-tcode2,"Transaction Code | |
budat TYPE mkpf-budat, "Posting Date in the Document | |
cpudt TYPE mkpf-cpudt, "Day On Which Accounting Document Was Entered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPORT zrapor_mseg_mkpf. | |
TABLES: mkpf, | |
mseg. | |
DATA: BEGIN OF gs_ara, | |
mblnr TYPE mkpf-mblnr, "MALZEME BELGESİ | |
tcode2 TYPE mkpf-tcode2,"İŞLEM KODU | |
budat TYPE mkpf-budat, "KAYIT TARİHİ | |
cpudt TYPE mkpf-cpudt, "GİRİŞ TARİHİ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN TRAN | |
UPDATE table | |
SET [column_name]=[dbo].[InitCap]([column_name]); | |
SELECT * FROM table; | |
/* Bu adımdan sonra COMMIT TRAN veya ROLLBACK TRAN işleme sokulur. | |
Eğer başarıyla sonuçlandıysa COMMIT TRAN, başarısızlıkla sonuçlandıysa | |
işlemi geri almak için ROLLBACK TRAN yapılır. | |
COMMIT TRAN’dan sonra ROLLBACK TRAN yapılırsa işlem geri alınmaz. | |
Buna çok dikkat etmek gerekir.*/ | |
COMMIT TRAN |
NewerOlder