Skip to Content
avatar image
Former Member

error msg "Previous output request was not finished".

I m using below code ,, i was near to get data line by line but after generating smartform , error msg comes "previous output request was not finished" . plz help in this regard


describe table it_final02 lines w_cnt.

BREAK-POINT.
loop at it_final02 into wa_final02.
CLEAR WA_FINAL .
REFRESH : IT_FINAL .
* MOVE-CORRESPONDING IT_FINAL02 TO IT_FINAL .
MOVE-CORRESPONDING WA_FINAL02 TO WA_FINAL .
APPEND WA_FINAL TO IT_FINAL .
* APPEND IT_FINAL02 TO IT_FINAL.

w_cnt2 = sy-tabix .

BREAK-POINT.
case w_cnt2.

when 1.
* control_parameters-no_open = 'X' .
* control_parameters-no_close = space .

control_parameters-no_open = space .
control_parameters-no_close = 'X' .


when w_cnt .
control_parameters-no_open = 'X' .
control_parameters-no_close = space .

when others.
control_parameters-no_open = 'X' .
control_parameters-no_close = 'X' .

endcase.

*ENDLOOP.
*LOOP AT IT_FINAL INTO WA_FINAL.
CALL FUNCTION FM_NAME
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = control_parameters"ssfctrlop
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS = ssfcompop
USER_SETTINGS = ' '
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
it_final = IT_FINAL
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.


BREAK-POINT.

ENDLOOP.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers