본문 바로가기
728x90
반응형

ABAP113

[ABAP] 동적 Dynamic select ``` TABLES: EKKO. DATA: GV_ERROR(1). SELECT-OPTIONS: S_DATE   FOR EKKO-AEDAT. *----------------------------------------------------------------------- START-OF-SELECTION. *----------------------------------------------------------------------- *  CHECK SY-BATCH EQ ABAP_TRUE.   PERFORM UPDATE_TABLE USING : 'EKBE' 'BUDAT'          'ZMMT_EKBE',                                'EBAN' 'ERDAT'         .. 2024. 11. 27.
[ABAP] 문자열 자릿수만큼 split RKD_WORD_WRAP 펑션 사용 2024. 11. 27.
[ABAP] 자주 까먹는 구문 STRING 의 LENGTH 구하기 ``` L_LEN = **STRLEN**( L_STRING ). ``` COMMA (,) , 다른 표시들 교체 할때 쓰는 ```   REPLACE '$' WITH '' INTO L_MONEY. ``` 공백 제거 ```   CONDENSE L_MONEY NO-GAPS. ``` 앞자리 0 채우기 ```   CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'     EXPORTING       INPUT  = P_DATA1     IMPORTING       OUTPUT = P_DATA2. ``` 0빼기 ```   CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'     EXPORTING       INPUT  = P.. 2024. 11. 27.
[Field symbol] 가로데이터->세로로 DATA: BEGIN OF LS_DATA, VRSIO LIKE Z39SD_T014-VRSIO, KUNNR LIKE Z39SD_T014-KUNNR, MATNR LIKE Z39SD_T014-MATNR, NETWRC01 LIKE Z39SD_T014-NETWR01, NETWRC02 LIKE Z39SD_T014-NETWR01, NETWRC03 LIKE Z39SD_T014-NETWR01, NETWRC04 LIKE Z39SD_T014-NETWR01, NETWRC05 LIKE Z39SD_T014-NETWR01, NETWRC06 LIKE Z39SD_T014-NETWR01, NETWRC07 LIKE Z39SD_T014-NETWR01, NETWRC08 LIKE Z39SD_T014-NETWR01, NETWRC09 LIKE Z.. 2023. 3. 10.
[New syntax] 정리 Value WA - 기존값 초기화후 넣어줌 WA1 = VALUE #( IFRESULT = ES_RETURN-IFRESULT IFMESSAGE = ES_RETURN-IFMESSAGE ).WA - 기존값 유지한채로 새로운값 넣어줌 WA1 = VALUE #( BASE WA1 IFRESULT = ES_RETURN-IFRESULT IFMESSAGE = ES_RETURN-IFMESSAGE ).INT - VALUE # BASE IT_RESULT[] = VALUE #( BASE IT_RESULT[] ( IFRESULT = LS_RETURN-TYPE IFMESSAGE = LS_RETURN-MESSAGE ) ). lt_orders = VALUE #( ( order_number = ls_0100-aufnr ) ).Corre.. 2023. 3. 2.
[New Syntax] COLLECT TYPES: BEGIN OF TY_EKBE, "collect int BUDAT(6), WERKS TYPE EKBE-WERKS, MATNR TYPE EKBE-MATNR, LIFNR TYPE EKKO-LIFNR, WAERS TYPE WAERS, MENGE TYPE MENGE_D, WRBTR TYPE WRBTR, DMBTR TYPE DMBTR, NETPR TYPE DMBTR, END OF TY_EKBE, TTY_EKBE TYPE STANDARD TABLE OF TY_EKBE WITH EMPTY KEY. *-- 월별(BUDAT(6)/공급업체(LIFNR)/자재(MATNR)별로 수량과 금액 COLLECT TRY . DATA(LT_COLT) = VALUE TTY_EKBE( FOR GROUPS OF IN LT_ACT .. 2023. 3. 2.
728x90
반응형