SAP Reports / Programs

N1PDPAZG SAP ABAP Report - Generated SAPscript Control: 201 0001 N6AZG Vs. 01







N1PDPAZG 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 N1PDPAZG 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 N1PDPAZG. "Basic submit
SUBMIT N1PDPAZG AND RETURN. "Return to original report after report execution complete
SUBMIT N1PDPAZG VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Generated SAPscript Control: 201 0001 N6AZG Vs. 01
Text Symbol: 001 = Disallowed Value in the Database


INCLUDES used within this REPORT N1PDPAZG

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:

ISH_N2_MEDDOC_CHECK_AUTHORITY CALL FUNCTION 'ISH_N2_MEDDOC_CHECK_AUTHORITY' EXPORTING im_apicontrol = IM_APICONTROL im_document_key = in_doc_key IMPORTING EX_WORST_MSGTY = EX_WORST_MSGTY tables EXT_RETURN = EXT_RETURN .

ISH_N2_MEDDOC_GETADMINDATA CALL FUNCTION 'ISH_N2_MEDDOC_GETADMINDATA' EXPORTING im_document_key = in_doc_key IMPORTING ex_docdata = l_docdata TABLES ext_ndoc = in_ndoc.

ISH_READ_NPAT CALL FUNCTION 'ISH_READ_NPAT' EXPORTING ss_einri = l_docdata-einri ss_patnr = l_docdata-patnr IMPORTING ss_npat = in_npat EXCEPTIONS OTHERS = 0.

RFC_SYSTEM_INFO * CALL FUNCTION 'RFC_SYSTEM_INFO' destination 'SAPGUI' * IMPORTING * RFCSI_EXPORT = l_system_info.

ISH_FORM_TH_USER_INFO CALL FUNCTION 'ISH_FORM_TH_USER_INFO' "Gz 21082003 R.472

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING dialog = ' ' form = l_form_name options = druck_options IMPORTING language = l_langu EXCEPTIONS OTHERS = 1.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' TABLES otfdata = lt_otfdata EXCEPTIONS unopened = 1 OTHERS = 2.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' * importing * result = * tables * OTFDATA = EXCEPTIONS unopened = 1 OTHERS = 2.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING MODE = 'PARAMS' NO_DIALOG = 'X' IMPORTING OUT_PARAMETERS = sys_params.

GET_TEXT_PRINT_PARAMETERS CALL FUNCTION 'GET_TEXT_PRINT_PARAMETERS' EXPORTING OPTIONS = DRUCK_OPTIONS IMPORTING NEWOPTIONS = DRUCK_OPTIONS EXCEPTIONS CANCELED = 1 OTHERS = 2.

ISH_N2_ARCHIVE_INFO_GET CALL FUNCTION 'ISH_N2_ARCHIVE_INFO_GET' EXPORTING i_ndoc = in_ndoc *********** I_COMMIT_FLAG = ' ' i_report = l_report i_form = l_form_name *********** I_TESTRUN = 'X' IMPORTING e_arcindex = l_arc_index e_arcparams = l_arc_params CHANGING c_print_options = druck_options "ni 10.11.2005

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING archive_index = l_arc_index archive_params = l_arc_params device = 'PRINTER' dialog = ' ' "ni 10.11.2005

ISH_N2_SET_GLOBAL_DATA CALL FUNCTION 'ISH_N2_SET_GLOBAL_DATA' EXPORTING SS_NPAT = IN_NPAT SS_N2DT = IN_N2DT SS_N2DTT = IN_N2DTT TABLES SS_NDOC = IN_NDOC.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING * ARCHIVE_ID = C_CHAR_UNKNOWN * ARCHIVE_INFO = C_CHAR_UNKNOWN * ARCHIVE_MODE = C_CHAR_UNKNOWN * ARCHIVE_TEXT = C_CHAR_UNKNOWN * AR_OBJECT = C_CHAR_UNKNOWN * ARCHIVE_REPORT = C_CHAR_UNKNOWN * AUTHORITY = C_CHAR_UNKNOWN * COPIES = C_NUM3_UNKNOWN * COVER_PAGE = C_CHAR_UNKNOWN * DATA_SET = C_CHAR_UNKNOWN * DEPARTMENT = C_CHAR_UNKNOWN * DESTINATION = C_CHAR_UNKNOWN * EXPIRATION = C_NUM1_UNKNOWN * IMMEDIATELY = C_CHAR_UNKNOWN * IN_ARCHIVE_PARAMETERS = ' ' IN_PARAMETERS = print_params * LAYOUT = C_CHAR_UNKNOWN * LINE_COUNT = C_INT_UNKNOWN * LINE_SIZE = C_INT_UNKNOWN * LIST_NAME = C_CHAR_UNKNOWN * LIST_TEXT = C_CHAR_UNKNOWN MODE = 'PARAMS' * NEW_LIST_ID = C_CHAR_UNKNOWN * NO_DIALOG = C_FALSE * RECEIVER = C_CHAR_UNKNOWN * RELEASE = C_CHAR_UNKNOWN * REPORT = C_CHAR_UNKNOWN * SAP_COVER_PAGE = C_CHAR_UNKNOWN * HOST_COVER_PAGE = C_CHAR_UNKNOWN * PRIORITY = C_NUM1_UNKNOWN * SAP_OBJECT = C_CHAR_UNKNOWN * TYPE = C_CHAR_UNKNOWN * USER = SY-UNAME IMPORTING * OUT_ARCHIVE_PARAMETERS = OUT_PARAMETERS = print_params VALID = print_params_valid EXCEPTIONS ARCHIVE_INFO_NOT_FOUND = 1 INVALID_PRINT_PARAMS = 2 INVALID_ARCHIVE_PARAMS = 3 OTHERS = 4.

GET_TEXT_PRINT_PARAMETERS CALL FUNCTION 'GET_TEXT_PRINT_PARAMETERS' EXPORTING OPTIONS = L_DRUCK_OPTIONS * FORMAT_ITF = ' ' IMPORTING NEWOPTIONS = DRUCK_OPTIONS PRINT_FORMAT = DRUCK_PRINT_FORMAT EXCEPTIONS CANCELED = 1 OTHERS = 2.

OPEN_FORM CALL FUNCTION 'OPEN_FORM' EXPORTING * APPLICATION = 'TX' * ARCHIVE_INDEX = ' ' * ARCHIVE_PARAMS = ' ' * DEVICE = 'PRINTER' DIALOG = ' ' FORM = S_FORMULAR * LANGUAGE = SY-LANGU OPTIONS = DRUCK_OPTIONS * IMPORTING * language = * new_archive_params = * result = EXCEPTIONS CANCELED = 1 DEVICE = 2 FORM = 3 OPTIONS = 4 UNCLOSED = 5 OTHERS = 6.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = S_TXTELEMENT * FUNCTION = 'SET' * TYPE = 'BODY' WINDOW = S_WINDOW * IMPORTING * PENDING_LINES = EXCEPTIONS ELEMENT = 1 FUNCTION = 2 TYPE = 3 UNOPENED = 4 UNSTARTED = 5 WINDOW = 6 OTHERS = 7.

ISH_N2_TEXT_LONG_TO_BUFFER CALL FUNCTION 'ISH_N2_TEXT_LONG_TO_BUFFER' EXPORTING SS_TLONG = TEXT_WORK * SS_APPEND = ' ' * IMPORTING * SS_TTAB_HIGH = TABLES SS_TTAB = L_TEXTBUFFER EXCEPTIONS OTHERS = 1.

WRITE_FORM





CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = SS_TXTELEMENT * FUNCTION = 'SET' * TYPE = 'BODY' WINDOW = SS_WINDOW * IMPORTING * PENDING_LINES = EXCEPTIONS ELEMENT = 1 FUNCTION = 2 TYPE = 3 UNOPENED = 4 UNSTARTED = 5 WINDOW = 6 OTHERS = 7.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = SS_TXTELEMENT * FUNCTION = 'SET' * TYPE = 'BODY' WINDOW = SS_WINDOW * IMPORTING * PENDING_LINES = EXCEPTIONS ELEMENT = 1 FUNCTION = 2 TYPE = 3 UNOPENED = 4 UNSTARTED = 5 WINDOW = 6 OTHERS = 7.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = LL_TXTELEMENT * FUNCTION = 'SET' * TYPE = 'BODY' WINDOW = SS_WINDOW * IMPORTING * PENDING_LINES = EXCEPTIONS ELEMENT = 1 FUNCTION = 2 TYPE = 3 UNOPENED = 4 UNSTARTED = 5 WINDOW = 6 OTHERS = 7.

ISH_N2_PMD_SSCRIPT_PRINT CALL FUNCTION 'ISH_N2_PMD_SSCRIPT_PRINT ' EXPORTING * P_WORKMODE = 'PRINT' p_doc_key = in_doc_key * IMPORTING * P_RESULT = changing p_refkey = p_refkey.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' * importing * result = * tables * OTFDATA = EXCEPTIONS UNOPENED = 1 OTHERS = 2.



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