Vous êtes sur la page 1sur 3

Date : 10-07-12.

T-Code : ZCKSYS14

Name of Program : zplant_material_detail_sdr. Description : This report is used to display Plant wise Materials Detail in based on giving input as Material code, Created date , Plant. Tables : mara, makt, marc, mbew. "General Material Data "Material Descriptions "Plant Data for Material "Material Valuation

Input

: Material Code (s_matnr) Mandatory , Created Date (s_ersda), Material Type (s_matkl), Plant (s_werks).

Query

: SELECT * FROM marc INTO CORRESPONDING FIELDS OF TABLE it_marc WHERE matnr IN ( SELECT matnr FROM mara WHERE ersda IN s_ersda AND matnr IN s_matnr AND mtart IN s_mtart ) AND matnr IN s_matnr AND werks IN s_werks. SORT it_marc BY matnr werks.

LOOP AT it_marc INTO wa_marc. MOVE-CORRESPONDING wa_marc TO wa_itab.

SELECT SINGLE * FROM makt WHERE matnr = wa_marc-matnr. IF sy-subrc = 0. wa_itab-maktx = makt-maktx. ENDIF.

SELECT SINGLE * FROM mbew WHERE matnr = wa_marc-matnr AND

bwkey = wa_marc-werks. IF sy-subrc = 0. MOVE-CORRESPONDING mbew TO wa_itab. ENDIF.

APPEND wa_itab TO it_itab. CLEAR : wa_itab, wa_marc. ENDLOOP.

Function Module: REUSE_ALV_GRID_DISPLAY. Output :

Material

Material Description

Plant

Plant-Sp. Matl. Status

Material freight group

Batch. Management

08MPBADM200T2

CAVINS FMILK BADAM 200M 30PCS TET MRP18

TB01

WEIGHT

MRP Type

MRP Controller COS

Lot Size

Procurement Type E

Special Procurement

Quota.Arr.Usa ge 4

Backflush

PD

EX

Pro.Stor.Location

Storage.loc.for EP

Planning Calendar

Shedmargin.key

Gr.Pros.Time

Period indicator P

000

Fiscal. Year. Variant JC

Strategy Grp

Availability Check 02

Selection Method

MRP.Dep. Requirment

Version Indicator

Prod.Sched. Profile

10

Val.Category

Val.Class

Price Control

Price Unit

Moving Price

Standard Price

Profit Center

4000

272.17

0.00

DAIRYMLKPR

Program contribution

Superior Corrected

Percentage of marks

Vous aimerez peut-être aussi