﻿
// Organizational data and static drop-down lists
if not V[mm01_organizational_data_read]
  Set V[mm01_organizational_data_read] "X"   
  include "mm01_read_organizational_data.txt"  
endif


// generate dependent drop-down lists
Include "mm01_ddlgen_lgort.txt"
Include "mm01_ddlgen_lgtyp.txt"

Pushbutton (toolbar) "&V[mm01_label_switch_off]"   process="mm01_quick_set_status.txt" 
    using status = ""

pos	F[RMMG1_REF-MATNR] 	(4,2)
pos	F[RMMG1_REF-MATNR] 	(4,19) -value
del 	F[RMMG1-MATNR] 	

pos	F[RMMG1-MBRSH]  (5,2)
fieldsize F[RMMG1-MBRSH] 29

pos	F[RMMG1-MTART]  (6,2)
fieldsize F[RMMG1-MTART] 29



// templates
Text (1,1) "&V[mm01_label_template]" size=12 -label
DropDownList	(1,10)  width=40	_
        table=V[mm01_references] refer="V[mm01_refid]" _
        process="mm01_apply_reference.txt" 


  Offset (3,1)
  box (0,0) (10,48) 	"&V[mm01_label_template_values]"
  
  // werks
  Text (4,1) "&ddic[MARC-WERKS]" size=16 -label
  DropDownList (4,18) table=V[ddltab_mm01_werks] width=30 refer="V[mm01_werks_ref]"  process="mm01_quick_enter.txt"
  
  // lgort
  Text (5,1) "&ddic[MARD-LGORT]" size=16 -label
  DropDownList (5,18) table=V[ddltab_mm01_lgort_ref] width=30 refer="V[mm01_lgort_ref]" 
  
  // vkorg
  Text (6,1) "&ddic[MVKE-VKORG]" size=16 -label
  DropDownList (6,18) table=V[ddltab_mm01_vkorg] width=30 refer="V[mm01_vkorg_ref]" 
  
  // vtweg
  Text (7,1) "&ddic[MVKE-VTWEG]" size=16 -label
  DropDownList (7,18) table=V[ddltab_mm01_vtweg] width=30 refer="V[mm01_vtweg_ref]" 
  
  // lgnum
  Text (8,1) "&ddic[MSEG-LGNUM]" size=16 -label
  DropDownList (8,18) table=V[ddltab_mm01_lgnum] width=30 refer="V[mm01_lgnum_ref]"  process="mm01_quick_enter.txt"
  
  // lgtyp
  Text (9,1) "&ddic[MSEG-LGTYP]" size=16 -label
  DropDownList (9,18) table=V[ddltab_mm01_lgtyp_ref] width=30 refer="V[mm01_lgtyp_ref]" 
  
  Pushbutton (12,0) "&V[mm01_label_continue]" process="mm01_quick_read.txt" size=(2,49)
