SAP Reports / Programs | Personnel Management | Personnel Administration | Portugal(PA-PA-PT) SAP PA

RPUCPPP0 SAP ABAP Report - Delimit entries of infotype 0337 by using CPP codes







RPUCPPP0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program delimits and updates records in infotype Classification of Occupations (0337) by converting the codes of the National Classification of Occupations (CNP) into codes of the Portuguese Classification of Occupations (CPP)...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 RPUCPPP0 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

PC00_M19_RPUCPPP0 - Delimit entries of IT 0337 with CPP


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 RPUCPPP0. "Basic submit
SUBMIT RPUCPPP0 AND RETURN. "Return to original report after report execution complete
SUBMIT RPUCPPP0 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: P_SHSC = Display screen infotype 0337
Selection Text: P_FILE = File
Selection Text: P_DATE = Start date new entry 0337
Title: Delimit entries of infotype 0337 by using CPP codes
Text Symbol: S01 = Additional information
Text Symbol: M13 = The value of the field CNP/CPP is a valid CPP code; no maintenance necessary
Text Symbol: M12 = The field CNP/CPP is empty in the infotype 0337
Text Symbol: M11 = It was not possible to determine the CPP code (CNP code is &1)
Text Symbol: M10 = Infotype 0337 was not maintained (CNP code was not converted to CPP)
Text Symbol: M09 = Infotype 0337 maintained successfully (CNP code converted to CPP)
Text Symbol: M08 = The CPP code is empty
Text Symbol: M07 = The CNP code &1 contains &2 associated CPP codes
Text Symbol: M06 = The infotype 0337 will be maintained. This operation can cause retroactive accounting of the employee. Confirm the operation?
Text Symbol: M05 = The code & is not classified as CPP in table T5PP3
Text Symbol: M04 = File read successfully
Text Symbol: M03 = Error while read.file
Text Symbol: M02 = Error while saving infotype 0337; check message below
Text Symbol: M01 = Process employee no.
Text Symbol: L10 = CNP/CPP codes
Text Symbol: L09 = No
Text Symbol: L08 = Yes
Text Symbol: L07 = Attention
Text Symbol: L06 = New validity
Text Symbol: L05 = CPP
Text Symbol: L04 = CNP
Text Symbol: L03 = Status
Text Symbol: L02 = Entries infotype 0337
Text Symbol: L01 = Infotype 0337
Text Symbol: B01 = Save


INCLUDES used within this REPORT RPUCPPP0

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:

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = gv_progress_msg i_output_immediately = abap_true.

HR_99S_READ_INFOTYPE CALL FUNCTION 'HR_99S_READ_INFOTYPE' EXPORTING im_pernr = ls_log_entry-pernr im_begda = ls_log_entry-begda im_endda = ls_log_entry-endda im_infty = '0337' IMPORTING ex_wa_infty = ls_0337.

HR_EMPLOYEE_ENQUEUE CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE' EXPORTING number = ls_0337-pernr.

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' "#EC * EXPORTING infty = '0337' number = ls_0337-pernr subtype = ls_0337-subty objectid = ls_0337-objps lockindicator = ls_0337-sprps validityend = ls_0337-endda validitybegin = ls_0337-begda recordnumber = ls_0337-seqnr record = ls_0337 operation = lv_actio dialog_mode = lv_dialog_mode IMPORTING return = ls_return1 EXCEPTIONS OTHERS = 1.

HR_EMPLOYEE_DEQUEUE CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE' EXPORTING number = ls_0337-pernr.

HR_PAL_STATS_STANDARD_MSG_ADD CALL FUNCTION 'HR_PAL_STATS_STANDARD_MSG_ADD' EXPORTING i_selected_ee = gs_statics-selected i_successful_ee = gs_statics-processed i_erroneous_ee = gs_statics-rejected EXCEPTIONS OTHERS = 0.

HR_99S_UPLOAD CALL FUNCTION 'HR_99S_UPLOAD' EXPORTING p_initial_directory = '' p_filename = lv_file_name p_filetype = 'ASC' p_fsdialog = abap_false TABLES data_tab = ct_file_content[] EXCEPTIONS upload_error = 1 OTHERS = 2.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' "#EC * EXPORTING mask = ',*.*,*.*.'

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-l07 "'Atenção'(l07) "Popup title text_question = text-m06 "Message text_button_1 = text-l08 "'Sim'(l08) "Yes text_button_2 = text-l09 "'Não'(l09) "No display_cancel_button = 'X' "Cancel IMPORTING answer = lv_answer 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 RPUCPPP0 or its description.