on 07-07-2009 9:58 AM
Hello guys,
In PPOSA_BBP we are dealing with assignment of product categories to Position through extended attributes.
Do you know of any program that would help to transfer the assignment from position A to position B ?
I have looked at the RHOMATTRIBUTES_REPLACE but it does not seems to help with position assignment
Best Regards, Manuel
Hi Manual
1.read the attributes by the user with Function Module BBP_GET_CATEGORIES_F4
2.with those value again you can update the attributes to other user BBP_UPDATE_ATTRIBUTES
We can read the attributes by this Function module BBP_GET_CATEGORIES_F4 and update via BBP_UPDATE_ATTRIBUTES.
sample code for updating attributes. so you can also update the product categories(prcat LIKE lag )like that.
https://wiki.sdn.sap.com/wiki/display/SRM/CodeSample3UpdatingExtendedAttributes(Storage+Location)
BBP_GET_CATEGORIES_F4 input- user and get product categpry list as o/p.
input- user and get product categpry list as o/p.
BBP_UPDATE_ATTRIBUTES - UPDATE attribute to the user.
Note:- RHOMATTRIBUTES_REPLACE -this report helps you to convert logical system after refresh since it may points to production logical system. OK. before you execute a report you can download this report and see what are the users/position has PRCAT attribute wise. just to cross check your output from Fm BBP_GET_CATEGORIES_F4 .
br
muthu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Muthu,
Thanks for your help, can you confirm one thing ? Is this FM able to change position ID also or is it just to replace attribute values ?
For example I have attribute PRCAT value Q1 on position 60006009 and I would like to assign it to position 60010967 instead.
In my understanding this FM would only allow me to change Q1 to Q2 for example, Am I right ?
PS, Are you the Muthu from SSRM ?
Hello manual,
yes manu.
For eg you have extracted all the users/product category list which are assigned to the extended attributes by the above function module
BBP_GET_CATEGORIES_F4
olduser1 q1,s1,s2,e4
olduser2 r1,m1,m2,m3
now you can do your logic to map into
newuser1 q1,s2,s2,e4
newuser2 r1,m1,m2,m3
now you can upload this new users , new attribute via this FM BBP_UPDATE_ATTRIBUTES.
(ii)replace_p is one of the input parameters may helps you to overwrite the new attribute value.
if you are assigning attributes per user means it is equivalent to position .
br
muthu
User | Count |
---|---|
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.