Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

regarding error

Former Member
0 Kudos

HI EXPERTS,

i have written codes for confirming production order,,,every thing is working fine but

WHEN i check it in co14 the goods movement components are coming in blue color with this message..."Highlighted items need to be processed"and also the yield field is coming vacant here MEANS even i pass the yield quantity the yield field is not populating here plz help me to correct this blue color. and yield problem..

*note :when i execute this report for the first time for the new production order the yield quantity is populating and from the second time it stops populating...data:TIMETICKETS LIKE BAPI_PP_TIMETICKET occurs 0 with header line.

move '706000000041' to timetickets-ORDERID.

*move '0' to timetickets-SEQUENCE.

move '0010' to timetickets-OPERATION.

move sy-datum to timetickets-POSTG_DATE.

move '6000' to timetickets-PLANT.

MOVE 'SMAF' to timetickets-WORK_CNTR.

move '4' to timetickets-YIELD.

move 'MT' to timetickets-CONF_QUAN_UNIT.

move sy-datum to timetickets-EXEC_START_DATE.

move '060000' to timetickets-EXEC_START_TIME.

move '20070914' to timetickets-EXEC_FIN_DATE.

move '060000' to timetickets-EXEC_FIN_TIME.

append timetickets.

clear timetickets.

*____________________________________________________________________

*for goodsmovement:

data:GM_ITEM LIKE BAPI2017_GM_ITEM_CREATE occurs 0 with header

line.

**move statement for movement type 101.

MOVE '706000000041' TO GM_ITEM-ORDERID.

MOVE '101' TO GM_ITEM-MOVE_TYPE .

MOVE 'X' to GM_ITEM-NO_MORE_GR.

MOVE '000000003000000196' TO GM_ITEM-MATERIAL.

MOVE '7' TO GM_ITEM-ENTRY_QNT.

*MOVE 'MT' TO GM_ITEM-BASE_UOM.

MOVE 'MT' TO GM_ITEM-ENTRY_UOM.

MOVE '6000' TO GM_ITEM-PLANT.

MOVE 'WFC1' TO GM_ITEM-STGE_LOC.

move 'F' to gm_item-MVT_IND.

move '0010' to gm_item-ACTIVITY.

APPEND GM_ITEM.

clear GM_ITEM.

**move statement for movement type 261.

MOVE '706000000041' TO GM_ITEM-ORDERID.

MOVE '261' TO GM_ITEM-MOVE_TYPE .

MOVE 'X' to GM_ITEM-NO_MORE_GR.

MOVE '000000003000000195' TO GM_ITEM-MATERIAL.

MOVE '1' TO GM_ITEM-ENTRY_QNT.

*MOVE 'MT' TO GM_ITEM-BASE_UOM.

MOVE '6000' TO GM_ITEM-PLANT.

MOVE 'WFC1' TO GM_ITEM-STGE_LOC.

MOVE '1000007735' TO GM_ITEM-BATCH.

move 'F' to gm_item-mvt_ind.

move '0010' to gm_item-ACTIVITY.

MOVE 'MT' TO GM_ITEM-ENTRY_UOM.

APPEND GM_ITEM.

clear GM_ITEM.

MOVE '706000000041' TO GM_ITEM-ORDERID.

MOVE '261' TO GM_ITEM-MOVE_TYPE .

MOVE '000000003000000193' TO GM_ITEM-MATERIAL.

MOVE '1' TO GM_ITEM-ENTRY_QNT.

*MOVE 'MT' TO GM_ITEM-BASE_UOM.

MOVE 'X' to GM_ITEM-NO_MORE_GR.

MOVE '6000' TO GM_ITEM-PLANT.

MOVE 'WFC1' TO GM_ITEM-STGE_LOC.

MOVE '1000007727' TO GM_ITEM-BATCH.

move 'F' to gm_item-mvt_ind.

move '0010' to gm_item-ACTIVITY.

MOVE 'MT' TO GM_ITEM-ENTRY_UOM.

APPEND GM_ITEM.

clear GM_ITEM.

MOVE '706000000041' TO GM_ITEM-ORDERID.

MOVE '261' TO GM_ITEM-MOVE_TYPE .

MOVE '000000001000000389' TO GM_ITEM-MATERIAL.

MOVE '1' TO GM_ITEM-ENTRY_QNT.

MOVE 'MT' TO GM_ITEM-BASE_UOM.

MOVE 'X' to GM_ITEM-NO_MORE_GR.

MOVE '6000' TO GM_ITEM-PLANT.

MOVE 'FCRM' TO GM_ITEM-STGE_LOC.

move 'F' to gm_item-mvt_ind.

move '0010' to gm_item-ACTIVITY.

*MOVE 'MT' TO GM_ITEM-ENTRY_UOM.

APPEND GM_ITEM.

clear GM_ITEM.

MOVE '706000000041' TO GM_ITEM-ORDERID.

MOVE '261' TO GM_ITEM-MOVE_TYPE .

MOVE '000000001000000390' TO GM_ITEM-MATERIAL.

MOVE '1' TO GM_ITEM-ENTRY_QNT.

MOVE 'MT' TO GM_ITEM-BASE_UOM.

MOVE 'X' to GM_ITEM-NO_MORE_GR.

MOVE '6000' TO GM_ITEM-PLANT.

MOVE 'FCRM' TO GM_ITEM-STGE_LOC.

move 'F' to gm_item-mvt_ind.

move '0010' to gm_item-ACTIVITY.

*MOVE 'MT' TO GM_ITEM-ENTRY_UOM.

APPEND GM_ITEM.

clear GM_ITEM.

MOVE '706000000041' TO GM_ITEM-ORDERID.

MOVE '261' TO GM_ITEM-MOVE_TYPE .

MOVE '000000001000000391' TO GM_ITEM-MATERIAL.

MOVE '1' TO GM_ITEM-ENTRY_QNT.

MOVE 'MT' TO GM_ITEM-BASE_UOM.

MOVE 'X' to GM_ITEM-NO_MORE_GR.

MOVE '6000' TO GM_ITEM-PLANT.

MOVE 'FCRM' TO GM_ITEM-STGE_LOC.

move 'F' to gm_item-mvt_ind.

move '0010' to gm_item-ACTIVITY.

*MOVE 'MT' TO GM_ITEM-ENTRY_UOM.

APPEND GM_ITEM.

clear GM_ITEM.

MOVE '706000000041' TO GM_ITEM-ORDERID.

MOVE '261' TO GM_ITEM-MOVE_TYPE .

MOVE '000000001000000392' TO GM_ITEM-MATERIAL.

MOVE '2' TO GM_ITEM-ENTRY_QNT.

MOVE 'MT' TO GM_ITEM-BASE_UOM.

MOVE 'X' to GM_ITEM-NO_MORE_GR.

MOVE '6000' TO GM_ITEM-PLANT.

MOVE 'FCRM' TO GM_ITEM-STGE_LOC.

move 'F' to gm_item-mvt_ind.

move '0010' to gm_item-ACTIVITY.

*MOVE 'MT' TO GM_ITEM-ENTRY_UOM.

APPEND GM_ITEM.

clear GM_ITEM.

*_________________________________________________________________

*for LinkConfGoodsmov.

data:LINK_CONF_GOODSMOV LIKE BAPI_LINK_CONF_GOODSMOV occurs 0 with

header line.

move '1' to LINK_CONF_GOODSMOV-INDEX_CONFIRM.

move '1' To LINK_CONF_GOODSMOV-INDEX_GOODSMOV.

append LINK_CONF_GOODSMOV.

clear LINK_CONF_GOODSMOV.

move '1' to LINK_CONF_GOODSMOV-INDEX_CONFIRM.

move '2' to LINK_CONF_GOODSMOV-INDEX_GOODSMOV.

append LINK_CONF_GOODSMOV.

clear LINK_CONF_GOODSMOV.

move '1' to LINK_CONF_GOODSMOV-INDEX_CONFIRM.

move '3' to LINK_CONF_GOODSMOV-INDEX_GOODSMOV.

append LINK_CONF_GOODSMOV.

clear LINK_CONF_GOODSMOV.

move '1' to LINK_CONF_GOODSMOV-INDEX_CONFIRM.

move '4' to LINK_CONF_GOODSMOV-INDEX_GOODSMOV.

append LINK_CONF_GOODSMOV.

clear LINK_CONF_GOODSMOV.

move '1' to LINK_CONF_GOODSMOV-INDEX_CONFIRM.

move '5' to LINK_CONF_GOODSMOV-INDEX_GOODSMOV.

append LINK_CONF_GOODSMOV.

clear LINK_CONF_GOODSMOV.

move '1' to LINK_CONF_GOODSMOV-INDEX_CONFIRM.

move '6' to LINK_CONF_GOODSMOV-INDEX_GOODSMOV.

append LINK_CONF_GOODSMOV.

clear LINK_CONF_GOODSMOV.

move '1' to LINK_CONF_GOODSMOV-INDEX_CONFIRM.

move '7' to LINK_CONF_GOODSMOV-INDEX_GOODSMOV.

append LINK_CONF_GOODSMOV.

clear LINK_CONF_GOODSMOV.

*_____________________________________________________________________

*for detail return.

data:DETAIL_RETURN LIKE BAPI_CORU_RETURN occurs 0 with header line.

data:PROPOSE LIKE BAPI_PP_CONF_PROP occurs 0 with header line.

data:RETURN LIKE BAPIRET1 occurs 0 with header line.

*______________________________________________________________________

*For calling of BAPI.

move '' to Propose-Quantity.

move '' to Propose-Activity.

move '' to propose-DATE_AND_TIME.

move '' to propose-PERSONNEL.

move '' to Propose-Goodsmovement.

append propose.

clear propose.

CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'

EXPORTING

PROPOSE = PROPOSE

IMPORTING

RETURN = RETURN

TABLES

TIMETICKETS = TIMETICKETS

GOODSMOVEMENTS = GM_ITEM

LINK_CONF_GOODSMOV = LINK_CONF_GOODSMOV

DETAIL_RETURN = DETAIL_RETURN.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = '5'.

loop at detail_return.

write:/ return,

detail_return-message,

detail_return-conf_no,

detail_return-conf_cnt.

endloop.

*_______________________________________________________________________

*for calling of second BAPI.

refresh:DETAIL_RETURN,return.

clear:Return,DETAIL_RETURN.

CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'

EXPORTING

POST_WRONG_ENTRIES = '0'

IMPORTING

RETURN = Return

TABLES

TIMETICKETS = TIMETICKETS

GOODSMOVEMENTS = GM_ITEM

LINK_CONF_GOODSMOV = LINK_CONF_GOODSMOV

DETAIL_RETURN = DETAIL_RETURN.

COMMIT WORK AND WAIT.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = '4'.

*

loop at DETAIL_RETURN.

write:/ return,

DETAIL_RETURN-message.

when i check im co14 here every thing is coming in the goodsmovement screen but the unit of entry is not coming ...it is giving this message...

1 REPLY 1

Former Member
0 Kudos

Hi,

I would suggest you to go to SE37 -> 'BAPI_PRODORDCONF_CREATE_TT' and then Display and see Documentation.

There can be some parameters required for configuration.

<b><REMOVED BY MODERATOR></b>

Message was edited by:

Alvaro Tejada Galindo