Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

select-options

Former Member
0 Likes
882

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.

5 REPLIES 5
Read only

Former Member
0 Likes
705

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

Read only

Former Member
0 Likes
705

Hi Siriha,

This means you have to create a dynamic varient

These r the steps to create dynamic varient

&#61656; Choose the program / report / extract for which the dynamic date variant has to be created.

&#61656; Create a Variant for the program, say PREVDAY.

&#61656; Choose the Attributes Option.

&#61656; Select the Selection Field Check box and click the Selection Variables option on the toolbar.

&#61656; Make sure the Dynamic Date Calculation field (D) is selected (in green color).

&#61656; Choose the suitable calculation involved, here –1 day..

&#61656; Save the Variant.

Plea3e revard if it is use full

Read only

Former Member
0 Likes
705

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.

Read only

Former Member
0 Likes
705

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

Read only

Former Member
0 Likes
705

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