SAP Reports / Programs

SAPFP50A SAP ABAP dialog Program - Routines for Optical Archiving (Master and Time Data)







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


Text pool values


Title: Routines for Optical Archiving (Master and Time Data)
Text Symbol: TL1 = Facsimile has not been assigned.
Text Symbol: TL2 = Do you want to assign the facsimile?
Text Symbol: TTL = Confirmation prompt


INCLUDES used within this REPORT SAPFP50A

INCLUDE FP50PPSB.


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:

ARCHIV_CONNECTINFO_GET_META CALL FUNCTION 'ARCHIV_CONNECTINFO_GET_META' EXPORTING OBJECT_ID = OBJID AR_OBJECT = '' " alle Dokumentarten SAP_OBJECT = SAPOBJ IMPORTING NUMBER = NUMBER_HITS " Anzahl Treffer TABLES CONNECT_INFO = HIT_TABLE " Trefferliste wird übergeben EXCEPTIONS OTHERS = 1.

ARCHIV_DISPLAY_LIST CALL FUNCTION 'ARCHIV_DISPLAY_LIST' " Anzeigen Trefferliste EXPORTING WINDOW_ID = WINID "#EC * TABLES ARCHIVTREFFER = HIT_TABLE EXCEPTIONS ERROR_ARCHIV = 1 OTHERS = 2 .

ARCHIV_CONNECTINFO_GET_META CALL FUNCTION 'ARCHIV_CONNECTINFO_GET_META' EXPORTING OBJECT_ID = OBJID AR_OBJECT = '' SAP_OBJECT = SAPOBJ IMPORTING NUMBER = NUMBER_HITS TABLES CONNECT_INFO = HIT_TABLE EXCEPTIONS OTHERS = 1.

ARCHIV_DISPLAY_LIST CALL FUNCTION 'ARCHIV_DISPLAY_LIST' " Anzeigen Trefferliste EXPORTING WINDOW_ID = WINID "#EC * TABLES ARCHIVTREFFER = HIT_TABLE EXCEPTIONS ERROR_ARCHIV = 1 OTHERS = 2 .

RP_OA_STORE_DOCUMENT CALL FUNCTION 'RP_OA_STORE_DOCUMENT' EXPORTING COM_CBWFL = PSPAR-CBWFL " 'X' frühes Erfassen " ' ' spätes Erfassen mit Barc COM_OBART = SAPOBJ " Objektart COM_DOKAR = DOKART " Dokumentart COM_OBJKY = OBJ_KEY " Anwendungsschlüssel COM_ENAME = P0001-ENAME IMPORTING COM_OBKEY = OBJ_KEY " Rückgabe Anwendungsschlüssel * TABLES COM_WT = WT "XPSK003896 EXCEPTIONS NO_ASSIGNMENT = 1 DOKART_DOES_NOT_EXIST = 2 WRONG_INFOTYPE = 3 WRONG_SUBTYPE = 4 WRONG_OBJPS = 5 NO_BARCODE = 6.

ARCHIV_BARCODE_GLOBAL CALL FUNCTION 'ARCHIV_BARCODE_GLOBAL' EXPORTING SAP_OBJECT = SAPOBJ AR_OBJECT = DOKART OBJECT_ID = OBJID NO_DOC_CHANGE = 'X' EXCEPTIONS NO_BARCODE = 1 OTHERS = 2.

WF_COMMIT CALL FUNCTION 'WF_COMMIT' " Abschließen des Workflows EXPORTING IN_UPDATE_TASK = SPACE TABLES ASSIGNMENTS = WF_ASSIGNMENTS EXCEPTIONS ASSIGNMENT_ERROR = 1 DB_ERROR = 2.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING FIELDNAME = FNAM TABNAME = TNAM IMPORTING " Rückgabe ausgew. Dok.art

ARCHIV_CONNECTINFO_GET_META CALL FUNCTION 'ARCHIV_CONNECTINFO_GET_META' EXPORTING AR_OBJECT = '' " alle Dokumentarten SAP_OBJECT = SAPOBJ OBJECT_ID = OBJID IMPORTING NUMBER = NUMBER_HITS TABLES CONNECT_INFO = HIT_TABLE EXCEPTIONS OTHERS = 1.

ARCHIV_DELETE_META CALL FUNCTION 'ARCHIV_DELETE_META' " Archivobjekt löschen EXPORTING AR_OBJECT = HIT_TABLE-AR_OBJECT SAP_OBJECT = HIT_TABLE-SAP_OBJECT OBJECT_ID = HIT_TABLE-OBJECT_ID DELETE_FLAG = 2 " Verknüpfungssatz und " Archivobjekt löschen EXCEPTIONS OTHERS = 1.

ARCHIVWINDOW_CLOSE CALL FUNCTION 'ARCHIVWINDOW_CLOSE' EXPORTING * SIGN = ' ' WINDOW_ID = list_windows-window_id ARCHIVID = list_windows-archiv_id DOC_TYPE = list_windows-doc_type * EXCEPTIONS * ERROR_ARCHIV = 1 * ERROR_KERNEL = 2 * OTHERS = 3 .

RP_OA_GET_PERNR CALL FUNCTION 'RP_OA_GET_PERNR' " Personal-/Bewerbernummer " vom Benutzer abfragen EXPORTING OPT_TCLAS = MCR_TCLAS IMPORTING OPT_PERNR = MCR_PERNR.

RP_OA_CONFIRM CALL FUNCTION 'RP_OA_CONFIRM' " Baustein zur Überprüfung und EXPORTING " Bestätigung OPT_DOKAR = DOKART OPT_TCLAS = MCO_TCLAS OPT_OBJKY = MCO_PSKOA IMPORTING OPT_CONFIRMATION = CONFIRMATION " Bestätigung gesetzt? EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING TITEL = POPUP_TITLE DIAGNOSETEXT1 = TEXTLINE1 DIAGNOSETEXT2 = TEXTLINE2 DIAGNOSETEXT3 = SPACE TEXTLINE1 = SPACE TEXTLINE2 = SPACE IMPORTING ANSWER = ANTWORT.

HR_CHECK_AUTHORITY_INFTY CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY' EXPORTING * TCLAS = 'A' "XYVN0354205 TCLAS = PSPAR-TCLAS "XYVN0354205 PERNR = OBJ_KEY-PERNR INFTY = OBJ_KEY-INFTY SUBTY = OBJ_KEY-SUBTY BEGDA = BEGDA ENDDA = ENDDA LEVEL = 'R' * TABLES * I0001 = EXCEPTIONS NO_AUTHORIZATION = 1 INTERNAL_ERROR = 2 OTHERS = 3.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' "N1643085 EXPORTING tcode = tcode EXCEPTIONS ok = 0 not_ok = 1 OTHERS = 2.

HR_CHECK_AUTHORITY_TCODE CALL FUNCTION 'HR_CHECK_AUTHORITY_TCODE' EXPORTING TCODE = TCODE LEVEL = 'R' MIN_CHECKS = 'X' EXCEPTIONS NO_AUTHORIZATION = 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 SAPFP50A or its description.