Application Development 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: 

keward IS REQUESTED

Former Member
0 Kudos
137

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

6 REPLIES 6

Former Member
0 Kudos
98

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.

Former Member
0 Kudos
98

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

Former Member
0 Kudos
98

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.

Former Member
0 Kudos
98

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

former_member387317
Active Contributor
0 Kudos
98

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

Former Member
0 Kudos
98

thanks