Posts

ALV-LIGHT_SET

Image
REPORT  ZLIGHT_SET. TYPE-POOLS: SLIS. TYPES: BEGIN OF TY_VBAK,         VBELN TYPE VBAK-VBELN,         ERNAM TYPE VBAK-ERNAM,         NETWR TYPE VBAK-NETWR,         LIGHTS TYPE  C,       END OF TY_VBAK.  DATA: IT_VBAK TYPE  TABLE OF TY_VBAK,        WA_VBAK TYPE TY_VBAK. DATA: WA_LAYOUT TYPE  SLIS_LAYOUT_ALV ,        IT_FCAT   TYPE  SLIS_T_FIELDCAT_ALV ,         WA_FCAT LIKE LINE OF IT_FCAT.  SELECT-OPTIONS : S_VBELN FOR WA_VBAK-VBELN. START-OF-SELECTION.    SELECT VBELN ERNAM NETWR FROM VBAK           INTO TABLE IT_VBAK UP TO 10 ROWS. LOOP AT  IT_VBAK INTO WA_VBAK. IF  WA_VBAK-ERNAM = 'BOLLINGER'.    WA_VBAK-LIGHTS = 1. MODIFY IT_VBAK FROM WA_VBAK TRANSPORTING LIGHTS.    ELSEIF  WA_VBAK-E...

MODULE POOL -TABLE CONTROL_1:

Image
DECLARE  TABLES NAME AND STRUCTURE AND INTERNAL TABLES AND WORK AREA   CREATE SCREEN 9001 CLICK LAYOUT SEE THAT LAYOUT PAGE THEN WE DO THAT LIKE CLICK WIZARD AND DRAG INTO SCREEN  WE GET SCREEN LIKE SO AFTER WE CAN CREATE THAT STEPS  AFTER WE SEE SCREEN DESIGN IN AUTOMATICALLY IN TABLE CONTROL  SAVE AND CHECK AND ACTIVE  THEN MOVE TO BACK WE SEE THAT AUTOMATIC CODING WILL APPEAR   ENTER CALL SCREEN 9001. GO TO SCREEN 9001. THEN WE CAN FETCH DATA FROM PROGRAM SO    WE CAN CREATE MODULE   AND DESCRIBED ALL CODE IN SIDE OF MODULE. WE CAN GO TO  PAI SIDE  CLICK THAT MODULE AND ENTER  THAT CODING . AFTER SAVE AND ACTIVE PROGRAM  THEN WE CREATE T.CODE IN Z OR Y HERE I CAN CREATE T.CODE LIKE ZTABCLA ...

AT LINE SELECTION EXAMPLES

Image
*&---------------------------------------------------------------------* *& Report  ZSAPLINE_SEL *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT  ZSAPLINE_SEL. TABLES:MARA, MAKT. DATA: WA_MARA TYPE MARA. DATA: WA_MAKT TYPE MAKT. SELECT-OPTIONS: S_MATNR FOR WA_MARA-MATNR. START-OF-SELECTION.   SELECT MATNR MTART MBRSH MEINS FROM MARA         INTO CORRESPONDING FIELDS OF WA_MARA.     WRITE: / WA_MARA-MATNR,              WA_MARA-MTART,              WA_MARA-MBRSH,              WA_MARA-MEINS.     HIDE:WA_MARA-MATNR.   ENDSELECT. AT LINE-SELECTION.   IF SY-LSIND = 1.     WRITE: TEXT-001,            ...

RADIO-BUTTONS IN BASIC REPORT

Image
*&---------------------------------------------------------------------* *& Report  ZSAPRADIO *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT   ZSAPRADIO. TYPES:  BEGIN  OF  TY_VBAK,         VBELN  TYPE  VBAK-VBELN,         ERDAT  TYPE  VBAK-ERDAT,         VKORG  TYPE  VBAK-VKORG,        END  OF  TY_VBAK. TYPES:  BEGIN  OF  TY_VBAP,         VBELN  TYPE  VBAP-VBELN,         POSNR  TYPE  VBAP-POSNR,         MATNR  TYPE  VBAP-MATNR, ...

FOR ALL ENTRIES (FAE) -4 TABLES USING ALV_GRID_DISPLAY

Image
*&---------------------------------------------------------------------* *& Report  ZFAE_ALV *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT   ZFAE_ALV. TYPE-POOLS: SLIS. TYPES:  BEGIN  OF  TY_VBAK,         VBELN  TYPE  VBAK-VBELN,         ERNAM  TYPE  VBAK-ERNAM,         KUNNR  TYPE  VBAK-KUNNR,        END  OF  TY_VBAK.  TYPES:  BEGIN  OF  TY_VBAP,          VBELN  TYPE  VBAP-VBELN,          POSNR  TYPE  VBAP-POSNR,         ...
Image
MM(TABLE-FLOWS)
Image
SAP MM Tables Link and Flow MM flow is processing  between business organisation and Vendor: 1...Purchase Requisition --- T.code ---ME51 2...Source List -----T.code-----ME41 3...Request for Quation (RFQ)---T.code--ME21N  (To Vendor) 4...Purchase Order  ---- T.code ----ME21N (To Vendor) 5...Goods Receipt-------T.code....MIGO       (Tables:  MKPF, MSEG) 6...Invoice Verification----T.code...MIRO       (Tables: BKPF , BSEG) 7...Vendor Payment----T.code...FB60 (FI - Account Payable)