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

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.

Accepted Solutions (1)

Accepted Solutions (1)

agentry_src
Active Contributor
0 Kudos

Have you looked at the content of the Confirmation sent by the BAPI? Did you get a response from the sent BAPI indicating a possible error message?

Might also want to check testing the BAPI from t-code BAPI within the ERP system to see what the BAPI actually expects for those fields being populated. Sometimes things like UOM do not automatically get populated even if displayed in the screen. There might also be some other fields which must be populated even if they are not displayed. Testing in t-code BAPI might show where this might be necessary.

mbozkir , thomas.mader3

I would also recommend that you both change your responses from Answers to Comments (since neither of your posts are actually trying to answer the Question) so people don't think that the Question already has responses and skip looking at it.

Cheers, Mike

Answers (6)

Answers (6)

adnanmaqbool
Contributor
0 Kudos

Dear All

Any solution for the main query.

Mahalakshmi1
Participant
0 Kudos

Hi All,

In my project, i did this in custom way and it worked perfectly fine. But for a standard approach, as per my memory goes, activities confirmation should work as long as you use the same data collection element (standard defined in OEE addon ) for those activities. the standard value keys (prod/process order) and DCE names should match and both should be downloaded into OEE and then use the same DCE to report the value which ultimately gets saved into PROD_DATA table. also try "Report data" extension and see if this works.

else custom is ofcourse a solution especially when you have your own calculation for these activity values. Good luck and let me know if this worked.

Thanks

Mahalakshmi.S

former_member610632
Participant
0 Kudos

The BAPI CO_MES_PRODORDCONF_CREATE_TT has the new parameter IV_PROPOSE_ACTIVITIES using which the calling system can request the determination of default values for the activity confirmation. Set the parameter to 'X' for the proposed activity confirmations to be added to the current confirmation. However, note that the system takes the proposed activities into account only if the activity fields in the interface of the module CO_MES_PRODORDCONF_CREATE_TT were not already filled by the caller.

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

former_member185280
Active Contributor
0 Kudos

It has been a while but from my memory I think the default xsl used to format the BAPI call xml doesn't consider activities. Unfortunately If this is the case I do not know the customization/configuration steps needed to change this but that is the direction I would look into. There might have been a similar thread some time back about this as well but I couldn't find it.

Regards,
Christian

former_member592388
Discoverer
0 Kudos

Nobody knows?