SAP ABAP update infotype 1000

The provided text outlines a series of actions related to HR infotype data management in an ABAP (Advanced Business Application Programming) context. Here's a brief description of each section:

Read the Infotype 1000 Data: In this section, HR infotype data of type 1000 is read and stored in the 'lt_p1000' internal table. The data is retrieved based on specified parameters like personnel area ('plvar'), object type ('otype'), object ID ('objid'), and date range ('begda' and 'endda').

Modify the Name in Infotype: The code updates a specific field, 'stext' in the 'lt_p1000' internal table with a new value ('lv_stext_new').

Update the Infotype in Buffer: The 'RH_UPDATE_INFTY' function module is called to update the HR infotype data in the buffer. It specifies parameters such as the update task ('vtask'), authorization ('authy'), and work item activation ('workf_actv').

Update to the Database: After all changes are made, the 'RH_UPDATE_DATABASE' function module is called to write the updates to the database. It specifies the update task ('vtask') and work item activation status ('workf_actv').

How to Correct 'endda': A separate process involves submitting a report ('rhgrenz4') to correct the 'endda' (end date) of HR infotype data. It passes various parameters to the report, including the personnel area, object type, object ID, and date ranges.

The text provides a series of steps and ABAP code for managing and updating HR infotype data, including reading, modifying, and ultimately updating the data in both the buffer and the database. It also includes a process for correcting the 'endda' date via a separate report ('rhgrenz4').

The provided text outlines a series of actions related to HR infotype data management in an ABAP (Advanced Business Application Programming) context. Here's a brief description of each section:

  Read the Infotype 1000 Data: In this section, HR infotype data of type 1000 is read and stored in the 'lt_p1000' internal table. The data is retrieved based on specified parameters like personnel area ('plvar'), object type ('otype'), object ID ('objid'), and date range ('begda' and 'endda').

  Modify the Name in Infotype: The code updates a specific field, 'stext' in the 'lt_p1000' internal table with a new value ('lv_stext_new').

  Update the Infotype in Buffer: The 'RH_UPDATE_INFTY' function module is called to update the HR infotype data in the buffer. It specifies parameters such as the update task ('vtask'), authorization ('authy'), and work item activation ('workf_actv').

  Update to the Database: After all changes are made, the 'RH_UPDATE_DATABASE' function module is called to write the updates to the database. It specifies the update task ('vtask') and work item activation status ('workf_actv').

  How to Correct 'endda': A separate process involves submitting a report ('rhgrenz4') to correct the 'endda' (end date) of HR infotype data. It passes various parameters to the report, including the personnel area, object type, object ID, and date ranges.

The text provides a series of steps and ABAP code for managing and updating HR infotype data, including reading, modifying, and ultimately updating the data in both the buffer and the database. It also includes a process for correcting the 'endda' date via a separate report ('rhgrenz4').

Read the infotype 1000 data

DATA:
lt_p1000 TYPE TABLE OF p1000,
lv_p1000 LIKE LINE OF lt_p1000,
lv_object TYPE hrobject.

CALL FUNCTION 'RH_READ_INFTY_1000'
EXPORTING
plvar = lv_object-plvar
otype = lv_object-otype
objid = lv_object-objid
begda = sy-datum
endda = sy-datum
TABLES
i1000 = lt_p1000

Modify the name in infotype

lv_p1000-stext = lv_stext_new. 
MODIFY lt_p1000 FROM lv_p1000.

Update the infotype in buffer

CALL FUNCTION 'RH_UPDATE_INFTY'
EXPORTING
vtask = 'B' "Buffer
commit_flg = ' '
authy = 'X'
workf_actv = ' '
TABLES
innnn = lt_p1000.

After all changes are made, write update to the DB

CALL FUNCTION 'RH_UPDATE_DATABASE'
EXPORTING
vtask = 'S'
workf_actv = ' '.

How to correct endda rhgrenz4

SUBMIT rhgrenz4 AND RETURN   "VIA SELECTION-SCREEN
  WITH pchplvar EQ '01'
  WITH pchotype EQ 'C'
  WITH pchobjid EQ lo_limit_notuse->cwa_notuse-objid
  WITH pchistat EQ '1'
  WITH pchobeg  EQ defaultbegda
  WITH pchoend  EQ defaultendda
  WITH pchbegda EQ defaultbegda
  WITH pchendda EQ defaultendda
  WITH g_dat    EQ sel_endda
  WITH new_end  EQ dsl_endda
  WITH test     EQ 'X'
  WITH anzeige  EQ 'X'.

We have brand-new report rhgrenz4