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

Reg selection screen

Former Member
0 Likes
412

Hi,

Can anyone help me out on this scenario.

I have five select- options in the selection screen.

1.Company code :

SALES AREA-

2.Sales organization:

3.Distribution channel:

4.Division:

5.Customer number:

Case 1 : If I enter data in company code , then sales area fields should become mandatory and report should be displayed depending on those four fileds. ( no need to enter customer number).

Case 2: If I enter customer number , then also report should be displayed

( no need to enter the remaining four field details).

3 REPLIES 3
Read only

Former Member
0 Likes
388
AT Selection-screen on s_VKORG.

   If S_BUKRS IS NOT INITIAL.

     if  s_VKORG is initial.
       Message 'enter a value' type 'E'.

     endif.

   Endif.

AT Selection-screen on s_VTWEG.

   If S_BUKRS IS NOT INITIAL.

     if s_VTWEG is initial.
       Message 'enter a value' type 'E'.

     endif.

   Endif.

AT Selection-screen on s_SPART.

   If S_BUKRS IS NOT INITIAL.

     if s_SPART is initial.

       Message 'enter a value' type 'E'.

     endif.

   Endif.

With luck,

Pritam.

Read only

Former Member
0 Likes
388

Hi ,

You use the following code.

at selections-screen output.

if s_bukrs is not initial.

loop at screen .

if screen-group1 = 'AAA'.

screen-required = '1'.

modify screen.

endif.

endloop.

endif.

Using modif id for grouping the sales area.

Read only

Former Member
0 Likes
388

Hi,

write the following select options under a block

1.Company code :

SALES AREA-

2.Sales organization:

3.Distribution channel:

4.Division:

And then you can perform the validations in

At selection-screen on block <name>

regards

padma