‎2008 Aug 14 6:35 AM
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).
‎2008 Aug 14 7:00 AM
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.
‎2008 Aug 14 7:04 AM
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.
‎2008 Aug 14 10:28 AM
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