cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete an attribute?

former_member184111
Active Contributor
0 Kudos

Hi Experts,

We are on SRM 5.0

How to delete an attribute from Attributes tab of Organization/ Position or User?

For eg: The attribute Catalog ID i.e. CAT is there at Organization level, Position and also User levels.

Suppose there are 3 Lines for CAT in Attributes tab. I want to delete one..how to do this?

I tried using the FM BBP_UPDATE_ATTRIBUTES By passing only one record in IT_ATTR_P and setting REPLACE_P flag but it does not changes anything.

Thanks for the help,

Anubhav

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anubhav,

Did you get any way to delete an attibute from position programmatically?

I am having the same requirement now.

Please set me know - its really urgent.

Thanks and Regards

Argha

former_member184111
Active Contributor
0 Kudos

Not yet

Thanks,

Anubhav

former_member183819
Active Contributor
0 Kudos

Hi

manually you can achieve this from PPOMA_BBP

you can delete the attribute value at root level if you want. i believe there are two icons one is insert and and another one is for deletion.(in the ATTRIBUTES tab in the Organisation structure)

or

position wise you can check EXCLUSIVE so that this position attribute value treated as inactivate.

former_member184111
Active Contributor
0 Kudos

Hi Mutthu,

I tried checking the EXCLUDE flag, it works fine I mean the link disappears from Shop in EBP but the issue is when using the FM BBP_UPDATE_ATTRIBUTES for passing attribute id to table IT_ATTR_P it must be in the same case like Corporate if passed as corporate or CORPORATE will not work this is causing a problem as ABAP converts all character string to upper case.

I can not delete it from root org as it is defined in multiple orgs..and also i need to DELETE (that entry should not be in PPOMA) it from attributes and not exclude.

Many thanks for the help, let me know if there is more,

Anubhav

former_member183819
Active Contributor
0 Kudos

Hi

i believe CAT value is a case sensitive field .

Why are you using FM to update the ATTRIBUTE values?

Corporate - Dont want to keep this value for as CAT . if you dont want this catalog value.you need to find out where in the root and make it disable or Delete it.

some sample code

https://wiki.sdn.sap.com/wiki/display/SRM/CodeSample3UpdatingExtendedAttributes(Storage+Location)

what is your business requirement ? Dont want Corporate catalogs any more for all the users?

former_member184111
Active Contributor
0 Kudos

Hi,

The business requierment is we need to remove a punchout catalog assignment from Org Unit. Some how the punch out catalog was assigned at org unit level under each state so there are many entries that needs to be deleted. We can not do this manually and so I am looking for a way to delete (remove that line) from attributes of org programatically.

Thanks,

Anubhav

former_member183819
Active Contributor
0 Kudos

Hi

Remove the attribute value of( punch out catalog) CAT in the organisation at the root level. so no one inherit the punchout catalog anymore.

so you need to find out at what root level they have assigned this CAT value. if you are deleted only there all inheritance will lost the value.

Functional approach is good rather than technical approach in this matter.

Muthu

former_member184111
Active Contributor
0 Kudos

Hi,

The actual issue is that catalog ID is not inherited from previous nodes for every object for most it was added manually and in no partiular order like all nodes under one org.

Thanks,

Anubhav

former_member183819
Active Contributor
0 Kudos

ok. understand.

Can't you try to replace the CAT value with "DUMMY" instead of "CORPORATES".

Later dismantle all the related configuration like define web services etc.

Muthu.

former_member184111
Active Contributor
0 Kudos

Hi Muthu,

Is there no way to DELETE the catalog entry from attributes of different objects in OU, programatically ?

Thanks,

Anubhav

former_member183819
Active Contributor
0 Kudos

Hi

I think there is a FM to delete a attribute value .

Let us wait for others reply. i dont have system now to check

Muthu

former_member184111
Active Contributor
0 Kudos

Hi Forum,

Any FM to DELETE attributes from Attributes tab in OU ?

Thanks,

Anubhav