SAP Reports / Programs

OAPROTGEN SAP ABAP Report - Generate protocol settings







OAPROTGEN 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 OAPROTGEN into the relevant SAP transactions such as SE38 or SE80


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 OAPROTGEN. "Basic submit
SUBMIT OAPROTGEN AND RETURN. "Return to original report after report execution complete
SUBMIT OAPROTGEN 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: VERSI = Version number:
Selection Text: START = Execute application:
Selection Text: STANDARD = Generate standard protocol:
Selection Text: SINGLE = Generate single entries:
Selection Text: SHOW = Display:
Selection Text: PROTO = Protocol:
Selection Text: OS_TYPE = Operating system:
Selection Text: DOC_TYPE = Document class:
Selection Text: APPLI = Application:
Title: Generate protocol settings
Text Symbol: 030 = Entries for document classes DOC, PDF, TIF, XLS and HTM will be
Text Symbol: 031 = Create entries in
Text Symbol: 032 = protocol?
Text Symbol: 033 = This starts the registered application for
Text Symbol: 034 = the relevant document class.
Text Symbol: 036 = Previously defined settings are not taken into account
Text Symbol: 037 = / operating system
Text Symbol: 038 = already has
Text Symbol: 039 = now contains the standard settings.
Text Symbol: 040 = created.
Text Symbol: 041 = Application
Text Symbol: 042 = Doc. Class
Text Symbol: 043 = OperatingSyst
Text Symbol: 044 = Display
Text Symbol: 045 = Execute application
Text Symbol: 046 = via HTTP
Text Symbol: 029 = Generate standard protocol
Text Symbol: 001 = Function
Text Symbol: 003 = Select an application
Text Symbol: 004 = Select document class
Text Symbol: 005 = Select platform
Text Symbol: 006 = Choose
Text Symbol: 007 = via execute
Text Symbol: 008 = via OLE
Text Symbol: 009 = Local document
Text Symbol: 010 = Doc. from archive
Text Symbol: 011 = via Applescript
Text Symbol: 012 = via Opendoc





Text Symbol: 013 = Information
Text Symbol: 014 = Document class
Text Symbol: 015 = one entry in the protocol
Text Symbol: 016 = Overwrite entry?
Text Symbol: 017 = for the application
Text Symbol: 018 = one entry in OLE Customizing
Text Symbol: 019 = File must be retrieved via R/3 for this application.
Text Symbol: 020 = Confirm new entry?
Text Symbol: 021 = Protocol
Text Symbol: 022 = Version
Text Symbol: 023 = now contains the selected setting.
Text Symbol: 024 = Generate additional entries?
Text Symbol: 025 = Selected application is not recognized by R/3
Text Symbol: 026 = already has
Text Symbol: 027 = Copy entry?


INCLUDES used within this REPORT OAPROTGEN

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:

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING P_STATUS = 'PGEN' P_PROGRAM = 'OAPROTGEN' TABLES P_EXCLUDE = T_EXCLUDE EXCEPTIONS OTHERS = 0.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING DYNAME = D020S-PROG DYNUMB = D020S-DNUM TABLES DYNPFIELDS = T_DYNPREAD EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 UNDEFIND_ERROR = 7.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING DYNAME = D020S-PROG DYNUMB = D020S-DNUM TABLES DYNPFIELDS = T_DYNPREAD EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 UNDEFIND_ERROR = 7.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING DYNAME = D020S-PROG DYNUMB = D020S-DNUM TABLES DYNPFIELDS = T_DYNPREAD EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 UNDEFIND_ERROR = 7.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING DYNAME = D020S-PROG DYNUMB = D020S-DNUM TABLES DYNPFIELDS = T_DYNPREAD EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 UNDEFIND_ERROR = 7.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING DYNAME = D020S-PROG DYNUMB = D020S-DNUM TABLES DYNPFIELDS = T_DYNPREAD EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 UNDEFIND_ERROR = 7.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING SELECTFIELD = FIELDNAME TITEL = TITLE REDUCED_STATUS_ONLY = 'X' IMPORTING IND = INDEX TABLES FIELDS = FIELDS FULL_TABLE = HELP_APPLICATIO HEADING_TABLE = F4TYP_HEAD_APPLI EXCEPTIONS FULL_TABLE_EMPTY = 1 NO_TABLESTRUCTURE_GIVEN = 2 NO_TABLEFIELDS_IN_DICTIONARY = 3 MORE_THEN_ONE_SELECTFIELD = 4 NO_SELECTFIELD = 5 OTHERS = 6.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING SELECTFIELD = FIELDNAME TITEL = TITLE REDUCED_STATUS_ONLY = 'X' IMPORTING IND = INDEX TABLES FIELDS = FIELDS FULL_TABLE = HELP_DOC_TYPE HEADING_TABLE = F4TYP_HEAD_DOC EXCEPTIONS FULL_TABLE_EMPTY = 1 NO_TABLESTRUCTURE_GIVEN = 2 NO_TABLEFIELDS_IN_DICTIONARY = 3 MORE_THEN_ONE_SELECTFIELD = 4 NO_SELECTFIELD = 5 OTHERS = 6.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING SELECTFIELD = FIELDNAME TITEL = TITLE REDUCED_STATUS_ONLY = 'X' IMPORTING IND = INDEX TABLES FIELDS = FIELDS FULL_TABLE = HELP_OS_TYPE HEADING_TABLE = F4TYP_HEAD_OS EXCEPTIONS FULL_TABLE_EMPTY = 1 NO_TABLESTRUCTURE_GIVEN = 2 NO_TABLEFIELDS_IN_DICTIONARY = 3 MORE_THEN_ONE_SELECTFIELD = 4 NO_SELECTFIELD = 5 OTHERS = 6.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING SELECTFIELD = FIELDNAME TITEL = TITLE REDUCED_STATUS_ONLY = 'X' IMPORTING IND = INDEX TABLES FIELDS = FIELDS FULL_TABLE = HELP_SHOW_TYPE HEADING_TABLE = F4TYP_HEAD_SHOW EXCEPTIONS FULL_TABLE_EMPTY = 1 NO_TABLESTRUCTURE_GIVEN = 2 NO_TABLEFIELDS_IN_DICTIONARY = 3 MORE_THEN_ONE_SELECTFIELD = 4 NO_SELECTFIELD = 5 OTHERS = 6.

HELP_VALUES_GET_NO_DD_NAME





CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING SELECTFIELD = FIELDNAME TITEL = TITLE REDUCED_STATUS_ONLY = 'X' IMPORTING IND = INDEX TABLES FIELDS = FIELDS FULL_TABLE = HELP_START HEADING_TABLE = F4TYP_HEAD_START EXCEPTIONS FULL_TABLE_EMPTY = 1 NO_TABLESTRUCTURE_GIVEN = 2 NO_TABLEFIELDS_IN_DICTIONARY = 3 MORE_THEN_ONE_SELECTFIELD = 4 NO_SELECTFIELD = 5 OTHERS = 6.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING TEXTLINE1 = TEXT-019 TEXTLINE2 = TEXT-020 TITEL = TEXT-013 CANCEL_DISPLAY = 'X' IMPORTING ANSWER = ANSWER EXCEPTIONS OTHERS = 0.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING TEXTLINE1 = TEXT-025 TEXTLINE2 = TEXT-020 TITEL = TEXT-013 CANCEL_DISPLAY = 'X' IMPORTING ANSWER = ANSWER EXCEPTIONS OTHERS = 0.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING DYNAME = D020S-PROG DYNUMB = D020S-DNUM TABLES DYNPFIELDS = T_DYNPREAD EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 UNDEFIND_ERROR = 7.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING DEFAULTOPTION = 'Y' DIAGNOSETEXT1 = DTEXT1 DIAGNOSETEXT2 = DTEXT2 DIAGNOSETEXT3 = DTEXT3 TEXTLINE1 = TEXTL1 TEXTLINE2 = TEXTL2 TITEL = TITEL CANCEL_DISPLAY = CANCEL IMPORTING ANSWER = ANSWER EXCEPTIONS OTHERS = 0.



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