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: 

"IS REQUESTED" keyword

0 Kudos

Hi all,

We are upgrading our ECC system from 4.6 to 6.0.

In one of the Function module we get a syntax warning :"Obsolete statement found IS REQUESTED not permitted" for line

CHECK ABC IS REQUESTED.

Here ABC is TABLES parameter defined in the Function module's interface.

According to the ABAP Keyword document, I got to know we can replace IS REQUESTED by IS SUPPLIED. But after this replacement I get the error : " The "IS SUPPLIED" query is not supported in update modules."

If anyone knows correct replacement for "IS REQUESTED", please help.

Thanks,

Regards

Deepika

4 REPLIES 4

former_member188685
Active Contributor
0 Kudos

correct replacement is IS SUPPLIED only. But you cannot use the same in Update modules.

tell me the function module name..?

0 Kudos

Hi Vijay,

We are using clone of FM APL_DB_ADRCITYAPL_UPDATE.

So any idea how to proceed?

Regards

Deepika

0 Kudos

Also to add to this : The complete obsolete warning description is :"The IS REQUESTED addition is not permitted for TABLES parameters in update function modules, since they are always supplied with data during update. ".

And the source code extract of the fm

FUNCTION ZAPL_DB_ADRCITYAPL_UPDATE.

*"----


""Update Function Module:

*"

""Local Interface:

*" IMPORTING

*" VALUE(X_COUNTRY) LIKE ADRCITY-COUNTRY

*" VALUE(X_CITY_CODE) LIKE ADRCITY-CITY_CODE

*" TABLES

*" XT_ADRCITYAPL STRUCTURE ADRCITYPRT OPTIONAL

*" EXCEPTIONS

*" UPDATE_INCOMPLETE

*"----


IF SY-SUBRC NE 0.

  • doesn't matter, maybe there haven't been any ADRCITYAPL

ENDIF.

  • don't continue if ADRCITYAPL should be deleted

CHECK XT_ADRCITYAPL IS REQUESTED.

  • insert all (new, old and changed) ADRCITYAPL

  • INSERT ADRCITYAPL FROM TABLE XT_ADRCITYAPL.

  • check if insert was okay, if not -> rollback

IF SY-SUBRC NE 0.

MESSAGE A046(R5) WITH 'ADRCITYAPL' RAISING UPDATE_INCOMPLETE.

ENDIF.

0 Kudos

may be you can try with this

if not XT_ADRCITYAPL[]  IS intial.

endif.