SAP ABAP Reports and Programs

Share |

RPUWSH00 SAP Report - Revaluation of the Planned Working Time Infotype (0007)

RPUWSH00 is a standard ABAP report available within your SAP system (depending on your version and release level). Below is the standard documentation available for this report and a few details of other objects it interacts with such as tables, function modules, includes etc. If you would like to see the full code listing simply enter RPUWSH00 into the relevant SAP transaction such as SE38 or SE80

Contribute (Add Comments)
Below is the basic information available for SAP report RPUWSH00 and is provided for your convenience to access as and when required. Although the 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 RPUWSH00 or its description.

SAP Documentation for program RPUWSH00

Transaction Code:

N/A

DESCRIPTION
The report to revaluate the Planned Working Time infotype (RPUWSH00) determines which Planned Working Time records (infotype 0007) feature a work schedule rule, employment percentage and working hours fields which do not correspond to the definition of the work schedule rule, and allows you to compare the data and adjust it if necessary. In order to compare and adjust them, infotype records are copied (and delimited). The selection screen allows you to select the data you want to process: the generated data is either imported directly or stored in a batch input session. Since data from the Planned Working Time infotype can be processed in time evaluation and in payroll, the report should be started if the definition of the work schedule rule changes in order to guarantee data consistency.

OUTPUT
A list is displayed showing the current infotype records and the records to be generated. If the Test run field is flagged when the report is started, the data to be generated is only displayed. The database is not updated, nor is a batch input session created.
The errors which have arisen can be displayed by clicking the 'Error list' button.

EXAMPLE
In the customizing step "Set work schedule rules and work schedules", the weekly working time for the FLEX work schedule is changed from 36.50 hours to 38.00 hours to come into effect as of January 1, 1997. (The daily and annual working times change accordingly). This results in an inconsistency between the hours fields in the Planned Working Time infotype for employees with this work schedule rule, and the definition of the work schedule rule. You can start the report for a time interval which encompasses January 1, 1997, in order to obtain a comparison of the data.

Includes used within report:

No INCLUDES are used within this report code!


Tables used within report and the associated select statement:

T582A SELECT SINGLE vort FROM t582a INTO t582a-vort "XAYP30K124720 WHERE infty EQ '0007'. "XAYP30K124720

T508A SELECT * FROM t508a INTO TABLE i508a ORDER BY PRIMARY KEY.

&1 select single * from &1 where &3 = &4 and &5 = &6.


Function Modules used within report and the associated call statement:

HR_MAPNAME_VERIFY CALL FUNCTION 'HR_MAPNAME_VERIFY' EXPORTING mapname = map_name reportname = rep_name IMPORTING mapname = map_name.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'PS0001' langu = sy-langu all_types = 'X' group_names = 'X' TABLES dfies_tab = ps0001_nametab EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

NAMETAB_GET * call function 'NAMETAB_GET' * exporting * langu = sy-langu * tabname = 'PS0001' * tables * nametab = ps0001_nametab * exceptions * internal_error = 1 ** table_has_no_fields = 2 ** table_not_activ = 3 ** no_texts_found = 4 * others = 5.

RP_OPTIONS_INTO_STRING CALL FUNCTION 'RP_OPTIONS_INTO_STRING' EXPORTING max_chosen_number = max_sort delimiter_sign = delimiter_sign text_title = text-org text_left = text-org text_right = text-cho status = 'ORDER' TABLES text_symbol_relation_tab = sel_tab CHANGING string_value = sel_org EXCEPTIONS OTHERS = 03.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_display_more text = text-org info = text-cho IMPORTING RESULT = text_org.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_enter_more text = text-org info = text-ch1 IMPORTING RESULT = text_org.

HR_MAPNAME_VERIFY CALL FUNCTION 'HR_MAPNAME_VERIFY' EXPORTING mapname = map_name reportname = rep_name IMPORTING mapname = map_name.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = sy-mandt group = map_name user = sy-uname.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = 'PA30' TABLES dynprotab = bdcdata.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING linesize = 80 TABLES error = error_tab.

HR_DISPLAY_BASIC_LIST CALL FUNCTION 'HR_DISPLAY_BASIC_LIST' EXPORTING basic_list_title = text-003 * file_name = sy-repid "AHRK029046 file_name = file_name "AHRK029046 head_line1 = text-004 foot_note1 = per-text foot_note2 = rej-text foot_note3 = gen-text lay_out = 0 dyn_pushbutton_text2 = text_new dyn_pushbutton_text3 = text_bat current_report = rep_name "XAYALRK047300 no_alv_grid = 'X' "XAYAHRK046476 IMPORTING return_code = retcd TABLES data_tab = fieldname_tab = fieldnames error_tab = error_tab.

HR_DISPLAY_BASIC_LIST CALL FUNCTION 'HR_DISPLAY_BASIC_LIST' EXPORTING basic_list_title = text-003 * file_name = sy-repid "AHRK029046 file_name = file_name "AHRK029046 head_line1 = text-005 foot_note1 = per-text foot_note2 = rej-text foot_note3 = gen-text lay_out = 0 dyn_pushbutton_text1 = text_old dyn_pushbutton_text3 = text_bat current_report = rep_name "XAYALRK047300 no_alv_grid = 'X' "XAYAHRK046476 IMPORTING return_code = retcd TABLES data_tab = fieldname_tab = fieldnames error_tab = error_tab.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = dynpfields EXCEPTIONS OTHERS = 1.

HELP_VALUES_SHOW * CALL FUNCTION 'HELP_VALUES_SHOW' * EXPORTING * FIELDINFO = help_info * SHRINK_FLAG = 'X' * NUMBER_OF_F4_CALL = number_of_call * IMPORTING * SELECT_VALUE = help_info-fldvalue * NEXT_CALL = next_call * TABLES * DYNPSELECT = dynpselect * DYNPVALUETAB = dynpvaluetab * EXCEPTIONS * OTHERS = 4.

HELP_START CALL FUNCTION 'HELP_START' EXPORTING help_infos = help_info * PROPERTY_BAG = IMPORTING * SELECTION = select_value = help_info-fldvalue * RSMDY_RET = TABLES dynpselect = dynpselect dynpvaluetab = dynpvaluetab.


Text pool values


Selection Text: TEST = Test run without generation
Selection Text: S_ZEITY = ES grouping
Selection Text: S_SCHKZ = Work schedule rule
Selection Text: S_MOSID = PS grouping
Selection Text: S_MOFID = Holiday calendar
Selection Text: MAP_NAME = Name of generated BI session
Title: Revaluation of the Planned Working Time Infotype (0007)
Text Symbol: SOR = Additional output fields
Text Symbol: SEL = Selections for work schedule rule
Text Symbol: ORG = Organizational units
Text Symbol: OLD = Current data
Text Symbol: NEW = New data
Text Symbol: GT3 = Display direct processing and only errors
Text Symbol: GT2 = Do not display direct processing and screens
Text Symbol: GT1 = Display direct processing and screens
Text Symbol: GEN = Generation type/parameter
Text Symbol: FRA = Other parameters
Text Symbol: FN3 = Number of infotype recs to be inserted : &
Text Symbol: FN2 = Number of rejected personnel numbers : &
Text Symbol: FN1 = Number of selected personnel numbers : &
Text Symbol: ER2 = Error in function module 'RP OPTIONS TO STRING'
Text Symbol: ER1 = Problems with DDIC structure PS0001
Text Symbol: DIF = Name of batch input session has changed :
Text Symbol: CHO = Selected
Text Symbol: CH1 = Not selected
Text Symbol: BI2 = Batch input session
Text Symbol: BI1 = No batch input session
Text Symbol: BAT = Start batch input
Text Symbol: ACT = (Active)
Text Symbol: 005 = Records to be inserted
Text Symbol: 004 = Original data
Text Symbol: 003 = Update planned working time





comments powered by Disqus

Terms of Service     Contact Us     Privacy Policy     Useful SAP related sites