SAP Reports / Programs | Cross-Application Components(CA) SAP CA

J_2GLPUPDATELEGALDOCS SAP ABAP Report - Update SAP documents according to J_2GLPLEGDOC







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


Transaction Code(s):

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

J2GLPUPDTSAPDOCS - Update SAP documents


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_2GLPUPDATELEGALDOCS. "Basic submit
SUBMIT J_2GLPUPDATELEGALDOCS AND RETURN. "Return to original report after report execution complete
SUBMIT J_2GLPUPDATELEGALDOCS 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_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


INCLUDES used within this REPORT J_2GLPUPDATELEGALDOCS

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 = 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.



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