J_2GLPUPDATELEGALDOCS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program updates all necessary SAP documents according to table J_2GLPLEGDOC...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_2GLPUPDATELEGALDOCS into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
J2GLPUPDTSAPDOCS - Update SAP documents
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_BUDAT = Posting date
Selection Text: S_DOCCAT = Document category
Selection Text: S_SAPDOC = SAP document
Title: Update SAP documents according to J_2GLPLEGDOC
Text Symbol: 101 = The FI document does not exist
Text Symbol: 113 = Cannot lock entry in J_2GLPLEGDOC ( Legal documents ) -- Foreign lock
Text Symbol: 114 = Cannot lock entry in J_2GLPLEGDOC ( Legal documents ) -- System failure
Text Symbol: 115 = More than 1 FI documents exist
Text Symbol: 116 = The FI(SD) document has not been updated. ( ERROR )
Text Symbol: 117 = The FI(MM) documents have not been updated. ( ERROR )
Text Symbol: 118 = The FI document has not been updated. ( ERROR )
Text Symbol: 121 = All updating done.
Text Symbol: 122 = Cannot commit work.
Text Symbol: 128 = Cannot find MM document.
Text Symbol: 129 = The MM document has more than 1 FI documents.
Text Symbol: 202 = Document :
Text Symbol: 203 = Document will not be processed
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 = docs-bukrs i_prntsk = docs-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_docucateg sapdoc = v_sapdoc 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.
ENQUEUE_EJ_2GLPEDOCSFI call function 'ENQUEUE_EJ_2GLPEDOCSFI' exporting mode_j_2glpdocsfi = 'E' mandt = sy-mandt bukrs = v_bukrs sapdoc = v_sapdoc gjahr = v_gjahr * X_BUKRS = ' ' * X_SAPDOC = ' ' * X_GJAHR = ' ' * _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_docucateg sapdoc = v_sapdoc gjahr = v_gjahr gidoc = v_gidoc * X_DOCUCATEG = ' ' * X_SAPDOC = ' ' * X_GJAHR = ' ' * X_GIDOC = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' exceptions others = 1.
DEQUEUE_EJ_2GLPEDOCSFI call function 'DEQUEUE_EJ_2GLPEDOCSFI' exporting mode_j_2glpdocsfi = 'E' mandt = sy-mandt bukrs = v_bukrs sapdoc = v_sapdoc gjahr = v_gjahr * X_BUKRS = ' ' * X_SAPDOC = ' ' * X_GJAHR = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' 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.