10-14-2008 7:44 AM
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
10-14-2008 8:09 AM
correct replacement is IS SUPPLIED only. But you cannot use the same in Update modules.
tell me the function module name..?
10-14-2008 8:16 AM
Hi Vijay,
We are using clone of FM APL_DB_ADRCITYAPL_UPDATE.
So any idea how to proceed?
Regards
Deepika
10-14-2008 8:23 AM
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.
10-14-2008 8:35 AM
may be you can try with this
if not XT_ADRCITYAPL[] IS intial.
endif.