cancel
Showing results for 
Search instead for 
Did you mean: 

PROBLEM with BAPI BAPI_PROCORDCONF_CREATE_HDR:

Former Member
0 Kudos

PROBLEM with BAPI BAPI_PROCORDCONF_CREATE_HDR:

Hi All,

I am using BAPI_PROCORDCONF_CREATE_HDR to confirm a process order from MII.

I am passing GoodsMovements recordS while confirming the order from XMII side.

I checked using tCode COR3:

The order is getting confirmed.But I cant see any GoodsMovements records that i had passed at the time of confirmation.

Another angle to the problem is if I try to cancel the confirmation using tCode CORK in ECC:

I am able to see the GoodsMovements records.

I am not able to understand why the goodsmovements records are not present when i am checking the order using COR3.If there has been a data connectivity issue between MII and SAP then the records should not have been displayed at the time of Cancellation of the confirmation too.

But I can see the data taht i had passed previously.

Please guide.

Thanks In advance.

P.S.-I am very new to SAP(basically from JAVA); so please give me detail explaination.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Have you tested the BAPI from SE37 or BAPI in ECC? This is a good practice to try to see if there are other fields which need to be populated due to your systems configuration.

Once you have done that, you will need to use a tracer or other logging tool to see what the BAPI returned in the transaction. You can successfully complete the confirmation portion of the processing while still failing the goods movement completely or even partially.

Check the detail Return Message, not just the top level one. Sometimes the overall BAPI is considered successful if the main function went through, though I am not sure about this particular BAPI.

If you uncheck the automatically commit, you can run the same entry parameters many times. This applies to both MII and to SE37 or BAPI in ECC.

Regards,

Mike

One other note:

The confirmation is saved in ECC after format and content are checked. It is not necessarily fully processed at the time you submit the data using the BAPI and receive the BAPI's response. You will either need to force processing on the ECC side or simply wait. Depending upon the volume of processing, it can take anywhere from a few seconds to 30 minutes (in my experience).

Edited by: Michael Appleby on Dec 22, 2010 12:55 PM

Former Member
0 Kudos

Thanks Michael.

I tried using SE37 transaction.

I am facing same problem. i.e. order gets confirmed , but cant see goods movements when i use COR3. But I am able to see when use tcode CORK to cancel the confirmation.

Now few things are clear:

There is some problem with the input that has been passed to BAPI_PROCORDCONF_CREATE_HDR or may be in ECC.

Please let me know if there is some problem with the input iam passing to BAPI.

Edited by: ajinkya_et1 on Dec 23, 2010 7:07 AM

Edited by: ajinkya_et1 on Dec 23, 2010 7:07 AM

Edited by: ajinkya_et1 on Dec 23, 2010 7:13 AM

Edited by: ajinkya_et1 on Dec 23, 2010 7:18 AM

Former Member
0 Kudos

The xml that I am passing is

<---

The Request XML to BAPI is as follows:

<?xml version="1.0" encoding="UTF-8"?>

<BAPI_PROCORDCONF_CREATE_HDR>

<INPUT>

<POST_WRONG_ENTRIES>2</POST_WRONG_ENTRIES>

<TESTRUN/>

</INPUT>

<TABLES>

<ATHDRLEVELS>

<item>

<ORDERID>000001000010</ORDERID>

<FIN_CONF>X</FIN_CONF>

<CLEAR_RES>X</CLEAR_RES>

<POSTG_DATE/>

<DEV_REASON/>

<CONF_TEXT/>

<EX_CREATED_BY/>

<EX_CREATED_DATE/>

<EX_CREATED_TIME/>

<CONF_QUAN_UNIT>EA</CONF_QUAN_UNIT>

<CONF_QUAN_UNIT_ISO/>

<YIELD>1000</YIELD>

<SCRAP/>

<EXEC_START_DATE/>

<EXEC_START_TIME/>

<EXEC_FIN_DATE/>

<EXEC_FIN_TIME/>

<PERS_NO/>

<EX_IDENT/>

</item>

</ATHDRLEVELS>

<DETAIL_RETURN>

<item>

<TYPE/>

<ID/>

<NUMBER/>

<MESSAGE/>

<LOG_NO/>

<LOG_MSG_NO/>

<MESSAGE_V1/>

<MESSAGE_V2/>

<MESSAGE_V3/>

<MESSAGE_V4/>

<PARAMETER/>

<ROW/>

<FIELD/>

<SYSTEM/>

<FLG_LOCKED/>

<CONF_NO/>

<CONF_CNT/>

</item>

</DETAIL_RETURN>

<GOODSMOVEMENTS>

<item>

<MATERIAL>CH-6200</MATERIAL>

<PLANT>1000</PLANT>

<STGE_LOC>10Q5</STGE_LOC>

<BATCH>2009100083</BATCH>

<MOVE_TYPE>101</MOVE_TYPE>

<STCK_TYPE/>

<SPEC_STOCK/>

<VENDOR/>

<CUSTOMER/>

<SALES_ORD/>

<S_ORD_ITEM/>

<SCHED_LINE/>

<VAL_TYPE/>

<ENTRY_QNT>1000</ENTRY_QNT>

<ENTRY_UOM>KG</ENTRY_UOM>

<ENTRY_UOM_ISO/>

<PO_PR_QNT/>

<ORDERPR_UN/>

<ORDERPR_UN_ISO/>

<PO_NUMBER/>

<PO_ITEM/>

<SHIPPING/>

<COMP_SHIP/>

<NO_MORE_GR/>

<ITEM_TEXT/>

<GR_RCPT/>

<UNLOAD_PT/>

<COSTCENTER/>

<ORDERID>000001000010</ORDERID>

<ORDER_ITNO/>

<CALC_MOTIVE/>

<ASSET_NO/>

<SUB_NUMBER/>

<RESERV_NO/>

<RES_ITEM/>

<RES_TYPE/>

<WITHDRAWN/>

<MOVE_MAT/>

<MOVE_PLANT/>

<MOVE_STLOC/>

<MOVE_BATCH/>

<MOVE_VAL_TYPE/>

<MVT_IND/>

<MOVE_REAS/>

<RL_EST_KEY/>

<REF_DATE/>

<COST_OBJ/>

<PROFIT_SEGM_NO/>

<PROFIT_CTR/>

<WBS_ELEM/>

<NETWORK/>

<ACTIVITY/>

<PART_ACCT/>

<AMOUNT_LC/>

<AMOUNT_SV/>

<REF_DOC_YR/>

<REF_DOC/>

<REF_DOC_IT/>

<EXPIRYDATE/>

<PROD_DATE>2009-02-26</PROD_DATE>

<FUND/>

<FUNDS_CTR/>

<CMMT_ITEM/>

<VAL_SALES_ORD/>

<VAL_S_ORD_ITEM/>

<VAL_WBS_ELEM/>

<GL_ACCOUNT/>

<IND_PROPOSE_QUANX/>

<XSTOB/>

<EAN_UPC/>

<DELIV_NUMB_TO_SEARCH/>

<DELIV_ITEM_TO_SEARCH/>

<SERIALNO_AUTO_NUMBERASSIGNMENT/>

<VENDRBATCH/>

<STGE_TYPE/>

<STGE_BIN/>

<SU_PL_STCK_1/>

<ST_UN_QTYY_1/>

<ST_UN_QTYY_1_ISO/>

<UNITTYPE_1/>

<SU_PL_STCK_2/>

<ST_UN_QTYY_2/>

<ST_UN_QTYY_2_ISO/>

<UNITTYPE_2/>

<STGE_TYPE_PC/>

<STGE_BIN_PC/>

<NO_PST_CHGNT/>

<GR_NUMBER/>

<STGE_TYPE_ST/>

<STGE_BIN_ST/>

<MATDOC_TR_CANCEL/>

<MATITEM_TR_CANCEL/>

<MATYEAR_TR_CANCEL/>

<NO_TRANSFER_REQ/>

<CO_BUSPROC/>

<ACTTYPE/>

<SUPPL_VEND/>

<MATERIAL_EXTERNAL/>

<MATERIAL_GUID/>

<MATERIAL_VERSION/>

<MOVE_MAT_EXTERNAL/>

<MOVE_MAT_GUID/>

<MOVE_MAT_VERSION/>

<FUNC_AREA/>

<TR_PART_BA/>

<PAR_COMPCO/>

<DELIV_NUMB/>

<DELIV_ITEM/>

<NB_SLIPS/>

<NB_SLIPSX/>

<GR_RCPTX/>

<UNLOAD_PTX/>

<SPEC_MVMT/>

<GRANT_NBR/>

<CMMT_ITEM_LONG/>

<FUNC_AREA_LONG/>

<LINE_ID/>

<PARENT_ID/>

<LINE_DEPTH/>

<QUANTITY/>

<BASE_UOM/>

<LONGNUM/>

<BUDGET_PERIOD/>

</item>

</GOODSMOVEMENTS>

<LINK_CONF_GOODSMOV>

<item>

<INDEX_CONFIRM>1</INDEX_CONFIRM>

<INDEX_GOODSMOV>1</INDEX_GOODSMOV>

</item>

</LINK_CONF_GOODSMOV>

</TABLES>

</BAPI_PROCORDCONF_CREATE_HDR>

--!>

0 Kudos

Please show the ResponseXML from the BAPI. The Return Messages should indicate where the problem lies.

I would also read the documentation for the BAPI_GOODSMVT_CREATE. It looks like you should have a MVT_IND set to F for your MOVE_TYP of 101. There may be some other missing inputs.

I would also suggest that you perform a goods movement (or a confirmation with goods movement) in ECC, then display it in MII using BAPI_GOODSMVT_GETDETAIL. This shows a template of the information needed. I would also recommend doing both 101 and 261 as the requirements are slightly different for each. The other benefit is that everyone's ECC requirements can be configured different and this will display your particular system's requirements.

Good luck!

Mike

Former Member
0 Kudos
THE REQUEST FOR ORDER 1000292 IS

*REQUEST*

<?xml version="1.0" encoding="UTF-8"?>
<BAPI_PROCORDCONF_CREATE_HDR>
<INPUT>
<POST_WRONG_ENTRIES>2</POST_WRONG_ENTRIES>
<TESTRUN/>
</INPUT>
<TABLES>
<ATHDRLEVELS>
<item>
<ORDERID>000001000292</ORDERID>
<FIN_CONF>X</FIN_CONF>
<CLEAR_RES>X</CLEAR_RES>
<POSTG_DATE/>
<DEV_REASON/>
<CONF_TEXT/>
<EX_CREATED_BY/>
<EX_CREATED_DATE/>
<EX_CREATED_TIME/>
<CONF_QUAN_UNIT>EA</CONF_QUAN_UNIT>
<CONF_QUAN_UNIT_ISO/>
<YIELD>1</YIELD>
<SCRAP/>
<EXEC_START_DATE/>
<EXEC_START_TIME/>
<EXEC_FIN_DATE/>
<EXEC_FIN_TIME/>
<PERS_NO/>
<EX_IDENT/>
</item>
</ATHDRLEVELS>
<DETAIL_RETURN>
<item>
<TYPE/>
<ID/>
<NUMBER/>
<MESSAGE/>
<LOG_NO/>
<LOG_MSG_NO/>
<MESSAGE_V1/>
<MESSAGE_V2/>
<MESSAGE_V3/>
<MESSAGE_V4/>
<PARAMETER/>
<ROW/>
<FIELD/>
<SYSTEM/>
<FLG_LOCKED/>
<CONF_NO/>
<CONF_CNT/>
</item>
</DETAIL_RETURN>
<GOODSMOVEMENTS>
        <item>
            <MATERIAL>CH-1234</MATERIAL>
            <PLANT>1000</PLANT>
            <STGE_LOC>10Q5</STGE_LOC>
            <BATCH/>
            <MOVE_TYPE>101</MOVE_TYPE>
            <STCK_TYPE/>
            <SPEC_STOCK/>
            <VENDOR/>
            <CUSTOMER/>
            <SALES_ORD/>
            <S_ORD_ITEM/>
            <SCHED_LINE/>
            <VAL_TYPE/>
            <ENTRY_QNT>5.000</ENTRY_QNT>
            <ENTRY_UOM>EA</ENTRY_UOM>
            <ENTRY_UOM_ISO/>
            <PO_PR_QNT/>
            <ORDERPR_UN/>
            <ORDERPR_UN_ISO/>
            <PO_NUMBER/>
            <PO_ITEM/>
            <SHIPPING/>
            <COMP_SHIP/>
            <NO_MORE_GR/>
            <ITEM_TEXT/>
            <GR_RCPT/>
            <UNLOAD_PT/>
            <COSTCENTER/>
            <ORDERID>000001000292</ORDERID>
            <ORDER_ITNO/>
            <CALC_MOTIVE/>
            <ASSET_NO/>
            <SUB_NUMBER/>
            <RESERV_NO/>
            <RES_ITEM/>
            <RES_TYPE/>
            <WITHDRAWN/>
            <MOVE_MAT/>
            <MOVE_PLANT/>
            <MOVE_STLOC/>
            <MOVE_BATCH/>
            <MOVE_VAL_TYPE/>
            <MVT_IND>F</MVT_IND>
            <MOVE_REAS/>
            <RL_EST_KEY/>
            <REF_DATE/>
            <COST_OBJ/>
            <PROFIT_SEGM_NO/>
            <PROFIT_CTR/>
            <WBS_ELEM/>
            <NETWORK/>
            <ACTIVITY/>
            <PART_ACCT/>
            <AMOUNT_LC/>
            <AMOUNT_SV/>
            <REF_DOC_YR/>
            <REF_DOC/>
            <REF_DOC_IT/>
            <EXPIRYDATE/>
            <PROD_DATE>0000-00-00</PROD_DATE>
            <FUND/>
            <FUNDS_CTR/>
            <CMMT_ITEM/>
            <VAL_SALES_ORD/>
            <VAL_S_ORD_ITEM/>
            <VAL_WBS_ELEM/>
            <GL_ACCOUNT/>
            <IND_PROPOSE_QUANX/>
            <XSTOB/>
            <EAN_UPC/>
            <DELIV_NUMB_TO_SEARCH/>
            <DELIV_ITEM_TO_SEARCH/>
            <SERIALNO_AUTO_NUMBERASSIGNMENT/>
            <VENDRBATCH/>
            <STGE_TYPE/>
            <STGE_BIN/>
            <SU_PL_STCK_1/>
            <ST_UN_QTYY_1/>
            <ST_UN_QTYY_1_ISO/>
            <UNITTYPE_1/>
            <SU_PL_STCK_2/>
            <ST_UN_QTYY_2/>
            <ST_UN_QTYY_2_ISO/>
            <UNITTYPE_2/>
            <STGE_TYPE_PC/>
            <STGE_BIN_PC/>
            <NO_PST_CHGNT/>
            <GR_NUMBER/>
            <STGE_TYPE_ST/>
            <STGE_BIN_ST/>
            <MATDOC_TR_CANCEL/>
            <MATITEM_TR_CANCEL/>
            <MATYEAR_TR_CANCEL/>
            <NO_TRANSFER_REQ/>
            <CO_BUSPROC/>
            <ACTTYPE/>
            <SUPPL_VEND/>
            <MATERIAL_EXTERNAL/>
            <MATERIAL_GUID/>
            <MATERIAL_VERSION/>
            <MOVE_MAT_EXTERNAL/>
            <MOVE_MAT_GUID/>
            <MOVE_MAT_VERSION/>
            <FUNC_AREA/>
            <TR_PART_BA/>
            <PAR_COMPCO/>
            <DELIV_NUMB/>
            <DELIV_ITEM/>
            <NB_SLIPS/>
            <NB_SLIPSX/>
            <GR_RCPTX/>
            <UNLOAD_PTX/>
            <SPEC_MVMT/>
            <GRANT_NBR/>
            <CMMT_ITEM_LONG/>
            <FUNC_AREA_LONG/>
            <LINE_ID/>
            <PARENT_ID/>
            <LINE_DEPTH/>
            <QUANTITY/>
            <BASE_UOM/>
            <LONGNUM/>
            <BUDGET_PERIOD/>
        </item>
   </GOODSMOVEMENTS>
<LINK_CONF_GOODSMOV>
<item>
<INDEX_CONFIRM>1</INDEX_CONFIRM>
<INDEX_GOODSMOV>1</INDEX_GOODSMOV>
</item>
</LINK_CONF_GOODSMOV>
</TABLES>
</BAPI_PROCORDCONF_CREATE_HDR>
Former Member
0 Kudos
THE RESPONSE XML IS

*RESPONSE*

<?xml version="1.0" encoding="UTF-8"?>
<BAPI_PROCORDCONF_CREATE_HDR>
<INPUT>
<POST_WRONG_ENTRIES>2</POST_WRONG_ENTRIES>
<TESTRUN/>
</INPUT>
<OUTPUT>
<RETURN>
<TYPE/>
<ID/>
<NUMBER>000</NUMBER>
<MESSAGE/>
<LOG_NO/>
<LOG_MSG_NO>000000</LOG_MSG_NO>
<MESSAGE_V1/>
<MESSAGE_V2/>
<MESSAGE_V3/>
<MESSAGE_V4/>
</RETURN>
</OUTPUT>
<TABLES>
<ATHDRLEVELS>
<item>
<ORDERID>000001000292</ORDERID>
<FIN_CONF>X</FIN_CONF>
<CLEAR_RES>X</CLEAR_RES>
<POSTG_DATE>0000-00-00</POSTG_DATE>
<DEV_REASON/>
<CONF_TEXT/>
<EX_CREATED_BY/>
<EX_CREATED_DATE>0000-00-00</EX_CREATED_DATE>
<EX_CREATED_TIME>00:00:00</EX_CREATED_TIME>
<CONF_QUAN_UNIT>EA</CONF_QUAN_UNIT>
<CONF_QUAN_UNIT_ISO/>
<YIELD>1.000</YIELD>
<SCRAP>0</SCRAP>
<EXEC_START_DATE>0000-00-00</EXEC_START_DATE>
<EXEC_START_TIME>00:00:00</EXEC_START_TIME>
<EXEC_FIN_DATE>0000-00-00</EXEC_FIN_DATE>
<EXEC_FIN_TIME>00:00:00</EXEC_FIN_TIME>
<PERS_NO>00000000</PERS_NO>
<EX_IDENT/>
</item>
</ATHDRLEVELS>
<DETAIL_RETURN>
<item>
<TYPE>I</TYPE>
<ID>RU</ID>
<NUMBER>100</NUMBER>
<MESSAGE>Confirmation of order 000001000292 saved</MESSAGE>
<LOG_NO/>
<LOG_MSG_NO>000000</LOG_MSG_NO>
<MESSAGE_V1>000001000292</MESSAGE_V1>
<MESSAGE_V2/>
<MESSAGE_V3/>
<MESSAGE_V4/>
<PARAMETER/>
<ROW>1</ROW>
<FIELD/>
<SYSTEM>CDECLNT400</SYSTEM>
<FLG_LOCKED/>
<CONF_NO>0000001587</CONF_NO>
<CONF_CNT>00000013</CONF_CNT>
</item>
</DETAIL_RETURN>
<GOODSMOVEMENTS>
<item>
<MATERIAL>CH-1234</MATERIAL>
<PLANT>1000</PLANT>
<STGE_LOC>10Q5</STGE_LOC>
<BATCH/>
<MOVE_TYPE>101</MOVE_TYPE>
<STCK_TYPE/>
<SPEC_STOCK/>
<VENDOR/>
<CUSTOMER/>
<SALES_ORD/>
<S_ORD_ITEM>000000</S_ORD_ITEM>
<SCHED_LINE>0000</SCHED_LINE>
<VAL_TYPE/>
<ENTRY_QNT>5.000</ENTRY_QNT>
<ENTRY_UOM>EA</ENTRY_UOM>
<ENTRY_UOM_ISO/>
<PO_PR_QNT>0</PO_PR_QNT>
<ORDERPR_UN/>
<ORDERPR_UN_ISO/>
<PO_NUMBER/>
<PO_ITEM>00000</PO_ITEM>
<SHIPPING/>
<COMP_SHIP/>
<NO_MORE_GR/>
<ITEM_TEXT/>
<GR_RCPT/>
<UNLOAD_PT/>
<COSTCENTER/>
<ORDERID>000001000292</ORDERID>
<ORDER_ITNO>0000</ORDER_ITNO>
<CALC_MOTIVE/>
<ASSET_NO/>
<SUB_NUMBER/>
<RESERV_NO>0000000000</RESERV_NO>
<RES_ITEM>0000</RES_ITEM>
<RES_TYPE/>
<WITHDRAWN/>
<MOVE_MAT/>
<MOVE_PLANT/>
<MOVE_STLOC/>
<MOVE_BATCH/>
<MOVE_VAL_TYPE/>
<MVT_IND>F</MVT_IND>
<MOVE_REAS>0000</MOVE_REAS>
<RL_EST_KEY/>
<REF_DATE>0000-00-00</REF_DATE>
<COST_OBJ/>
<PROFIT_SEGM_NO>0000000000</PROFIT_SEGM_NO>
<PROFIT_CTR/>
<WBS_ELEM/>
<NETWORK/>
<ACTIVITY/>
<PART_ACCT/>
<AMOUNT_LC>0</AMOUNT_LC>
<AMOUNT_SV>0</AMOUNT_SV>
<REF_DOC_YR>0000</REF_DOC_YR>
<REF_DOC/>
<REF_DOC_IT>0000</REF_DOC_IT>
<EXPIRYDATE>0000-00-00</EXPIRYDATE>
<PROD_DATE>0000-00-00</PROD_DATE>
<FUND/>
<FUNDS_CTR/>
<CMMT_ITEM/>
<VAL_SALES_ORD/>
<VAL_S_ORD_ITEM>000000</VAL_S_ORD_ITEM>
<VAL_WBS_ELEM/>
<GL_ACCOUNT/>
<IND_PROPOSE_QUANX/>
<XSTOB/>
<EAN_UPC/>
<DELIV_NUMB_TO_SEARCH/>
<DELIV_ITEM_TO_SEARCH>000000</DELIV_ITEM_TO_SEARCH>
<SERIALNO_AUTO_NUMBERASSIGNMENT/>
<VENDRBATCH/>
<STGE_TYPE/>
<STGE_BIN/>
<SU_PL_STCK_1>0</SU_PL_STCK_1>
<ST_UN_QTYY_1>0</ST_UN_QTYY_1>
<ST_UN_QTYY_1_ISO/>
<UNITTYPE_1/>
<SU_PL_STCK_2>0</SU_PL_STCK_2>
<ST_UN_QTYY_2>0</ST_UN_QTYY_2>
<ST_UN_QTYY_2_ISO/>
<UNITTYPE_2/>
<STGE_TYPE_PC/>
<STGE_BIN_PC/>
<NO_PST_CHGNT/>
<GR_NUMBER/>
<STGE_TYPE_ST/>
<STGE_BIN_ST/>
<MATDOC_TR_CANCEL/>
<MATITEM_TR_CANCEL>0000</MATITEM_TR_CANCEL>
<MATYEAR_TR_CANCEL>0000</MATYEAR_TR_CANCEL>
<NO_TRANSFER_REQ/>
<CO_BUSPROC/>
<ACTTYPE/>
<SUPPL_VEND/>
<MATERIAL_EXTERNAL/>
<MATERIAL_GUID/>
<MATERIAL_VERSION/>
<MOVE_MAT_EXTERNAL/>
<MOVE_MAT_GUID/>
<MOVE_MAT_VERSION/>
<FUNC_AREA/>
<TR_PART_BA/>
<PAR_COMPCO/>
<DELIV_NUMB/>
<DELIV_ITEM>000000</DELIV_ITEM>
<NB_SLIPS>000</NB_SLIPS>
<NB_SLIPSX/>
<GR_RCPTX/>
<UNLOAD_PTX/>
<SPEC_MVMT/>
<GRANT_NBR/>
<CMMT_ITEM_LONG/>
<FUNC_AREA_LONG/>
<LINE_ID>000000</LINE_ID>
<PARENT_ID>000000</PARENT_ID>
<LINE_DEPTH>00</LINE_DEPTH>
<QUANTITY>0</QUANTITY>
<BASE_UOM/>
<LONGNUM/>
<BUDGET_PERIOD/>
</item>
</GOODSMOVEMENTS>
<LINK_CONF_GOODSMOV>
<item>
<INDEX_CONFIRM>1</INDEX_CONFIRM>
<INDEX_GOODSMOV>1</INDEX_GOODSMOV>
</item>
</LINK_CONF_GOODSMOV>
</TABLES>
</BAPI_PROCORDCONF_CREATE_HDR>
Former Member
0 Kudos

hey Michael,

Thanks for your help...

I am cheking out with the the BAPI_GOODSMVT_GETDETAIL & BAPI_GOODSMVT_CREATE so as to ensure that i am giving all required inputs.

will update you if something fruitful comes out.

Please let me know if you find any issues in request and response xmls.

0 Kudos

It does not look like the goods movement is working. There seems to be no material document or material document year being created from your inputs.

So a couple of other things worth doing. Execute the BAPI_PRODORDCONF_GET_DETAIL for the confirmation number and counter from your successful confirmation. That may indicate some specific failure in the goods movement.

Check to see if the material/order is already set to auto goods receipt (that will cause the failure of the goods movement) or if the clearing of the material reservation causes the auto goods receipt.

You can also try to do the Confirmation without the Goods Receipt. Then do a separate goods movement using BAPI_GOODSMVT_CREATE. I frequently find myself doing it this way since error handling can also be separated (or more accurately, simplified) on the MII side of things. That approach sometimes depends upon how MII and ECC savvy the folks are who will end up troubleshooting the errors. You may also want to see if there are any goods issues occuring automatically just for reference.

Good luck,

Mike

Former Member
0 Kudos

Thnaks.

I will try with this and will let you know what comes out...

Former Member
0 Kudos

Hi Mike,

thanks for teh help.

If i use BAPI_GOODSMVT_CREATE then what will be the mandatory inputs?

0 Kudos

BAPI_GOODSMVT_CREATE is actually the only BAPI that I have seen which is properly documented. Please read the documentation, then test in SE37 or BAPI before trying in MII. Also when using in MII, make sure leading zeroes are included in numeric inputs including order, material, batch, etc. Testing in SE37 and BAPI automagically prepends leading zeroes. MII does not have the same magic.

Good luck,

Mike

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Kindly check the transaction in SAP MII, where they performed commit operation on confirming a PO & Goods movement.

i.e BAPI_TRANSACTION_COMMIT must be used in transaction. If not, then add the BAPI(BAPI_TRANSACTION_COMMIT) using JCO connector,

You can check the Goods movement by using MIGO transaction in SAP ECC side.

Thanks

Rajesh.S

Former Member
0 Kudos

I have "checked" the "Automatically Committ the transaction" option in the transaction in XMII .So there is no issue with committ.

Again i can see the changed status of the order REL to CNF in ECC.....So the changes are reflecting in ECC.