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 |
Can you create an internal table dynamically?(at run time)
5.wat is difference b/w dilldown and interactive report?
Can we use Session method & Call transaction both in one BDC if yes please give me example and scenario where we use this ?
ANY one can tell me what is basic diff b/w keywords STOP,CONTINUE,CHECK,EXIT, AT-EXITCOMMAND?
how many types of idoc'c?
what is the difference between view and join
hi to all abap interview guys please notify this .. first if u have any doubts please go through google search or else please do debugging with some sample programs . but don't post even silly questions too. thanking you.
When a program is created and need to be transported to prodn does selection texts always go with it? If not how do you make sure? Can you change the cts entries? How do you do it?
if some one deleted your records from ztable how o u see the records?
write the program for prime numbers between 1 to 1000
HOW CAN WE MODIFY STANDARD TABLES?
What is the difference between a pool table and a transparent table and how they are stored at the database level?