Application Development and Automation 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: 
Read only

Function Module not working consistently

Former Member
0 Likes
695

Hi,

In my requirement I had to use the FM EXTENDED_PROGRAM_CHECK, when I have passed the program name and trying to get the result set from Resultstat, the result is being copied with zero systax errors, but when I pass same program to SLIN tcode I am having three errors in the resultstat table when I degbuged the same Function Module, do I have to call any thign more before calling this function module.

Thanks and Regards,

V.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
647

Hi,

For the import parameters TEST_* , default values are SLIN_FALSE. Try checking these parameters for your program

Regards

4 REPLIES 4
Read only

Former Member
0 Likes
648

Hi,

For the import parameters TEST_* , default values are SLIN_FALSE. Try checking these parameters for your program

Regards

Read only

0 Likes
647

Sorry, I did not get you.

Read only

0 Likes
647

Hi,

Use the parameter TEST_ALL = 'X'

Here is a example.

Lets say i have a program ZTEST_RAD with obsolete function module "DOWNLOAD", The code will not return any entries in the output table as parameter TEST_ALL = SLIN_FALSE. Use TEST_ALL = 'X'

TYPE-POOLS : SLIN.

DATA SLIN_RESULT TYPE SLIN_RESULT.

CALL FUNCTION 'EXTENDED_PROGRAM_CHECK'
  EXPORTING
*   COMMENT_FLAG       = SLIN_FALSE
*   LOAD_CHECK         = SLIN_FALSE
*   CALL_CNTX          = 'S'
*   CACHE_USE          = SLIN_CACHE_USE-ALL
    program            = 'ZTEST_RAD'
*   TEST_FLAGS         =
*   TEST_ALL           = SLIN_FALSE " Use TEST_ALL = 'X'
*   TEST_BRE           = SLIN_FALSE
*   TEST_CAL           = SLIN_FALSE
*   TEST_DAT           = SLIN_FALSE
*   TEST_DYC           = SLIN_FALSE
*   TEST_GES           = SLIN_FALSE
*   TEST_MES           = SLIN_FALSE
*   TEST_OPF           = SLIN_FALSE
*   TEST_PER           = SLIN_FALSE
*   TEST_PFS           = SLIN_FALSE
*   TEST_UNR           = SLIN_FALSE
*   TEST_STE           = SLIN_FALSE
*   TEST_WRN           = SLIN_FALSE
*   TEST_TXT           = SLIN_FALSE
*   TEST_SUB           = SLIN_FALSE
*   TEST_AUT           = SLIN_FALSE
*   TEST_LOA           = SLIN_FALSE
*   TEST_MLS           = SLIN_FALSE
*   TEST_PAC           = SLIN_FALSE
 IMPORTING
   RESULT             = SLIN_RESULT
*   RESULT_STAT        =
* CHANGING
*   DEPENDENCIES       =
* EXCEPTIONS
*   FATAL_ERROR        = 1
*   OTHERS             = 2
          .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Regards

Read only

0 Likes
647

Thanks this solved my problem.