cancel
Showing results for 
Search instead for 
Did you mean: 

How make acc assignment details default to user

Former Member
0 Kudos

Hi experts,

I am working on SRM7.0.My requirement is to make the account assignment data default to particular user.

If an user User1 ordering a cart ,he enters acc assignment details.While ordering the cart those details should be stored as default.When the particular user User1 opens the shopping cart screen he should get those values as default.

There are few function modules to to retrieve the data based on the user.But how to save the acc assignment data based on user

View Entire Topic
Former Member
0 Kudos

Hello,

You can use FM BBP_UPDATE_ATTRIBUTES to update the cost center to user attributes in SRM Org Structure and set it as default.

Calling this FM will set a lock on the user data which will get released when the user either saves/Orders shopping cart. This is when the COMMIT WORK is called from standard.

But you have to consider a few things:

1. location to call above FM - BBP_DOC_CHANGE_BADI (called multiple times), BBP_DOC_SAVE_BADI(called once when saving/order of shopping cart, closer to issuing of COMMIT WORK)

2. if you have some background jobs running which update the user attributes in parallel (from say ECC HR), the lock set for the duration of SC creation will cause this job to fail.

Also check http://wiki.sdn.sap.com/wiki/display/SRM/How+to+Automate+Attribute+Maintenance+in+SRM

Regards,

Sushil.