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

JOB_OUTPUT_INFO

Hi Frnds,

My smartfrom doesn't return any value except the spool number in the JOB_OUTPUT_INFO.

i need the data of OTFDATA internal table. can you give solution or suggestion what i missed in the smartforms?

points will be rewarded for helpful answers.

Regards,

Balu

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 05:47 AM

    Hi,

    We need to pass get_otf = 'X', in control parameters and need to pass the internal table for job_output_info.

    Bye

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 05:17 AM

    hi,

    try this sample code u will get otfdata into an internal table.

    DATA: t_otfdata TYPE ssfcrescl,

    t_lines LIKE tline OCCURS 0 WITH HEADER LINE,

    t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,

    t_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.

    • Objects to send mail.

    DATA:T_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,

    T_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,

    T_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,

    T_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE.

    DATA: w_filesize TYPE i,

    w_bin_filesize TYPE i,

    wa_ctrlop TYPE ssfctrlop,

    wa_outopt TYPE ssfcompop,

    WA_BUFFER TYPE STRING, "To convert from 132 to 255

    WA_OBJHEAD TYPE SOLI_TAB,

    WA_DOC_CHNG TYPE SODOCCHGI1,

    W_DATA TYPE SODOCCHGI1.

    DATA: form_name TYPE rs38l_fnam,

    V_LINES_TXT TYPE I,

    V_LINES_BIN TYPE I.

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

    FORMNAME = 'ZSR_DEMO1'

    • VARIANT = ' '

    • DIRECT_CALL = ' '

    IMPORTING

    FM_NAME = form_name

    EXCEPTIONS

    NO_FORM = 1

    NO_FUNCTION_MODULE = 2

    OTHERS = 3

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    wa_ctrlop-getotf = 'X'.

    wa_ctrlop-no_dialog = 'X'.

    wa_outopt-tdnoprev = 'X'.

    CALL FUNCTION form_name

    EXPORTING

    • ARCHIVE_INDEX =

    • ARCHIVE_INDEX_TAB =

    • ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS = wa_ctrlop

    • MAIL_APPL_OBJ =

    • MAIL_RECIPIENT =

    • MAIL_SENDER =

    OUTPUT_OPTIONS = wa_outopt

    USER_SETTINGS = 'X'

    MYDATE = p_date

    REASON = p_rea

    IMPORTING

    • DOCUMENT_OUTPUT_INFO =

    JOB_OUTPUT_INFO = t_otfdata

    • JOB_OUTPUT_OPTIONS =

    EXCEPTIONS

    FORMATTING_ERROR = 1

    INTERNAL_ERROR = 2

    SEND_ERROR = 3

    USER_CANCELED = 4

    OTHERS = 5

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    t_otf[] = t_otfdata-otfdata[].

    CALL FUNCTION 'CONVERT_OTF'

    EXPORTING

    FORMAT = 'PDF'

    MAX_LINEWIDTH = 132

    • ARCHIVE_INDEX = ' '

    • COPYNUMBER = 0

    • ASCII_BIDI_VIS2LOG = ' '

    • PDF_DELETE_OTFTAB = ' '

    IMPORTING

    BIN_FILESIZE = w_bin_filesize

    • BIN_FILE =

    TABLES

    OTF = t_otf

    LINES = t_lines

    EXCEPTIONS

    ERR_MAX_LINEWIDTH = 1

    ERR_FORMAT = 2

    ERR_CONV_NOT_POSSIBLE = 3

    ERR_BAD_OTF = 4

    OTHERS = 5

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    please reward me if helpful.

    gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 05:32 AM

    hi,

    this is onemore code..

    DATA: t_otfdata TYPE ssfcrescl,

    t_lines LIKE tline OCCURS 0 WITH HEADER LINE,

    t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,

    t_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.

    DATA: w_filesize TYPE i,

    w_bin_filesize TYPE i,

    wa_ctrlop TYPE ssfctrlop.

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

    FORMNAME = 'ZTEST'

    • VARIANT = ' '

    • DIRECT_CALL = ' '

    IMPORTING

    FM_NAME = form_name

    EXCEPTIONS

    NO_FORM = 1

    NO_FUNCTION_MODULE = 2

    OTHERS = 3

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    wa_ctrlop-getotf = 'X'.

    wa_ctrlop-no_dialog = 'X'.

    wa_outopt-tdnoprev = 'X'.

    CALL FUNCTION form_name

    EXPORTING

    • ARCHIVE_INDEX =

    • ARCHIVE_INDEX_TAB =

    • ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS = wa_ctrlop

    • MAIL_APPL_OBJ =

    • MAIL_RECIPIENT =

    • MAIL_SENDER =

    OUTPUT_OPTIONS = wa_outopt

    USER_SETTINGS = 'X'

    MYDATE = p_date

    REASON = p_rea

    IMPORTING

    • DOCUMENT_OUTPUT_INFO =

    JOB_OUTPUT_INFO = t_otfdata

    • JOB_OUTPUT_OPTIONS =

    EXCEPTIONS

    FORMATTING_ERROR = 1

    INTERNAL_ERROR = 2

    SEND_ERROR = 3

    USER_CANCELED = 4

    OTHERS = 5

    .

    IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

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.