论坛首页 综合技术论坛

Get Billing Invoice according to Billing document number

浏览 1488 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2010-05-31   最后修改:2010-05-31
If we only have the billing document number and company code, how can we retrieve the billing invoice?
we can use the function moudle 'AC_DOCUMENT_RECORD', just like this:
 call function 'AC_DOCUMENT_RECORD'
    EXPORTING
       I_AWTYP       = 'VBRK'
       I_AWREF       = 'Billing Document Number'
       I_AWORG       = 'Log System'
       X_DIALOG      = 'X' OR SPACE
    TABLES
       T_DOCUMENTS   = T_DOC.


  LOOP AT T_DOC WHERE AWTYP = 'BKPF'.
    V_BELNR = T_DOC-DOCNR.
  ENDLOOP.



论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics