Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8807

Re: Editing ALV report output and sending those values to another alv report

$
0
0

hi Sandhya

when you reponse the Report1 button, maybe you can use blow code:

DATA: number           TYPE tbtcjob-jobcount,
      name             TYPE tbtcjob-jobname VALUE 'JOB_TEST'.

CALL FUNCTION 'JOB_OPEN'

  EXPORTING

    jobname          = name

  IMPORTING

    jobcount         = number

  EXCEPTIONS

    cant_create_job  = 1

    invalid_job_data = 2

    jobname_missing  = 3

    OTHERS           = 4.

IF sy-subrc = 0.

SUBMIT report1 WITH p_field1 = 'modified value1'        "p_field1 and 2 must the same name with select-                                                                                screen in report1 screen.

                                 p_field2 = 'modified value2'

                        VIA JOB name NUMBER number

                        AND RETURN.

 

IF sy-subrc = 0.

    CALL FUNCTION 'JOB_CLOSE'

      EXPORTING

        jobcount             = number

        jobname              = name

        strtimmed            = 'X'

      EXCEPTIONS

        cant_start_immediate = 1

        invalid_startdate    = 2

        jobname_missing      = 3

        job_close_failed     = 4

        job_nosteps          = 5

        job_notex            = 6

        lock_failed          = 7

        OTHERS               = 8.

    IF sy-subrc <> 0.

      ...

    ENDIF.

  ENDIF.

ENDIF.

 

Regards,

Archer


Viewing all articles
Browse latest Browse all 8807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>