The upper-order method for querying an item has three: 1. CS15 can directly detect the upper level of the material up to the top order material. 2. Call FUNCTION. Can only check the first step, to want to get the top level, need recursive query. Cs_where_used_mat Bills of material; where-used list cs_where_used_mat_any Bills of material; where-used list as material or class item 3. According to the table Stas and StPO.
The z_af_023.
Data:begin of IWULTB occurs 0.
INCLUDE STRUCTURE Stpov. "BOM Item
Data:end of IWULTB.
Data:begin of iequicat occurs 0.
INCLUDE STRUCTURE Cscequi. "BOM explosion:equipments
Data:end of Iequicat.
*
Data:begin of ikndcat occurs 0.
INCLUDE STRUCTURE cscknd. "BOM explosion:sales Order
Data:end of Ikndcat.
*
Data:begin of imatcat occurs 0.
INCLUDE STRUCTURE Cscmat. "BOM explosion:materials
Data:end of Imatcat.
*
Data:begin of istdcat occurs 0.
INCLUDE STRUCTURE cscstd. "BOM Explosion:standard Object
Data:end of Istdcat.
*
Data:begin of itplcat occurs 0.
INCLUDE STRUCTURE Csctpl. "BOM explosion:equipments
Data:end of Itplcat.
Selection-screen BEGIN of Block BK1 with FRAME.
Parameters:i_werks like Marc-werks.
Parameters:i_matnr like Marc-matnr.
Selection-screen end of the block BK1.
Start-of-selection.
Data:datub like Rc29l-datub,
Datuv like Rc29l-datuv.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.