1. Buka T-Code "SNRO".
2. Beri nama "ZKAB".
Kamis, 26 Mei 2011
Senin, 02 Mei 2011
Abap Select Options
parameters : so_bukrs like bkpf-bukrs default '6890' obligatory.
select-options so_lifnr for bseg-lifnr obligatory. "'220065'.
select-options so_budat for bkpf-budat.
selection-screen: begin of block head3 with frame title text-101.
parameters: so_po radiobutton group rad1 modif id a user-command r default 'X',
so_npo radiobutton group rad1 modif id c.
selection-screen: end of block head3.
selection-screen: begin of block groupbox2 with frame title text-201.
select-options so_mtart for ekpo-mtart no intervals modif id b.
select-options so_hkont for bseg-hkont no intervals modif id d default '21211001'.
parameters : so_spec as checkbox modif id e user-command r.
select-options so_umskz for bseg-umskz modif id f.
selection-screen: end of block groupbox2.
select-options so_lifnr for bseg-lifnr obligatory. "'220065'.
select-options so_budat for bkpf-budat.
selection-screen: begin of block head3 with frame title text-101.
parameters: so_po radiobutton group rad1 modif id a user-command r default 'X',
so_npo radiobutton group rad1 modif id c.
selection-screen: end of block head3.
selection-screen: begin of block groupbox2 with frame title text-201.
select-options so_mtart for ekpo-mtart no intervals modif id b.
select-options so_hkont for bseg-hkont no intervals modif id d default '21211001'.
parameters : so_spec as checkbox modif id e user-command r.
select-options so_umskz for bseg-umskz modif id f.
selection-screen: end of block groupbox2.
Jumat, 29 April 2011
Kamis, 28 April 2011
Abap Create ALV Report
Untuk membuat ALV report langkah-langkahnya adalah sebagai berikut:
1. Buka t-code se38 lalu buat program baru dengan nama ZREPORT_ALV.
2. Ketikkan kode program seperti di bawah ini:
*&-------------------------------------------*
*& Report ZREPORT_ALV
*&
*&--------------------------------------------*
*&
*&
*&---------------------------------------------*
REPORT zreport_alv.
TABLES : mara, makt.
TYPES : BEGIN OF ty_gab,
chbox,
matnr LIKE mara-matnr,
matkl LIKE mara-matkl,
meins LIKE mara-meins,
mtart LIKE mara-mtart,
maktx LIKE makt-maktx,
END OF ty_gab.
DATA : gi_makt LIKE STANDARD TABLE OF makt WITH HEADER LINE,
gi_gab TYPE STANDARD TABLE OF ty_gab WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK head1 WITH FRAME TITLE text-101.
1. Buka t-code se38 lalu buat program baru dengan nama ZREPORT_ALV.
2. Ketikkan kode program seperti di bawah ini:
*&-------------------------------------------*
*& Report ZREPORT_ALV
*&
*&--------------------------------------------*
*&
*&
*&---------------------------------------------*
REPORT zreport_alv.
TABLES : mara, makt.
TYPES : BEGIN OF ty_gab,
chbox,
matnr LIKE mara-matnr,
matkl LIKE mara-matkl,
meins LIKE mara-meins,
mtart LIKE mara-mtart,
maktx LIKE makt-maktx,
END OF ty_gab.
DATA : gi_makt LIKE STANDARD TABLE OF makt WITH HEADER LINE,
gi_gab TYPE STANDARD TABLE OF ty_gab WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK head1 WITH FRAME TITLE text-101.
Rabu, 27 April 2011
Create Abap Simple Grouping Report
Kali ini kita akan membuat Grouping Abap Report. Langkah-langkahnya sebagai berikut:
1. Buka t-code se38 dan beri nama ZREPORTGROUP lalu tekan create.
1. Buka t-code se38 dan beri nama ZREPORTGROUP lalu tekan create.
Langganan:
Postingan (Atom)
