sap pp生成計畫模組是乙個全域性性的模組,能夠幫助公司上下從生產經理到操作工的全體員工來計畫生產過程。從而滿足業務流程的需要。在pp模組中,需求管理、物料需求計畫、生產控制和結算是企業應用比較多的功能。
1: 獲取生產訂單的物件標識
select single objnr into l_objnr from aufk where aufnr = "[訂單號]"
2:獲取系統狀態
data begin of i_status occurs 0.
include type jstat.
data end of i_status.
call function 'status_read'
exporting
client = sy-mandt
objnr = l_objnr
only_active = 'x'
tables
status = i_status
exceptions
object_not_found = 1
others = 2.
select txt04 into table l_txt
from tj02t
for all entries in i_status
where istat = i_status-stat
and spras = '1'.
3:獲取使用者最終狀態
select max( estat ) into l_maxestat from tj30 where stsma = l_stsma.
select single stat from jest into l_stat
where objnr = l_objnr and stat like 'e%' and inact ne 'x'.
4: 同時獲取系統狀態使用者狀態
data begin of i_status occurs 0.
include type jstat.
data stsma like jsto-stsma.
data sttxt like bsvx-sttxt.
data stonr like tj30-stonr.
data end of i_status.
call function 'status_text_edit'
exporting
client = sy-mandt
***_user_stat = ' '
objnr = l_objnr
only_active = 'x'
spras = '1'
bypass_buffer = 'x'
importing
line = i_status-sttxt
e_stsma = i_status-stsma
stonr = i_status-stonr.
delete adjacent duplicates from i_status comparing all fields.
5:系統使用者狀態相關表
jsto-stsma = tj30-stsma = tj30t-stsma
tj30-estat = jest-estat = tj30t-estat = tj02-istat = tj02t-istat "i開頭的狀態
SAP PP常用表(重要)
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!table表short text短文本 afflwork ordersequence加工單順序 afftorder processinstructions訂單 流程指令 affvorder processinstruction values訂單 流...
SAP PP常用表(重要)
table表short text短文本 afflwork ordersequence加工單順序 afftorder processinstructions訂單 流程指令 affvorder processinstruction values訂單 流程指令值 afkoorder header data...
mysql 生成執行計畫 MySQL執行計畫
和很多其他關係型資料庫不通,mysql並不會在生成查詢位元組碼來執行查詢。mysql生成查詢的一棵指令樹,然後通過儲存引擎執行完成這棵指令樹並返回結果。最終的執行計畫包含了重構查詢的全部資訊。如果某個查詢執行explain extended 之後,在執行show warnings,就可以看到重構出的...