부활 24_1

생활 발견 2010. 9. 19. 12:55 Posted by KindKay

'생활 발견' 카테고리의 다른 글

육체의 생명은 피에 있음이라  (0) 2010.09.27
부활 24_2  (2) 2010.09.19
부활 24_0  (2) 2010.09.19
도시바 신도림테크노마트  (1) 2010.07.21
구안와사  (2) 2010.07.07

부활 24_0

생활 발견 2010. 9. 19. 12:49 Posted by KindKay

'생활 발견' 카테고리의 다른 글

부활 24_2  (2) 2010.09.19
부활 24_1  (1) 2010.09.19
도시바 신도림테크노마트  (1) 2010.07.21
구안와사  (2) 2010.07.07
아이폰은 '까고' 갤럭시S는 '띄우고' - 미디어오늘  (1) 2010.07.05

    data: l_date like scal-date,
        l_week like scal-week.

  l_date = sy-datum.

  call function 'DATE_GET_WEEK'
    exporting
      date        = l_date
    importing
      week        = l_week.

  write: l_week.

'SAP > ABAP 개발' 카테고리의 다른 글

Class ALV - Subtotal Text  (1) 2010.10.13
ZPPA_GET_GR_HISTORY bk20090915  (1) 2010.10.04
[Function] WEEK_GET_FIRST_DAY - 한주의 첫날  (1) 2010.09.18
[Function] F4_DATE - Date Possible Entry  (1) 2010.09.18
BS22 - System Status : Maintain  (2) 2010.09.18

  call function 'WEEK_GET_FIRST_DAY'
    exporting
      week     = g_plweek
    importing
      date     = g_firstday.

[Function] F4_DATE - Date Possible Entry

SAP/ABAP 개발 2010. 9. 18. 08:20 Posted by KindKay

  call function 'F4_DATE'
    exporting
      date_for_first_month = sy-datlo
    importing
      select_date          = p_date
    exceptions
      others               = 8.

BS22 - System Status : Maintain

SAP/ABAP 개발 2010. 9. 18. 00:06 Posted by KindKay

MM - PR User-exit

SAP 2010. 9. 13. 00:33 Posted by KindKay

'SAP' 카테고리의 다른 글

PP - Long-Term Planning  (2) 2010.09.22
Frequently Used Tables  (1) 2010.09.20
PP - User-exit for planned order  (3) 2010.07.21
MKAL - Production Versions of Material  (1) 2010.07.15
PP - SR_PP.pdf  (1) 2010.07.15


     data: ls_variant type disvariant.
  clear: ls_variant.
  ls_variant-report = sy-repid.

  call method gv_grid1->set_table_for_first_display
    exporting
      is_layout            = gs_layout
      i_bypassing_buffer   = 'X'
      is_variant           = ls_variant
      i_save               = 'A'

    changing
      it_outtab            = gt_itab[]
      it_fieldcatalog      = gt_fcat_lvc[].




Re: IN ALV Report 'SAVE LAYOUT' option missing  


You can manage display variants by using parameters, “is_variant” and “i_save” of “set_table_for_first_display”. Here are options for variant handling. <structure_name> is the variant-defining structure of type “DISVARIANT”. The field “report” in this structure should contain the value of “sy-repid

<출처: http://forums.sdn.sap.com/thread.jspa?threadID=810724 >

ZPP_GETCHAR_SHIFT_LEFT

Description:

function zpp_getchar_shift_left.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_MATNR) TYPE MATNR
*" REFERENCE(I_LEFT) TYPE I
*" EXPORTING
*" REFERENCE(E_CHAR) TYPE CHAR1
*"----------------------------------------------------------------------

* Global data declarations

  data: lv_char(16),
        lv_cnt type i.

  clear: lv_char.
  lv_char = i_matnr.
  condense lv_char.

  lv_cnt = strlen( lv_char ).
  lv_cnt = lv_cnt - i_left.

  shift lv_char left by lv_cnt places.

  clear: e_char.
  e_char = lv_char+0(1).

endfunction.





The SAVE button is not active by default in GRID status, you should create an own status.

But if you mean the button to save a layout variant, you have to set the parameter I_SAVE:

SPACE = Display variants cannot be saved
Defined display variants (such as delivered display variants) can be selected for presentation regardless of this indicator. However, changes cannot be saved.

'X' = Standard save mode
Display variants can be saved as standard display variants.
Saving display variants as user-specific is not possible.

'U' = User-specific save mode
Display variants can only be saved as user-specific.

'A' = Standard and user-specific save mode


<<참조>>

  call function'REUSE_ALV_GRID_DISPLAY_LVC'
    exporting
      i_callback_program       = sy-cprog
      i_callback_user_command  = 'USER_COMMAND'
      i_save                   = 'A'
      it_fieldcat_lvc          = gt_fcat_lvc
      is_layout_lvc            = gs_layout
      it_events                = gt_events[]
    tables
      t_outtab                 = gt_itab .