‎2008 Feb 13 10:04 AM
Hello people,
I need a fonction or a code to modify or update specific fields in an infotype !!!
Thanks.
‎2008 Feb 13 10:13 AM
PA30 is the T-code to Create/Modify Infotypes records.
PA20 is to View Infotype Records.
Regards
‎2008 Feb 13 10:16 AM
‎2008 Feb 13 10:27 AM
Thanks but it is for infotype 1035 , so I need a general fonction or a code ! For example a fonction which use a table to update an infotype !!!
‎2008 Feb 13 10:35 AM
‎2008 Feb 13 12:00 PM
ok, I am going to try "RH_UPDATE_INFTY" do have a axemple with this fonction !!!
‎2008 Feb 13 12:14 PM
DATA: lt1035_mod LIKE p1035 OCCURS 0 WITH HEADER
LINE,
CALL FUNCTION 'RH_UPDATE_INFTY'
EXPORTING
vtask = 'D'
TABLES
innnn = lt1035_mod
EXCEPTIONS
OTHERS = 1.
‎2008 Feb 13 1:26 PM
Here is my code and I have this error RAPID FORM INITIAL !!!! What is wrong ?
DATA: li_schedule LIKE p1035 OCCURS 0 WITH HEADER LINE,
lw_schedule LIKE LINE OF li_schedule.
li_schedule-plvar = lw_course-plvar.
li_schedule-otype = lw_course-otype.
li_schedule-objid = lw_course-objid.
li_schedule-begda = lw_course-begda.
li_schedule-endda = lw_course-endda.
li_schedule-infty = '1035'.
li_schedule-ndays = '3'.
li_schedule-nhours = '10'.
Append li_schedule.
CALL FUNCTION 'RH_UPDATE_INFTY'
EXPORTING
vtask ='S'
* ORDER_FLG = 'X'
* COMMIT_FLG = 'X'
* AUTHY = 'X'
* PPPAR_IMP =
* OLD_TABNR_NEW_LANGU = ''
* REPID = ' '
* FORM = ' '
* KEEP_LUPD =
* WORKF_ACTV = 'X'
tables
innnn = li_schedule
* ILFCODE =
* EXCEPTIONS
* ERROR_DURING_UPDATE = 1
* NO_AUTHORIZATION = 2
* REPID_FORM_INITIAL = 3
* CORR_EXIT = 4
* OTHERS = 5
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.