2008 Jul 19 9:47 AM
hi all,
if i write the statement
if structurename IS REQUESTED .
prg line
else.
prg line
endif.
what is ment by IS REQUESTED
thanks
mukesh
2008 Jul 19 9:59 AM
hi..
you can get th entire information on pressing F1 on the keyword is requested.
just check..you will come to know.
maily used to check the existennce if certain condition.
2008 Jul 19 10:00 AM
Hi,
Logical Expressions - Test for Existence of a Formal Parameter
The expression f IS REQUESTED is true if an actual parameter was specified for the formal parameter f when the call was made.
Here, f must be the parameter of a function module, not a pure import parameter (" IMPORTING"). If you are dealing with a structured parameter, it must refer only to the parameter itself, not to a component. Moreover, this is allowed only in the function module itself (not in a subroutine called by the function module).
Example
In a function module, the next test establishes whether the result parameter TEXT was specified when the module was called. The expensive database read operation is executed only if the result is positive.
...
IF TEXT IS REQUESTED.
SELECT SINGLE * FROM ...
TEXT = ...
ENDIF.
Note
Although this test can result in a considerable improvement in performance, it should still be used with caution. In particular, the behavior of a function module (visible from outside) should depend only on the values and not on the existence of actual parameters.
Regards,
Sujit
2008 Jul 19 10:03 AM
Hi Mukesh
The expression f IS [NOT] REQUESTED is true if an actual parameter was specified for the formal parameter f when the call was made.
Here, f must be the parameter of a function module, not a pure import parameter ("IMPORTING"). If you are dealing with a structured parameter, it must refer only to the parameter itself, not to a component. Moreover, this is allowed only in the function module itself (not in a subroutine called by the function module).
Regards,
Pritam.
2008 Jul 19 10:05 AM
IS REQUESTED is true if an actual parameter was specified for the formal parameter f when the call was made.
If you are dealing with a structured parameter, it must refer only to the parameter itself, not to a component. Moreover, this is allowed only in the function module itself (not in a subroutine called by the function module).
Example :-
IF TEXT IS REQUESTED.
SELECT SINGLE * FROM ...
TEXT = ...
ENDIF.
rewards point if u find it useful.
regards ,
Pranav
2008 Jul 19 10:05 AM
Hi MUKESH AGGARWAL,
Content from www.help.sap.com
Syntax
... p IS [NOT] REQUESTED ...
Effect
The logical expression checks whether an output parameter p of a procedure is requested. The expression is true if at the call an actual parameter was assigned to the formal parameter.
This logical expression is possible only in function modules and methods. For p, you can specify only output parameters and optional input/output parameters.
With addition NOT, the expression is true if at the call no actual parameter was assigned to the formal parameter.
Note
As of release 4.6, the functionality of the logical expression IS REQUESTED is covered by the logical expression with IS SUPPLIED and should no longer be used.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
2009 Nov 16 4:23 AM