Abap code to add a check box for each record when a list is displayed

REPORT ZSACHIN2. TYPE-POOLS: slis. *—internal tables DATA: BEGIN OF it_flight OCCURS 0, SEL, ” add a single character field in the final output table carrid LIKE sflight-carrid, connid LIKE sflight-connid, fldate LIKE sflight-fldate, seatsmax LIKE sflight-seatsmax, seatsocc LIKE sflight-seatsocc, END OF it_flight, *–internal tables for alv it_fieldcat TYPE slis_t_fieldcat_alv, wa_fcat LIKE LINE OF it_fieldcat, layout … Read more

Example ABAP Code to colour Selected row in ALV

*&———————————————————————**& Report ZSACHIN_ALV_DEEP32 REPORT ZSACHIN_ALV_DEEP32. TABLES: MARA. TYPE-POOLS: SLIS. DATA: BEGIN OF ITAB OCCURS 0, MATNR TYPE MARA-MATNR, ERSDA TYPE MARA-ERSDA, ERNAM TYPE MARA-ERNAM, * create a field of 4 char to fill the color WA_COLOR(4) TYPE C, END OF ITAB. DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV, WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV. * create a field symbol to add … Read more

Example ABAP Code to colour individual box in ALV

REPORT ZSACHIN_ALV_DEEP33. TABLES: MARA. TYPE-POOLS: SLIS. DATA: BEGIN OF ITAB OCCURS 0, MATNR TYPE MARA-MATNR, ERSDA TYPE MARA-ERSDA, ERNAM TYPE MARA-ERNAM,* Create a field CELL of type SLIS_T_SPECIALCOL_ALV CELL TYPE SLIS_T_SPECIALCOL_ALV, END OF ITAB. DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV, WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.* Create a work area of type SLIS_T_SPECIALCOL_ALVDATA: FS_CELL LIKE LINE OF ITAB-CELL. * Create … Read more

How to Hide Parameters on Selection Screen

REPORT ZSACHIN_ALV_DEEP27. *———————————————————————-** T A B L E S **———————————————————————-* tables: mara, skb1, BSEG. *———————————————————————-** S E L E C T I O N S C R E E N **———————————————————————-* selection-screen: Begin of block b1 with frame title text-001. parameters : R1 radiobutton group g1 default ‘X’ user-command AA. select-options : s_bukrs for skb1-bukrs … Read more

ALV Report Code to add a check box for each record when a list is Displayed

REPORT ZSACHIN2. TYPE-POOLS: slis. *—internal tables DATA: BEGIN OF it_flight OCCURS 0, SEL, ” add a single character field in the final output table carrid LIKE sflight-carrid, connid LIKE sflight-connid, fldate LIKE sflight-fldate, seatsmax LIKE sflight-seatsmax, seatsocc LIKE sflight-seatsocc, END OF it_flight, *–internal tables for alv it_fieldcat TYPE slis_t_fieldcat_alv, wa_fcat LIKE LINE OF it_fieldcat, layout … Read more

SELECTING THE VARIANTS FOR INITIAL ALV LIST DISPLAY

The variants in the list display can be both user-specific and general. The user can programmatically set the initial (default) variant for list display.The default variant can be found using the function module ‘REUSE_ALV_VARIANT_DEFAULT_GET’. Sample code: CALL FUNCTION ‘REUSE_ALV_VARIANT_DEFAULT_GET’EXPORTINGi_save = variant save condition (A=all, U = user-specific)CHANGINGcs_variant = internal table containing the program name (and … Read more

What is Unicode in SAP?

Since Every Character store in sap take one byte to store.In Unicode every character is store in two byte.So it now support basically all language now. But In ealier versions when character storage is 1 byte only .This causes problems if you want to access these database systems using a different character set, or if … Read more