‎2007 May 31 7:24 PM
Hi All,
I have a requirement to define company code as ranges on the selection screen, and then I have loop thru those company codes to get the plants. Any idea how I can define ranges and then use it in the program?
Sample code will be really helpful.
Thanks,
David.
‎2007 May 31 7:26 PM
data w_bukrs type bukrs.
select-options: s_bukrs for w_bukrs.
~Suresh
‎2007 May 31 7:26 PM
data w_bukrs type bukrs.
select-options: s_bukrs for w_bukrs.
~Suresh
‎2007 May 31 7:29 PM
Hi Suresh,
Thanks for a prompt reply. If we define w_bukrs as structure it can take only 1 value right?. They want to enter a range like t001 to t010 and basically I will have to loop thru them. Can u be a little more elaborate how I can use it in program?.
Thanks,
David.
‎2007 May 31 7:40 PM
S_BUKRS is the itab that will hold multiple values..
w_bukrs is only for type reference .
~Suresh
‎2007 May 31 7:26 PM
Hi,
selection-screen begin of block 1 with frame title text-100.
select-options : s_ccode for t001-bukrs.
selection-screen end of block 1.
aRs
‎2007 May 31 7:29 PM
Retrieve the valid company codes from T001 using the range and use these to validate the plants.
Rob
‎2007 May 31 7:34 PM
Hi Rob,
My question is when we define ranges for say sompany code, how can I process those ranges in my program..Any sample code would be appreciated
Thanks,
David.