Hi abap experts (one help)

hi
1. please send standard data base table names related to    fi/co?
2.  please send any objects related to fi/co (weather its   reports bdc, scripts or smarforms)?

Hi,
Please go through the below mention code where you can find the data related to FICO.
This program is mainly used for F-53 BDC Document clearance.
REPORT ZCITI_F53_WIPRO no standard page heading line-count 255.
TABLES: BSIK,        " Accounting: Secondary Index for Vendors
        LFA1,        " Vendor Master (General Section)
        LFB1,        " Vendor Master (Company Code)
        BKPF,        " Accounting Document Header
        bsak,        " Acctg:Secondary Index for Vendors (Cleared Items)
         t077k.
DATA:  Z_FNAME LIKE RLGRAP-FILENAME,
       Z_PATH LIKE RLGRAP-FILENAME,
       MASK(10).
begin of mod01 +
TYPES : BEGIN OF W_TAB1,
        BELNR LIKE BSIK-BELNR,
        WRBTR LIKE BSIK-WRBTR,
        END OF W_TAB1.
TYPES : BEGIN OF W_TAB,
        BELNR LIKE BSIK-BELNR,
        WRBTR LIKE BSIK-WRBTR,
        lifnr like bsik-lifnr,
        END OF W_TAB.
end of mod01 -
DATA : BEGIN OF IT_BSIK OCCURS 0,
       BUKRS LIKE BSIK-BUKRS,
       LIFNR LIKE BSIK-LIFNR,
       GJAHR LIKE BSIK-GJAHR,
       BELNR LIKE BSIK-BELNR,
       WRBTR LIKE BSIK-WRBTR,
       REBZG LIKE BSIK-REBZG,
       ZLSPR LIKE BSIK-ZLSPR,
       SHKZG LIKE BSIK-SHKZG,
       PARTL LIKE BSIK-WRBTR,
       NTAMT LIKE BSIK-WRBTR,
       XPORE LIKE LFB1-XPORE,
       END OF IT_BSIK.
data : file_path like rlgrap-filename.
DATA : BEGIN OF IT_LFA1 OCCURS 0,
       LIFNR LIKE LFA1-LIFNR,
       END OF IT_LFA1.
DATA : BEGIN OF it_error OCCURS 0,
             bukrs LIKE bsik-bukrs,
             lifnr LIKE bsik-lifnr,
             belnr LIKE bsik-belnr,
             gjahr LIKE bsik-gjahr,
             rej(1),
        END OF it_error.
DATA : IT_TAB TYPE STANDARD TABLE OF W_TAB
       INITIAL SIZE 0 WITH HEADER LINE,
       IT_TAB1 TYPE STANDARD TABLE OF W_TAB1
       INITIAL SIZE 0 WITH HEADER LINE.
DATA : BEGIN OF IT_INVN OCCURS 0,
       BUKRS LIKE BSIK-BUKRS,
       LIFNR LIKE BSIK-LIFNR,
       GJAHR LIKE BSIK-GJAHR,
       BELNR LIKE BSIK-BELNR,
       WRBTR LIKE BSIK-WRBTR,
       REBZG LIKE BSIK-REBZG,
       ZLSPR LIKE BSIK-ZLSPR,
       SHKZG LIKE BSIK-SHKZG,
       PARTL LIKE BSIK-WRBTR,
       NTAMT LIKE BSIK-WRBTR,
       XPORE LIKE LFB1-XPORE,
       END OF IT_INVN.
data : str type string.
DATA : m_wrbtr_h LIKE bsik-wrbtr,
       m_wrbtr_s LIKE bsik-wrbtr,
       m_wrbtr_net LIKE bsik-wrbtr,
       m_amnt  like bsik-wrbtr,
       m_pamnt like bsik-wrbtr,
       M_NTAMNT LIKE BSIK-WRBTR,
       M_PNTAMNT LIKE BSIK-WRBTR.
data : t_bdc_tab like standard table of bdcdata
      initial size 0 with header line.
data : dat(10).
data : flag(1),
       FLAGE(1),
       count(4) type n,
       counter(4) type n.
DATA : FSYR LIKE BSIK-GJAHR.
DATA : M_PARTL type string,
       M_AMOUNT type string,
       mt_ntamnt type string,
       MT_PNTAMNT type string.
data: m_file LIKE rlgrap-filename.
DATA: id1(3) TYPE n.
  TABLES rfcdes.
  DATA: file_count  TYPE i,
        dir_count   TYPE i.
  DATA: file_table  LIKE sdokpath OCCURS 0 WITH HEADER LINE,
        dir_table   LIKE sdokpath OCCURS 0 WITH HEADER LINE,
        source      LIKE rlgrap-filename,
        destination LIKE rlgrap-filename,
        dest_path   like rlgrap-filename,
        return TYPE i.
data : begin of it_bsak occurs 0,
       augbl like bsak-augbl,
       end of it_bsak.
SELECTION-SCREEN BEGIN OF BLOCK BK1 WITH FRAME.
    PARAMETERS : P_CMCD LIKE BSIK-BUKRS OBLIGATORY DEFAULT 'WT01'.
    PARAMETERS : P_FLNM LIKE RLGRAP-FILENAME OBLIGATORY.
    PARAMETERS : P_FSYR LIKE BSIK-GJAHR OBLIGATORY. "ADDED mod01
SELECTION-SCREEN SKIP.
    PARAMETERS : PX_TEST AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK BK1.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
SELECTION-SCREEN COMMENT 1(70) m_info.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN COMMENT 1(70) m_info1.
SELECTION-SCREEN SKIP.
    PARAMETERS : PX_MOVE AS CHECKBOX DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FLNM.
  Z_FNAME = 'regular.txt'.
  Z_PATH = 'c:\citibank\liabilitydoc\regular.txt'.
  MASK = ',.,..'.
  CALL FUNCTION 'WS_FILENAME_GET'
      EXPORTING
           DEF_FILENAME     = Z_FNAME
           DEF_PATH         = Z_PATH
           MASK             = MASK
           MODE             = 'O'
        TITLE            = ' '
      IMPORTING
           FILENAME         = P_FLNM
        RC               =
       EXCEPTIONS
            INV_WINSYS       = 1
            NO_BATCH         = 2
            SELECTION_CANCEL = 3
            SELECTION_ERROR  = 4
            OTHERS           = 5.
  IF SY-SUBRC <> 0.
    MESSAGE I000(E4) WITH 'File Upload Error'.
  ENDIF.
AT SELECTION-SCREEN OUTPUT.
  m_info =
    'Before BDC Run - First move all the files from directory'.
M_INFO1 ='C:\CITIBANK\PAYDOC_IMPORT\ to C:\CITIBANK\PAYDOC_PROCESSED'.
P_FLNM = 'c:\citibank\liabilitydoc\regular.txt'.
START-OF-SELECTION.
  CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
            FILENAME                = P_FLNM
            FILETYPE                = 'DAT'
       TABLES
            DATA_TAB                = IT_TAB1[]
       EXCEPTIONS
            CONVERSION_ERROR        = 1
            FILE_OPEN_ERROR         = 2
            FILE_READ_ERROR         = 3
            INVALID_TYPE            = 4
            NO_BATCH                = 5
            UNKNOWN_ERROR           = 6
            INVALID_TABLE_WIDTH     = 7
            GUI_REFUSE_FILETRANSFER = 8
            CUSTOMER_ERROR          = 9
            OTHERS                  = 10.
START-OF-SELECTION.
CALL FUNCTION 'Z_GET_FISCALYEAR'
     EXPORTING
          PDATE   = sy-datum
    IMPORTING
         PYEAR   = FSYR
begin of mod01 +
loop at it_tab1.
select single lifnr into it_tab-lifnr from bseg
                          where bukrs = p_cmcd and
                          belnr = it_tab1-belnr and
                          gjahr = p_fsyr.
if sy-subrc <> 0.
        MOVE P_CMCD TO IT_ERROR-BUKRS.
        MOVE IT_TAB1-BELNR TO IT_ERROR-BELNR.
        MOVE FSYR TO IT_ERROR-GJAHR.
        MOVE 'A' TO IT_ERROR-REJ.
        APPEND IT_ERROR.
        CLEAR IT_ERROR.
        delete it_tab1.
else.
    it_tab-belnr = it_tab1-belnr.
    it_tab-wrbtr = it_tab1-wrbtr.
    append it_tab.
    clear it_tab.
endif.
endloop.
end of mod01 + ************
SORT IT_TAB BY BELNR.
LOOP AT IT_TAB.
      select SINGLE bukrs
                    lifnr
                    gjahr
                    belnr
                    wrbtr
                    rebzg
                    zlspr
                    shkzg into
                   (it_bsik-bukrs,
                   it_bsik-lifnr,
                   it_bsik-gjahr,
                   It_bsik-belnr,
                   it_bsik-wrbtr,
                   it_bsik-rebzg,
                   it_bsik-zlspr,
                   it_bsik-SHKZG)
            from bsik where
             bukrs = P_CMCD and
            gjahr = fsyr and    " MOD01 -
            lifnr = it_tab-lifnr and
             gjahr = P_FSYR and     "MOD01 +
             belnr = it_tab-belnr.
      IF SY-SUBRC <> 0.
        MOVE P_CMCD TO IT_ERROR-BUKRS.
        MOVE IT_TAB-BELNR TO IT_ERROR-BELNR.
        MOVE FSYR TO IT_ERROR-GJAHR.
        MOVE 'A' TO IT_ERROR-REJ.
        APPEND IT_ERROR.
        CLEAR IT_ERROR.
        delete it_tab.
      ELSE.
          APPEND IT_BSIK.
          CLEAR IT_BSIK.
      ENDIF.
ENDLOOP.
SORT IT_BSIK BY LIFNR.
LOOP AT IT_BSIK.
select single ktokk from lfa1 into lfa1-ktokk.
select single xcpds from t077k into t077k-xcpds where ktokk = lfa1-ktokk
    IF IT_BSIK-ZLSPR <> ''.
        MOVE IT_BSIK TO IT_ERROR-BUKRS.
        MOVE IT_BSIK-BELNR TO IT_ERROR-BELNR.
        MOVE IT_BSIK-GJAHR TO IT_ERROR-GJAHR.
        MOVE 'B' TO IT_ERROR-REJ.
        APPEND IT_ERROR.
        CLEAR IT_ERROR.
        delete it_bsik.
    elseif t077k-xcpds = 'X'.
        MOVE IT_BSIK TO IT_ERROR-BUKRS.
        MOVE IT_BSIK-BELNR TO IT_ERROR-BELNR.
        MOVE IT_BSIK-GJAHR TO IT_ERROR-GJAHR.
        MOVE 'G' TO IT_ERROR-REJ.
        APPEND IT_ERROR.
        CLEAR IT_ERROR.
        delete it_bsik.
    ENDIF.
ENDLOOP.
SORT IT_BSIK BY LIFNR BELNR.
LOOP AT IT_BSIK.
SELECT SINGLE ZLSPR FROM BSIK INTO BSIK-ZLSPR WHERE
  BUKRS = IT_BSIK-BUKRS AND LIFNR = IT_BSIK-LIFNR AND
  GJAHR = IT_BSIK-GJAHR AND REBZG = IT_BSIK-BELNR.
  IF BSIK-ZLSPR <> ' '.
          MOVE IT_BSIK TO IT_ERROR-BUKRS.
        MOVE IT_BSIK-BELNR TO IT_ERROR-BELNR.
        MOVE IT_BSIK-GJAHR TO IT_ERROR-GJAHR.
        MOVE 'B' TO IT_ERROR-REJ.
        APPEND IT_ERROR.
        CLEAR IT_ERROR.
        delete it_bsik.
ENDIF.
ENDLOOP.
sort it_bsik by lifnr.
loop at it_bsik.
    ON CHANGE OF IT_BSIK-LIFNR.
      MOVE IT_BSIK-LIFNR TO IT_LFA1-LIFNR.
      APPEND IT_LFA1.
      CLEAR IT_LFA1.
    ENDON.
endloop.
SORT IT_LFA1 BY LIFNR.
LOOP AT IT_LFA1.
      SELECT SINGLE SPERZ FROM LFA1 INTO LFA1-SPERZ WHERE
      LIFNR = IT_LFA1-LIFNR.
      IF LFA1-SPERZ = 'X'.
        MOVE IT_LFA1-LIFNR TO IT_ERROR-LIFNR.
        MOVE 'C' TO IT_ERROR-REJ.
        APPEND IT_ERROR.
        CLEAR IT_ERROR.
        delete it_lfa1.
      ENDIF.
ENDLOOP.
sort it_bsik by belnr.
sort it_tab by belnr.
loop at it_bsik.
    read table it_tab with key belnr = it_bsik-belnr binary search.
     if sy-subrc = 0.
         move it_tab-wrbtr to it_bsik-partl.
         modify it_bsik transporting partl.
     endif.
endloop.
SORT IT_BSIK BY BUKRS LIFNR GJAHR BELNR.
LOOP AT IT_BSIK.
    SELECT SINGLE XPORE INTO IT_BSIK-XPORE FROM LFB1
    WHERE LIFNR = IT_BSIK-LIFNR.
    MODIFY IT_BSIK TRANSPORTING XPORE.
    CLEAR : M_WRBTR_H,M_WRBTR_S,M_WRBTR_NET.
    SELECT WRBTR SHKZG INTO (BSIK-WRBTR,BSIK-SHKZG) FROM BSIK
    WHERE BUKRS = IT_BSIK-BUKRS AND
          LIFNR = IT_BSIK-LIFNR AND
          GJAHR = IT_BSIK-GJAHR AND
          REBZG = IT_BSIK-BELNR.
     IF BSIK-SHKZG = 'H'.
          M_WRBTR_H = M_WRBTR_H + BSIK-WRBTR.
     ELSEIF BSIK-SHKZG = 'S'.
          M_WRBTR_S = M_WRBTR_S + BSIK-WRBTR.
     ENDIF.
   ENDSELECT.
   M_WRBTR_NET = IT_BSIK-WRBTR + M_WRBTR_H - M_WRBTR_S.
   IF M_WRBTR_NET LT 0.
        MOVE IT_BSIK TO IT_ERROR-BUKRS.
        MOVE IT_BSIK-BELNR TO IT_ERROR-BELNR.
        MOVE IT_BSIK-GJAHR TO IT_ERROR-GJAHR.
        MOVE 'D' TO IT_ERROR-REJ.
        APPEND IT_ERROR.
        CLEAR IT_ERROR.
        delete it_bsik.
   ELSEIF M_WRBTR_NET GT '100000000.00'.
        MOVE IT_BSIK TO IT_ERROR-BUKRS.
        MOVE IT_BSIK-BELNR TO IT_ERROR-BELNR.
        MOVE IT_BSIK-GJAHR TO IT_ERROR-GJAHR.
        MOVE 'E' TO IT_ERROR-REJ.
        APPEND IT_ERROR.
        CLEAR IT_ERROR.
        delete it_bsik.
   ELSE.
      MOVE M_WRBTR_NET TO IT_BSIK-NTAMT.
     MODIFY IT_BSIK TRANSPORTING NTAMT.
   ENDIF.
ENDLOOP.
concatenate 'CITI/RTGS/NEFT/' sy-datum6(2) '.' sy-datum4(2) '.'
sy-datum(4) into str.
SORT IT_BSIK BY XPORE.
LOOP AT IT_BSIK.
  IF IT_BSIK-XPORE = 'X'.
      MOVE-CORRESPONDING IT_BSIK TO IT_INVN.
      APPEND IT_INVN.
      CLEAR : IT_INVN.
      DELETE IT_BSIK.
  ENDIF.
ENDLOOP.
if px_move = 'X'.
    perform file_move.
endif.
IF PX_TEST = 'X'.
    perform sub_output_run.
ELSE.
SORT IT_LFA1 BY LIFNR.
SORT IT_BSIK BY LIFNR.
SORT IT_INVN BY LIFNR.
concatenate sy-datum6(2) '.' sy-datum4(2) '.' sy-datum(4) into dat.
LOOP AT IT_LFA1.
SELECT SINGLE XPORE FROM LFB1 INTO LFB1-XPORE WHERE
LIFNR = IT_LFA1-LIFNR.
IF LFB1-XPORE = ' '.
clear : m_amnt,M_PAMNT, M_NTAMNT,FLAG.
    LOOP AT IT_BSIK WHERE LIFNR = IT_LFA1-LIFNR.
        IF IT_BSIK-XPORE = ' '.
            M_PAMNT = M_PAMNT + IT_BSIK-PARTL.
            m_amnt = m_amnt + it_bsik-ntamt.
        endif.
    ENDLOOP.
   perform populate_bdc_tab using: '1' 'SAPMF05A' '0103',
                                   ' ' 'BKPF-BLDAT' dat,
                                   ' ' 'BKPF-BLART' 'BR',
                                   ' ' 'BKPF-BUKRS' P_CMCD,
                                   ' ' 'RF05A-AUGTX' STR,
                                   ' ' 'RF05A-KONTO' '632118',
                                   ' ' 'BSEG-GSBER' 'T100'.
      IF M_PAMNT <> '0.00'.
          FLAG = 'X'.
          M_AMOUNT = M_PAMNT.
          condense m_amount.
          PERFORM POPULATE_BDC_TAB USING: ' ' 'BSEG-WRBTR' M_AMOUNT.
      ELSE.
          M_AMOUNT = M_AMNT.
          condense m_amount.
          PERFORM POPULATE_BDC_TAB USING: ' ' 'BSEG-WRBTR' M_AMOUNT.
      ENDIF.
      PERFORM POPULATE_BDC_TAB USING: ' ' 'RF05A-AGKON' it_LFA1-LIFNR,
                                      ' ' 'BDC_OKCODE' '/00'.
    loop at it_bsik where lifnr = it_lfa1-lifnr.
      PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                     ' ' 'BDC_OKCODE' '=OSU'.
           PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '2000',
                                     ' ' 'RF05A-XPOS1(03)' 'X',
                                     ' ' 'BDC_OKCODE' '=GO'.
             PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '0731',
                                    ' ' 'RF05A-SEL01(01)' it_bsik-belnr,
                                    ' ' 'BDC_OKCODE' '=GO'.
            PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                    ' ' 'BDC_OKCODE' '=OMK'.
              PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                    ' ' 'BDC_OKCODE' '=Z+'.
          PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                    ' ' 'BDC_OKCODE' '=OSE'.
    endloop.
            if FLAG = 'X'.
                m_ntamnt = m_amnt - m_pamnt.
                mt_ntamnt = m_ntamnt.
                condense mt_ntamnt.
                PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                    ' ' 'RF05A-AKOBT' mt_ntamnt,
                                    ' ' 'BDC_CURSOR' 'RF05A-AKOBT',
                                    ' ' 'BDC_SUBSCR' 'SAPDF05X',
                                    ' ' 'BDC_OKCODE' '=BU'.
               PERFORM POPULATE_BDC_TAB USING: '1' 'SAPMF05A' '0700',
                                    ' ' 'BDC_CURSOR' 'RF05A-AZEI1(02)',
                                    ' ' 'BDC_OKCODE' '=PI'.
               PERFORM POPULATE_BDC_TAB USING: '1' 'SAPMF05A' '0302',
                                  ' ' 'BSEG-SGTXT' 'CUMULATIVE PAYMENT',
                                    ' ' 'BDC_OKCODE' '=BU'.
            else.
               PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                    ' ' 'BDC_OKCODE' '=BU'.
            endif.
       CALL TRANSACTION 'F-53' USING T_BDC_TAB MODE 'A'.
if sy-subrc = 0.
  refresh T_BDC_TAB.
endif.
   else.
    loop at it_INVN where lifnr = it_lfa1-lifnr.
    CLEAR : FLAGE.
   perform populate_bdc_tab using: '1' 'SAPMF05A' '0103',
                                   ' ' 'BKPF-BLDAT' dat,
                                   ' ' 'BKPF-BLART' 'BR',
                                   ' ' 'BKPF-BUKRS' P_CMCD,
                                   ' ' 'RF05A-AUGTX' STR.
      IF IT_INVN-XPORE = 'X' AND IT_INVN-PARTL <> '0.00'.
        SELECT SINGLE XBLNR BSCHL INTO (BSIK-XBLNR,BSIK-BSCHL) FROM
                BSIK WHERE
                 BUKRS = IT_INVN-BUKRS AND
                 LIFNR = IT_INVN-LIFNR AND
                 GJAHR = IT_INVN-GJAHR AND
                 BELNR = IT_INVN-BELNR.
      IF BSIK-BSCHL = '31'.
            perform populate_bdc_tab using: ' ' 'BKPF-BKTXT' BSIK-XBLNR.
      ELSE.
          SELECT SINGLE BKTXT FROM BKPF INTO BKPF-BKTXT WHERE
              BUKRS = IT_INVN-BUKRS AND
              BELNR = IT_INVN-BELNR AND
              GJAHR = IT_INVN-GJAHR.
            perform populate_bdc_tab using: ' ' 'BKPF-BKTXT' BKPF-BKTXT.
      ENDIF.
    ENDIF.
        PERFORM POPULATE_BDC_TAB USING: ' ' 'RF05A-KONTO' '632118'.
        PERFORM POPULATE_BDC_TAB USING: ' ' 'BSEG-GSBER' 'T100'.
      IF IT_INVN-XPORE = 'X' AND IT_INVN-PARTL <> '0.00'.
          FLAGE = 'X'.
          M_PARTL = IT_INVN-PARTL.
          CONDENSE m_partl.
          PERFORM POPULATE_BDC_TAB USING: ' ' 'BSEG-WRBTR' M_PARTL.
      ELSE.
          M_PARTL = IT_INVN-NTAMT.
          condense m_partl.
          PERFORM POPULATE_BDC_TAB USING: ' ' 'BSEG-WRBTR' M_PARTL.
      ENDIF.
       PERFORM POPULATE_BDC_TAB USING: ' ' 'RF05A-AGKON' it_LFA1-LIFNR,
                                       ' ' 'BDC_OKCODE' '/00'.
           PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                     ' ' 'BDC_OKCODE' '=OSU'.
           PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '2000',
                                     ' ' 'RF05A-XPOS1(03)' 'X',
                                     ' ' 'BDC_OKCODE' '=GO'.
             PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '0731',
                                    ' ' 'RF05A-SEL01(01)' it_INVN-belnr,
                                    ' ' 'BDC_OKCODE' '=GO'.
            PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                    ' ' 'BDC_OKCODE' '=OMK'.
              PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                    ' ' 'BDC_OKCODE' '=Z+'.
             if FLAGE = 'X'.
                m_Pntamnt = IT_INVN-NTAMT - IT_INVN-PARTL.
                mt_Pntamnt = m_Pntamnt.
                condense mt_pntamnt.
                PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                    ' ' 'RF05A-AKOBT' mt_Pntamnt,
                                    ' ' 'BDC_CURSOR' 'RF05A-AKOBT',
                                    ' ' 'BDC_SUBSCR' 'SAPDF05X',
                                    ' ' 'BDC_OKCODE' '=BU'.
               PERFORM POPULATE_BDC_TAB USING: '1' 'SAPMF05A' '0700',
                                    ' ' 'BDC_CURSOR' 'RF05A-AZEI1(02)',
                                    ' ' 'BDC_OKCODE' '=PI'.
            IF BSIK-BSCHL = '31'.
               PERFORM POPULATE_BDC_TAB USING: '1' 'SAPMF05A' '0302',
                                  ' ' 'BSEG-SGTXT' BSIK-XBLNR,
                                    ' ' 'BDC_OKCODE' '=BU'.
            ELSE.
               PERFORM POPULATE_BDC_TAB USING: '1' 'SAPMF05A' '0302',
                                  ' ' 'BSEG-SGTXT' BKPF-BKTXT,
                                    ' ' 'BDC_OKCODE' '=BU'.
            ENDIF.
            else.
               PERFORM POPULATE_BDC_TAB USING: '1' 'SAPDF05X' '3100',
                                    ' ' 'BDC_OKCODE' '=BU'.
            endif.
      CALL TRANSACTION 'F-53' USING T_BDC_TAB MODE 'A'.
if sy-subrc = 0.
  refresh T_BDC_TAB.
endif.
    endloop.
ENDIF.
wait  up to 3 seconds.
ENDLOOP.
clear : count, counter.
SORT IT_BSIK BY BUKRS LIFNR GJAHR BELNR.
wait up to 60 seconds.
loop at it_bsik.
count = count + 1.
    select SINGLE augbl from bsak into bsak-augbl
where
          bukrs = it_bsik-bukrs and
          lifnr = it_bsik-lifnr and
          AUGBL <> IT_BSIK-BELNR AND
          gjahr = it_bsik-gjahr and
          belnr = it_bsik-belnr.
              move bsak-augbl to it_bsak-augbl.
              append it_bsak.
              clear it_bsak.
endloop.
SORT IT_INVN BY BUKRS LIFNR GJAHR BELNR.
loop at it_INVN.
count = count + 1.
    select single augbl from bsak into bsak-augbl
where
          bukrs = it_invn-bukrs and
          lifnr = it_invn-lifnr and
          gjahr = it_invn-gjahr and
          belnr = it_invn-belnr AND
          SHKZG = 'H'.
              move bsak-augbl to it_bsak-augbl.
              append it_bsak.
              clear it_bsak.
endloop.
SORT IT_BSAK BY AUGBL.
delete ADJACENT DUPLICATES from it_bsak comparing augbl.
DESCRIBE TABLE it_bsak LINES counter.
SORT IT_BSAK BY AUGBL.
PERFORM get_file_name.
CALL FUNCTION 'GUI_DOWNLOAD'
     EXPORTING
          FILENAME                = file_path
         FILETYPE                = 'ASC'
     TABLES
          DATA_TAB                = it_bsak
format color col_heading intensified off.
uline.
Write : /50 'F-53 BDC Run Successfully'.
format color off.
uline.
format color col_normal intensified off.
write : /20 'Payment Document File is store in following Path'.
write : /35 'C:\CITIBANK\PAYDOC_IMPORT\'.
uline.
format color off.
uline.
format color col_total.
write : /20 'Total No of Liability Documents Processed ', count no-zero.
write : /20 'Total No of Payment Documents Generated   ', counter
no-zero.
format color off.
uline.
ENDIF.
*&      Form  SUB_OUTPUT_RUN
      text
-->  p1        text
<--  p2        text
FORM SUB_OUTPUT_RUN.
data : SRNO type i value 0,
       srno1 type i value 0,
       srno2 TYPE i value 0,
       srno3 TYPE i value 0,
       srno4 TYPE i value 0,
       srno5 type i value 0.
  FORMAT COLOR col_heading intensified off .
  ULINE.
  WRITE:/35 'TEST RUN'.
  ULINE.
  FORMAT COLOR 5 INTENSIFIED OFF.
SORT IT_ERROR BY REJ.
LOOP AT IT_ERROR.
    ON CHANGE OF IT_ERROR-REJ.
      IF IT_ERROR-rej = 'A'.
      FORMAT COLOR col_heading INTENSIFIED OFF.
      ULINE.
WRITE : /'Following Documents are already cleared or do not exist in'.
write : 'current financial year'.   "MOD01 +
    uline.
     format color off.
      elseif it_error-rej = 'B'.
            FORMAT COLOR COL_HEADING INTENSIFIED OFF.
      ULINE.
WRITE : /'Following Documents are Blocked for Payment'
    uline.
     format color off.
      elseif it_error-rej = 'C'.
            FORMAT COLOR COL_HEADING INTENSIFIED OFF.
      ULINE.
WRITE : /'Following Vendors are Blocked for Payment'
    uline.
     format color off.
      elseif it_error-rej = 'D'.
            FORMAT COLOR COL_HEADING INTENSIFIED OFF.
      ULINE.
WRITE : /'Amount is less than 0 for following Documents'
    uline.
     format color off.
      elseif it_error-rej = 'E'.
            FORMAT COLOR COL_HEADING INTENSIFIED OFF.
      ULINE.
WRITE : /'Amount is greater than 10 crores for following Documents'
    uline.
     format color off.
      elseif it_error-rej = 'E'.
            FORMAT COLOR COL_HEADING INTENSIFIED OFF.
      ULINE.
WRITE : /'One Time Vendor'.
    uline.
     format color off.
   endif.
   endon.
   if it_error-rej = 'A'.
    srno = srno + 1.
    format color COL_NORMAL.
    write : /10 srno,35 it_error-belnr.
    format color off.
   elseif it_error-rej = 'B'.
    srno1 = srno1 + 1.
    format color COL_NORMAL.
    write : /10 srno1,35 it_error-belnr.
    format color off.
   elseif it_error-rej = 'C'.
    srno2 = srno2 + 1.
    format color COL_NORMAL.
    write : /10 srno2,35 it_error-lifnr.
    format color off.
   elseif it_error-rej = 'D'.
    srno3 = srno3 + 1.
    format color COL_NORMAL.
    write : /10 srno3,35 it_error-belnr.
    format color off.
   elseif it_error-rej = 'E'.
    srno4 = srno4 + 1.
    format color COL_NORMAL.
    write : /10 srno4,35 it_error-belnr.
    format color off.
   elseif it_error-rej = 'G'.
    srno5 = srno5 + 1.
    format color COL_NORMAL.
    write : /10 srno5,35 it_error-lifnr.
    format color off.
   endif.
endloop.
if it_error is initial.
     FORMAT COLOR COL_HEADING INTENSIFIED OFF.
      ULINE.
WRITE : /'Test Run not find any Document with Error'
    uline.
     format color off.
endif.
clear : srno,srno1,srno2,srno3,srno4,srno5.
ENDFORM.                    " SUB_OUTPUT_RUN
*&      Form  POPULATE_BDC_TAB
      text
     -->P_0217   text
     -->P_0218   text
     -->P_0219   text
form populate_bdc_tab using    value(flag)
                               value(var1)
                               value(var2).
  clear t_bdc_tab.
  if flag = '1'.
    t_bdc_tab-program = var1.          " Program Name
    t_bdc_tab-dynpro = var2.           " Screen Number
    t_bdc_tab-dynbegin = 'X'.          " Starting of new screen
  else.
    t_bdc_tab-fnam = var1.             " Field Name
    t_bdc_tab-fval = var2.             " Field Value
  endif.
  append t_bdc_tab.
   endform.                               " POPULATE_BDC_TAB
*&      Form  FILE_MOVE
      text
-->  p1        text
<--  p2        text
FORM FILE_MOVE.
file_path = 'c:\citibank\paydoc_import\'.
dest_path = 'c:\citibank\paydoc_processed\'.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
      EXPORTING
        directory  = file_path
        filter     = '.'
      IMPORTING
        file_count = file_count
        dir_count  = dir_count
      TABLES
        file_table = file_table
        dir_table  = dir_table
      EXCEPTIONS
        cntl_error = 1
        OTHERS     = 2.
    IF sy-subrc = 0.
      LOOP AT file_table.
        CONCATENATE dest_path file_table-pathname
        INTO destination.
        CONCATENATE file_path file_table-pathname
        INTO source.
        CALL FUNCTION 'WS_FILE_COPY'
          EXPORTING
            destination = destination
            SOURCE      = SOURCE
          importing
            return      = return.
        CALL FUNCTION 'WS_FILE_DELETE'
          EXPORTING
            file   = source
          IMPORTING
            return = return.
      ENDLOOP.
      CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
        EXPORTING
          directory  = file_path
          filter     = '.'
        IMPORTING
          file_count = file_count
          dir_count  = dir_count
        TABLES
          file_table = file_table
          dir_table  = dir_table
        EXCEPTIONS
          cntl_error = 1
          OTHERS     = 2.
      IF file_count > 0.
      write : /'Error copying', source, 'to', destination.
       CONCATENATE 'Error copying' source 'to' destination
       INTO i_error SEPARATED BY space.
       APPEND i_error.
      ENDIF.
    ENDIF.
ENDFORM.                    " FILE_MOVE
*&      Form  GET_FILE_NAME
      text
-->  p1        text
<--  p2        text
FORM GET_FILE_NAME.
file_path = 'c:\citibank\paydoc_import\'.
  CLEAR : zcitibank2.
  SELECT SINGLE * FROM zcitibank2 INTO zcitibank2
                  WHERE citi_field = 'FNAME'.
  id1 = zcitibank2-citi_val .
  IF zcitibank2-sap_val <> sy-datum .
    zcitibank2-sap_val = sy-datum .
    UPDATE zcitibank2 SET citi_val = '001'
                          sap_val  = sy-datum
                          WHERE citi_field = 'FNAME'.
*sap_val = sy-datum.
  ELSE.
    id1 = id1 + 1.
    UPDATE zcitibank2 SET citi_val = id1
                                    WHERE citi_field = 'FNAME' AND
                                             sap_val = sy-datum.
  ENDIF.
  CLEAR : zcitibank2.
  SELECT SINGLE * FROM zcitibank2 WHERE citi_field = 'FNAME'.
CONCATENATE SY-DATUM SY-UZEIT INTO M_FILE SEPARATED BY SPACE.
  CONCATENATE zcitibank2-sap_val zcitibank2-citi_val INTO m_file
SEPARATED  BY '_'.
  CONCATENATE file_path m_file '.'
  'txt' INTO file_path.
ENDFORM.                    " GET_FILE_NAME

Similar Messages

  • Users of imovie experience a lot of problems and crying for help and no one at Apple did not respond I do not understand how a company like Apple puts experts to help users Please note that anonymous experts in Internet offer their help for money

    Users of imovie experience a lot of problems and crying for help and no one at Apple did not respond
    I do not understand how a company like Apple puts experts to help users
    Please note that anonymous experts in Internet offer their help for money

    Users of imovie experience a lot of problems and crying for help and no one at Apple did not respond
    I do not understand how a company like Apple puts experts to help users
    Please note that anonymous experts in Internet offer their help for money

  • Can any one help me in giving hr abap objects

    can any one help me in giving hr abap objects for practice, plz send some requriments which really need to worked

    Hi,
    Till the time you can work with these. I'll let you know more.
    <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf">http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf</a>
    <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf">http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf</a>
    <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf">http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf</a>
    I'll send you more in half hours.
    If helpful do reward the points.
    Regards
    Amit

  • I bought an iphone 5 from one of my friends and unluckily I had yet lost his contact, I had update this iphone to IOs 7 and now it's be locked at iCloud because there was no password . Actually I dont know what I must do for its. Experts, please help me!

    I bought an iphone 5 from one of my friends and unluckily I had yet lost his contact, I had update this iphone to IOs 7 and now it's be locked at iCloud because there was no password . Actually I dont know what I must do for its. Experts, please help me!

    The friend who sold it to you needed to clear his Apple ID off the phone before he sold it to you. Of course if it wasn't his phone in the first place then he could not do so. He is your friend but you don't know where he is?
    There is nothing that will help you short of getting the password for the Apple ID from your friend. If you cannot obtain that there is no workaround.

  • Hey, I had met a problem with installation. Can any one help me?

    Hi everyone, I'm an user of Windows 7(64 bit),
    I had just download "Master Collection CS5.5"
    Everything are fine but Adobe Acrobat Professional can't install on my computer.
    There are the details..:
    Exit Code: 6
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 4 error(s), 1 warning(s)
    WARNING: DW066: OS requirements not met for {AC76BA86-1033-F400-7760-000000000005}
    ----------- Payload: {AC76BA86-1033-F400-7760-000000000005} Acrobat Professional 10.0.0.0 -----------
    ERROR: Error 1324.The path R嶰up廨er un document num廨is?sur un multifonction.sequ or the volume is invalid. Please enter it again.
    ERROR: Install MSI payload failed with error: 1603 - 安裝時發生嚴重錯誤。
    MSI Error message: Error 1324.The path R嶰up廨er un document num廨is?sur un multifonction.sequ or the volume is invalid. Please enter it again.
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Acrobat Professional: Install failed
    Thanks

    Re: Hey, I had met a problem with installation. Can any one help me?
    This worked for an English version and the concept should work with all Adobe programs - new or old (hopefully in any language). My guess is that you have/had an older version of Acrobat/Reader on your computer hard drive that needs to be *completely* removed first. Uninstall the new (and any old) Acrobat; then try using the "kb2..." guideline link below before reinstalling the new Acrobat. I am including the lengthy instructions in order to help others with more extensive installation problems. Good luck!
    I live on a fixed income and use CS for a hobby. I had problem installing Adobe Creative Suite (CS1) to Windows 7 64-bit Pro on my new computer. Also installed Adobe Photoshop LR3. What I learned: All Adobe products (Flash, Acrobat/Reader, Photoshop, Creative Suites, etc.) leave a VERY pervasive footprint on your hard drive. Logic finally worked for me.... think of building a house; there is an order you have to do things in. First, you have to clean the area before laying the foundation; then you have to build the framework before you put the roof on. You cannot install an older program over ANY newer program; and you will sometimes have a problem installing a newer program containing Flash, Reader, etc. unless you "erase" the older versions of Flash, Reader beforehand. If installing older programs, do a Custom/Manual install; do not install older versions of Flash, Reader, etc.  packaged with your Adobe software.
    SOLUTION (not easy, but it works):
    I first tried this; it did not solve my problem (but, if applicable, may help others).  http://windows.microsoft.com/en-us/windows7/Make-older-programs-run-in-this-version-of-Win dows
    Before doing anything, make document and any database/presets/cache back-ups beforehand (keep notes on their designated location*); manually create a System Restore point. (Be prepared to reinstall Windows if necessary - I didn't have to.)
    Completely and meticulously eradicate (clean) your hard drive of ALL Adobe programs [uninstall, remove remaining folders, and remove only the registry entries that have the Adobe name attached (unless you are an expert and fully understand the other entries)]. Use this as a guideline  http://kb2.adobe.com/cps/400/kb400769.html
    Do a Custom/Manual reinstall of all your Adobe products *in order of release dates* (OLDEST first).... do not include Reader, Flash, etc. If your CD will not automatically run at this point, click "Open folder to view files" (use Computer/Windows Explorer, if necessary). Click "Adobe Creative Suite (or your desired program) ==> Setup.exe" (IMPORTANT: Make sure that Reader, Flash, etc. are unchecked.)
    After each of your desired Adobe programs are installed, test to insure they boot up. Then download the latest Reader, Flash, etc. apps and install them (I did this in order of release date - oldest first). Do test boot(s) again.
    Copy/Paste your document and any database/presets/cache back-ups into the appropriate folders (*this will vary depending on your programs and your filing system).
    It has been four weeks and all my Adobe programs work flawlessly - system is stable, no problems!

  • Can any one help me  with SAP product version information,

    1) NW04. Which has two subsequent versions:
    SAP Netweaver 2004
    SAP Netweaver 2004S (Alias SAP Netweaver 7.0), for which one enhancement
    pack exists:
    - EHP1
    2) NW05. Which has one version:
    SAP Netweaver 2005 (Contains ECC 6.0 / ERP 6.0), for which four
    enhancement packs exists:
    - EHP1
    - EHP2
    - EHP3
    - EHP4 (Available from 21.11.2008). EHP4 seems to exist in two flavors,
    "Easy adaptation", and "Continues Innovation"
    3) NW06 (Alias SAP Netweaver 7.1, currently in rampup phase)
    4) SAP Netweaver 7.2 (Available in 2009)
    First question:
    The Netweaver Developer Studio (NWDS) seems to exist in two versions:
    - NWDS 7.0
    - NWDS 7.1 (As part of the Composit Environment / CE) Which SAP
    Netweaver release(s) support the above NWDS versions?
    Second question:
    Has anything changed in the graphical capabilities (such as the
    availability of GUI controls, office integration, etc) between both NWDS
    versions? If so, what are the major changes?
    Third question:
    The CE environment contains development tools for SOA development.
    Is it possible to use NWDS from the CE environment, without requirering
    end-users to install the CE environment on their system?
    Fourth question:
    Are there any differences in the graphical capabilities between NWDS
    Java and WebDynpro for Java.
    If so, which?
    Are there any differences in the integration capabitlities (i.e. ABAP
    dictionary info, help texts, search helps, messaging, etc) between
    WebDynpro for Java and WebDynpro for ABAP?
    If so, which?

    Have you got any answer for these questions
    Nikhil

  • Any one help me meta trader 4 download and install my ibook g4 10.4.11

    any one help me download  and install meta trader my ibook 10.4.11 i try for this pls help me i an tired for this

    Though I am not familiar with MetaTrader 4, I do know it would require a virtualization
    application to run Windows in a Mac, (such as Virtual PC for Mac) & a copy of Windows
    appropriate for both the correct version of PC virtualization, and both versions of the
    Virtual PC (or equivalent) and Windows that could run in the computer you have...
    Within the hardware limitations, and the system limitations of co-sharing the virtual PC
    software, windows, and MetaTrader4 together.
    From what I've read, most users have a later model Intel-based Mac computer, with at
    least a core2duo cpu, and 4GB+ RAM or more, so the virtual system and OS X can both
    work; plus a additional resources for the application to run on top of this.
    I'd tend to believe you will not have a good day or any kind of fair results running the
    MetaTrader4 application on a Mac capable of running Mac OS X 10.4.11 Tiger, as it
    would be slow. And you will have to buy a copy of Virtual PC for Mac that could run
    under Tiger OS X 10.4.11, and a version of Windows that can run with both the above.
    Here is a discussion forum link from a MetaTrader thread; appears the Intel-based Mac
    with extra RAM, virtual PC software, with Windows installed too, running on Tiger 10.4.11
    could be a low-end marginal access point to use the MetaTrader, made for Windows PC.
    This discussion is from 2007 to 2008, and so the results even if the software were to function
    may vary now from what they found then, not just on the Mac side, but on the Windows PC
    side of all this. http://www.metatrader4.com/forum/3228
    Another discussion about virtual PC and metatrader4
    http://www.metatrader4.com/forum/395
    Some show they ran windows XP, some with Parallels in a Core2Duo Intel-Mac, some
    used BootCamp to set up the partition in the Mac HDD so windows could be installed;
    so that is another world from an older iBook G4 (PowerPC-Mac) that has a single core
    PPC processor & limited hardware, a marginal situation for Mac OS X by itself, at times.
    I cannot recommend running MetaTrader4 on an iBook G4 under Tiger 10.4.11, with
    Virtual PC for Mac, so a Windows OS can be used. I doubt the configuration can do it.
    However I am not an expert in this matter, but I do have several older PPC pre-intel Macs
    and know they have/had limitations, especially when one hopes to run Windows on them
    via a Virtualization setup. IT would be super SLOW!
    If you had an Intel-based Mac running at least OS X 10.6.8 & enough RAM, etc there is
    this retail product: http://www.xm.com/metatrader-mac that I just read about...
    Good luck in this matter...!

  • Again got stuck with textpool experts plz help

    hi experts,
    plz help in resolving this issue this is very urgent.
    error is
    The line type of "RPOOL" must be compatible with one of the types
    "TEXTPOOL".
    and its coming in :
    read textpool  rname into rpool language sy-langu.
    FOR YOUR INFORMATION:
    form init_textpool using rname like rsvar-report.
    FYI:
    DATA: BEGIN OF RPOOL OCCURS 20,
    ID(1),
    NAME(8),
    TEXT(80),
    END OF RPOOL.
    and textpool is also a structure u can check the fields in se11.
    as the structure of textpool and rpool are not same
    i cannot declare the type of rpool as textpool because it ill change the functionality of the prog because in the rest of the prog we r using the fields of rpool. 
    plz help me.

    hi atish
    thanks 4 ur rply
    solution provided by you is not giving error but i think it ill change your functionality.
    i did this::::
    data: begin of rpool occurs 20,
                id(1),
                name(8),
                text(80),
          end of rpool.
    data: rname like rsvar-report.
    data : RPOOL_1 LIKE TEXTPOOL OCCURS 0 WITH HEADER LINE.
    TYPEs : begin of RPOOL_1 ,
                id(1),
                name(8),
                text(80),
          end of rpool_1.
    read textpool  rname into rpool_1 language sy-langu.
    MOVE-CORRESPONDING rpool_1 TO rpool.
    write : rpool-id, rpool-text, rpool-name.
    later on in the program we r using name and text fields but in this when i debugged it is nt able to identify name and text fields only showing the value of id bcoz id is also dere in textpool structure.

  • Experts plz help ALV issue

    hi all experts
    plz help
    i have an alv based on object oriented method
    in the output i am gettin a toolbar in which i have two buttons like print and export
    problem is
    when i click on these buttons i am gettin short dump
    Field symbol has not yet been assigned.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLKKBL" had to be terminated because
        come across a statement that unfortunately cannot be executed.
    plz tel me for printing do i need to wwrite any seperate event or any method for it
    plz guide me
    thanx in advance .

    *& Report  ZMULTIPLE_ALV
    *REPORT  ZMULTIPLE_ALV.
    report zrich_0006.
    tables: mara.
    type-pools: slis.
    Internal Tables
    data: begin of ialv occurs 0,
          matnr type mara-matnr,
          maktx type makt-maktx,
          end of ialv .
    Internal Tables
    data: begin of ialv2 occurs 0,
          matnr type mard-matnr,
          werks type mard-werks,
          lgort type mard-lgort,
          end of ialv2 .
          CLASS lcl_event_receiver DEFINITION      Handles Double Click
    class lcl_event_receiver definition.
      public section.
        methods handle_hotspot_click
           for event hotspot_click of cl_gui_alv_grid
          importing e_row_id.
      private section.
    endclass.
          CLASS lCL_EVENT_RECEIVER IMPLEMENTATION    Handles Double Click
    class lcl_event_receiver implementation.
      method handle_hotspot_click.
        perform get_details using e_row_id-index.
      endmethod.
    endclass.
    data: alv_container type ref to cl_gui_custom_container,
          event_receiver type ref to lcl_event_receiver,
          alv_grid type ref to cl_gui_alv_grid,
          alv_container2 type ref to cl_gui_custom_container,
          alv_grid2 type ref to cl_gui_alv_grid,
          ok_code like sy-ucomm,
          fieldcat type lvc_t_fcat,
          gs_layout   type lvc_s_layo,
          fieldcat2 type lvc_t_fcat.
    select-options: s_matnr for mara-matnr.
    start-of-selection.
      perform get_data.
      call screen 100.
         Module  status_0100  OUTPUT
    module status_0100 output.
      data: variant type  disvariant.
      data: lt_exclude type ui_functions.
      data: ls_fcat type lvc_s_fcat.
      set pf-status '0100'.
      set titlebar '0100'.
      check alv_container is initial.
      Code for first ALV Grid
    Create Controls
      create object alv_container
             exporting container_name = 'ALV_CONTAINER'.
      create object alv_grid
             exporting  i_parent =  alv_container.
      create Event Receiver
      create object event_receiver.
      clear fieldcat.  refresh: fieldcat.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Material Number'.
      ls_fcat-coltext    = 'Material Number'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'IALV'.
      ls_fcat-hotspot    = 'X'.
      ls_fcat-outputlen  = '18'.
      ls_fcat-col_pos    = 1.
      append ls_fcat to fieldcat.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Material Description'.
      ls_fcat-coltext    = 'Material Description'.
      ls_fcat-fieldname  = 'MATKX'.
      ls_fcat-ref_table  = 'IALV'.
      ls_fcat-outputlen  = '40'.
      ls_fcat-col_pos    = 2.
      append ls_fcat to fieldcat.
      gs_layout-grid_title = 'Flights'(100).
      CALL METHOD alv_grid->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
         I_BUFFER_ACTIVE               =
         I_BYPASSING_BUFFER            =
         I_CONSISTENCY_CHECK           =
         I_STRUCTURE_NAME              =
         IS_VARIANT                    =
         I_SAVE                        =
         I_DEFAULT                     = 'X'
          IS_LAYOUT                     = gs_layout
         IS_PRINT                      =
         IT_SPECIAL_GROUPS             =
         IT_TOOLBAR_EXCLUDING          =
         IT_HYPERLINK                  =
         IT_ALV_GRAPHICS               =
         IT_EXCEPT_QINFO               =
         IR_SALV_ADAPTER               =
        CHANGING
          IT_OUTTAB                     = ialv[]
          IT_FIELDCATALOG               = fieldcat[]
         IT_SORT                       =
         IT_FILTER                     =
       EXCEPTIONS
         INVALID_PARAMETER_COMBINATION = 1
         PROGRAM_ERROR                 = 2
         TOO_MANY_LINES                = 3
         OTHERS                        = 4
      IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    call method alv_grid->set_table_for_first_display
         changing
              it_outtab       = ialv[]
              it_fieldcatalog = fieldcat[].
      handler for ALV grid
      set handler event_receiver->handle_hotspot_click for alv_grid.
      Code for second ALV Grid
    Create Controls
      create object alv_container2
             exporting container_name = 'ALV_CONTAINER2'.
      create Event Receiver
      create object alv_grid2
             exporting  i_parent =  alv_container2.
      clear fieldcat.  refresh: fieldcat.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Material Number'.
      ls_fcat-coltext    = 'Material Number'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'IALV2'.
      ls_fcat-outputlen  = '18'.
      append ls_fcat to fieldcat2.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Plant'.
      ls_fcat-coltext    = 'Plant'.
      ls_fcat-fieldname  = 'MATNR'.
      ls_fcat-ref_table  = 'IALV2'.
      ls_fcat-outputlen  = '4'.
      append ls_fcat to fieldcat2.
      clear: ls_fcat.
      ls_fcat-reptext    = 'Store Loc'.
      ls_fcat-coltext    = 'Store Loc'.
      ls_fcat-fieldname  = 'LGORT'.
      ls_fcat-ref_table  = 'IALV2'.
      ls_fcat-outputlen  = '4'.
      append ls_fcat to fieldcat2.
      call method alv_grid2->set_table_for_first_display
           changing
               it_outtab       = ialv2[]
               it_fieldcatalog = fieldcat2[].
    endmodule.
         Module  USER_COMMAND_0100  INPUT
    module user_command_0100 input.
      case sy-ucomm.
        when 'BACK' or 'CANC'.
          if not alv_container is initial.
            call method alv_container->free.
            clear: alv_container.
            free : alv_container.
          endif.
          if not alv_container2 is initial.
            call method alv_container2->free.
            clear: alv_container2.
            free : alv_container2.
          endif.
          if sy-subrc = 0.
            set screen 0.
            leave screen.
          else.
            leave program.
          endif.
      endcase.
    endmodule.
          FORM GET_DATA.
    form get_data.
      select maramatnr maktmaktx
                 into corresponding fields of table ialv
                     from mara
                          inner join makt
                             on maramatnr = maktmatnr
                                    where mara~matnr in s_matnr
                                      and makt~spras = sy-langu.
      sort ialv ascending by matnr.
    endform.
          FORM GET_MORE_DATA.
    form get_more_data.
      select matnr werks lgort
                 into corresponding fields of table ialv2
                     from mard
                               where matnr = ialv-matnr.
      sort ialv2 ascending by matnr.
    endform.
    GET_DETAILS
    form get_details using index.
      read table ialv index index.
      if sy-subrc = 0.
        perform get_more_data.
        call method alv_grid2->refresh_table_display.
      endif.
    endform.

  • BDC - table control - experts please help

    Hi experts,
    Please help. I am in need of your help.
    I am working with BDC and I have a table control in one of the screen. Table control has a check box in the first column. While recording how I entered the data is : I select the check box in a row, enter two values in next two columns of that row and then hit enter then the other columns in that row turn from grey to white (initially these columns are greyed out).
    NOw in BDC when I run my session in foreground, I am able to check(select) the check box and enter the values in next two columns and then I have a Enter OKCODE. But when I hit enter it is not able to recognize the row and its unable to turn the greyed out columns in that particular row to white.
    Is there a way to specify in my program that I am hitting enter in one particular row.
    Please help. Let me know if something is not clear. Very urgent . Pleasee respond. Thanks

    Hi Rich,
    Thanks for the replies. I will try that. I got one more doubt. While manually creating the recipes using C201, there is a screen Recipe header. When I record this transaction, I see a different screen for the Recipe header. Fro example the screen numbers are like 4210(manual) and 4211(recording).
    But my problem is there are two fields which are missing in the screen which I am getting while recording C201. These two fields are present on the screen for manual creation. I need to enter those two fields while I record. But how can I do this.
    Please help.

  • Wifi works poorly on my brandnew ipad2. can some one help me or shall I return it to the store?

    Wifi works poorly to none on my brandnew (three days old) ipad2.
    The same Wifi connection works perfectly with my PC laptop.
    Can some one help me or shall I return it to the store?

    Try here...
    Apple - Support - iPad - Wi-Fi

  • Should 1  database  in ABAP  have one DBMS &  one KERNEL&BASIS SERVICES?

    Q]
    Relationgt to  ABAP basisc:-
    Should 1  database  in ABAP  have one DBMS &  one KERNEL&BASIS SERVICES?

    Hi,
    Each database server in SAP will have one DBMS only.  You can navigate from sap ABAP easy access screen through the menu   System--> Status
    Besides the navigate there will be yellow arrow mark [ System: Kernel information].  Here you will get the details of your dbms, kernel release and other related details.
    Regards,
    Sekhar

  • Can any one help me in fi/sl extraction

    can any one help me in fi/sl extraction.i am not able to get data in cube please send me screen cut of fi/sl extraction.
    Edited by: chaitanya pissay on Apr 11, 2008 7:26 AM

    Hi Chaitanya,
    Check here........
    FI-SL Extraction
    FI /SL extraction
    http://help.sap.com/saphelp_nw70/helpdata/EN/04/e04c40cc538437e10000000a155106/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/FISL/FISL.pdf
    Fi_SL data model
    http://help.sap.com/saphelp_bw32/helpdata/en/af/16533bbb15b762e10000000a114084/frameset.htm
    Regards,
    Vijay.

  • Can any one help me in this code

    Hi all,
    I have created a selection screen and my aim is to display some fields or some block dynamically by choosing some radio button is it possible.
    can any one help me in this.
    REPORT  z_g_test.
    TABLES: spfli,sbook,sscrfields.
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:s_carrid FOR spfli-carrid.
    SELECTION-SCREEN END OF BLOCK 1.
    PARAMETERS:rad1 RADIOBUTTON GROUP g1 USER-COMMAND us1,
               rad2 RADIOBUTTON GROUP g1 DEFAULT 'X' .
    SELECTION-SCREEN BEGIN OF SCREEN 001 as subscreen ."WITH FRAME TITLE text-002.
    SELECT-OPTIONS: s_fldate FOR sbook-fldate.
    SELECTION-SCREEN END OF SCREEN 001.
    DATA ok_code LIKE sy-ucomm.
    INITIALIZATION.
    START-OF-SELECTION.
      SELECT * FROM spfli WHERE carrid IN s_carrid.
      ENDSELECT.
    END-OF-SELECTION.
      WRITE:spfli-carrid.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
          WHEN'US1'.
    *      call screen 001 starting at 55 40.
      ENDCASE.
    Is i am going on the right way
    Regards,
    Lisa.
    Message was edited by: Lisa Roy
    Message was edited by: Lisa Roy
    Message was edited by: Lisa Roy

    This is what I meant. Copy this and try as it is and see if it serves your purpose.
    REPORT ztest1 .
    TABLES: spfli, sscrfields, sbook.
    SELECTION-SCREEN BEGIN OF TABBED BLOCK tabb1 FOR 4 LINES.
    SELECTION-SCREEN TAB (25) tabs1 USER-COMMAND ucomm1
                         DEFAULT SCREEN 001.
    SELECTION-SCREEN TAB (25) tabs2 USER-COMMAND ucomm2
                         DEFAULT SCREEN 002.
    SELECTION-SCREEN END OF BLOCK tabb1.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE abc.
    PARAMETERS: p_date LIKE sy-datum.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF SCREEN 001 AS SUBSCREEN .
    SELECT-OPTIONS: s_fldate FOR sbook-fldate.
    SELECTION-SCREEN END OF SCREEN 001.
    SELECTION-SCREEN BEGIN OF SCREEN 002 AS SUBSCREEN .
    SELECT-OPTIONS:s_carrid FOR spfli-carrid.
    SELECTION-SCREEN END OF SCREEN 002.
    INITIALIZATION.
      tabs1 = 'Search by flight date'.
      tabs2 = 'Search by flight number'.
      abc   = 'Some other parameters'.
    AT SELECTION-SCREEN OUTPUT.
      CASE sscrfields-ucomm.
        WHEN 'UCOMM1'.
          tabb1-prog = sy-repid.
          tabb1-dynnr   = 001.
          tabb1-activetab = 'TABS1'.
        WHEN 'UCOMM2'.
          tabb1-prog = sy-repid.
          tabb1-dynnr   = 002.
          tabb1-activetab = 'TABS2'.
      ENDCASE.

  • Can any one help me to code a browser

    hi ,
    I am Anil, I am doing an application in java. it needs a browser as IE or Morzilla . i tried to implement the browser using jdic.
    i add jdic.jar files as a external jar file and added it to my project. when i run the program in eclipse it works fine. when i want to create a jar file to my application it shows the follwing error..
    when i click on that jar file , it shows a Java Virtual Machine Launcher dialog box and in that dialog box it shows error Could not Find the main class. Program will exit ..
    this is the error.
    can any one help me to over come the error or any alternative method to implement a browser..

    DarrylBurke wrote:
    Corss poster!
    [http://www.java-forums.org/advanced-java/30298-how-write-job-aggregator-java-j2ee.html]
    dbNot anymore, Fubarable has axed that thread.

Maybe you are looking for

  • Installed j2se on windows xp, updated path, but can't find compiler

    I installed j2se on windows xp, updated path, but no matter what direc- tory I try, when I try to compile(javac) I get the "'javac' is not recognized as an internal or external command, operable program or batch file" message. This even happens in th

  • How can I tell if I purchased a refurbished ipad?

    I purchased an iPad at Walmart the other day and the price seemed low at $299(originally $399 and was reduced pricing for Black Friday).  On the box it states: MD513LL\A   iPad Wi-Fi 16gb White.  The model # is A1458. Is this a refurbished model?  I

  • Java import statement memory problem

    Hi, will java.io.* loads all the classes in io package to the memory? will it afftect the program performance?

  • Snow Not Working Right

    A visitor to our house uploaded "newer base station software" from his MacBook, running OS 10.4.11, to our Snow airport base station. I think he uploaded v4.0.9 software, or is it firmware, into our base. (I think it was v2.0.4 before he did this.) S

  • Camera raw for PS 5.5

    What version of Camera Raw do I need for PS 5.5 and where can I find it?