SAP Reports / Programs

J_1SESR1 SAP ABAP Report - IS-M/SD CH/F: Print Program for Subscription Invoices







J_1SESR1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program is a print report that prints an invoice for a subscriber with a SAPscript form using output control...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter J_1SESR1 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT J_1SESR1. "Basic submit
SUBMIT J_1SESR1 AND RETURN. "Return to original report after report execution complete
SUBMIT J_1SESR1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: XSCREEN = Display on Screen
Title: IS-M/SD CH/F: Print Program for Subscription Invoices
Text Symbol: E10 = Error reading publication
Text Symbol: E11 = Error reading publication/edition
Text Symbol: E12 = Error reading text for mix type
Text Symbol: E13 = Error reading text for del.type
Text Symbol: E14 = Error reading text for item type
Text Symbol: E15 = Error reading text for billing frequency
Text Symbol: E16 = Error reading text for service type
Text Symbol: E17 = Error in address of alternative ship-to party
Text Symbol: E18 = Error reading text for SDoc.type
Text Symbol: E09 = Ship-to party not found for order number/internal item
Text Symbol: 001 = Subscript.
Text Symbol: E01 = Error in address formatting for bill-to party
Text Symbol: E02 = Invoice Number
Text Symbol: E03 = Error in address formatting for ship-to party
Text Symbol: E04 = Bill-to party not in partner table for invoice number
Text Symbol: E05 = Error reading billing doc.no.
Text Symbol: E06 = Error reading address for bill-to party
Text Symbol: E07 = Error in address for alternative payer
Text Symbol: E08 = No ship-to party for billing doc.no./internal item
Text Symbol: M05 = Invalid options
Text Symbol: M06 = Another form is still active
Text Symbol: M07 = Error in WRITE_FORM with element
Text Symbol: M08 = w/return code
Text Symbol: M09 = Error closing form
Text Symbol: M10 = Form:
Text Symbol: T01 = Invoices
Text Symbol: M04 = Form is not active
Text Symbol: E20 = Error in address for alt. ship-to pty
Text Symbol: E21 = Unable to determine order number for credit/debit memo (doc.flow)
Text Symbol: E22 = No conditions found for printing
Text Symbol: E23 = Item Number
Text Symbol: E98 = Address of sales organization not maintained for bill.doc.
Text Symbol: E99 = Sales org.does not exist for billing document
Text Symbol: M01 = Error while opening form -
Text Symbol: M02 = Print dialog cancelled
Text Symbol: M03 = Invalid device typ





INCLUDES used within this REPORT J_1SESR1

INCLUDE MJ000TAL. " EC
INCLUDE MJG00T01. " EC
INCLUDE MJG00TRO. " EC
INCLUDE MJY00TPR. " EC
INCLUDE MJV00T15. " EC
INCLUDE MJV00T17. " EC
INCLUDE MJY00TKO.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ISP_ADDRESS_READ CALL FUNCTION 'ISP_ADDRESS_READ' EXPORTING adrnr_in = tjfpa-adrnr IMPORTING sadrwa_out = *jgtsadr EXCEPTIONS not_found = 01.

ISP_ADDRESS_INTO_PRINTFORM CALL FUNCTION 'ISP_ADDRESS_INTO_PRINTFORM' EXPORTING anschr_typ = anschr_typ flg_namenszus = con_angekreuzt sadrwa_in = *jgtsadr zeilenzahl = con_zeilen_adresse IMPORTING sadrwa_out = adrs.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' EXCEPTIONS OTHERS = 1.

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING form = tnapr-fonam language = *jgtsadr-spras options = itcpo device = xdevice dialog = ' ' EXCEPTIONS OTHERS = 1.

RV_PRICE_PRINT_REFRESH CALL FUNCTION 'RV_PRICE_PRINT_REFRESH' TABLES tkomv = tkomv.

ISP_INVOICE_READ CALL FUNCTION 'ISP_INVOICE_READ' EXPORTING comwa = vbco3 IMPORTING kopf = jfrk TABLES partner = tjfpa pos = tjfrp EXCEPTIONS invoice_not_found = 4.

CONTROL_FORM CALL FUNCTION 'CONTROL_FORM' EXPORTING command = 'PROTECT' EXCEPTIONS unopened = 01 unstarted = 02.

CONTROL_FORM CALL FUNCTION 'CONTROL_FORM' EXPORTING command = 'ENDPROTECT'.

ISP_SELECT_SINGLE_T001 * CALL FUNCTION 'ISP_SELECT_SINGLE_T001' * EXPORTING * BUKRS = JFRK-BUKRS * IMPORTING * T001_I = L_T001 * EXCEPTIONS * OTHERS = 0.

RV_PRICE_PRINT_ITEM CALL FUNCTION 'RV_PRICE_PRINT_ITEM' EXPORTING comm_head_i = komk comm_item_i = komp language = *jgtsadr-spras IMPORTING comm_head_e = komk comm_item_e = komp TABLES tkomv = tkomv tkomvd = tkomvd.

RV_PRICE_PRINT_HEAD * CALL FUNCTION 'RV_PRICE_PRINT_HEAD' * EXPORTING * comm_head_i = komk * language = nast-spras * IMPORTING * comm_head_e = komk * TABLES * tkomv = tkomv * tkomvd = tkomvd.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING element = p_element function = 'SET' type = 'BODY' window = 'MAIN' EXCEPTIONS element = 01 function = 02 type = 03 unopened = 04 unstarted = 05 window = 06.

ISP_SELECT_SINGLE_TJAPT CALL FUNCTION 'ISP_SELECT_SINGLE_TJAPT' EXPORTING aktsprsl = *jgtsadr-spras bassprsl = sy-langu msgty1 = con_msg_extern msgty2 = con_msg_extern poart = jfrp-isppoart IMPORTING meldung = meldung tjapt_i = tjapt EXCEPTIONS no_entry_found = 01.

CONTROL_FORM CALL FUNCTION 'CONTROL_FORM' EXPORTING command = 'PROTECT'.

EXIT_ESR_001 * call function 'EXIT_ESR_001' * exporting * vbelnr = jfrk-vbeln * vkundnr = jfrk-kunrg * importing * refnr = j_1sesr-vzrefn * exceptions * error = 01 * warning = 02.








Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name J_1SESR1 or its description.