728x90 반응형 field-symbol2 ALV Fieldcatalog Using Field-symbol PERFORM fieldcatalog_merge USING '스트럭쳐 이름' 'GT_FIELDCAT'. PERFORM field_setting_call USING 'GT_FIELDCAT'. PERFORM alv_init USING gs_layout gs_variant gi_grid. TOP FIELD-SYMBOLS : TYPE lvc_t_fcat, TYPE lvc_s_fcat. `FORM fieldcatalog_merge USING pv_table pv_fcat. ASSIGN (pv_fcat) TO . CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = pv_table CHANG.. 2023. 2. 21. Dynamic table Calculation 필드심볼로 구성된 다이나믹 테이블에서 특정 필드 값 계산식이 필요할때 FIELD-SYMBOLS TYPE TABLE. DATA : TDREF TYPE REF TO DATA. CREATE DATA TDREF LIKE . ASSIGN TDREF->* TO . SORT BY ('VERSI') ('PERIO') ('ARTNR') ('WERKS'). LOOP AT ASSIGNING . ASSIGN COMPONENT 'VRGAR' OF STRUCTURE TO FIELD-SYMBOL(). IF = 'F'. ASSIGN COMPONENT 'VERSI' OF STRUCTURE TO FIELD-SYMBOL(). ASSIGN .. 2023. 2. 21. 이전 1 다음 728x90 반응형