Skip to Content
0
Former Member
Nov 24, 2009 at 06:45 AM

Update Infotype 1001

518 Views

hi all,

I have to update the SLAS of the object ID. I am using Fm " RH_UPDATE_INFty". but it is not updating the SCLAS

Code is given below

REPORT ZTEST_RH_UPDATE_INFTY.

DATA:

lt_relation TYPE TABLE OF p1001,

ls_relation TYPE p1001.

ls_relation-mandt = sy-mandt.

ls_relation-plvar = '01'.

ls_relation-otype = 'E'.

ls_relation-objid = '30000031'.

ls_relation-infty = '1001'.

ls_relation-istat = '1'.

ls_relation-rsign = 'A'.

ls_relation-relat = '025'.

ls_relation-begda = '20090709'.

ls_relation-endda = '20090711'.

ls_relation-sclas = 'P'.

ls_relation-sobid = '00123749'.

APPEND ls_relation TO lt_relation.

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 = lt_relation

  • 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.

please help .

thanks

Sachin