In select-options,how to make high as madatory.....?if we use
obligatory we'll get the low as madatory by default?
Answers were Sorted based on User's Feedback
Answer / ravindra
SELECT-OPTIONS s_matnr for mara-matnr.
AT SELECTION-SCREEN.
if s_matnr-high is INITIAL.
message 'high cant be empty' TYPE 'E'.
ENDIF.
Is This Answer Correct ? | 18 Yes | 1 No |
Answer / sagar
Yes,You are right.If we write statement as :
Select-options : vbeln for vbrk-vbeln obligatory.
then low value gets mandatory.
We have to write as :
Select-options : vbeln for vbrk-vbeln.
Now vbeln field is not mandatory.
Now we have to explicitly write code for making high value
mandatory in AT SELECTION-SCREEN event.
At selection-screen.
loop at vbeln where high is initial.
endloop.
IF SY-SUBRC ne 0.
MESSAGE 'HIGH VALUE CAN NOT BE BLANK' TYPE 'E'.
ENDIF.
Is This Answer Correct ? | 10 Yes | 4 No |
Answer / rahaman shariff
This is much simpler..
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'S_DATE-HIGH'.
screen-required = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / anand
There is only one change required in the given code and
that is IF SY-SUBRC eq 0.
Then the code will look like this
At selection-screen.
loop at vbeln where high is initial.
endloop.
IF SY-SUBRC EQ 0.
MESSAGE 'HIGH VALUE CAN NOT BE BLANK' TYPE 'E'.
ENDIF.
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / sarita dudam
Select-options : vbeln for vbrk-vbeln.
AT SELECTION-SCREEN.
Read table vbeln with key high = space.
if sy-subrc is initial.
message 'high cant be empty' TYPE 'S' display like 'E'.
endif.
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / sarita dudam
Select-options : vbeln for vbrk-vbeln.
AT SELECTION-SCREEN.
Read table vbeln with key high = space.
if sy-subrc is initial.
message 'high cant be empty' TYPE 'S' display like 'E'.
endif.
Is This Answer Correct ? | 0 Yes | 2 No |
How did you test the form u developed? how did you taken print?
Explain what are lock objects?
can labels generate in smartforms?if yes how?
What is the relationship existing between the various data elements? : abap data dictionary
What is the difference between BAPI and RFC?
What is the difference between interfaces and abstract class
Difference between the sub-routines and function modules
What are the ABAP commands that link to a layout set?
4.why dont use start form in script?
how can i transport a idoc from development system to production system? in idoc we are doing bd64 for distribution model view is it mandatory for idoc? and is it possible without creating a distribution model view we can generate a idoc?
What is the difference between getting and get late?
what are the sap financial periods
4 Answers i Spy Technologies, MD Synergy,