如果此函数OK,则可以使用
BAPI_ACC_DOCUMENT_POST - EXTENSION1 (Container for 'Customer Exit' Parameter)
字段如下:
结构(INCLUDE):/SAPPCE/DPC_EQUATES
EXTENSION1-FIELD1 = 项目号
EXTENSION1-FIELD2 = 字段名
相关字段: - 与SAP版本有关
BAPI_ACC_DOCUMENT_POST - EXTENSION1 (Container for 'Customer Exit' Parameter)
字段如下:
结构(INCLUDE):/SAPPCE/DPC_EQUATES
EXTENSION1-FIELD1 = 项目号
EXTENSION1-FIELD2 = 字段名
EXTENSION1-FIELD3 = 字段值
系统自带增强 , 已实现 EXTENSION1 -
CALL FUNCTION 'PC_FUNCTION_FIND'
EXPORTING
i_procs = 'RWBAPI01'
TABLES
t_fmrfc = fmtab
EXCEPTIONS
nothing_found = 1
OTHERS = 2.
相关字段: - 与SAP版本有关
* fields for bapi-extension
constants:
c_ext_document_status(30) type c value 'BSTAT',
c_ext_wbs_element(30) type c value 'PS_PSP_PNR',
c_ext_target_sp_ind(30) type c value 'ZUMSK',
c_ext_tax_code(30) type c value 'MWSKZ',
c_ext_tax_base_amount(30) type c value 'WMWST',
c_ext_stat_tax_amount(30) type c value 'STTAX',
c_ext_stat_tax_amount_ccc(30) type c value 'STHTX',
c_ext_with_tax_creditor(30) type c value 'WHTX_CREDITOR',
c_ext_withholding_tax(30) type c value 'WHTX',
c_ext_activity(30) type c value 'VORGN',
c_ext_business_transaction(30) type c value 'GLVOR',
c_ext_transaction_code(30) type c value 'TCODE',
c_ext_invoice_reference(30) type c value 'REBZG',
c_ext_invoice_reference_year(30) type c value 'REBZJ',
c_ext_invoice_reference_item(30) type c value 'REBZZ',
c_ext_sub_document_type(30) type c value 'REBZT',
c_ext_invoice_reference_check(30) type c value 'REBZG_CHECK',
c_ext_allocation(30) type c value 'ZUONR',
c_ext_posting_key(30) TYPE c VALUE 'BSCHL', "#976257
c_ext_cash_discount_amount(30) TYPE c VALUE 'WSKTO', "#976257
c_xauto(30) type c value 'XAUTO'.
* Begin: BAdI to Modify Fields for Posting (subscreen)
constants:
c_ext_cash_discount_base(30) type c value 'SKFBT',
c_ext_dunning_block(30) type c value 'MANSP',
c_ext_cash_discount_fixing(30) type c value 'ZBFIX',
c_ext_segment(30) type c value 'SEGMENT',
c_ext_psegment(30) type c value 'PSEGMENT'.
* End: BAdI to Modify Fields for Posting (subscreen)
* Begin: Support other Account Assignment Objects
constants:
c_ext_cost_center(30) TYPE c VALUE 'KOSTL',
c_ext_order(30) TYPE c VALUE 'AUFNR',
c_ext_network(30) TYPE c VALUE 'NPLNR',
c_ext_network_activity(30) TYPE c VALUE 'VORNR'.
* End: Support other Account Assignment Objects
* Begin: Down Payment Chain Integration to purchasing
constants:
gc_ext_stat_ebeln(30) TYPE c value 'EBELN',
gc_ext_stat_ebelp(30) TYPE c value 'EBELP',
gc_ext_stat_zekkn(30) TYPE c value 'ZEKKN'. "N1602847
* End: Down Payment Chain Integration to purchasing