on 2023 Aug 10 11:46 AM
Hello
I'd like call from SAP MII PAPI call of SAP ME and change resouce status in SAP ME however cannot found documenaton of SAP ME API (module, metods, services description) especially for resouces.
General I see list of calls in PAPI action block however list for search "resouce" is very long and when try some execute someone then probably puting to less parameters but without documentation hard to me decide what data I should assign to request hence this ask.
Can someone please provide URL when I can found PAPI details of all function in SAP ME or only for what I search (change resouce).
Best Regards
Request clarification before answering.
Hi Steve.
It was my original question about documantation, already searching in SAP for Me but serching engine don't provide me the anser however try again manually pass all sections and finally found on buttom of the page in developer section javadocs, now PAPI call working fine, thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, however not sure what fields are mandatory, maybe can you deliver documentation. My request is:
[ERROR] [SAPME_PAPI_Interface_0]SAPMEPAPIInterfaceAction.executeMEPAPI(): Error in executing the selected service. The request xml is:
<?xml version="1.0" encoding="UTF-8"?>
<common:serviceInvocationRequests xmlns:common="http://www.sap.com/me/common" xmlns:labor="http://www.sap.com/me/labor" xmlns:plant="http://www.sap.com/me/plant" xmlns:schedulingstandards="http://www.sap.com/me/schedulingstandards">
<common:serviceInvocationRequest>
<moduleId>com.sap.me.plant</moduleId>
<serviceName>ResourceConfigurationService</serviceName>
<methodName>changeResourceStatus</methodName>
<requests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="plant:ChangeResourceStatusRequest">
<plant:resourceRef>ResourceBO:1234,Name_abc</plant:resourceRef>
<plant:immendiate>
<!--false-->
</plant:immendiate>
<plant:status>StatusBO:1234,123</plant:status>
<plant:comments>
<!--string value-->
</plant:comments>
<plant:reasonCodeRef>
<reference type="REASON_CODE">
<category/>
<reasonCode/>
</reference>
</plant:reasonCodeRef>
<plant:resourceReasonCodeRef>
<reference type="RESOURCE_REASON_CODE">
<keyId/>
</reference>
</plant:resourceReasonCodeRef>
<plant:recordType>
<!--MANUAL-->
</plant:recordType>
<plant:dateTime>2023-08-14T12:17:51</plant:dateTime>
<plant:machineCode>
<!--string value-->
</plant:machineCode>
</requests>
</common:serviceInvocationRequest>
</common:serviceInvocationRequests>
Fileds resourceRef and status are correct, PAPI response return to me the vaules when execute findResouceByNameMask() call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krzysztof,
The value you are assigning to status is incorrect. This field is documented as a ResourceStatusEnum type in the PAPI documentation for ResourceConfigurationService::changeResourceStatus() , so you need to assign the string name of the status (i.e., "DISABLED","ENABLED", etc.) that you want to set.
I would strongly recommend that you download the PAPI documentation from help.sap.com/me and use that as a reference for implementing PAPI calls, will save you a lot of time and headache...
Regards, Steve
ResourceConfigurationService::changeResourceStatus()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
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.