Skip to Content
author's profile photo Former Member
Former Member

code inspector warning

i have a warinng message in my code inspector as

Call Executable Program Z***********

for the code

SUBMIT z****

using selection-set l_var

AND RETURN

WITH p_vbeln EQ i_vbak-vbeln

USER sy-uname

VIA JOB c_lc_jobname

NUMBER t_jobcount.

Please let me know how can i avoid this?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Feb 07, 2008 at 05:10 AM

    SUBMIT statement should be in this order :

    REPORT report2. 
    
    DATA: text(10)   TYPE c, 
          rspar_tab  TYPE TABLE OF rsparams, 
          rspar_line LIKE LINE OF rspar_tab, 
          range_tab  LIKE RANGE OF text, 
          range_line LIKE LINE OF range_tab. 
    
    ... 
    
    rspar_line-selname = 'SELCRIT1'. 
    rspar_line-kind    = 'S'. 
    rspar_line-sign    = 'I'. 
    rspar_line-option  = 'EQ'. 
    rspar_line-low     = 'ABAP'. 
    APPEND rspar_line TO rspar_tab. 
    
    range_line-sign   = 'E'. 
    range_line-option = 'EQ'. 
    range_line-low    = 'H'. 
    APPEND range_line TO range_tab. 
    
    range_line-sign   = 'E'. 
    range_line-option = 'EQ'. 
    range_line-low    = 'K'. 
    APPEND range_line TO range_tab. 
    
    SUBMIT report1 USING SELECTION-SCREEN '1100' 
                   WITH SELECTION-TABLE rspar_tab 
                   WITH selcrit2 BETWEEN 'H' AND 'K' 
                   WITH selcrit2 IN range_tab 
                   AND RETURN.
    
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2008 at 04:38 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 07, 2008 at 04:56 AM

    HI,

    Assign the program name to a variable say

    l_progname = p_program.

    SUBMIT L_PROGRAM....

    Best regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 07, 2008 at 05:02 AM

    Please paste your code.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      *- To open a job for the report ZUS_SD_R3_I_LKJO_061 to be scheduled in

      *- background.

      *

      CALL FUNCTION 'JOB_OPEN'

      EXPORTING

      delanfrep = ' '

      jobgroup = ' '

      jobname = c_lc_jobname

      sdlstrtdt = sy-datum

      sdlstrttm = sy-uzeit

      IMPORTING

      jobcount = t_jobcount

      EXCEPTIONS

      cant_create_job = 1

      invalid_job_data = 2

      jobname_missing = 3

      OTHERS = 4.

      IF sy-subrc <> 0.

      • MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

      • WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

      ENDIF. " If sy-subrc <> 0 : JOB_CLOSE

      *

      *- Submit the report to execute in background for this contract

      SUBMIT z************

      using selection-set l_var

      AND RETURN

      WITH p_vbeln EQ i_vbak-vbeln

      USER sy-uname

      VIA JOB c_lc_jobname

      NUMBER t_jobcount.

      IF sy-subrc > 0.

      "error processing

      ELSE.

      *- Close the job if it is not processe for more than 2 days.

      t_starttime-sdlstrtdt = sy-datum + 1.

      t_starttime-sdlstrttm = '220000'.

      CALL FUNCTION 'JOB_CLOSE'

      EXPORTING

      jobcount = t_jobcount

      jobname = c_lc_jobname

      laststrtdt = t_starttime-sdlstrtdt

      laststrttm = t_starttime-sdlstrttm

      strtimmed =

      c_lc_starttimeimmediate

      • TARGETSYSTEM = ' '

      • TARGETSERVER = ' '

      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.

      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

      ENDIF. " IF sy-subrc <> 0. : JOB_CLOSE

      *

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.