0% found this document useful (0 votes)
46 views2 pages

Driver Program For Ra Invoice

The document is a report program that calls a function module to generate an invoice document for selected sales orders. It sets control and output parameters for document generation including suppressing dialogs and printing, setting the language to Chinese, and passes the selected sales order table to the function module. It checks for any errors from the function module call.

Uploaded by

Sandeep Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views2 pages

Driver Program For Ra Invoice

The document is a report program that calls a function module to generate an invoice document for selected sales orders. It sets control and output parameters for document generation including suppressing dialogs and printing, setting the language to Chinese, and passes the selected sales order table to the function module. It checks for any errors from the function module call.

Uploaded by

Sandeep Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

*&---------------------------------------------------------------------* *& Report ZDRIVER_RA *& *&---------------------------------------------------------------------* *& *& *&---------------------------------------------------------------------* REPORT ZDRIVER_RA.

tables: vbap. SELECT-OPTIONS : s_VA for vbap-vbeln.

PARAMETERS p_langu like sy-langu. data: gm_name type rs38l_fnam. * W_CTRLOP TYPE SSFCTRLOP, * W_COMPOP TYPE SSFCOMPOP. START-OF-SELECTION.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING FORMNAME = 'ZRA_INVOICE' * VARIANT = ' ' * DIRECT_CALL = ' ' IMPORTING FM_NAME = GM_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. *W_CTRLOP-NO_DIALOG = 'X'. * W_CTRLOP-PREVIEW = 'X'. * * W_CTRLOP-GETOTF = ''. * W_CTRLOP-langu = 'ZH'. * W_CTRLOP-REPLANGU1 = 'ZH'. * W_COMPOP-TDNOPRINT = 'X'.

CALL FUNCTION gm_name"'/1BCDWB/SF00000194' * EXPORTING * ARCHIVE_INDEX = * ARCHIVE_INDEX_TAB = * ARCHIVE_PARAMETERS = * CONTROL_PARAMETERS = W_CTRLOP * MAIL_APPL_OBJ = * MAIL_RECIPIENT = * MAIL_SENDER = * OUTPUT_OPTIONS = W_COMPOP * USER_SETTINGS = 'X' * LANGU = p_langu * IMPORTING * DOCUMENT_OUTPUT_INFO = * JOB_OUTPUT_INFO = * JOB_OUTPUT_OPTIONS = TABLES S_VBELN = S_VA 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.

You might also like