cancel
Showing results for 
Search instead for 
Did you mean: 

How can i send PP activity confirmation from SAP MII (OEE)

former_member592388
Discoverer
0 Kudos
1,818

Hi experts,

I want to send activity confirmation (like setup, processing, tear down etc.) with BAPI_PRODORD_CONF_TT which is standard order confirmation BAPI in OEE system.

I can send to quantity confirmation but, i can not send activity confirmation.

In this screenshot, i can choose correct activities.

And I can see that, SAP OEE calculate actual activity time as you see in this screenshot,

When i send to quantity confirmation with ORDER_CONFIRMATION_BAPI, I can not send actual activity time.

Please, help me about this issue.

agentry_src
Active Contributor
0 Kudos

It might also be that you are trying to confirm a milestone rather than a progress confirmation. If memory serves me correctly (and it has been a while since I played with this BAPI), milestones confirmations don't allow activity to be recorded.

thomas_mader3
Explorer
0 Kudos

Hello,

Thanks for your reply. We use the control key YBP1 (SAP Best Practice) with no milestone-confirmation.

In the dashboard-configuration I have added the extension-activity ORDER_CONF_EXT_ACT on "order complete".

Request with run data information

<?xml version="1.0" encoding="UTF-8"?><yieldConfirmationDataListForReleasedID> <client>100</client> <hasBackflushingComponents>false</hasBackflushingComponents> <order>000001002151</order> <orderType>10</orderType> <plant>1010</plant> <releasedID>730</releasedID> <yieldConfirmationData> <recordID>ST</recordID> <operation>0005</operation> <yield>5.0</yield> <scrap>0.0</scrap> <rework>0.0</rework> <uom>ST</uom> <split>0</split> <capacityCategory>001</capacityCategory> <entryIDs>996</entryIDs> </yieldConfirmationData> <yieldConfirmationData> <operation>0005</operation> <yield>0.0</yield> <split>0</split> <capacityCategory>001</capacityCategory> <timeIdList>8578</timeIdList> <timeIdList>8579</timeIdList> </yieldConfirmationData> <yieldConfirmationData> <operation>0005</operation> <yield>0.0</yield> <split>0</split> <capacityCategory>001</capacityCategory> <timeIdList>8578</timeIdList> <timeIdList>8579</timeIdList> </yieldConfirmationData> </yieldConfirmationDataListForReleasedID>

Here the ERP Request - no activity values are passed to the ERP System:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><BAPI_PRODORDCONF_CREATE_TT><TABLES><TIMETICKETS><item><PLANT>1010</PLANT><ORDERID>000001002151</ORDERID><OPERATION>0005</OPERATION><PERS_NO/><YIELD>5.0</YIELD><SCRAP>0.0</SCRAP><REWORK>0.0</REWORK><FIN_CONF>1</FIN_CONF><CLEAR_RES>X</CLEAR_RES><CONF_QUAN_UNIT>ST</CONF_QUAN_UNIT><CONF_ACTIVITY1/><CONF_ACTI_UNIT1/><CONF_ACTIVITY2/><CONF_ACTI_UNIT2/><CONF_ACTIVITY3/><CONF_ACTI_UNIT3/><CONF_ACTIVITY4/><CONF_ACTI_UNIT4/><CONF_ACTIVITY5/><CONF_ACTI_UNIT5/><CONF_ACTIVITY6/><CONF_ACTI_UNIT6/><DEV_REASON/><EXEC_START_DATE/><EXEC_START_TIME/><SETUP_FIN_DATE/><SETUP_FIN_TIME/><PROC_START_DATE/><PROC_START_TIME/><PROC_FIN_DATE/><PROC_FIN_TIME/><TEARDOWN_START_DATE/><TEARDOWN_START_TIME/><EXEC_FIN_DATE/><EXEC_FIN_TIME/></item><item><PLANT>1010</PLANT><ORDERID>000001002151</ORDERID><OPERATION>0005</OPERATION><PERS_NO/><YIELD>0.0</YIELD><SCRAP/><REWORK/><FIN_CONF>1</FIN_CONF><CLEAR_RES>X</CLEAR_RES><CONF_QUAN_UNIT/><CONF_ACTIVITY1/><CONF_ACTI_UNIT1/><CONF_ACTIVITY2/><CONF_ACTI_UNIT2/><CONF_ACTIVITY3/><CONF_ACTI_UNIT3/><CONF_ACTIVITY4/><CONF_ACTI_UNIT4/><CONF_ACTIVITY5/><CONF_ACTI_UNIT5/><CONF_ACTIVITY6/><CONF_ACTI_UNIT6/><DEV_REASON/><EXEC_START_DATE/><EXEC_START_TIME/><SETUP_FIN_DATE/><SETUP_FIN_TIME/><PROC_START_DATE/><PROC_START_TIME/><PROC_FIN_DATE/><PROC_FIN_TIME/><TEARDOWN_START_DATE/><TEARDOWN_START_TIME/><EXEC_FIN_DATE/><EXEC_FIN_TIME/></item><item><PLANT>1010</PLANT><ORDERID>000001002151</ORDERID><OPERATION>0005</OPERATION><PERS_NO/><YIELD>0.0</YIELD><SCRAP/><REWORK/><FIN_CONF>1</FIN_CONF><CLEAR_RES>X</CLEAR_RES><CONF_QUAN_UNIT/><CONF_ACTIVITY1/><CONF_ACTI_UNIT1/><CONF_ACTIVITY2/><CONF_ACTI_UNIT2/><CONF_ACTIVITY3/><CONF_ACTI_UNIT3/><CONF_ACTIVITY4/><CONF_ACTI_UNIT4/><CONF_ACTIVITY5/><CONF_ACTI_UNIT5/><CONF_ACTIVITY6/><CONF_ACTI_UNIT6/><DEV_REASON/><EXEC_START_DATE/><EXEC_START_TIME/><SETUP_FIN_DATE/><SETUP_FIN_TIME/><PROC_START_DATE/><PROC_START_TIME/><PROC_FIN_DATE/><PROC_FIN_TIME/><TEARDOWN_START_DATE/><TEARDOWN_START_TIME/><EXEC_FIN_DATE/><EXEC_FIN_TIME/></item></TIMETICKETS></TABLES></BAPI_PRODORDCONF_CREATE_TT>

thomas_mader3
Explorer
0 Kudos

Sorry - here the response:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><status>PASSED</status>

agentry_src
Active Contributor
0 Kudos

Hopefully all I say now is correct. It has been a number of years since I worked with either ERP, BAPIs, or MII so this is all based on my memory.

I just remembered from Thomas' Comments that Confirmations are not instantaneous. They are checked for valid input and then queued up for future processing. From discussions with ERP experts, the processing of a Confirmation is rather complex and touches several different systems within SAP including labor, finance, inventory (sometimes), and events, probably a few more that I missed. As his last Comment showed, "Passed" indicates that the input was correct in its contents and is now queued up.

@ https://answers.sap.com/users/99863/thomasmader3.html

However Order Complete is not the same a Progress Confirmation and I believe that it is treated similarly to a milestone (which it is). Try doing it with Progress Confirmation to see what the results turn out to be.

Regards, Mike

thomas_mader3
Explorer
0 Kudos

Hello

Thanks for your reply - the confirmation is passed to the ERP System and a confirmation is saved in ERP. The process is working but from the business view values are missing in the corresponding XML.

The fields <CONF_ACTIVITYx/> are empty. I would expect the calculated minutes from the selected activities in OEE in this fields.

Thx

adnanmaqbool
Contributor
0 Kudos

Have you found any solution. We can pick values from MII DB & fill in the XSLT using customize Transaction but is there any other standard way of doing the same activity.

View Entire Topic
krmugsapc
Explorer
0 Kudos

Hello Mustafa

We as well facing the same issues when trying to send the activity confirmation from MII(OEE).

Did you find any solution for the same?

Thanks & Regards,

Mugunthan