SAP Reports / Programs | Sales and Distribution(SD) SAP SD

IDPRCNINVOICE SAP ABAP Report - Printout of Billing Documents and Delivery Notes on Prenumbered Forms







IDPRCNINVOICE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

IDCP - Printout on Prenumbered Forms


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 IDPRCNINVOICE. "Basic submit
SUBMIT IDPRCNINVOICE AND RETURN. "Return to original report after report execution complete
SUBMIT IDPRCNINVOICE 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: RFBSK_F = Pricing Error
Selection Text: RFBSK_C = Accounting Document Created
Selection Text: RFBSK_AB = Accounting Block
Selection Text: RERNAM = Created By
Selection Text: RERDAT = Created On
Selection Text: P_VARI = ALV Variant
Selection Text: PR_NUM = Printer
Selection Text: PR_LOW = First Billing Document
Selection Text: PR_HI = Last Billing Document
Selection Text: NO_RPRT = Reject Repeat Print
Selection Text: MSG_TYPE = Output Type
Selection Text: L_XBLNR = Reference Number
Selection Text: L_VSTEL = Shipping Point
Selection Text: L_VBELN = Delivery
Selection Text: L_TKNUM = Shipment Document
Selection Text: L_PR_NUM = Printer
Selection Text: L_PR_LOW = First Delivery Note
Selection Text: L_PR_HI = Last Delivery Note
Selection Text: L_KUNNR = Ship-To Party
Selection Text: L_ERNAM = Created By
Selection Text: L_ERDAT = Created On
Selection Text: LOTNO = Lot Number
Selection Text: LMSGTYPE = Output Type
Selection Text: LFDAT = Delivery Date
Selection Text: LFART = Delivery Type
Selection Text: KUNNR = Payer
Selection Text: FKTYP = Billing Category
Selection Text: FKDAT = Billing Date
Selection Text: FKART = Billing Type
Selection Text: ERNAM = Created By
Selection Text: ERDAT = Created On
Selection Text: CHK_RPRT = Check Repeat Print
Selection Text: CHK_DELI = Delivery
Selection Text: CHK_BILL = Billing Document
Selection Text: BZIRK = Sales District
Selection Text: XBLNR = Official Document Number
Selection Text: VKORG = Sales Organization
Selection Text: VBELN = Billing Document





Selection Text: TKNUM = Shipment Document
Selection Text: RXBLNR = Reference Number
Selection Text: RVBELN = Billing Document
Selection Text: RTKNUM = Shipment Document
Selection Text: RRFBSKS = FI/CO Interface
Selection Text: RRFBSKG = Export Data Missing
Selection Text: RRFBSKF = Pricing Error
Selection Text: RRFBSKC = Accounting Document Created
Selection Text: RRFBSKAB = Accounting Block
Selection Text: RPR_NUM = Printer
Selection Text: RPR_LOW = First Billing Document
Selection Text: RPR_HI = Last Billing Document
Selection Text: RMSGTYPE = Output Type
Selection Text: RLXBLNR = Reference Number
Selection Text: RLVBELN = Delivery
Selection Text: RLTKNUM = Shipment Document
Selection Text: RLPR_NUM = Printer
Selection Text: RLPR_LOW = First Delivery Note
Selection Text: RLPR_HI = Last Delivery Note
Selection Text: RLMSGTYP = Output Type
Selection Text: RLKUNNR = Ship-To Party
Selection Text: RLFDAT = Delivery Date
Selection Text: RLFART = Delivery Type
Selection Text: RLERNAM = Created By
Selection Text: RLERDAT = Created On
Selection Text: RKUNNR = Payer
Selection Text: RFKTYP = Billing Category
Selection Text: RFKDAT = Billing Date
Selection Text: RFKART = Billing Type
Selection Text: RFBSK_S = FI/CO Interface
Selection Text: RFBSK_K = No Authorization
Selection Text: RFBSK_G = Export Data Missing
Selection Text: BOKNO = Book Number
Selection Text: ALL_RPRT = Do Not Check Repeat Print
Title: Printout of Billing Documents and Delivery Notes on Prenumbered Forms
Text Symbol: NUB = Renumbering (&): Billing Document List
Text Symbol: NOR = No Reprinting Allowed
Text Symbol: NBG = Prenumbered Forms
Text Symbol: MT2 = Output Type





Text Symbol: MT1 = Restrict by output type
Text Symbol: M02 = Doc. could not be released. Check document
Text Symbol: M01 = Document already released
Text Symbol: LUN = Lot number:
Text Symbol: LHD = Print (&): Delivery List
Text Symbol: LHB = Print (&): Billing Document List
Text Symbol: INV = Document Class:
Text Symbol: I01 = Documents
Text Symbol: DRU = Print
Text Symbol: DG2 = Partially Posted, Not Posted
Text Symbol: DG1 = Posted
Text Symbol: DEL = Delivery
Text Symbol: DEB = Customers
Text Symbol: DAT = Date:
Text Symbol: D05 = output?
Text Symbol: D04 = Do you want to resend
Text Symbol: D03 = has already been sent!
Text Symbol: D02 = Output type: for object:
Text Symbol: D01 = Send Again
Text Symbol: BUN = Book Number:
Text Symbol: BSS = FI/CO Interface
Text Symbol: BKR = Company Code:
Text Symbol: BKK = No Authorization
Text Symbol: BIL = Billing
Text Symbol: BGG = Export Data Missing
Text Symbol: BFF = Pricing Error
Text Symbol: BCC = Accounting Doc. Created
Text Symbol: BAB = Posting Block
Text Symbol: ALV = Layout
Text Symbol: NUD = Renumbering (&): Delivery List
Text Symbol: XBN = Official Document Nos.:
Text Symbol: XBM = Off. Doc. No.:
Text Symbol: WK6 = Storage Location:
Text Symbol: WK5 = Storage Location
Text Symbol: WK2 = Plant
Text Symbol: WK1 = Plant:
Text Symbol: VS2 = Shipping Point:
Text Symbol: VS1 = Shipping Point
Text Symbol: VK6 = Distrib.Channel



Text Symbol: VK5 = Distr. Channel:
Text Symbol: VK4 = Sales District:
Text Symbol: VK3 = Sales Org.:
Text Symbol: VK2 = Sales District
Text Symbol: VK1 = Sales Organization
Text Symbol: VIT = Canceled
Text Symbol: UMN = Renumber
Text Symbol: UM1 = Print
Text Symbol: STO = Billing Document Canceled
Text Symbol: S10 = Prenumbered Forms
Text Symbol: S09 = Repeat Printouts
Text Symbol: S07 = Goods Issue Status
Text Symbol: S06 = Posting Status
Text Symbol: S04 = Shipments
Text Symbol: S03 = Documents
Text Symbol: S02 = Creation Data
Text Symbol: S01 = Organizational Data
Text Symbol: RPN = Reject
Text Symbol: RPC = Check
Text Symbol: RPA = Allow
Text Symbol: RNM = Renumber
Text Symbol: RGN = Official Lot Number:
Text Symbol: PNU = Print/Renumber
Text Symbol: PDS = Output Device:


INCLUDES used within this REPORT IDPRCNINVOICE

No INCLUDES are used within this REPORT code!


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:

ENQUEUE_EBOOKNO CALL FUNCTION 'ENQUEUE_EBOOKNO' EXPORTING mode_idcn_boma = 'E' bukrs = bukrs lotno = lotno bokno = bokno EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ENQUEUE_ESTSP03 * CALL FUNCTION 'ENQUEUE_ESTSP03' * EXPORTING * padest = pr_num * EXCEPTIONS * foreign_lock = 2 * system_failure = 3.

DEQUEUE_EBOOKNO CALL FUNCTION 'DEQUEUE_EBOOKNO' EXPORTING mode_idcn_boma = 'E' mandt = sy-mandt bukrs = bukrs lotno = lotno * X_BUKRS = ' ' * X_LOTNO = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' .

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'VF' msgnr = '517' msgv1 = gt_xm_vmcfa-fkart IMPORTING message_text_output = news-text.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '862' IMPORTING message_text_output = news-text.

ENQUEUE_ESTSP03 CALL FUNCTION 'ENQUEUE_ESTSP03' EXPORTING padest = pr_num EXCEPTIONS foreign_lock = 2 system_failure = 3.

ENQUEUE_EVVBRKE CALL FUNCTION 'ENQUEUE_EVVBRKE' EXPORTING mandt = sy-mandt vbeln = gt_xm_vmcfa-vbeln EXCEPTIONS foreign_lock = 2 system_failure = 3.

ENQUEUE_EVVBLKE CALL FUNCTION 'ENQUEUE_EVVBLKE' EXPORTING mandt = sy-mandt vbeln = gt_xm_vmcfa-vbeln EXCEPTIONS foreign_lock = 2 system_failure = 3.

J_1BSA_COMPONENT_ACTIVE call function 'J_1BSA_COMPONENT_ACTIVE' exporting bukrs = bukrs component = '**' importing active_component = lv_act_comp exceptions component_not_active = 1 others = 2.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '862' IMPORTING message_text_output = news-text.

FIRST_LAST_INV_UPDATE CALL FUNCTION 'FIRST_LAST_INV_UPDATE' EXPORTING bukrs = gt_xm_vmcfa-bukrs lotno = lotno bokno = bokno liinv = xblnr_count issdt = gt_xm_vmcfa-fkdat * PUTBACK = ' ' EXCEPTIONS update_error = 1 not_found = 2 OTHERS = 3.

UPDATE_IDCN_ODN_TR CALL FUNCTION 'UPDATE_IDCN_ODN_TR' EXPORTING IM_INSERT = 'X' * IM_DELETE = * IM_UPDATE = * VOID = itab_idcn_odn_tr = it2_idcn_odn_tr.

UPDATE_XBLNR_IN_VBRK CALL FUNCTION 'UPDATE_XBLNR_IN_VBRK' EXPORTING i_vbeln = gt_xm_vmcfa-vbeln i_xblnr = gt_xm_vmcfa-xblnr i_xblnr_check = xblnr_assigned IMPORTING e_xblnr = gt_xm_vmcfa-xblnr EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

UPDATE_XBLNR_IN_LIKP CALL FUNCTION 'UPDATE_XBLNR_IN_LIKP' EXPORTING i_vbeln = gt_xm_vmcfa-vbeln i_xblnr = gt_xm_vmcfa-xblnr EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

VOID_INVOICE_DELETE CALL FUNCTION 'VOID_INVOICE_DELETE' EXPORTING i_bukrs = bukrs i_lotno = lotno_old i_bokno = bokno_old i_invno = invno_old EXCEPTIONS not_found = 1 ref_doc_update_error = 2 OTHERS = 3.

ENQUEUE_EVVBRKE CALL FUNCTION 'ENQUEUE_EVVBRKE' EXPORTING mandt = sy-mandt vbeln = gt_xm_vmcfa-vbeln EXCEPTIONS foreign_lock = 2 system_failure = 3.

ENQUEUE_EVVBLKE CALL FUNCTION 'ENQUEUE_EVVBLKE' EXPORTING mandt = sy-mandt vbeln = gt_xm_vmcfa-vbeln EXCEPTIONS foreign_lock = 2 system_failure = 3.

FIRST_LAST_INV_UPDATE CALL FUNCTION 'FIRST_LAST_INV_UPDATE' EXPORTING bukrs = gt_xm_vmcfa-bukrs lotno = lotno bokno = bokno liinv = xblnr_count issdt = gt_xm_vmcfa-fkdat * PUTBACK = ' ' EXCEPTIONS update_error = 1 not_found = 2 OTHERS = 3.

UPDATE_IDCN_ODN_TR CALL FUNCTION 'UPDATE_IDCN_ODN_TR' EXPORTING IM_INSERT = 'X' * IM_DELETE = * IM_UPDATE = * VOID = itab_idcn_odn_tr = it2_idcn_odn_tr.

RV_DOMAIN_VALUE_TEXTS CALL FUNCTION 'RV_DOMAIN_VALUE_TEXTS' EXPORTING domname = 'FKTYP ' domvalue = xvbtyp single = ' ' IMPORTING ddtext = text.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING bukrs = vbrk-bukrs component = '**' IMPORTING active_component = lv_land1 EXCEPTIONS component_not_active = 1 OTHERS = 2.

DEQUEUE_EVVBRKE CALL FUNCTION 'DEQUEUE_EVVBRKE' EXPORTING mandt = sy-mandt vbeln = gt_xm_vmcfa-vbeln _scope = '3' _synchron = 'X' EXCEPTIONS OTHERS = 1.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = sy-msgid msgnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 IMPORTING message_text_output = news-text.

ENQUEUE_EVVBRKE CALL FUNCTION 'ENQUEUE_EVVBRKE' EXPORTING mandt = sy-mandt vbeln = gt_xm_vmcfa-vbeln EXCEPTIONS foreign_lock = 2 system_failure = 3.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'VF' msgnr = '342' IMPORTING message_text_output = news-text.

ENQUEUE_EVVBRKE *** CALL FUNCTION 'ENQUEUE_EVVBRKE' * EXPORTING * mandt = sy-mandt * vbeln = vbrk-vbeln * EXCEPTIONS * foreign_lock = 2 * system_failure = 3.

ENQUEUE_EVVBLKE CALL FUNCTION 'ENQUEUE_EVVBLKE' EXPORTING mandt = sy-mandt vbeln = likp-vbeln EXCEPTIONS foreign_lock = 2 system_failure = 3.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING defaultoption = ' ' diagnosetext1 = text-d02 diagnosetext2 = textline diagnosetext3 = text-d03 textline1 = text-d04 textline2 = text-d05 titel = text-d01 IMPORTING answer = answer_to_confirm.

RV_MESSAGE_UPDATE_SINGLE CALL FUNCTION 'RV_MESSAGE_UPDATE_SINGLE' EXPORTING msg_nast = nast.

CHANGE_DOCUMENT CALL FUNCTION 'CHANGE_DOCUMENT' TABLES t_bkdf = change_bkdf t_bkpf = change_bkpf t_bsec = change_bsec t_bsed = change_bsed t_bseg = change_bseg t_bset = change_bset EXCEPTIONS OTHERS = 1.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '870' msgv1 = '' msgv2 = '' IMPORTING message_text_output = news-text.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '866' msgv1 = '' msgv2 = '' IMPORTING message_text_output = news-text.

BELEG_WRITE_DOCUMENT CALL FUNCTION 'BELEG_WRITE_DOCUMENT' EXPORTING objectid = objectid tcode = sy-tcode utime = sy-uzeit udate = sy-datum username = sy-uname n_bkdf = dummy_bkdf o_bkdf = dummy_bkdf n_bkpf = xbkpf "new state o_bkpf = old_bkpf "old state upd_bkpf = 'U' TABLES xbsec = dummy_bsec ybsec = dummy_bsec xbsed = dummy_bsed ybsed = dummy_bsed xbseg = dummy_bseg ybseg = dummy_bseg xbset = dummy_bset ybset = dummy_bset xbseg_add = dummy_xbseg_add ybseg_add = dummy_ybseg_add EXCEPTIONS OTHERS = 1.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING bukrs = x_bukrs component = '**' IMPORTING active_component = lv_act_comp EXCEPTIONS component_not_active = 1 OTHERS = 2.

XBLNR_BUILD_AND_SPLIT CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT' EXPORTING i_bukrs = x_bukrs i_build = 'X' i_rgtno = x_rgtno i_invno = x_invno * I_XBLNR = IMPORTING * E_RGTNO = * e_invno = e_xblnr = x_xblnr * E_INVTP = EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 4.

XBLNR_BUILD_AND_SPLIT_PECL CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_PECL' EXPORTING i_bukrs = x_bukrs i_build = 'X' i_rgtno = x_rgtno i_invno = x_invno * I_XBLNR = xblnr_count i_invtp = x_invtp IMPORTING * E_RGTNO = * E_INVNO = e_xblnr = x_xblnr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

XBLNR_BUILD_AND_SPLIT_TR CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_TR' EXPORTING i_bukrs = x_bukrs i_build = 'X' i_rgtno = x_rgtno i_invno = x_invno * I_XBLNR = xblnr_count i_invtp = x_invtp i_pages = gv_pages ITAB_IDCN_ODN_TR = it1_idcn_odn_tr IMPORTING * E_RGTNO = * E_INVNO = e_xblnr = x_xblnr ETAB_IDCN_ODN_TR = it1_idcn_odn_tr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

XBLNR_BUILD_AND_SPLIT_MX CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_MX' EXPORTING i_bukrs = x_bukrs i_build = 'X' i_rgtno = x_rgtno i_invno = x_invno * I_XBLNR = xblnr_count i_invtp = x_invtp IMPORTING * E_RGTNO = * E_INVNO = e_xblnr = x_xblnr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

XBLNR_BUILD_AND_SPLIT_VE CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_VE' EXPORTING i_bukrs = x_bukrs i_build = 'X' i_rgtno = x_rgtno i_invno = x_invno * I_XBLNR = xblnr_count i_invtp = x_invtp IMPORTING * E_RGTNO = * E_INVNO = e_xblnr = x_xblnr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

XBLNR_BUILD_AND_SPLIT_PECL CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_PECL' EXPORTING i_bukrs = x_bukrs i_build = 'X' i_rgtno = x_rgtno i_invno = x_invno * I_XBLNR = xblnr_count i_invtp = x_invtp IMPORTING * E_RGTNO = * E_INVNO = e_xblnr = x_xblnr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING bukrs = x_bukrs component = '**' IMPORTING active_component = lv_act_comp EXCEPTIONS component_not_active = 1 OTHERS = 2.

XBLNR_BUILD_AND_SPLIT CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT' EXPORTING i_bukrs = x_bukrs i_build = ' ' * i_rgtno = x_rgtno * i_invno = x_invno i_xblnr = x_xblnr IMPORTING e_rgtno = x_rgtno e_invno = x_invno * e_xblnr = x_xblnr * E_INVTP = EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 4.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '842' msgv1 = x_xblnr IMPORTING message_text_output = news-text.

XBLNR_BUILD_AND_SPLIT_PECL CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_PECL' EXPORTING i_bukrs = x_bukrs i_build = ' ' * i_rgtno = x_rgtno * i_invno = x_invno i_xblnr = x_xblnr * i_invtp = x_invtp IMPORTING e_rgtno = x_rgtno e_invno = x_invno e_invtp = x_invtp * e_xblnr = x_xblnr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '842' msgv1 = x_xblnr IMPORTING message_text_output = news-text.

XBLNR_BUILD_AND_SPLIT_TR CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_TR' EXPORTING i_bukrs = x_bukrs i_build = ' ' * i_rgtno = x_rgtno * i_invno = x_invno i_xblnr = x_xblnr * i_invtp = x_invtp IMPORTING e_rgtno = x_rgtno e_invno = x_invno e_invtp = x_invtp * e_xblnr = x_xblnr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '842' msgv1 = x_xblnr IMPORTING message_text_output = news-text.

XBLNR_BUILD_AND_SPLIT_MX CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_MX' EXPORTING i_bukrs = x_bukrs i_build = ' ' * i_rgtno = x_rgtno * i_invno = x_invno i_xblnr = x_xblnr * i_invtp = x_invtp IMPORTING e_rgtno = x_rgtno e_invno = x_invno e_invtp = x_invtp * e_xblnr = x_xblnr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '842' msgv1 = x_xblnr IMPORTING message_text_output = news-text.

XBLNR_BUILD_AND_SPLIT_VE CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_VE' EXPORTING i_bukrs = x_bukrs i_build = ' ' * i_rgtno = x_rgtno * i_invno = x_invno i_xblnr = x_xblnr * i_invtp = x_invtp IMPORTING e_rgtno = x_rgtno e_invno = x_invno e_invtp = x_invtp * e_xblnr = x_xblnr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '842' msgv1 = x_xblnr IMPORTING message_text_output = news-text.

XBLNR_BUILD_AND_SPLIT_PECL CALL FUNCTION 'XBLNR_BUILD_AND_SPLIT_PECL' EXPORTING i_bukrs = x_bukrs i_build = ' ' * i_rgtno = x_rgtno * i_invno = x_invno i_xblnr = x_xblnr * i_invtp = x_invtp IMPORTING e_rgtno = x_rgtno e_invno = x_invno e_invtp = x_invtp * e_xblnr = x_xblnr EXCEPTIONS parameter_wrong = 1 not_found = 2 xblnr_format_wrong = 3 OTHERS = 5.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '842' msgv1 = x_xblnr IMPORTING message_text_output = news-text.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING bukrs = tvko-bukrs component = '**' IMPORTING active_component = h_country EXCEPTIONS component_not_active = 1 OTHERS = 2.

T001K_READ CALL FUNCTION 'T001K_READ' EXPORTING bwkey = t001w-bwkey IMPORTING struct = w001k EXCEPTIONS no_entry = 1 OTHERS = 2.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING bukrs = w001k-bukrs component = '**' IMPORTING active_component = h_country EXCEPTIONS component_not_active = 1 OTHERS = 2.

VOID_INVOICE_READ CALL FUNCTION 'VOID_INVOICE_READ' EXPORTING i_bukrs = bukrs i_lotno = lotno_old i_bokno = bokno_old i_invno = invno_old EXCEPTIONS not_found = 1.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '898' msgv1 = xblnr_old msgv2 = xblnr_assigned_new IMPORTING message_text_output = news-text.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '899' msgv1 = xblnr_old msgv2 = xblnr_assigned_new IMPORTING message_text_output = news-text.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING bukrs = bukrs component = 'CN' EXCEPTIONS component_not_active = 1 OTHERS = 2.

ENQUEUE_EEXCP CALL FUNCTION 'ENQUEUE_EEXCP' EXPORTING mode_idcn_excp = 'E' bukrs = bukrs lotno = lotno_old bokno = bokno_old invno = invno_old * X_BUKRS = ' ' * X_LOTNO = ' ' * X_BOKNO = ' ' * X_INVNO = ' ' * _SCOPE = '2' _wait = 'X' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

VOID_INVOICE_INSERT CALL FUNCTION 'VOID_INVOICE_INSERT' EXPORTING i_excp = xblnr_old_tab EXCEPTIONS import_error = 1 insert_error = 2 info_incorrect = 3 ref_doc_update_error = 4 OTHERS = 5.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '857' msgv1 = xblnr_old IMPORTING message_text_output = news-text.

DEQUEUE_EEXCP CALL FUNCTION 'DEQUEUE_EEXCP' EXPORTING mode_idcn_excp = 'E' bukrs = bukrs lotno = lotno bokno = bokno invno = xblnr_old_tab-invno.

VOID_INVOICE_READ CALL FUNCTION 'VOID_INVOICE_READ' EXPORTING i_bukrs = bukrs i_lotno = lotno i_bokno = bokno i_invno = xblnr_count EXCEPTIONS not_found = 1.

ODN_READ_TR CALL FUNCTION 'ODN_READ_TR' EXPORTING i_bukrs = bukrs i_lotno = lotno i_bokno = bokno I_INVNO = xblnr_count * I_XBLNR = * I_BLLNR = * I_XBLNR_TR = * IMPORTING * O_EXCP = * E_INVALID = EXCEPTIONS NOT_FOUND = 1.

UPDATE_XBLNR_IN_VBRK CALL FUNCTION 'UPDATE_XBLNR_IN_VBRK' EXPORTING i_vbeln = vbrk-vbeln i_xblnr = not_printed EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

T001K_READ CALL FUNCTION 'T001K_READ' EXPORTING bwkey = likp_bwkey IMPORTING struct = likp_w001k EXCEPTIONS no_entry = 1 OTHERS = 2.

UPDATE_XBLNR_IN_LIKP CALL FUNCTION 'UPDATE_XBLNR_IN_LIKP' EXPORTING i_vbeln = likp-vbeln i_xblnr = not_printed EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

UPDATE_VBRK_AND_GENERATE_LOG CALL FUNCTION 'UPDATE_VBRK_AND_GENERATE_LOG' EXPORTING i_vbeln = gt_xm_vmcfa-vbeln i_xblnr = xblnr_assigned_new i_xblnr_old = xblnr_old EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

UPDATE_XBLNR_IN_LIKP CALL FUNCTION 'UPDATE_XBLNR_IN_LIKP' EXPORTING i_vbeln = gt_xm_vmcfa-vbeln i_xblnr = xblnr_assigned_new EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = lv_msgno msgv1 = xblnr_assigned_new IMPORTING message_text_output = news-text.

ENQUEUE_ESTSP03 CALL FUNCTION 'ENQUEUE_ESTSP03' EXPORTING padest = pr_num EXCEPTIONS foreign_lock = 2 system_failure = 3.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '801' msgv1 = lv_docref msgv2 = 'ZUONR' msgv3 = wa_bseg-hkont msgv4 = 'SKB1' IMPORTING message_text_output = news-text.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '801' msgv1 = lv_docref msgv2 = 'ZUONR' msgv3 = wa_bseg-kunnr msgv4 = 'KNB1' IMPORTING message_text_output = news-text.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '801' msgv1 = lv_docref msgv2 = 'HZUON' msgv3 = wa_bseg-hkont msgv4 = 'SKB1' IMPORTING message_text_output = news-text.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '801' msgv1 = lv_docref msgv2 = 'ZUONR' msgv3 = wa_bseg-lifnr msgv4 = 'LFB1' IMPORTING message_text_output = news-text.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '801' msgv1 = lv_docref msgv2 = 'HZUON' msgv3 = wa_bseg-hkont msgv4 = 'SKB1' IMPORTING message_text_output = news-text.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = sy-msgid msgnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 IMPORTING message_text_output = p_text.

FI_IDOC_CHANGE_UPDATE CALL FUNCTION 'FI_IDOC_CHANGE_UPDATE' EXPORTING i_e1firef = aa_e1firef i_hkont = ' ' "nicht relevant TABLES t_e1fichd = aa_e1fichd.

VOID_INVOICE_READ CALL FUNCTION 'VOID_INVOICE_READ' EXPORTING i_bukrs = bukrs i_lotno = lotno_old i_bokno = bokno_old i_invno = invno_old_temp EXCEPTIONS not_found = 1.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '898' msgv1 = xblnr_old msgv2 = xblnr_assigned_new IMPORTING message_text_output = news-text.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '899' msgv1 = xblnr_old msgv2 = xblnr_assigned_new IMPORTING message_text_output = news-text.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING bukrs = bukrs component = 'CN' EXCEPTIONS component_not_active = 1 OTHERS = 2.

ENQUEUE_EEXCP CALL FUNCTION 'ENQUEUE_EEXCP' EXPORTING mode_idcn_excp = 'E' bukrs = bukrs lotno = lotno_old bokno = bokno_old invno = invno_old * X_BUKRS = ' ' * X_LOTNO = ' ' * X_BOKNO = ' ' * X_INVNO = ' ' * _SCOPE = '2' _wait = 'X' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

VOID_INVOICE_INSERT CALL FUNCTION 'VOID_INVOICE_INSERT' EXPORTING i_excp = xblnr_old_tab EXCEPTIONS import_error = 1 insert_error = 2 info_incorrect = 3 ref_doc_update_error = 4 OTHERS = 5.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = '857' msgv1 = xblnr_old IMPORTING message_text_output = news-text.

DEQUEUE_EEXCP CALL FUNCTION 'DEQUEUE_EEXCP' EXPORTING mode_idcn_excp = 'E' bukrs = bukrs lotno = lotno bokno = bokno invno = xblnr_old_tab-invno.

UPDATE_IDCN_ODN_TR CALL FUNCTION 'UPDATE_IDCN_ODN_TR' EXPORTING * IM_INSERT = * IM_DELETE = IM_UPDATE = 'X' VOID = 'X' itab_idcn_odn_tr = IT2_idcn_odn_tr EXCEPTIONS ERROR = 1 * OTHERS = 2 .

VOID_INVOICE_READ CALL FUNCTION 'VOID_INVOICE_READ' EXPORTING i_bukrs = bukrs i_lotno = lotno i_bokno = bokno i_invno = xblnr_count EXCEPTIONS not_found = 1.

ODN_READ_TR CALL FUNCTION 'ODN_READ_TR' EXPORTING i_bukrs = bukrs i_lotno = lotno i_bokno = bokno I_INVNO = xblnr_count * I_XBLNR = * I_BLLNR = * I_XBLNR_TR = * IMPORTING * O_EXCP = * E_INVALID = EXCEPTIONS NOT_FOUND = 1 * OTHERS = 2.

UPDATE_XBLNR_IN_VBRK CALL FUNCTION 'UPDATE_XBLNR_IN_VBRK' EXPORTING i_vbeln = vbrk-vbeln i_xblnr = not_printed EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

T001K_READ CALL FUNCTION 'T001K_READ' EXPORTING bwkey = likp_bwkey IMPORTING struct = likp_w001k EXCEPTIONS no_entry = 1 OTHERS = 2.

UPDATE_XBLNR_IN_LIKP CALL FUNCTION 'UPDATE_XBLNR_IN_LIKP' EXPORTING i_vbeln = likp-vbeln i_xblnr = not_printed EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

UPDATE_XBLNR_IN_VBRK CALL FUNCTION 'UPDATE_XBLNR_IN_VBRK' EXPORTING i_vbeln = gt_xm_vmcfa-vbeln i_xblnr = xblnr_assigned_new EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

UPDATE_XBLNR_IN_LIKP CALL FUNCTION 'UPDATE_XBLNR_IN_LIKP' EXPORTING i_vbeln = gt_xm_vmcfa-vbeln i_xblnr = xblnr_assigned_new EXCEPTIONS document_blocked = 1 update_no_success = 2 OTHERS = 3.

MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = 'ICC_CN' msgnr = lv_msgno msgv1 = xblnr_assigned_new IMPORTING message_text_output = news-text.



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 IDPRCNINVOICE or its description.