Ansicht
Dokumentation

BAPI_PTMGREXTWOSCHED_INSWCOST - Insert Operative Planned Working Time (With Cost Assignment)

BAPI_PTMGREXTWOSCHED_INSWCOST - Insert Operative Planned Working Time (With Cost Assignment)

TXBHW - Original Tax Base Amount in Local Currency   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to transfer data on an employee's operative planned working time from external systems to the SAP System.

You can use WORKSCHEDULE_GENERAL_INFO to enter the general data on a planned working time in the SAP System's interface tables. You can use parameter WORKSCHEDULE_INTERVALS to supply the SAP System with explicit planned working time intervals and breaks.

The following fields represent a unique document key for an operative planned working time:

  • EXTSYSTEM
  • EXTAPPLICATION
  • EXTDOCUMENTNO

If you have entered several clock-time intervals as operative planned working time for an employee on one day, the system uses the document key (EXTSYSTEM, EXTAPPLICATION, EXTDOCUMENTNO) to establish the link between the data.

You can specify an operative planned working time for one day and a personnel number by specifying a line in parameter WORKSCHEDULE_GENERAL_INFO and by entering one or more lines in parameter WORKSCHEDULE_INTERVALS; the entries must match the line of structure WORKSCHEDULE_GENERAL_INFO in fields EXTSYSTEM, EXTAPPLICATION, and EXTDOCUMENTNO. All of this data is referred to collectively in the following as a data block (for the operative planned working time).

If you want to cancel a data block, field REVERSED of parameter WORKSCHEDULE_GENERAL_INFO must have the value "X". The system also automatically cancels all related data of parameter WORKSCHEDULE_INTERVALS, since the data is linked by means of the unique document key.

The data block is the unit that can be cancelled as a whole. For the data block to be cancelled, the current method must be accessed; parameter WORKSCHEDULE_GENERAL_INFO must be filled with the fields that determine the data block, EXTSYSTEM, EXTAPPLICATION, and EXTDOCUMENTNO and field REVERSED of the same parameter must have the value "X". The system also cancels the related data for the data block that was specified in parameter WORKSCHEDULE_INTERVALS, that is, explicit planned working time intervals and breaks.

You can transfer several data blocks to the system for each day and personnel number, that is, data records that have different entries in at least one of the fields EXTSYSTEM, EXTAPPLICATION, and EXTDOCUMENTNO, but that relate to the same day and the same personnel number. In this case, the two data blocks must be compatible. This means that:

  • Fields DWS_GROUPING of parameter WORKSCHEDULE_GENERAL_INFO either have identical planned working times, or the field is initial for at least one planned working time. The same applies to field DAY_TYPE.
  • The field DAILYWORKSCHEDULE is not filled for either data block in structure WORKSCHEDULE_GENERAL_INFO, and the explicit planned working time intervals specified in parameter WORKSCHEDULE_INTERVALS do not overlap.

Several data blocks are entered in the interface table without being validated, for each day and personnel number; in the transfer process, data blocks that are not compatible with the existing records (including those that have already been transferred) receive an error status and are not transferred.

You can also transfer data on a different payment and cost assignment.

Example

Notes

This method stores the data records in the interface tables PTEX2003GEN, PTEX2003SPEC, and PTEXDIR. The data is then read from files PTEX2003GEN and PTEX2003SPEC by report RPTEXTPT (Transfer External Data -> Human Resources) and created as records of the Substitutions infotype (2003).

Further information





Parameters

RETURN
WORKSCHEDULE_GENERAL_INFO
WORKSCHEDULE_INTERVALS

Exceptions

Function Group

HRTIM00SUBSTITUTION

ABAP Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4823 Date: 20240523 Time: 161137     sap01-206 ( 108 ms )