on 03-23-2015 6:20 PM
Hi experts,
has someone done an update in the resource master object /SCMTMS/VEHCILE_RESOURCE using BADI /SCMB/IF_BADI_TMRES_REGNR_CHK.
Can you provide sample coding or an advise how I can update some additional fields in the resource master?
Regards
Petra
Hi,
I did updates using FM BAPI_RSSRVSCMB_SAVEMULTI2. Inside the BAdI bapi_rssrvscmb0006 can be used to update additional fields. An example implementation of this BAdI should be available.
Best regards, Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Daniel,
have set a break-point in each method and have created my own implementation. But, it never stops when I change the resource manually in Transaction /SCMTMS/RES01. I have tried with the Exit handler, but this Badi is not there. Have u used it at the manual change of the resource?
Regards
Petra
Hi Petra,
then, I think, we have a misunderstanding here: I did understand that you want to update the master data attributes of a specific resource NOT MANUALLY -> then you can use the BAPI BAPI_RSSRVSCMB_SAVEMULTI2 with the mentioned BAdI which is called inside.
Maybe you then have to explain your use case again. You want to change some master data attributes of the resource MANUALLY and then what would you want to achieve then with a BAdI?
Best regards, Daniel
Daniel,
we have a use case where we assign the driver as an alternative Name to the resource. We would like to copy the first and last name of the Driver user assigned to the resource master to the resource description. This way, ist visible in the Cockpit which Driver is currently driving this truck. in other words, when the Dispatcher assigns the driver's user name to the resource, we want to read the user master and write the driver first and last name into the description. Our Drivers have user names because they are using an app that posts the events with their user. Had to grey most things out because of confidentiality.
At the Change of the, I want to use one field, read some data from the user master and write into a second field (description). hope you can help me.
Hi,
ok. Just for clarification: What I understand is, the user name of the driver will be entered manually as an alternative name for a resource. On which UI this is done? Standard resource UI? At save, this should trigger then a custom piece of code, that gets the clear name of the driver user and fills it in the description, right?
Best regards, Daniel
hi,
we have written a report that updates our resources with the description of the Driver user assigned. We can schedule it regularly. Most importantly, we have the regular drivers in the Cockpit as description of the resources (Trucks which they use on a regular basis).
Regards
Petra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
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.