본문 바로가기
728x90
반응형

ABAP113

[Smartform] FORM PRINT_LABEL1 USING PV_TABNAME "출력데이터 내용 담고있는 int PV_FNAME "스마트폼 이름 PV_PRINT_CNT. "발행매수 DATA : LV_FM_NAME TYPE RS38L_FNAM, LS_CONTROL_PARAMETERS TYPE SSFCTRLOP, LS_OUTPUT_OPTIONS TYPE SSFCOMPOP, LS_JOB_OUTPUT_INFO TYPE SSFCRESCL. FIELD-SYMBOLS : TYPE STANDARD TABLE, TYPE ANY. DATA: LV_TABNAME TYPE TABNAME. LV_TABNAME = PV_TABNAME. ASSIGN (LV_TABNAME) TO . LS_CONTROL_PARAMETERS-NO_OPEN = 'X'... 2023. 3. 1.
데이터 갱신시 특수문자 제거 데이터 갱신시 특수문자 제거하는 구문 REPLACE ALL OCCURRENCES OF REGEX '[^[:alnum:]]' IN lv_text WITH ''. 특수문자 제거 옵션 `[:alnum:]' Alphanumeric characters: `[:alpha:]' and `[:digit:]'. `[:alpha:]' Alphabetic characters: `[:lower:]' and `[:upper:]'. `[:blank:]' Blank characters: space and tab. `[:cntrl:]' Control characters. In ASCII, these characters have octal codes.. 2023. 3. 1.
파라미터에서 엔터안쳐도 입력된값 불러오는 펑션 https://answers.sap.com/questions/7186088/get-value-without-press-enter-in-selection-screen.html 파라미터에서 엔터안쳐도 입력된값 불러오는 펑션 2023. 3. 1.
ALV 특정 필드 폰트 변경 REPORT TOP 문에 포함INCLUDE 화면생성시 핃드 속성값 설정이 처리 LOOP AT GT_FIELDCAT1 INTO GS_FIELDCAT. CASE GS_FIELDCAT-FIELDNAME. WHEN 'VBELN'. GS_FIELDCAT-STYLE = ALV_STYLE_FONT_BOLD + ALV_STYLE_FONT_UNDERLINED. ENDCASE. MODIFY GT_FIELDCAT1 FROM GS_FIELDCAT. ENDLOOP. 2023. 3. 1.
Screen Dropdown List 화면 레이아웃에서 드롭다운 - Listbox로 선택 PBO에 PERFORM SET_LISTBOX_0100 USING : 'GS_S1040-ART'.FORM SET_LISTBOX_0100 USING PV_FIELD TYPE ANY. DATA : LT_LIST TYPE VRM_VALUES WITH HEADER LINE, L_ID TYPE VRM_ID. REFRESH LT_LIST. SELECT CODE1 AS KEY , SNAME AS TEXT FROM 테이블명 INTO TABLE @DATA(LT_INSPINT) WHERE SPRAS EQ @SY-LANGU. MOVE-CORRESPONDING LT_INSPINT[] TO LT_LIST[]. L_ID = PV_FIELD. CALL FUNCTION.. 2023. 3. 1.
ALV Variant 저장한 레이아웃을 파라미터에 입력해 ALV에 적용하기. PARAMETERS: P_VARI TYPE DISVARIANT-VARIANT. AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI. PERFORM F4_VARIANT. FORM F4_VARIANT . DATA: LS_VARIANT TYPE DISVARIANT, ES_VARIANT TYPE DISVARIANT. LS_VARIANT-REPORT = SY-REPID. LS_VARIANT-HANDLE = GC_GO_DOC_CON. "컨테이너 이름 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING IS_VARIANT = LS_VARIANT I_SAVE = GC_A IMPORTI.. 2023. 3. 1.
728x90
반응형