2006 Sep 01 10:12 AM
Selection Criteria:
hi experts,plz explain how to do this.
and what is the meaning of this <b>The program should allow the user to create selection variants based on above fields, with dynamic date calculation for document date (VBRK-FKDAT)</b>
The program should allow the user to select single, multiple, and range values for the following fields:
o Billing document type (VBRK-FKART)
o Document date (VBRK-FKDAT)
o Sales organization (VBRK-VKORG)
The program should allow the user to create selection variants based on above fields, with dynamic date calculation for document date (VBRK-FKDAT)
regards,
siri.
2006 Sep 01 10:16 AM
Hello,
All the fields here should be declared as select-options.
i.e select-options so_fkart for vbtk-fkart.
Dynamic date caluclations can be done using structure
TVARV.
Thanks,
krishnakumar
2006 Sep 01 10:30 AM
Hi Siriha,
This means you have to create a dynamic varient
These r the steps to create dynamic varient
 Choose the program / report / extract for which the dynamic date variant has to be created.
 Create a Variant for the program, say PREVDAY.
 Choose the Attributes Option.
 Select the Selection Field Check box and click the Selection Variables option on the toolbar.
 Make sure the Dynamic Date Calculation field (D) is selected (in green color).
 Choose the suitable calculation involved, here 1 day..
 Save the Variant.
Plea3e revard if it is use full
2006 Sep 01 10:33 AM
Hi,
<b>1) to select single values
use select-options with no intervals no extension option
2)for multiple selections
use just select-opitons
3)for range values
define range like this for ex for 1st field
ranges : r_fkart for vbrk-fkart.
r_fkart-low = (some value).
r_fkart-sign = 'I'.
r_fkart-option = 'EQ'.
append r_fkart. clear r_fkart.
r_fkart-low = (some value).
r_fkart-sign = 'I'.
r_fkart-option = 'EQ'.
append r_fkart. clear r_fkart.</b>
better use 3 radio buttons to achieve the functionality
when you click on 1st radio button dispaly the selection-screen elements to select single values
similarly 2nd button for multiple selection and the 3rd for ranges options.
Regards,
sowjanya.
2006 Sep 01 10:38 AM
Hi,
If you define SELECT-OPTIONS for all those fields then, I think, the problem is solved. Any way the user can create selection varients on the selection screen and save them accordingly.
If they want the document date to be calculated dynamically, means they will be giving a formula to calculate it based on the entered FKART and VKORG , then you can do it in the AT SELECTION SCREEN event. Here you just fill the FKDAT SELECTION-OPTIONS table or RANGE TABLE according to the dynamic date calcualtion formula.
Thanks and Regards,
Bharat Kumar Reddy.V
2006 Sep 01 10:41 AM
Hi,
Consider the following code :
Tables : vbrk.
Select-Options : S1 for vbrk-fkart,
s2 for vbrk-fkdat,
s3 for vbrk-vkorg.
Reward if helpful.
Regards