Time 시간 더하기

SAP/ABAP 2013. 8. 12. 12:55

Time 시간 더하기


                 datalv_starttime type t,
              lv_startdate type d,
              lv_addtime   type t,
              lv_endtime   type t,
              lv_enddate   type d.

        clearlv_starttimelv_startdate,
               lv_addtime,   lv_endtimelv_enddate .

        lv_starttime gt_itab-pitime.
        lv_startdate gt_itab-pidate.
        lv_addtime   10.

        call function 'C14B_ADD_TIME'
          exporting
            i_starttime       lv_starttime
            i_startdate       lv_startdate
            i_addtime         lv_addtime
          importing
            e_endtime         lv_endtime
            e_enddate         lv_enddate.

        submit rsxmb_select_messages with exedate  eq lv_startdate
                                     with exetime  eq lv_starttime
                                     with exe2date eq lv_enddate
                                     with exe2time eq lv_endtime
                                     and return.



Posted by KindKay
,

    CALL FUNCTION 'READ_TEXT'

      EXPORTING
        CLIENT                  = (Client ID)
        ID                      = (Text ID)
        LANGUAGE                = (Language)
        NAME                    = (PO Number)
        OBJECT                  = 'EKKO' for Header & EKPO for Item
      TABLES
        LINES                   = (Internal Table of type tlines)
      EXCEPTIONS
        ID                      = 1
        LANGUAGE                = 2
        NAME                    = 3
        NOT_FOUND               = 4
        OBJECT                  = 5
        REFERENCE_CHECK         = 6
        WRONG_ACCESS_TO_ARCHIVE = 7
        OTHERS                  = 8.
 
 
If you read directly from the table then for getting HEADER TEXT it is is STXH & item text STXL.
 
Better would be to use Function Module READ_TEXT
 
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT                  = (Client ID)
        ID                      = (Text ID)
        LANGUAGE                = (Language)
        NAME                    = (PO Number)
        OBJECT                  = 'EKKO' for Header & EKPO for Item
      TABLES
        LINES                   = (Internal Table of type tlines)
      EXCEPTIONS
        ID                      = 1
        LANGUAGE                = 2
        NAME                    = 3
        NOT_FOUND               = 4
        OBJECT                  = 5
        REFERENCE_CHECK         = 6
        WRONG_ACCESS_TO_ARCHIVE = 7
        OTHERS                  = 8.


출처: http://scn.sap.com/thread/1537830


Posted by KindKay
,

CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
EXPORTING
CURRENCY = 'YTL'
AMOUNT_INTERNAL = IT_FINAL_DATA-NETPR
IMPORTING
AMOUNT_EXTERNAL = IT_FINAL_DATA-NETPR1



출처: http://scn.sap.com/thread/654299

Posted by KindKay
,