cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_UPDATE_ATTRIBUTES - can only overwrite an attr?

Former Member
0 Kudos

Hi there.

SRM 4.0.

The import parameters for this FM are:

USER_ID_P

ORGUNIT_ID_P

SCENARIO_P

START_DATE_P

END_DATE_P

REPLACE_P

It seems, that no matter if I set the REPLACE_P or do not set it, either way it will delete the attribute in the PPOMA. Why can't this FM append an attribute? I want to update the attribute CNT to allow users to have several different cost centers, but one should be default. I am simply wondering, what purpose the REPLACE_P actually has here, because it is changing the existing attribute either way...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Pls see the solution in the foll thread:

BR,

Disha.

Do reward points for useful answers.

Former Member
0 Kudos

Thanks Disha.

But the thread mentions that if the REPLACE_P is set to X, then it will overwrite the attribute if anything is already there and if I set it to space it will make a new attribute - sort of append it, so that more lines of the same attribute will be added, right?

This is not the case for me, though. No matter which value I enter in REPLACE_P the CNT attribute gets overwritten, and I need it to create an extra line with the same attribute.

Former Member
0 Kudos

I just read the link in the link you sent me... In there it says, that there is no way to update more than 1 CNT attribute with the BBP_UPDATE_ATTRIBUTES, so I guess that is my answer...

Former Member
0 Kudos

Hi,

Jst try this.

Try to set a default value for the attribute and then try to run the FM with value space for REPLACE_P.

Then is it appending the new value ??

BR,

Disha.

Former Member
0 Kudos

I just tried this again - the CNT attribute gets overwritten by the FM no matter what I do; it never gets appended.

Former Member
0 Kudos

Hi. Are you trying to uplaod a big list of cost centres and set 1 as default?

You could use a call transaction on transaction code PP01 to do this instead.

Regards,

Dave.

Former Member
0 Kudos

I have a daily batch job running to allign the CNT in PPOMA with the department number in SU01 - this job is running every day and working fine and using the FM BBP_UPDATE_ATTRIBUTES. However, I have some users that require a different CNT to be their default cost center when shopping, so I wanted to modify my batch job to simply append an extra line each time, but I guess this cannot be done when the attribute is CNT and the backend is the same.

Former Member
0 Kudos

Hi. I presume your batch job is entirely custom? You could add a call transaction to add the extra cost centre based on transaction PP01 (or PO13) and then selecting the "General Attribute Maint." option and change, then "Edit > New Entries" in the menu at the top.

Regards,

Dave.