인터널 테이블에 담긴건 화면캡처 해서 붙칩니다.
ALV 뿌려졌을 때 화면도 캡처해서..
빨간 글씨부터 제대로 값이 안들어가고
빨간 글씨 전의 데이터들이 LOOP 돌 듯이 들어가고 있습니다.
왜 이런 현상이 일어나는걸까요?
해결방법은?
*&---------------------------------------------------------------------*
*& Form DISPLAY_DATA
*&---------------------------------------------------------------------*
FORM DISPLAY_DATA .
PERFORM FIEIDCAT_GATHERING.
PERFORM SET_ALV_SORT.
PERFORM CALL_FUNCTION.
*&---------------------------------------------------------------------*
*& Form FIEIDCAT_GATHERING
*&---------------------------------------------------------------------*
FORM FIEIDCAT_GATHERING .
DATA : T_FIELDNAME LIKE LS_FIELDCAT-FIELDNAME,
T_SELTEXT_M LIKE LS_FIELDCAT-SELTEXT_M.
*Fieldcat
REFRESH LT_FIELDCAT. CLEAR LT_FIELDCAT.
T_FIELDNAME = 'KOKRS'. T_SELTEXT_M = '관리회계영역'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'BUKRS'. T_SELTEXT_M = '회사코드'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'SPMON'. T_SELTEXT_M = '기간'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'RPRCTR'. T_SELTEXT_M = '손익센터'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'HKONT'. T_SELTEXT_M = 'G/L계정'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'MATNR'. T_SELTEXT_M = '자재번호'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'MAKTX '. T_SELTEXT_M = '자재내역'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'DMBTR'. T_SELTEXT_M = '잔액'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'D_DMBTR'. T_SELTEXT_M = '배부금액'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'rprctr1'. T_SELTEXT_M = '투입손익센터'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'entry_qnt'. T_SELTEXT_M = '수량'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'entry_uom'. T_SELTEXT_M = '단위'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'Q_DMBTR'. T_SELTEXT_M = '수량배부금액'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'WAERS'. T_SELTEXT_M = '통화'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
안녕하세요,,
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'rprctr1'. T_SELTEXT_M = '투입손익센터'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'entry_qnt'. T_SELTEXT_M = '수량'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
T_FIELDNAME = 'entry_uom'. T_SELTEXT_M = '단위'.
PERFORM MAKE_FIELDCAT USING T_FIELDNAME T_SELTEXT_M.
위에 부분으ㅏ FIELDNAME에 소문자를 대문자로 변경해보세요.
'투입손익센터','수량','단위'부분이 소문자라서 위의 '배부금액'를 다 참조하는것 같은데요.