SAP Reports / Programs

J_2GLPCANCELSD SAP ABAP Report - Cancellation of Delivery or Billing for Greece







J_2GLPCANCELSD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program cancels SD deliveries and billings and prints the appropriate documents...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_2GLPCANCELSD 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

J2GLPCANCSD - Cancelation of SD


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_2GLPCANCELSD. "Basic submit
SUBMIT J_2GLPCANCELSD AND RETURN. "Return to original report after report execution complete
SUBMIT J_2GLPCANCELSD 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: S_VBELN = Document
Selection Text: S_DATE = Cancellation date
Selection Text: SPRINTER = Printer
Title: Cancellation of Delivery or Billing for Greece
Text Symbol: 938 = It has been printed as TDA -- please cancel the billing instead
Text Symbol: 937 = The Delivery has not been printed as DA ( Logical Kind type is not DL ( table J_2GLPLK-TYPE )
Text Symbol: 936 = Cannot determine the Logical Kind of the delivery ( table J_2GLPLEGDOC-LOGKIND )
Text Symbol: 935 = Delivery has already been cancelled
Text Symbol: 934 = The cancellation print task code field is not maintained for the billing print task code - ? -
Text Symbol: 933 = The print task code of the billing - ? - is not maintained in table J_2GLPP1
Text Symbol: 932 = Cannot determine the print task code to print the cancelled billing.
Text Symbol: 931 = The cancellation date is less than the billing date
Text Symbol: 930 = The Billing has been printed as TDA but has no delivery
Text Symbol: 929 = The Billing has been printed as TDA but has more than 1 delivery
Text Symbol: 928 = Logical Kind type ? not supported by this program
Text Symbol: 927 = Cannot determine the type of the logical kind ( table J_2GLPLK-TYPE )
Text Symbol: 926 = Cannot determine the Logical Kind of the billing ( table J_2GLPLEGDOC-LOGKIND )
Text Symbol: 925 = Cannot Determine the Delivery
Text Symbol: 924 = The billing is already cancelled
Text Symbol: 923 = The billing document is involved in more than one delivery
Text Symbol: 922 = Line item ? : The line item is involved in more than one delivery
Text Symbol: 921 = Line item ? : Cannot find delivery document in LIKP.
Text Symbol: 920 = The billing document has no line items
Text Symbol: 919 = Line item ? : Cannot find delivery
Text Symbol: 918 = You must first print the billing and the cancel it
Text Symbol: 917 = Cannot cancel a cancellation document
Text Symbol: 916 = Cannot cancel pro forma Invoice
Text Symbol: 915 = Cannot determine the cancel GI doc of the delivery
Text Symbol: 914 = The cancelled print task code 1 field is not maintained for the delivery print task code - ? -
Text Symbol: 913 = The print task code of the delivery - ? - is not maintained in table J_2GLPP1
Text Symbol: 912 = Cannot determine the print task code to print the cancelled delivery.
Text Symbol: 911 = You must first print the delivery and the cancel it
Text Symbol: 910 = Cannot determine the GI doc of the delivery
Text Symbol: 909 = The cancellation date is less than the GI date
Text Symbol: 908 = or cancel the delivery with transaction VL09 and then print the appropriate documents
Text Symbol: 907 = Either cancel the whole chain by specifying the billing document
Text Symbol: 906 = The delivery has produced a billing document
Text Symbol: E05 = Print task code prints to another printer than the one specified in your parameter id 'J_2GLPPRINTER'.





Text Symbol: E01 = No default printer in user PID J_2GLPPRINTER
Text Symbol: D13 = Are you sure you want to cancel Quantities and Values ?
Text Symbol: D12 = Cancel Quantities and Values ?
Text Symbol: D11 = Are you sure you want to cancel values only ?
Text Symbol: D10 = Cancel Values only ?
Text Symbol: D08 = Cancel
Text Symbol: D07 = Quant. + values
Text Symbol: D06 = Values
Text Symbol: D05 = Quantities and values.
Text Symbol: D04 = Values only.
Text Symbol: D03 = or cancel both quantities ( GIs ) and values ?
Text Symbol: D02 = Do you want to cancel the values ( billing )only,
Text Symbol: D01 = Cancel quantities -- values
Text Symbol: C11 = Are you sure you want to cancel the billing only ?
Text Symbol: C10 = Cancel the billing only ?
Text Symbol: C04 = Do you want to cancel the billing only ?
Text Symbol: C03 = Cannot cancel the deliveries.
Text Symbol: C02 = The billing has more than one delivery associated ( DA )
Text Symbol: C01 = Cancel only the billing ?
Text Symbol: B02 = Are you sure you want to reject all order items ?
Text Symbol: B01 = Reject order line items --- Total cancel ?
Text Symbol: A08 = NO
Text Symbol: A07 = YES
Text Symbol: A06 = delivery.
Text Symbol: A05 = Otherwise, print first the documents and then delete the
Text Symbol: A04 = Make sure that you have printed all necessary documents.
Text Symbol: A03 = A T T E N T I O N !!!!
Text Symbol: A02 = Confirmation to delete the delivery -- Release stock
Text Symbol: A01 = Delete Delivery --- Release stock ?
Text Symbol: 941 = Rejection has already been done
Text Symbol: 940 = Delivery has already been deleted
Text Symbol: 939 = Logical Kind type ? for deliveries is not supported
Text Symbol: 504 = Line items from order & rejected
Text Symbol: 503 = Cannot reject line items from order &
Text Symbol: 502 = Delivery & deleted.
Text Symbol: 501 = Cannot delete delivery &, please delete manually.
Text Symbol: 500 = Cannot cancel GI
Text Symbol: 303 = Delivery
Text Symbol: 302 = Billing





Text Symbol: 301 = Delivery-Billing
Text Symbol: 300 = Checking print task code & : to print &
Text Symbol: 150 = Warehouse management picking not yet supported
Text Symbol: 129 = Logical paper & does not support cancellation deliveries. ( GITYPE = 1 )
Text Symbol: 128 = Delivery document type not supported by logical paper &.
Text Symbol: 127 = There are unprinted documents from previous dates that use the same print task code.
Text Symbol: 126 = The posting date is less than the last date we printed a document.
Text Symbol: 125 = You are not authorize to use print task code. ( AUTH OBJECT ZPRNTSK )
Text Symbol: 124 = Print task code & has same Series and Prefix with print task code &
Text Symbol: 123 = The counter of the Series is lower than the lower limit allows
Text Symbol: 122 = Print task code lowlimit should not be zero.
Text Symbol: 121 = The Series is exhausted.
Text Symbol: 120 = The Series is not well formed.
Text Symbol: 119 = Print task code and it reference & have different prefix.
Text Symbol: 118 = Print task code is not manual and its reference & is.
Text Symbol: 117 = The print task code is manual and its reference & is not.
Text Symbol: 116 = Reference print task code & is not active.
Text Symbol: 115 = Reference print task code & not defined.
Text Symbol: 114 = A manual 3rdparty print task code cannot have a reference print task code.
Text Symbol: 113 = The layout set is not specified in J_2GLPP1.
Text Symbol: 112 = The printer device is not specified in J_2GLPP1.
Text Symbol: 111 = Print task code is not active.
Text Symbol: 110 = Logical paper & not defined.
Text Symbol: 109 = Print task code does not exist in table J_2GLPP3.
Text Symbol: 108 = Print task code does not exist in table J_2GLPP1.
Text Symbol: 107 = Incombatible type of logical kind for printing &
Text Symbol: 106 = The logical kind of the print task code is not defined in table J_2GLPLK :
Text Symbol: 105 = The print task code does not exist.
Text Symbol: 905 = The billing is partially processed
Text Symbol: 904 = The GI status is not complete
Text Symbol: 903 = You must reverse the billing first
Text Symbol: 902 = The document does not exist
Text Symbol: 901 = The document is neither a Delivery nor a Billing
Text Symbol: 900 = The document does not exist
Text Symbol: 892 = Print task code to print billing ( TIM ) : ?
Text Symbol: 891 = Print task code to print billing-delivery ( TDA ) : ?
Text Symbol: 890 = Print task code to print delivery ( DA ) : ?
Text Symbol: 80S = Successful
Text Symbol: 809 = -- Cancel Billing



Text Symbol: 808 = -- Checking Billing
Text Symbol: 807 = -- Reject order items
Text Symbol: 806 = -- Determine cancel GI
Text Symbol: 805 = -- Cancel GI
Text Symbol: 804 = -- Checking the print task code
Text Symbol: 803 = -- Determine print task code
Text Symbol: 802 = -- Checking Delivery
Text Symbol: 801 = Billing document &
Text Symbol: 800 = Delivery document &
Text Symbol: 606 = User chose to cancel both quantities and values
Text Symbol: 605 = User chose to cancel only values
Text Symbol: 604 = User was asked to cancel either values only or quantities and values
Text Symbol: 603 = User chose to abort
Text Symbol: 602 = User chose to cancel the billing only
Text Symbol: 601 = The billing has more than 1 delivery. This program can only cancel the Billing ( values only ) and not the GIs
Text Symbol: 600 = -- User choice
Text Symbol: 518 = Cannot determine the billing number. ( Please do not run this program simultaneously )
Text Symbol: 517 = -- Print Billing
Text Symbol: 516 = -- Print Delivery
Text Symbol: 515 = -- Print Billing-Delivery
Text Symbol: 510 = -- Delete delivery &.
Text Symbol: 507 = Billing document & was created.
Text Symbol: 506 = The FI posting was not created for billing &.
Text Symbol: 505 = Cannot cancel billing.


INCLUDES used within this REPORT J_2GLPCANCELSD

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:

J_1GPTC_AUTH_CHECK call function 'J_1GPTC_AUTH_CHECK' exporting i_bukrs = v_bukrs i_prntsk = v_prntsk i_actvt = '04' exceptions no_authorization = 1 others = 2.

ENQUEUE_EJ_2GLPELEGDOC call function 'ENQUEUE_EJ_2GLPELEGDOC' exporting mode_j_2glplegdoc = 'E' mandt = sy-mandt docucateg = v_type sapdoc = v_doc gjahr = v_gjahr gidoc = v_gidoc * X_DOCUCATEG = ' ' * X_SAPDOC = ' ' * X_GJAHR = ' ' * X_GIDOC = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' exceptions foreign_lock = 1 system_failure = 2 others = 3.

DEQUEUE_EJ_2GLPELEGDOC call function 'DEQUEUE_EJ_2GLPELEGDOC' exporting mode_j_2glplegdoc = 'E' mandt = sy-mandt docucateg = v_type sapdoc = v_doc gjahr = v_gjahr gidoc = v_gidoc exceptions others = 1.

LIST_FREE_MEMORY call function 'LIST_FREE_MEMORY' tables listobject = mylist exceptions others = 1.

LIST_FROM_MEMORY call function 'LIST_FROM_MEMORY' tables listobject = mylist exceptions not_found = 1 others = 2.

WRITE_LIST call function 'WRITE_LIST' tables listobject = mylist exceptions empty_list = 1 others = 2.

LIST_FREE_MEMORY call function 'LIST_FREE_MEMORY' tables listobject = mylist exceptions others = 1.

LIST_FROM_MEMORY call function 'LIST_FROM_MEMORY' tables listobject = mylist exceptions not_found = 1 others = 2.

WRITE_LIST call function 'WRITE_LIST' tables listobject = mylist exceptions empty_list = 1 others = 2.

J_2GLPPOPUP_2_BUTTONS call function 'J_2GLPPOPUP_2_BUTTONS' exporting defaultoption = '2' textline1 = h1_popup-textline1 textline2 = h1_popup-textline2 textline3 = h1_popup-textline3 textline4 = h1_popup-textline4 textline5 = h1_popup-textline5 textline6 = h1_popup-textline6 title = h1_popup-title option1_text = h1_popup-option1 option2_text = h1_popup-option2 importing answer = w_answer exceptions others = 1.

J_2GLPPOPUP_2_BUTTONS call function 'J_2GLPPOPUP_2_BUTTONS' exporting defaultoption = '2' textline1 = h1_popup-textline1 textline2 = h1_popup-textline2 textline3 = h1_popup-textline3 textline4 = h1_popup-textline4 textline5 = h1_popup-textline5 textline6 = h1_popup-textline6 title = h1_popup-title option1_text = h1_popup-option1 option2_text = h1_popup-option2 importing answer = w_answer exceptions others = 1.

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = candidate_billing importing output = w_billing exceptions others = 1.

J_2GLPPOPUP_2_BUTTONS call function 'J_2GLPPOPUP_2_BUTTONS' exporting defaultoption = '2' textline1 = h1_popup-textline1 textline2 = h1_popup-textline2 textline3 = h1_popup-textline3 textline4 = h1_popup-textline4 textline5 = h1_popup-textline5 textline6 = h1_popup-textline6 title = h1_popup-title option1_text = h1_popup-option1 option2_text = h1_popup-option2 importing answer = w_answer exceptions others = 1.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-c11 textline2 = ' ' titel = text-c10 * START_COLUMN = 25 * START_ROW = 6 * CANCEL_DISPLAY = 'X' importing answer = con_answer exceptions others = 1.

J_2GLPPOPUP_3_BUTTONS call function 'J_2GLPPOPUP_3_BUTTONS' exporting defaultoption = '3' textline1 = h1_popup-textline1 textline2 = h1_popup-textline2 textline3 = h1_popup-textline3 textline4 = h1_popup-textline4 textline5 = h1_popup-textline5 textline6 = h1_popup-textline6 textline7 = h1_popup-textline7 textline8 = h1_popup-textline8 textline9 = h1_popup-textline9 title = h1_popup-title option1_text = h1_popup-option1 option2_text = h1_popup-option2 option3_text = h1_popup-option3 importing answer = p_answer exceptions others = 1.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-d11 textline2 = ' ' titel = text-d10 importing answer = con_answer exceptions others = 1.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting textline1 = text-d13 textline2 = ' ' titel = text-d12 importing answer = con_answer exceptions others = 1.



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