11-18-2008 6:30 PM
TABLES : MVKE,MCHB,MARA,VBAK.
SELECTION-SCREEN BEGIN OF BLOCK obl WITH FRAME TITLE text-p05.
Materil Number *
SELECT-OPTIONS F005 FOR MARA-MATNR.
Sales Organization *
SELECT-OPTIONS F006 FOR VBAK-VKORG.
Distribution Channel *
SELECT-OPTIONS F007 FOR VBAK-VTWEG.
SELECTION-SCREEN END OF BLOCK obl.
*internal table for the output report.
Data : begin of i_tab occurs 0,
matnr like mchb-matnr, "MATNR
grid like mchb-J_3ASIZE, "GRID
J_4KSCAT like MCHB-J_4KSCAT, "stock category
VKORG like MVKE-VKORG, "SALES ORG
VTWEG like MVKE-VTWEG, "DC
WERKS like MCHB-WERKS, "PLANT
s_1000 like MCHB-clabs, "storge in location 1000
s_1100 like MCHB-clabs, "storage in location 1100
end of i_tab.
I want a select inner loop statement depending on material number,sales org and distribution channel.
11-18-2008 6:39 PM
Maybe you could try coding this yourself and get back to the forum with specific problems.
Rob