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
Below is a list of transaction codes which are relevant to this SAP report
J2GLPCANCSD - Cancelation of SD
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.
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'.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
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.
J_2GLPCANCELSD - Cancellation of Delivery or Billing for Greece J_2GLPCANCELSD - Cancellation of Delivery or Billing for Greece J_2GLPCANCELGI - Reverse goods movement J_2GLPCANCELGI - Reverse goods movement J_2GLPBLOUT - Update J_2GLPLEGDOC with billing documents that have to be print J_2GLPBLOUT - Update J_2GLPLEGDOC with billing documents that have to be print