2012年8月30日 星期四

[Link] Posting Goods Issue for cross-company code Stock Transfer

Posting Goods Issue for cross-company code Stock Transfer

Executed SPRO and then Financial Accounting -> G/L Accounting -> Business Transactions -> Prepare Cross-Company Code Transactons (OBYA) 

2012年8月15日 星期三

[SD] Item Categories Assignment

項目類型的指派
This assignment is influenced by:
  • Item categories are assigned to sales document types .
    Configure the system to propose an item category when you create an order.
  • The item category group from the material master record.
    The item category group allows you to group together different materials that behave in a similar way during sales and distribution processes, for example. You can also define new item category groups if needed.
  • The usage for the item , which in some cases is set internally in the program.
    The system uses TEXT if the user enters an item in the inquiry or quotation by entering data in the "Description" field without specifying a material number. FREE is used for controlling free goods items.

    Trace list:

    Function Module RV_VBAP_PSTYV_DETERMINE
    Include FV45CF0C_CVBAP_FUSSZEILE_PRUEF
    Subroutine CVBAP_FUSSZEILE_PRUEFEN
      Include FV45PF0V_VBAP-PSTYV_PRUEFEN

      Subroutine VBAP-PSTYV_PRUEFEN
    Include FV45PFAP_VBAP_FUELLEN
      Subroutine VBAP_FUELLEN
    Include FV45PFAP_VBAP_FUELLEN_AUART_CH
      Subroutine VBAP_FUELLEN_AUART_CHANGE


    Function Module WTAD_ADDIS_IN_SO_IDOC_SLS_DET

  • The item category of a higher-level item (in the case of a sub-item)

2012年6月6日 星期三

Parallel currencies in asset accounting

Turn on Secondary Currency in FI and further actions

1. OB22 (Additional Local Currencies For Company Code)
- create company code record
- setting 2nd local currency
  - Crcy type 30 (Group curreency)
  - set ExRate type
  - set Srce curr.
  - set TrsDte typ

2012年5月18日 星期五

[TIP] SAP User-Favorites Table

SAP User-Favorites Table

Table name is SMEN_BUFFC
FUNCTION MENU_FAVORITES_DOWNLOAD

2012年5月7日 星期一

2012年2月28日 星期二

[Link] MMPV_NUMBER_DAYS_ALLOWED


超过10天提前关闭物料账期的错误处理


Source: http://scnblogs.techweb.com.cn/impression/archives/16.html

临近年关,大家都想提前回家,财务也想早早把当月事情,揣着红包回家happy。于是1月中旬就想关闭1月账期,赶紧出完1月报表,剩下业务的全部记账到2月,留到年后解决。
但是账期不是你想关,想关就能关,给你报错,让你头疼,要请顾问来。

2011年9月30日 星期五

[Func] TH_POPUP

跳出通知訊息窗

By Client + User ID :
  DATA: client  LIKE sy-mandt,
        user    LIKE sy-uname,
        message LIKE sm04dic-popupmsg

  CALL FUNCTION 'TH_POPUP'
    EXPORTING
      client               = client
      user                 = user
      message              = message

[BAPI] BAPI_CONTRACT_CREATEFROMDATA

使用 BAPI 建立 Contract

定義
* BAPI Define
  DATA: gw_so_header          LIKE bapisdhd1,
        gw_so_headerx         LIKE bapisdhd1x,
        gw_so_logic_switch    LIKE bapisdls,
        gv_so_doc_in          TYPE bapivbeln-vbeln,
        gv_so_doc_num         TYPE bapivbeln-vbeln,
        gt_so_return2         TYPE bapiret2,
        gt_so_partners        TYPE bapiparnr  OCCURS 0 WITH HEADER LINE,
        gt_so_items_in        TYPE bapisditm  OCCURS 0 WITH HEADER LINE,
        gt_so_items_inx       TYPE bapisditmx OCCURS 0 WITH HEADER LINE,
        gt_so_return1         TYPE bapiret2   OCCURS 0 WITH HEADER LINE,
        gt_so_conditions_in   TYPE bapicond   OCCURS 0 WITH HEADER LINE,
        gt_so_conditions_inx  TYPE bapicondx  OCCURS 0 WITH HEADER LINE.

夥伴功能

2011年9月14日 星期三

[ABAP] Connection Keeper for network idle

當閒置時間過長連線中斷

有時是因為系統參數 rdisp/gui_auto_logout 的關係,有時是因為網路設備的關係,當閒置時間超過設定時,就會中斷連線。

如果可以的話,修改系統參數、網路設備設定,是最直接有效的。

如果不行的話,可以參考底下的程式。執行時輸入訊息傳輸的間隔秒數,要少於設定斷線的閒置秒數。