cancel
Showing results for 
Search instead for 
Did you mean: 

Update issue while using the FM BBP_UPDATE_ATTRIBUTES

Former Member
0 Kudos

Hi Gurus,

We have a program which will update the attributes of multiple users on transaction (PPOSA_BBP), through an input file.

In the program for updating the attributes we are using the FM 'BBP_UPDATE_ATTRIBUTES', passing user_id_p = userid and replace_p = space as exporting parameter and table it_attr_p contain the necessary attribute and the value that needs to be update.

The problem here is, FM is updating the attribute but deleting the existing extended attribute like location and storage location which are not inherited (The inherited storage location and location are not deleted), Help us how handle to this kind of scenario.

Regards

Paul

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

We need to follow the below structure while updating storage location and location because internaly in class cl_bbp_attr_scenario=>convert_bbp_values_to_hr, they are refering this sturcture bbps_attr_storage_loc and bbps_attr_plant

IF wa_lv_attr-attrib = 'LAG'

  • For Storage location

CLEAR: pr_bbp_attr-value.

lt_bbp_attr-value_logsys = wa_lv_attr-low(10). " Logical system.

lt_bbp_attr-value(20) = wa_lv_attr-low+10(4). " Storage location.

lt_bbp_attr-value+20(10) = wa_lv_attr-low(10). " Logical system.

lt_bbp_attr-value30(4) = wa_lv_attr-low14(4). " Plant.

APPEND lt_bbp_attr.

ELSEIF wa_lv_attr-attrib = 'WRK' .

  • For Location (Plant)

CLEAR: pr_bbp_attr-value.

lt_bbp_attr-value_logsys = wa_lv_attr-low(10). " Logical system

lt_bbp_attr-value(4) = wa_lv_attr-low+20(4). " Plant

lt_bbp_attr-value+4(10) = wa_lv_attr-low(10). " Logical system'.

lt_bbp_attr-value14(4) = wa_lv_attr-low24(4). " Company Code'.

lt_bbp_attr-value48(10) = wa_lv_attr-low10(10). " Business Partner Number.

APPEND lt_bbp_attr.

ENDIF.