on 09-13-2012 3:54 PM
Hi guys,
does anyone know, how to update attributes in the Trx.: PPOMA_CRM?
I can read the information with the FM: RH_OM_ATTRIBUTES_READ.
When I'm using FM: RH_OM_ATTRIBUTES_UPDATE or RH_OM_ATTRIBUTES_INSERT, there are neither updates nor inserts and I get the exception number 6.
Does anyone know what I'm doing wrong?
DATA: ls_pt1222 TYPE pt1222,
lt_pt1222 TYPE TABLE OF pt1222.
otype = S. onjid = 50001234.
CALL FUNCTION 'RH_OM_ATTRIBUTES_READ'
EXPORTING
otype = otype
objid = objid
scenario = 'SERVICE'
TABLES
attrib = lt_pt1222.
IF sy-subrc <> 0.
READ TABLE lt_pt1222 INTO ls_pt1222 INDEX 1.
ls_pt1222-low = '005'.
append ls_pt1222 to lt_pt1222.
CALL FUNCTION 'RH_OM_ATTRIBUTES_UPDATE'
EXPORTING
otype = otype
objid = objid
TABLES
attr_tab = lt_pt1222
EXCEPTIONS
no_active_plvar = 1
object_not_found = 2
no_attributes = 3
times_invalid = 4
inconsistent_values = 5
update_error = 6
OTHERS = 7
.
The attributes are stored at the Organizational Unit (O) an are inherited to the Position (S).
Thus I can read only read them.
If I read and store them at the Org. Unit the FM: 'RH_OM_ATTRIBUTES_UPDATE' works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI iam also facing same problem in 'RH_OM_ATTRIBUTES_UPDATE' function module.iam getting Exception 6.
could you please help.
CALL FUNCTION 'RH_OM_ATTRIBUTES_UPDATE'
EXPORTING
plvar = wa_1000-plvar
otype = 'O' "otype
objid = wa_1000-objid " hrp1000-otype"objid
seldate = sy-datum
* scenario = p_sce
* NO_INSERT =
* ACTIVATE_OBJECT =
* IMPORTING
* upd_begda = sy-datum
* upd_endda = '99991231'
TABLES
attr_tab = t_pt1222t
EXCEPTIONS
no_active_plvar = 1
object_not_found = 2
no_attributes = 3
times_invalid = 4
inconsistent_values = 5
update_error = 6
nothing_to_update = 7
OTHERS = 8.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try with T_code OOATTRCUST.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.