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

推荐订阅源

T
The Exploit Database - CXSecurity.com
A
Arctic Wolf
K
Kaspersky official blog
T
Threat Research - Cisco Blogs
PCI Perspectives
PCI Perspectives
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
U
Unit 42
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
P
Privacy & Cybersecurity Law Blog
O
OpenAI News
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Cisco Blogs
AWS News Blog
AWS News Blog
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
美团技术团队
T
Threatpost
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Cyber Attacks, Cyber Crime and Cyber Security
Last Week in AI
Last Week in AI
C
CERT Recently Published Vulnerability Notes
Blog — PlanetScale
Blog — PlanetScale
C
Cybersecurity and Infrastructure Security Agency CISA
F
Full Disclosure
博客园_首页
N
Netflix TechBlog - Medium
Security Latest
Security Latest
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Register - Security
The Register - Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Recent Announcements
Recent Announcements
博客园 - Franky
P
Palo Alto Networks Blog
Project Zero
Project Zero
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Cisco Talos Blog
Cisco Talos Blog
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 【当耐特】
GbyAI
GbyAI

博客园 - 無名

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