当前位置:网站首页>Read the field status of account in ABAP code (hidden, optional, required)
Read the field status of account in ABAP code (hidden, optional, required)
2022-07-25 23:35:00 【rogerix4】
1. problem
- Use BAPI POSTING_INTERFACE_CLEARING When clearing accounts , Due to the use of standard procedures BDC Settle accounts , And different subjects ZFBDT Inconsistent field status will lead to account clearing failure
- When the field is hidden , Can't assign a value BDC Field ZFBDT, Otherwise, throw an exception

2. Solution (ABAP Determine the account field status , Dynamic assignment )
FM:FI_FIELD_SELECTION_DETERMINE You can read the status of the corresponding account field

DATA: l_faus1 TYPE tbsl-faus1, l_faus2 TYPE tbsl-faus2. "Determine G/L Account Field status CALL FUNCTION 'FI_FIELD_SELECTION_DETERMINE' EXPORTING i_bschl = <fs_oa001>-bschl i_bukrs = <fs_oa001>-bukrs i_saknr = <fs_oa001>-hkont IMPORTING e_faus1 = l_faus1 e_faus2 = l_faus2 EXCEPTIONS customizing = 1 OTHERS = 2. IF l_faus1+4(1) NE '-'. populate_ftpost 'P' acc_item 'BSEG-ZFBDT' <fs_oa001>-budat. "" Base date for maturity calculation = Bookkeeping date in the voucher ENDIF.FI_FIELD_SELECTION_DETERMINE function return E_FAUS1 Parameter storage field status ; Each character represents a field state
- “+” Representative must enter
- “-” Represents hiding
- “.” For optional

Field status maintenance passed OBC4-> surface T004F OB41-> surface TBSL; Work together

because FI_FIELD_SELECTION_DETERMINE The function reads out the status identifier ; Available in table TMODU TMODP The corresponding relationship is found in
- Account field sorting :FAUNA = “SKB1-FAUS1” "KOART = “S”
- Checked up TMODU-MODIF The value of represents the current field (TMODU-FELDN) stay E_FAUS1 The location reference of ; for example :
- E_FAUS1+0(1) =“.” Represents the field ZUONR The field status of is optional
- E_FAUS1+4(1) =“-” Represents the field ZFBDT The field status of is hidden



边栏推荐
- [test technology performance test LoadRunner] detailed explanation of common functions of LoadRunner
- Data broker understanding
- Swap, move, forward, exchange of utility component learning
- R语言安装教程 | 图文介绍超详细
- ES6 syntax (difference between let, const, VaR, deconstruction assignment, arrow function, residual parameters, extension method of array)
- Strategy mode_
- Pytorch data input format requirements and conversion
- [code case] blog page design (with complete source code)
- JS regular expression content:
- [QNX hypervisor 2.2 user manual]9.8 load
猜你喜欢

MVVM model

XxE & XML external entity injection utilization and bypass

ratio学习之ratio_add,ratio_subtract,ratio_multiply,ratio_divide的使用

Node基础

@Import

Why are there many snapshot tables in the BI system?

SAP Message No. VG202 IDoc E1EDK18 中付款条款已经转移:检查数据

idea设置get、set模板解决boolean类型字段的命名问题

行云管家V6.5.1/2/3系列版本发布:数据库OpenAPI能力持续强化

Discuz atmosphere game style template / imitation lol hero League game DZ game template GBK
随机推荐
[Muduo] EventLoop event cycle
[intelligence question] interview intelligence question
S4/HANA ME21N创建PO 输出控制消息按钮丢失解决方法(切换EDI 输出模式BRF+至NAST模式)
Learning exploration-3d rotation card
WordPress function encyclopedia, you can do the theme after learning it
WebMvcConfigurationSupport
[Muduo] thread package
What is a physical firewall? What's the effect?
From which dimensions can we judge the quality of code? How to have the ability to write high-quality code?
TS union type
Serialize common default values and column parameters
Family relationship calculator wechat applet source code
【MUDUO】EventLoopThreadPool
电商RPA,大促轻松上阵的法宝
学习探索-波浪
【MUDUO】Thread封装
PyTorch的数据输入格式要求及转换
Learning exploration - waves
Pytorch data input format requirements and conversion
Node Foundation