Bapi re: CO11N BAPI_PRODORDCONF_GET_TT_PROP & BAPI_PRODORDCONF_CREATE_TT
Hi,
I have a little problem with the bapi's
BAPI_PRODORDCONF_CREATE_TT and BAPI_PRODORDCONF_GET_TT_PROP
1. in abap i call BAPI_PRODORDCONF_GET_TT_PROP first , the proposed goodsmovement is not the same as the default on co11n, it does not included the bom components of the materials, same thing if i leave the goodsmovement table on bapi BAPI_PRODORDCONF_CREATE_TT.
2. so i manually added the bom components on the goodsmovement table, also populated the link_conf_goodsmov table, BAPI_PRODORDCONF_GET_TT_PROP confirmation was okay but now the results are generating 2 documents.
tried populating other fields on the goodsmovement table but with no effects
i want to ask if there are configuration regarding the default values in bapi BAPI_PRODORDCONF_GET_TT_PROP because its not the same as c011n
Best regards,
Francisco
thanks but note for 4.6c is only help documentation
solved BAPI_PRODORDCONF_GET_TT_PROP to generate goodsmovements for all materials + components by copying and modifying the fm and adding TRANS_CATEGORY = 'X' to functiom module CO_RI_TIMETICKETCONF_CREATE
still 2 matdocs are being generated instead of 1 like co11n
Similar Messages
-
Help - Problem with BAPI confirmation (co11n)
Hi gurus,
Please , i need some help with some problems i am having with BAPIs for confirmations.
I have found this one : BAPI_PRODORDCONF_GET_TT_PROP, to get the propose data, but i i can't figured out how to fill the goodmovements table. I need to do this, because i want to know the proposal of goodmovements, just exactly that sap's does when i enter to the tx CO11N, enter the YIELD quantity and then press "goods movements" button.
Please, is there some trick or something to make this work? ( i have already put "X" in the import "PROPOSE - GOODMOVEMENTS" , but still is not working).
If get this, i could put this values in BAPI_PRODORDCONF_CREATE_TT and that's it... i suppose.
Please help me
Thanks a lot!Hi ,
Before going into BAPI's , Auto goods movement happens in two ways.
1. check whether Auto goods receipt is checked in T.code OPKP.
2. The other way is to assign a Control Key to the operation which has a Auto GR checked.
Please check these two and then trigger confirmation using your BAPI.
Hope this helps.
Best Regards. -
Dear Gurus,
I am using Bapi to create production order confirmation by time tickets. That is insists of using the transaction CO11N i am using bapi becoz for the confirmation input getting from non sap.
Here i have used two BAPI'S
1) BAPI_PRODORDCONF_GET_TT_PROP
2) BAPI_PRODORDCONF_CREATE_TT
I am getting the input from external system and passed to first bapi and according to the inputs i get the proposed value and i passed the output of first bapi to second bapi as input and i create confirmations.
In that i am using Back flushing concept for the goods movement. so when i am confirming system automatically propose materials to goods movement. Here i have finished goods material (ie) movement type is 101 and for consumption material (ie)261 and i have byproduct material as 531 movement.
When i am using the above said bapi to confirm the production order - order quantity partially
E.g:
Order qty - 1000kg
1st confirmation - 100 kg using the bapi's
i have back flush component as
MAT A 100kg - PLANT - STOR LOC - MOV TYPE(101)
MAT B 120kg - PLANT - STOR LOC - MOV TYPE(261)
MAT C 20kg - PLANT - STOR LOC - MOV TYPE(531)
For this system creating two material document as for 101 movement type separate document and for 261 and 531 movement material separate document.
But when i am using CO11N transaction to confirm the same with three material system creating one document.
Why system is creating two material document when i am using the functional module? i need to create one document for this.
Please suggest your idea.
Regards,
VimalDear Vimal,
please review SAP's FAQ note 540392, question/answer #10.
Regards, Andreas -
Create confirmation by BAPI for color size
Dear All,
We can create confirmation by BAPI_PRODORDCONF_CREATE_TT.
But there has no option for add the AFS grid value(color/size).
Is there any other BAPI for this?
Please advice me.
thanks B/R
Bishnu
07/07/2010Dear
I am not quite sure about BAPI usegability .Check this BAPI if it comes to your work :
BAPI_PRODORDCONF_CREATE_ACT Enter Activity Confirmation
BAPI_PRODORDCONF_CREATE_HDR Enter Order Confirmations
BAPI_PRODORDCONF_CREATE_TE Enter Time Event Confirmation
BAPI_PRODORDCONF_CREATE_TT Enter Time Ticket Confirmation
BAPI_PRODORDCONF_EXIST_CHK Existence Check for Confirming Production Order
BAPI_PRODORDCONF_GETDETAIL Detailed Data for Production Order Confirmation
BAPI_PRODORDCONF_GETLIST Confirmations List
For production order different BAPIS are available
BAPI_PRODORDCONF_CREATE_TE
BAPI_PRODORDCONF_CREATE_TT
for proposals
BAPI_PRODORDCONF_GET_TE_PROP
BAPI_PRODORDCONF_GET_TT_PROP
For more details and documentation, please have a look at transaction BAPI.\
Try with them to accomodate your rquirement and revert
Regards
JH -
Dear all,
I am calling these 2 bapi's in my program
BAPI_PRODORDCONF_GET_TT_PROP,
BAPI_PRODORD_GET_DETAIL.
Due to this Bapi's report is very slow.
How can I improve the performance of my report?
Regards,
PoojaHi Pooja,
I agree to the suggestion given adding to that Check with the individual BAPIs too.
BAPI_PRODORDCONF_GET_TT_PROP :Propose Data for Time Ticket Confirmation
it took nearly 6 lak microsecs.
BAPI_PRODORD_GET_DETAIL: Order detail data
better to check the where list of these BAPIs also will give u hint the required field too
code check with SCI and also have a trace
ST05 .
May help u.
Cheers
Mohinder Singh -
BAPI for Partial Confirmation CO11N
Dear Gurus,
REG : BAPI
How to get the actual activites for partial confirmation of qty
we have tried some bapis like for getting activites we have used
bapi_prodordconf_get_tt_prop
but in this bapi it is calculating total qty i.e, order qty not for the yeild qty.
I need to get the yeild qty planned activites
Tks
MuraliHi,
Check the Bapis
BAPI_PRODORDCONF_CREATE_TT
BAPI_PRODORDCONF_CREATE_HDR
Regards,
Raj. -
Bapi BAPI_PRODORDCONF_CREATE_TT
Hi people,
I'm trying to use BAPI_PRODORDCONF_CREATE_TT to load data into tx CO11N. I need to fill the field "production date", and couldn't find the corresponding field in this bapi. I can't fill the structure "goodsmovements" because this bapi define it automatically. If you have some tip about it, please, let me know.
regardsHello
Please have a look at OSS note 351181 below. This might help.
Symptom
Goods movements which have a filled the date of production (GOODSMOVEMENTS-PROD_DATE) are transferred to a BAPI for the confirmation.
However, this date is lost in the course of processing so that the goods movements run incorrectly and must be reprocessed
Additional key words
BAPI_PRODORDCONF_CREATE_TT, BAPI_PRODORDCONF_CREATE_TE,
BAPI_PRODORDCONF_CREATE_HDR, GOODSMOVEMENTS-PROD_DATE, date of production,
Batch, shelf life expiration date, SLED
Cause and prerequisites
The problem is caused by a program error. The goods movements in internal table IMSEG_TAB are available to FORM routine VB_GOODS_MOVEMENTS. This FORM routine also includes the date of production in field HSDAT.
The goods movement data is transferred with MOVE-CORRESPONDING to internal table TMP_AFFW_TAB. However, it does not have field HSDAT. The date of production is managed in field MHDAT, there.
Solution
Implement the program correction. The date of production is transferred from IMSEG_TAB to field MHDAT of TMP_AFFW_TAB if it does not already contain a shelf life expiration date.
<b>Reward points if useful</b>
Regards
Saket Sharma
null -
Bapi BAPI_PRODORDCONF_GET_TT_PROP
Hi, how can I use this function module (PRODORDCONF_GET_TT_PROP) to post also the standard times in the confirmation?
Many thanks.
LucaSometimes the function module gives the standard times, other times it doesn't work.
I don't know the reason. So, it's better to calculate the times and insert them into table "timetickets". -
Help- Problem witth BAPI Confirmation
Hi gurus,
Please , i need some help with some problems i am having with BAPIs for confirmations.
I have found this one : BAPI_PRODORDCONF_GET_TT_PROP, to get the propose data, but i i can't figured out how to fill the goodmovements table. I need to do this, because i want to know the proposal of goodmovements, just exactly that sap's does when i enter to the tx CO11N, enter the YIELD quantity and then press "goods movements" button.
Please, is there some trick or something to make this work? ( i have already put "X" in the import "PROPOSE - GOODMOVEMENTS" , but still is not working).
If get this, i could put this values in BAPI_PRODORDCONF_CREATE_TT and that's it... i suppose.
Please help me
Thanks a lot!Hi ,
Before going into BAPI's , Auto goods movement happens in two ways.
1. check whether Auto goods receipt is checked in T.code OPKP.
2. The other way is to assign a Control Key to the operation which has a Auto GR checked.
Please check these two and then trigger confirmation using your BAPI.
Hope this helps.
Best Regards. -
Delivery Completed Indicator set during BAPI_PRODORDCONF_CREATE_TT
Hi Gurus,
I am using BAPI_PRODORDCONF_CREATE_TT to perform our production confirmation.
I want to force a goods movement item to be "Delivery Completed". I found the field GOODSMOVEMENTS-NO_MORE_GR in the BAPI which has a component type ELIKZ. When i put an X for this item during the BAPI run, it does not change the status of the item in the production order as Final Issue.
Is GOODSMOVEMENTS-NO_MORE_GR equal to the field "Indicator: Goods movement item completed" (ENDKZ) in the confirmation? They have the same description.
I found another field which is GOODSMOVEMENTS-WITHDRAWN (KZEAR) but it also does not change the status of the item after BAPI run.
Thanks in advance for all your help.
Regards,
johnHello John
Indicator NO_MORE_GR should be used only for the goods receipt with movement 101 and it will not affect the components.
Field WITHDRAWN is the correct field to be used to set the final issue indicator for a component, however, you must ensure that you are sending the correct reservation number and item.
I suggest you to use BAPI BAPI_PRODORDCONF_GET_TT_PROP to get the proposed data for the confirmation, including the components, and change the values when necessary.
BR
Caetano -
Reg:Bapi for mass creation of production order/confirmation
Dear Experts,
I wanted to know with the following BAPI is it possible to create Multiple production orders for different semifinshed Materials along with material availability check and other functions similar to CO01 transaction.
I knew there are standard transactions for mass confirmation for production orders. But i need a confirmation on this BAPI . As i am planning to go-ahed with ,mass creation of production order creation / Order confirmation in single custom transaction.Need back flush activity even supported.
BAPI_PRODORD_CREATE to create the orders.
BAPI_PRODORD_RELEASE to release the orders.
BAPI_PRODORDCONF_GET_TT_PROP to get the default data for the confirmation.
BAPI_PRODORDCONF_CREATE_TT to ost the confirmation of production order.
Along with this BAPI do i need to commit any other BAPI to carry out back flush for components.
Need your suggestions to take it further.
Regards,
Daya.Dear SAP Daya
If the issue has been solved, please close this thread.
You have already mentioned that the issue has been resolved, thefore, you should not ask for help on another thread before closing this one, as it looks like you are trying to force people to answer your threads.
Users are always trying to answer as many threads as possible on good will we don't need this kind of "incentive".
Please read carefully the The SCN Rules of Engagement, especially point 8:
Be responsive. If an SCN member has answered your question, please mark the answer as "helpful” or “correct”. Mark the discussion as “answered,” so that other members can find the answers more easily
Also, I checked your old threads and I could observe that there is only one closed. Please review your old threads and close those already solved.
BR
Caetano -
BAPI for Production Order creation ?
Hi Experts,
I am new to PP module and as per my requirement I have to:
1. Create Production order in ECC 6.0
After searching BAPI explorer, SDN and other sites I could see that there is no BAPI for Create Production order.
In one of the link I could find FM CLOI_CHANGES_UPL_31 used to create Production order in SAP.
Is there any BAPI to create ??
Can anyone let mw know right FM or BAPI to create Production order with an example.
2. And I have to:
Delete Production order
which BAPI is used for deletion of Prd Ord
BAPI_PRODORD_SET_DEL_INDICATOR or BAPI_PRODORD_SET_DELETION_FLAG
For Confirm Production order - in ECC 6.0 Let mw know the BAPI for this ..
Really helpful if you answer my queries...
Thanks
UdayHi udaya,
use the BAPI 'BAPI_PRODORD_CREATE'
The following BAPIs are available confirmation of production orders:
Entry
Time ticket
ProdOrdConfirmation.CreateTimeTicketMultiple
BAPI_PRODORDCONF_CREATE_TT
Time event
ProdOrdConfirmation.CreateAtHeaderLevelMultiple
BAPI_PRODORDCONF_CREATE_HDR
Order confirmation
ProdOrdConfirmation.CreateAtHeaderLevelMultiple
BAPI_PRODORDCONF_CREATE_HDR
Activity confirmation
ProdOrdConfirmation.CreateActConfMultiple
BAPI_PRODORDCONF_CREATE_ACT
Defaults
Time ticket
ProdOrdConfirmation.GetTimeTicketProposal
BAPI_PRODORDCONF_GET_TT_PROP
Time event
ProdOrdConfirmation.GetTimeEventProposal
BAPI_PRODORDCONF_GET_TE_PROP
Order confirmation
ProdOrdConfirmation.GetAtHeaderLevelProposal
BAPI_PRODORDCONF_GET_HDR_PROP
Cancelling confirmations
ProdOrdConfirmation.Cancel
BAPI_PRODORDCONF_CANCEL
List of confirmations
ProdOrdConfirmation.GetList
BAPI_PRODORDCONF_GETLIST
Detail data for confirmations
ProdOrdConfirmation.GetDetail
BAPI_PRODORDCONF_GETDETAIL
Existence check
ProdOrdConfirmation.ExistenceCheck
BAPI_PRODORDCONF_EXIST_CHK
Regards,
Ravi -
Bapi 4 process order confirmation??
hi abapers.............
can ne1 tell me wt is the BAPI 4 process order confirmation.
thanx in advance .
anilHi
BAPI_PRODORDCONF_CANCEL
BAPI_PRODORDCONF_CREATE_ACT
BAPI_PRODORDCONF_CREATE_HDR
BAPI_PRODORDCONF_CREATE_TE
BAPI_PRODORDCONF_CREATE_TT
BAPI_PRODORDCONF_EXIST_CHK
BAPI_PRODORDCONF_GETDETAIL
BAPI_PRODORDCONF_GETLIST
BAPI_PRODORDCONF_GET_HDR_PROP
BAPI_PRODORDCONF_GET_TE_PROP
BAPI_PRODORDCONF_GET_TT_PROP
BAPI_PRODORDCONF_PDC_UPLOAD_TE
BAPI_PRODORDCONF_PDC_UPLOAD_TT
Regards
Kathirvel -
BAPI For Procduction Order Confirmation
Hi Expert,
How to use the BAPI_PRODORDCONF_CREATE_TT for Process Order Confirmation
I have to use two internal tables for order confirmation
GOODSMOVEMENTS
LINK_CONF_GOODSMOV
Please help.
Thanks in advance.Hi Arpit,
This BAPI is having Table parameter 'TIMETICKETS' as mandatory. You can use it as below:
ls_timeticket-conf_no = i_rueck. " confirmation number
ls_timeticket-yield = i_erfmg. "Quantity
ls_timeticket-conf_quan_unit = i_erfme. " Unit
** propose goods movements
ls_bapi_propose-goodsmovement = 'X'.
CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'
EXPORTING
propose = ls_bapi_propose
IMPORTING
return = ls_bapi_return
TABLES
timetickets = lt_timeticket
goodsmovements = lt_goodsmovements
link_conf_goodsmov = lt_link_conf_goods_mov
detail_return = lt_detail_return.
CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
IMPORTING
return = ls_bapi_return
TABLES
timetickets = lt_timeticket
goodsmovements = lt_goodsmovements
link_conf_goodsmov = lt_link_conf_goods_mov
detail_return = lt_detail_return.
If you already have data for internal tables GOODSMOVEMENTS and LINK_CONF_GOODSMOV, you can skip the propose goods movements BAPI 'BAPI_PRODORDCONF_GET_TT_PROP'. -
[HELP] - BAPI_PRODORDCONF_CREATE_TT
Hello SAP Gurus,
I am using BAPI_PRODORDCONF_CREATE_TT and BAPI_PRODORDCONF_GET_TT_PROP to simulate transaction CO11N.
There is the sample code:
CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'
EXPORTING
PROPOSE = i_propose
* IMPORTING
* RETURN =
TABLES
TIMETICKETS = i_timetickets
GOODSMOVEMENTS = i_GOODSMOVEMENTS
LINK_CONF_GOODSMOV = i_LINK_CONF_GOODSMOV
DETAIL_RETURN = i_DETAIL_RETURN.
loop at i_GOODSMOVEMENTS.
SELECT * FROM MARA
WHERE MATNR = i_GOODSMOVEMENTS-MATERIAL
AND MTART = 'ZPA1'.
ENDSELECT.
if sy-subrc = 0.
i_GOODSMOVEMENTS-batch = texto_numero_serie.
modify i_GOODSMOVEMENTS INDEX sy-tabix.
endif.
endloop.
CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
EXPORTING
POST_WRONG_ENTRIES = '2'
* TESTRUN =
* IMPORTING
* RETURN =
TABLES
TIMETICKETS = i_timetickets
GOODSMOVEMENTS = i_GOODSMOVEMENTS
LINK_CONF_GOODSMOV = i_LINK_CONF_GOODSMOV
DETAIL_RETURN = i_DETAIL_RETURN.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
* IMPORTING
* RETURN =
I am using network orders and I am making the confirmation for the top order. The problem is in goods movements, I am getting the error M7349 "Content of order 198: T_PA_01 transferred to interface (IMSEG): MATERIAL".
Can someone help me with this? Thanks in advance.
Cheers,Hi,
I'm having problem regarding BAPI_PRODORDCONF_CREATE_TT. I have a return error 'confirmations are incorrect'.
Please help.
Here's the sample code.
data: it_data type table of tb_data,
wa_data type tb_data,
v_return TYPE BAPIRET1,
propose TYPE BAPI_PP_CONF_PROP.
>>>>>>
clear wa_data.
loop at it_data into wa_data.
clear: wa_timetickets, wa_goodsmovements, wa_link_conf_goodsmov.
wa_timetickets-orderid = wa_data-orderid.
wa_timetickets-operation = wa_data-operation.
wa_timetickets-fin_conf = 'X'.
wa_timetickets-clear_res = 'X'.
wa_timetickets-postg_date = wa_data-postg_date.
wa_timetickets-yield = wa_data-yield.
wa_goodsmovements-material = wa_data-material.
wa_goodsmovements-plant = wa_data-plant.
wa_goodsmovements-stge_loc = wa_data-stge_loc.
wa_goodsmovements-batch = wa_data-batch.
wa_goodsmovements-move_type = wa_data-move_type.
wa_goodsmovements-entry_qnt = wa_data-entry_qnt.
wa_goodsmovements-entry_uom = wa_data-entry_uom.
wa_goodsmovements-orderid = wa_data-gd_orderid.
wa_link_conf_goodsmov-index_confirm = wa_data-index_confirm.
wa_link_conf_goodsmov-index_goodsmov = wa_data-index_goodsmov.
append wa_timetickets to it_timetickets.
append wa_goodsmovements to it_goodsmovements.
append wa_link_conf_goodsmov to it_link_conf_goodsmov.
endloop.
PROPOSE-ACTIVITY = 'X'.
v_tabix = v_tabix + 1.
CALL FUNCTION 'BAPI_PRODORDCONF_GET_TT_PROP'
EXPORTING
PROPOSE = propose
IMPORTING
RETURN = v_return
TABLES
TIMETICKETS = it_timetickets
GOODSMOVEMENTS = it_goodsmovements
LINK_CONF_GOODSMOV = it_link_conf_goodsmov
DETAIL_RETURN =
MESSAGE i398(00) with 'TYPE:' v_return-type '>' v_return-message.
CLEAR v_return.
CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
EXPORTING
POST_WRONG_ENTRIES = '2'
TESTRUN = ''
IMPORTING
RETURN = v_return
TABLES
TIMETICKETS = it_timetickets
GOODSMOVEMENTS = it_goodsmovements
LINK_CONF_GOODSMOV = it_link_conf_goodsmov
DETAIL_RETURN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN =
MESSAGE i398(00) with 'TYPE:' v_return-type '>' v_return-message.
Maybe you are looking for
-
Asus N71JQ Suspend/Resume Issues, USB3 Controller to blame??
Alright so I've never gotten Suspend to work on this laptop since like 2.6.35 or so, no idea what they did in 2.6.36 or 2.6.37 (skipped those kernels) but it broke my suspend...which makes me sad. Been jumping between Arch and Fedora lately, neither
-
Catching an exception in an JSF page
Hi, I have made the following example: In my jsf page I have: <a4j:commandButton id="save" action="#{settings.save}" reRender="attributes" /> <h:outputLabel value="Save" for="save" /> <table width="100%" cellpadding="0" cellspacing="0"> <!-- <tr> <td
-
Editing Web Templates For Dummies
I am in the process of modifying a template that have. The problem is that when I am working in Dreamweaver I can not select an image to modify because everything is sliced into different sections. However, when I open the PSD folder in Fireworks eve
-
I have 2 computers a desktop and laptop both are running Windows 7. I tried to setup Home Sharing and I made the mistake of setting up the laptop first. The laptop has no content on it, all of the content is on the desktop. I setup Home Sharing on th
-
'Overlapping' parameters in R/3 routings passed to APO PDSs
I am using APO V7.O connected to R/3 4.7. In R/3 I have a routing in which I have specified 'required overlapping' and 'min overlap = 0' so that effectively I have parallel operations. But this overlapping information does not seem to get passed to t