cancel
Showing results for 
Search instead for 
Did you mean: 

Update Atrributes in Tr. PPOMA_CRM

Former Member
0 Kudos

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

              .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

former_member198180
Active Participant
0 Kudos

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.

Former Member
0 Kudos

Try with T_code OOATTRCUST.