Skip to Content
avatar image
Former Member

​I am trying to use FM EXTENDED_PROGRAM_CHECK in my program to list error types

Hi All,

I am trying to use FM EXTENDED_PROGRAM_CHECK in my program to list error types,Errors,warnings.

I dont know how to fetch the error.

Suggestion please.

Thanks.

Sanket Sagar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 05 at 10:28 AM

    You have to 'navigate' it the deep structure parameters returned by the FM. Perform some debug first.

    *TYPE-POOLS: slin.
    PARAMETER program TYPE syrepid.
    DATA: result TYPE slin_result,
          result_stat TYPE slin_result_stat.
    START-OF-SELECTION.
      CALL FUNCTION 'EXTENDED_PROGRAM_CHECK'
        EXPORTING
          program     = program
          test_all    = 'X'
        IMPORTING
          RESULT      = RESULT " table of deep-structure to analyze
          result_stat = result_stat.
      BREAK-POINT.
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 05 at 10:24 AM

    Hi,

    DATA : gt_result  TYPE SORTED TABLE OF  slini_head
                       WITH NON-UNIQUE KEY tid kind todoprio code src_incl src_line ,
           gs_result_stat TYPE  slin_result_stat.
    
    
    
    CALL FUNCTION 'EXTENDED_PROGRAM_CHECK'
      EXPORTING
        program     = 'ZOS_TEST'
        test_all    = abap_true
      IMPORTING
        result      = gt_result
        result_stat = gs_result_stat.
    Add comment
    10|10000 characters needed characters exceeded