티스토리 툴바

BLOG main image
my space (105)
WDA (46)
ABAP (41)
others (14)
Me (4)
Book (0)
my route (0)
독서 노트 (0)
생각 노트 (0)
정보 노트 (0)
30,242 Visitors up to today!
Today 4 hit, Yesterday 27 hit
daisy rss
tistory 티스토리 가입하기!
2009/06/02 11:02


*--현재 월의 이전 이후 일/월/년 날짜 구하는 펑션

  data pre_date type sy-datum.

  CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
    EXPORTING
      date      = sy-datum
      days      = 0
      months    = 1
      signum    = '-'
      years     = 0
    IMPORTING
      calc_date = pre_date.

크리에이티브 커먼즈 라이선스
Creative Commons License
2009/06/01 11:00

문자숫자 구분

1.
IF ABC NS 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.
* 숫자
else.
* 문자
endif.

특수문자가 끼면 안됨

2.
CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
STRING_IN = ABC
IMPORTING
HTYPE = h_type.

CHAR인지 NUMC인지 구분됨. 
-erp 사랑넷

*---------------------
webdynpro에서 URL 단순 연결

  data window_data       type if_suite_to_open=>element_window_api.
  data l_api_window_open type ref to if_wd_view_controller.
  data l_component       type ref to if_wd_component.
  data l_window_manager  type ref to if_wd_window_manager.
  data remote_window     type ref to if_wd_window.

  l_api_window_open = wd_this->wd_get_api( ).
  l_component       = l_api_window_open->get_component( ).
  l_window_manager  = l_component->get_window_manager( ).

  call method l_window_manager->create_external_window
    exporting
      url    = ‘http://www.yahoo.co.kr’
      title  = 'NEW_WINDOW'
    receiving
      window = remote_window.

  remote_window->set_window_size( width = '300px'
                                  height = '300px' ).
  remote_window->open( ).

크리에이티브 커먼즈 라이선스
Creative Commons License
2008/06/07 12:01
[WDA]

플래시로 변환시 그림이 깨질수도 있으니 큰화면으로 보시기 바랍니다.
ppt 아래 view를 누르시면 풀화면을 볼수있는 페이지로 이동됩니다.
크리에이티브 커먼즈 라이선스
Creative Commons License
2008/06/06 12:01
[WDA]

플래시로 변환시 그림이 깨질수도 있으니 큰화면으로 보시기 바랍니다.
ppt 아래 view를 누르시면 풀화면을 볼수있는 페이지로 이동됩니다.
크리에이티브 커먼즈 라이선스
Creative Commons License
2008/06/05 10:02
[WDA]

플래시로 변환시 그림이 깨질수도 있으니 큰화면으로 보시기 바랍니다.
ppt 아래 view를 누르시면 풀화면을 볼수있는 페이지로 이동됩니다.
크리에이티브 커먼즈 라이선스
Creative Commons License
2008/06/04 12:01
[WDA]

  data window_data       type if_suite_to_open=>element_window_api.
  data l_api_window_open type ref to if_wd_view_controller.
  data l_component       type ref to if_wd_component.
  data l_window_manager  type ref to if_wd_window_manager.
  data remote_window     type ref to if_wd_window.

  l_api_window_open = wd_this->wd_get_api( ).
  l_component       = l_api_window_open->get_component( ).
  l_window_manager  = l_component->get_window_manager( ).

  call method l_window_manager->create_external_window
    exporting
      url    = ‘http://www.yahoo.co.kr’
      title  = 'NEW_WINDOW'
    receiving
      window = remote_window.

  remote_window->set_window_size( width = '300px'
                                  height = '300px' ).
  remote_window->open( ).

크리에이티브 커먼즈 라이선스
Creative Commons License
2008/06/03 12:01

  DATA i_data TYPE STANDARD TABLE OF string.
  DATA l_string TYPE string.
  DATA tmp_qty(6) TYPE c.
  DATA n_qty(6) TYPE n.

  SPLIT l_string  AT cl_abap_char_utilities=>newline
  INTO TABLE i_data.

  LOOP AT i_data INTO l_string.
    SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab
  INTO ls_item-material tmp_qty.
    REPLACE '#' WITH '' INTO tmp_qty.
    MOVE : tmp_qty TO n_qty,
           n_qty TO ls_item-qty,
           tmp_items TO ls_item-item,
           'EA' TO ls_item-uom.
    APPEND ls_item TO lt_item.
    CLEAR ls_item.
    tmp_items = tmp_items + 10.
  ENDLOOP.


string => char => numeric => quan.

크리에이티브 커먼즈 라이선스
Creative Commons License
2008/06/02 12:01

플래시로 변환시 그림이 깨질수도 있으니 큰화면으로 보시기 바랍니다.
ppt 아래 view를 누르시면 풀화면을 볼수있는 페이지로 이동됩니다.
크리에이티브 커먼즈 라이선스
Creative Commons License
2008/06/01 12:01

DATA : im_currdec TYPE currdec.

    CALL FUNCTION 'TCURX_READ'
      EXPORTING
        i_curr    = ls_zsss9015-currency
      IMPORTING
        e_currdec = im_currdec.


currency key 를 입력하면 해당 통화의 소수점 이하 자리수를 반환한다.

ex) 미국 => 2
    한국 => 0

크리에이티브 커먼즈 라이선스
Creative Commons License
2008/05/31 12:01

문자숫자 구분 function

CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
STRING_IN = ABC
IMPORTING
HTYPE = h_type.

CHAR인지 NUMC인지 구분됨.


해당 문자의 코드를 읽어와서 비교해도 될것같다.

크리에이티브 커먼즈 라이선스
Creative Commons License
prev"" #1 #2 #3 #4 #5 ... #11 next