惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
P
Palo Alto Networks Blog
T
Threatpost
T
Tor Project blog
T
Tenable Blog
AWS News Blog
AWS News Blog
Project Zero
Project Zero
L
LangChain Blog
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Latest
Security Latest
云风的 BLOG
云风的 BLOG
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
K
Kaspersky official blog
Jina AI
Jina AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
IT之家
IT之家
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog

博客园 - 無名

CS13 BOM展开报错 Error 'MM 104' (Material has no base unit of measure)物料无基本计量单位 SAP采购订单修改后再次审批触发EDI输出问题 采购订单上字段的默认 物料主数据MM01扩充时默认值的设置 BADI_MATERIAL_REF CK11,CK11N 成本估算数据读取 添加 & 删除生产工单组件 生产工单组件修改BAPI 如何对事务LPD_CUST的修改进行传输 识别用户是否正在运行Windows SAP GUI或HTML SAP GUI 显示弹出窗口并获取用户输入值 调试后台计划作业 十六进制hex 转 字符 CS01、CS02保存时增强的BADI(BOM_UPDATE) 爱课程网(icourses.cn)的课件下载 Q库存销售订单退货不能确立帐户问题(带WBS的销售退货订单) 获取用户信息BAPI BAPI_USER_GET_DETAIL 成本价自动创建功能自动函数 MR21 创建标准价函数摘自标准功能 工程变更号的创建CCAP_ECN_CREATE 实例
物料主数据视图选择器
無名 · 2021-05-07 · via 博客园 - 無名

使用MM02时,我们输入材料并按下Enter键,它将要求我们选择所需的“VIEW”。此弹出窗口包含可用的物料主视图,并且它们不是恒定的。有时MRP1在第12行,有时在第6行。视图的这种动态仅取决于状态(MARA-VPSTA)。
为了获取这种动态变化,我们需要了解所需视图的确切位置,例如第6行或第10行或第15行。

我们将使用FM SELECTION_VIEWS_FIND找出哪个视图将位于哪个位置。


在我们的程序中,我们将按照以下步骤操作:
1.始终选择基本数据1
2.通过执行FM SELECTION_VIEWS_FIND获取该选项卡的相应用户命令。
状态(MARA-VPSTA)包含“查看”指示器的组合。您可以在数据元素PSTAT_D的文档中找到状态指示器和视图名称的关系,或遵循此表:

视图名称                    状态指示器
  Work scheduling                A
Accounting                     B
Classification                 C
MRP                            D
Purchasing                     E
Production resources/tools     F
Costing                        G
Basic data                     K
Storage                        L
Forecasting                    P
Quality management             Q
Warehouse management           S
Sales                          V
Plant stocks                   X
Storage location stocks        Z


在此测试BDC中,我想更新MRP类型。 MRP类型位于物料主数据的“ MRP 1”视图下。因此,我将首先选择基本数据,然后转到MRP 1视图并更新MRP类型。

*&---------------------------------------------------------------------*
*& Report  ZDEMO006
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zdemo006.
PARAMETERS : p_matnr type matnr DEFAULT '140000979'.
* Material views …………………………………………….
DATA: l_vpsta LIKE t130m-pstat.
*
SELECT SINGLE vpsta
into   l_vpsta
from   mara
where  matnr = p_matnr.
*
* Get View sequence ………………………………………….
DATA: l_bild LIKE t133a-bilds,
      lt_bild LIKE mbildtab OCCURS 0 WITH HEADER LINE.
*
* Screen Sequence for Standard Industry tab pages in material master
l_bild = '21'.
*
* Get screen sequence
CALL FUNCTION 'SELECTION_VIEWS_FIND'
EXPORTING
    bildsequenz     = l_bild
    pflegestatus    = l_vpsta
TABLES
    bildtab         = lt_bild
EXCEPTIONS
    call_wrong      = 1
    empty_selection = 2
others          = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
cl_demo_output=>DISPLAY( lt_bild[] ).

输出结果如下:

image