HR_DISPLAY_BASIC_LIST - is an HR function, but can be used for any data. You pass it data, and column headers, and it provides a table control with the ability to manipulate the data, and send it to Word or Excel.
LIST_LEVEL - List level in the Table Control. This value is useful only if the function module is called several times from a single program. This value must be maintained manually in the program. The main use of the list level is to allow the use of multiple configurations for the Table Control.
ADDITIONAL_OPTIONS - With this parameter further options can be transferred. The following specification is supported:
NO_WORD The call to MS Word is not offered on the display.
NO_EXCEL The call to MS Excel is not offered on the display.
START_WORD Start MS Word on the local PC
START_EXCEL Start MS Excel on the local PC
START_ROW In the stringer Addition_Options is located to START_ROW:xxxx, whereby xxxx a valid line number of the DATA_TAB
MAILUSER:xxxxxxx The data are sent darkly as Mail to the indicated Mailuser. The FB is afterwards left directly. It takes place thus no further output.
NO_IMG this function can be used in connection with the error table ERROR_TAB. In the Additonal_Options if the stringer NO_IMG is specified, then no Moeglichgkeit consists to branch into the Custominzing (IMG) in the error list. o LINESELMODE:1 is set, then only one line in the TableControl can be marked.
WORD_DOCUMENT - If the form letter fields in an existing Word document are to be merged, then the name of the Word of document which can be transferred. The functional module checks whether the indicated document exists. If this file is present, then it is loaded. If the file is not found a selection box is displayed, and a new file name can be input.
The name of the document must be complete i.e. with path specification and ending DOC.
Code:
REPORT ZKBTST25.
TABLES:
MARAV.
DATA: BEGIN OF MTAB_MATERIALS OCCURS 0,
MATNR LIKE MARAV
VPSTA LIKE MARAV
PSTAT LIKE MARAV
MAKTX LIKE MARAV
END OF MTAB_MATERIALS.
DATA: BEGIN OF MTAB_FIELDNAMES OCCURS 3,
TITLE(60) TYPE C,
TABLE(6) TYPE C,
FIELD(10) TYPE C,
TYPE(1) TYPE C,
END OF MTAB_FIELDNAMES.
START
SELECT * UP TO 500 ROWS FROM MARAV INTO CORRESPONDING FIELDS OF TABLE
MTAB_MATERIALS.
NOTE: it_zl-iftyp = 'A' absence
it_zl-iftyp = 'S' at work
RH_GET_ACTIVE_WF_PLVAR - Return the active HR Plan
RHP0_POPUP_F4_SEARK - is a matchcode for any type of HR Planning object, including the possibility to fill the field that you want
Examples: search for any organizational structure
F4 = 'X'
PLVAR = '01'
OTYPE = 'O '
search for any persons
F4 = 'X'
PLVAR = '01'
OTYPE = 'P '
MULTI_SELECT = 'X' to allow multiple selection
EASY = 'X' for user-dependent matchcode
Unfortunately, the use of table BASE_OBJIDS is disabled, so you can't specify
a root for the hierarchy you display
SWD_HELP_F4_ORG_OBJECTS - HR Matchcode tailored for organizational units. Includes a button so that you can browse the hierarchy too.
BAPI_PERSDATA_CHANGE - Change personal data
BAPI_PERSDATA_CREATE - Create personal data
BAPI_PERSDATA_CREATESUCCESSOR - Create subs.personal data record
BAPI_PERSDATA_DELETE - Delete personal data
BAPI_PERSDATA_DELIMIT - Delimit personal data validity period
BAPI_PERSDATA_GETDETAIL - Read personal data
BAPI_PERSDATA_GETDETAILEDLIST - Read instances with data
BAPI_PERSDATA_GETLIST - Read instances
BAPI_PERSDATA_SIMULATECREATION - Simulation: Create personal data
HR_INFOTYPE_OPERATION - create or update the employee record
Code:
Report z_update_PA0001.
*Data
DATA : P0001 LIKE P0001.
DATA : RETURN LIKE BAPIRETURN1.
DATA : KEY LIKE BAPIPAKEY.
DATA : RETURNE LIKE BAPIRETURN1 .
*Values (Change as per Requirement)
P0015-PERNR = '1'.
P0015-BEGDA = '2061101'.
P0015-ENDDA = '2061101'.
*First Enqu
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = p0001-pernr
IMPORTING
RETURN = RETURNE.
BAPI_BUS_EVENTTYPE_INFO - Retrieve business event type(BET) data (Global description of course).
Such as description, suitablility, tutors, other relationship details etc
BAPI_BUS_EVENT_INFO - Retrieve business event(BE) data (Actual occurance of course).
Such as description, suitablility, tutors, other relationship details etc. Data entered at this level should be used instead of that found at BET level
DATA: lt_cont TYPE swcont OCCURS 0 WITH HEADER LINE,
lt_0105 TYPE pa0105 OCCURS 0 WITH HEADER LINE,
lv_pernr TYPE pernr_d,
lv_sobid LIKE hrp1001-sobid,
lv_plvar LIKE hrp1001-plvar,
lt_APPROVER TYPE swhactor OCCURS 0 WITH HEADER LINE.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.