SAP ME01鍒涘缓璐ф簮娓呭崟
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SAP ME01鍒涘缓璐ф簮娓呭崟相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/ant' title='ant'>ant
閲囪喘 绫诲埆 闆嗘垚 uitable 璋冪敤鍑芥暟 lis ini png1涓氬姟璇存槑
姝ゆ枃妗d娇鐢ㄥ嚱鏁帮細ME_DIRECT_INPUT_SOURCE_LIST鍒涘缓璐ф簮娓呭崟
2鍓嶅彴瀹炵幇
浜嬪姟浠g爜锛歁E01
杈撳叆鎶ご淇℃伅
淇濆瓨鍗冲彲
3浠g爜瀹炵幇
3.1璋冪敤鍑芥暟
瀹氫箟鍙傛暟
瀛楁
璋冪敤鍑芥暟
3.2闂瑙e喅
3.3婧愪唬鐮?
DATA:LT_EORD TYPE TABLE OF EORDU,
LS_EORD TYPE EORDU,
LV_MATNR TYPE EORD-MATNR,
LV_WERKS TYPE EORD-WERKS.
LV_MATNR = 鈥?00000000000000431鈥?/strong>."鐗╂枡
LV_WERKS = 鈥?000鈥?/strong>."宸ュ巶
CLEAR:LS_EORD.
LS_EORD-MATNR = 鈥?00000000000000431鈥?/strong>."鐗╂枡
LS_EORD-WERKS = 鈥?000鈥?/strong>."宸ュ巶
LS_EORD-VDATU = 鈥?0191210鈥?/strong>."鏈夋晥鏈熶粠
LS_EORD-BDATU = 鈥?0191230鈥?/strong>."鏈夋晥鏈熻嚦
LS_EORD-LIFNR = 鈥?070003311鈥?/strong>."渚涘簲鍟?/em>
LS_EORD-EKORG = 鈥?000鈥?/strong>."閲囪喘缁勭粐
LS_EORD-RESWK = 鈥樷€?/strong>."閲囪喘鐗╂枡鐨勫伐鍘?/em>
LS_EORD-EORTP = 鈥?鈥?/strong>."璧勬簮娓呭崟璁板綍鐨勭被鍒?/em>
LS_EORD-AUTET = 鈥樷€?/strong>."WA_INPUT-AUTET."鐗╂枡璁″垝涓殑璧勬簮娓呭崟浣跨敤
LS_EORD-ERDAT = SY-DATUM."璁板綍鐨勫垱寤烘棩鏈?/em>
LS_EORD-ERNAM = SY-UNAME."鍒涘缓浜?/em>
LS_EORD-ZEORD = 鈥?0001鈥?/strong>."RECORD-ZEORD."璧勬簮娓呭崟璁板綍鍙?/em>
LS_EORD-KZ = 鈥業鈥?/strong>."澶嶉€夋 I鏂板 U鏇存柊
APPEND LS_EORD TO LT_EORD.
CALL FUNCTION 鈥楳E_INITIALIZE_SOURCE_LIST鈥?/strong>."婧愭竻鍗曠淮鎶ゅ垵濮嬪寲
CALL FUNCTION 鈥楳E_DIRECT_INPUT_SOURCE_LIST鈥?/strong>
EXPORTING
I_MATNR = LV_MATNR
I_WERKS = LV_WERKS
* I_MT06E =
* I_NO_MATERIAL_READ =
* ACTIVITY = 鈥榁鈥?/em>
* I_VORGA =
* I_LOGSY =
TABLES
T_EORD = LT_EORD
EXCEPTIONS
PLANT_MISSING = 1
MATERIAL_MISSING = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
MESSAGE 鈥樺垱寤鸿揣婧愭竻鍗曞け璐モ€?/span> TYPE 鈥楽鈥?/span> DISPLAY LIKE 鈥楨鈥?/strong>.
RETURN.
ELSE.
CALL FUNCTION 鈥楳E_POST_SOURCE_LIST_NEW鈥?/span> "鍦ㄩ泦鎴愬晢鍝佺淮鎶や腑杩囧笎璁㈠崟
EXPORTING
I_MATNR = LV_MATNR
* O_MATNR =
.
CALL FUNCTION 鈥楤API_TRANSACTION_COMMIT鈥?/strong>
EXPORTING
WAIT = 鈥榅鈥?/strong>.
MESSAGE 鈥樺垱寤鸿揣婧愭竻鍗曟垚鍔熲€?/span> TYPE 鈥楽鈥?/strong>.
ENDIF.
以上是关于SAP ME01鍒涘缓璐ф簮娓呭崟的主要内容,如果未能解决你的问题,请参考以下文章