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.
regards
Hello
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
Similar Messages
-
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,
Franciscothanks 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 -
Create Process Order by BAPI (COR6)
Hi,
I am looking for BAPI to create Process Order (Order category = 40),
Instead of doing BI to transaction COR6.
I try <b>BAPI_PRODORDCONF_CREATE_HDR</b> but with no success,
because it works only with Production Order (Order category = 10).
I get the following error: <i>Orders of the order type YI01 cannot be confirmed</i>
(YI01 is a Process Order type).
Thanks in advance,
Gilad.Hi Gilad, I the same problem, I am using the bapi 'BAPI_PRODORDCONF_CREATE_TT',
please if you find the correct BAPI, send me,
If I find it first, I send you.
Thanks for your help.
Leonel Saavedra
Guatemala. -
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. -
Regarding 'BAPI_PRODORDCONF_CREATE_TT'
hi experts,
do u have code sample for confirming production order with the help of bapi 'BAPI_PRODORDCONF_CREATE_TT',,,from where we will get confirmation number to pass in this FM....PLZ explain in your words........which are the compulsory fields to pass in the tables parameters........such as in TIMETICKETS
,plz plz plz help me.Hi,
try to change wa_timetickets-fin_conf = '1'. "Changed from X to 1 ans test it will work...
wa_timetickets-orderid = wa_data-orderid.
wa_timetickets-operation = wa_data-operation.
wa_timetickets-fin_conf = '1'. "Changed from X to 1
wa_timetickets-clear_res = 'X'.
wa_timetickets-postg_date = wa_data-postg_date.
wa_timetickets-yield = wa_data-yield.
Prabhudas -
About BAPI_PRODORDCONF_CREATE_TT and releasing Reservation
Dear Friends at SCN,
I have the following problem when using the bapi BAPI_PRODORDCONF_CREATE_TT, that is called several times in the same program:
the first run completes successfully, and then there is a call to BAPI_TRANSACTION_COMMIT.
with the second, and the remaining ones, usually the BAPI returns an error saying 'Reservation xxxxx is already being processed'.
I believe I should release the Reservation, after the first bapi call, and before the next one, but how to achieve that?
Do you have a clue how to avoid this error appearing?
Thanks a lot for any help or suggestion on this.
Bye,
FlavioHi Stéphane,
Here is the code I used, just before calling the BAPI:
DATA: l_lock(1) TYPE c,
l_while TYPE i.
* Check if Reservation is locked, if yes wait for unlocking
l_lock = 'X'.
l_while = 0.
WHILE l_lock = 'X'.
CALL FUNCTION 'ENQUEUE_EMRESB'
EXPORTING
mode_resb = 'E'
rsnum = l_rsnum
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
l_lock = 'X'.
WAIT UP TO 1 SECONDS.
l_while = l_while + 1.
ELSE.
CLEAR l_lock.
CALL FUNCTION 'DEQUEUE_EMRESB'
EXPORTING
mode _resb = 'E'
rsnum = l_rsnum.
EXIT.
ENDIF.
IF l_while = 60.
EXIT.
ENDIF.
ENDWHILE.
I hope it will help.....
Thank you and bye,
Flavio -
hi all,
The bapi BAPI_PRODORDCONF_CREATE_TT has FUCNTION moudle
MAP2I_PP_TIMETICKET_TO_AFRUD which is gentred automaticlly. how it is possibe to generate this F.M
please help.
Thanks,
sridharHello sridhar,
I think taht this FM generated depends of your customizing or one of input parameters in BAPI.
During the execution of BAPi, the program always uses this FM or they are some parameters to use this FM ?
Regards
Sebastien -
Hello,
I am using confirmation BAPI (BAPI_PRODORDCONF_CREATE_TT) on my RF to perform a FG 101 GR, Component Backflush 261/531 GI, Cost Confirmations, Production Delivery Qty/Reservation/Consumption updates, and all stock is updated properly.
All is working fine except for 1 thing.
The GR material document is being created in the '49...' number range with a document type of WA (goods issue) as seen in MKPF/MSEG. It should really be in the '50...' number range and the document type should be 'WE'. I don't know if it is really a problem, but it just doesn't seem right.
Can you provide insight?
Best Regards,
JimHello Jim,
I do not have answer to your query.
However I need your help.
Can you help me by sharing the steps to use the Cofirmation BAPI?
We are doing time ticket confirmations using CO11.
The production order routing has last operation as milestone operation. Each routing has only 1 Milestone.
But the Last operation number varies for each Material.
Known Data:
1. Prod Order Nos
2. Qty to be confirmed.
Unknwon Data:
Milestone operation Number
Request to guide with the steps to carry out the confirmations using the BAPI.
Regards
Nitin -
BAPI_PRODORDCONF_CREATE_TT error in documents generated
Hi all,
While doing CO11N for a production order and doing goods movement I am
able to confirm operations and goods movements occur sucessfully.In Doc
info of material document I can see the T code which created the
material document is CO11N.
But when I use BAPI: BAPI_PRODORDCONF_CREATE_TT to do confirmation and
goods movement, material document which gets created have T code as
COGI in Doc info.
Material documents generated through BAPI should have T code as CO11N
in Doc. info.
Moreover, table AFWI is getting updated for eg. with MBLNR=0000000536
and MJAHR=000 and sometimes as MBLNR=4900011573 and MJAHR= 2011!!
Why MBLNR=0000000536 and MJAHR=000? Is BAPI taking some time lag in
updating this table??
Kindly help.
RegardsHi,
goods movements in BAPI are always posted in update mode, explained in note 208477. Due to technical reasons alll goods movements posted in update mode, get tcode COGI. See FAQ note 540392 see the answer of question 10 and 13.
For separated goods movements, that is, goods movements that are
posted in the update program or via requests, only one transaction
code can be specified due to technical reasons. This is always COGI.
Therefore, this user must also have an authorization for COGI;
otherwise the goods movements are processed incorrectly.
Since the original transaction code (COHV, CO12, and so on) is no
longer available when you post the separated goods movements
(posting in the update program in a separate process) due to
technical reasons, the system uses transaction code COGI instead by
default. Therefore, it is necessary that you also set up
BR Sabine -
JDBC Sender Adapter - Records sent one at a time
Hello everyone,
Here's a summary of my scenario JDBC > XI > RFC.
My select statement (JDBC) looks like this:
SELECT * FROM BATCH WHERE STATUS='Y'
The problem is, whenever it returns multiple rows, the RFC can only accept one record at a time (1...1), so I need to pick up the records from the DB and send them one at a time.
Currently, this is how the output XML looks like:
<?xml version="1.0" encoding="utf-8" ?>
<ns:SQL_RESP_MT xmlns:ns="http://www.pharmaindustries.com">
<row>
<number>200000000472</number>
<status>Y</status>
</row>
<row>
<number>200000000473</number>
<status>Y</status>
</row>
<row>
<number>200000000474</number>
<status>Y</status>
</row>
</ns:SQL_RESP_MT>
Instead, I need each row to be picked up and sent one at a time.
<?xml version="1.0" encoding="utf-8" ?>
<ns:SQL_RESP_MT xmlns:ns="http://www.pharmaindustries.com">
<row>
<number>200000000472</number>
<status>Y</status>
</ns:SQL_RESP_MT>
<?xml version="1.0" encoding="utf-8" ?>
<ns:SQL_RESP_MT xmlns:ns="http://www.pharmaindustries.com">
<number>200000000473</number>
<status>Y</status>
</row>
</ns:SQL_RESP_MT>
<?xml version="1.0" encoding="utf-8" ?>
<ns:SQL_RESP_MT xmlns:ns="http://www.pharmaindustries.com">
<number>200000000474</number>
<status>Y</status>
</row>
</ns:SQL_RESP_MT>
Does anyone know the changes I need to make in my current SELECT statement or the JDBC Sender Adapter to make this possible.
Thanks in advance!
GlennThank you all for your replies. I'll check out your link in a bit, Phani. Thanks!
A SpliByValue won't work since the BAPI Header is (1...1).
Luckily, during testing, I found out that the BAPI (BAPI_PRODORDCONF_CREATE_TT) handles multiple lines in one of the subelements of the header so that was where I mapped the Rows.
I might need to trigger multiple BAPIs in the future, so I'll take a good look at your suggestions, but for now, I'm marking this question answered.
Warm regards,
Glenn -
CORUAWFP "An application for posting goods movements is already active"
Hi Experts,
We have a strange message- we don't get it why this happnes so often.
In our system, production order confirmatins are done vai BAPI (BAPI_PRODORDCONF_CREATE_TT) and we are executing CO1P (CORUAWFP) every 10 minutes in order to avoid "Intended Goods Movements (GRs are suspendded, because of Lock sutuation)" .
The problem is when CO1P(CORUAWFP)) is kicked, sometimes a strange message is displayed ,"An application for posting goods movements is already active" , and the job ends abnormaly. We are sure we don't run CO1P (CORUAWFP) in parallel.
Why this situation happnens?
Thanks in advance.
Best Refards,
/Hiro Okamoto
Edited by: Hiro Okamoto on Aug 27, 2011 5:36 PM
Edited by: Hiro Okamoto on Aug 27, 2011 5:37 PM
Edited by: Hiro Okamoto on Aug 27, 2011 5:37 PMThe message simply means there are 2 or more programs being executed simultaneously accessing the same set of data & hence a locking occurs or the table lock is not getting released within time so that the next program can get a lock.
Get in touch with your system admin & ask them to monitor & let you know which programs are locking. Once you have that info, you can then change the schedule of the programs to prevent locking. -
Dear Gurus,
I am using the bapi BAPI_PRODORDCONF_CREATE_TT for Production order confirmation. It is working fine. But while confirming the production order separate material document nos has been generated for 101 (component confirmed ) and 261 (Consumption) . In manual confirmation through Tcode: CO11N it generates same document No..
Is there any possible to create the same document no...
Kindly guide us....
Thanks and Regards,
Murugesh RDear Gurus,
Kindly guide me ...
Thanks & Regards,
Murugesh R -
Six activity types in a Resource but require more splits
Hi,
We got a limitation on the number of activity types to be assigned to the resource(work center) as such there shall be limitation on the splitting of Costs in cost component structure as well. So to tide over the difficulty, We can have one more dummy resource for utilities for assigning another six more activity types.
But without this arrangement of having extra resource, how template allocation aid in this. Pl explain in detail. Is there any way other than template allocation?. To be precise in my query, we need to use activity type for machine hour for splitting Repair & maintenance exp and Factory admn expenses, etc.
For your kind info, I do not want to use costing sheet due to its limitations.
Regards,
Ashok SinghHi Ashok
There is a way... Take your PP consultant for a good dinner at a Five Star Hotel
Well, I had to face a similar situation and the PP guys had a lot of reservation against confirming an extra operation... What we agreed to was as below
1. I made them agree to maintain a 2nd operationin Routing...
2. PP guys wont confirm this operation... This would be confirmed in a batch mode at the period end.... However, in my case, the activity qty in 2nd operation was based on a formula i.e. based on the Qty confirmed in the 1st operation....
If you wish to adopt this approach, you may have to confirm the Standard Qty....
3. The solution was that I used BAPI BAPI_PRODORDCONF_CREATE_TT... I created a Z T code which would execute Date / Plant wise....
I gave all the options like executing in test mode first... checking the result and then posting in update mode
It would confirm the 2nd op in all those Prod Orders in which 1st operation was confirmed.... Ofcourse, it took 2-4 months to stabilize.... But now, it is running smoothly for over 2 yrs
BR,Ajay M -
COGI Log not clearing after G.R.
Hi,
I am Doing a G.R. for the records Which are exist in COGI with error as NO SUFFIECENT STOCK, I am doing a G.R. using a BAPI - BAPI_GOODSMVT_CREATE, G.R. document has got created, Stock has posted every thing is fine, But the respective Record appears in COGI tranaction code.
I went thru SDN I found a BAPI - BAPI_PRODORDCONF_CREATE_TT will help in doing that, Please could any one tell me how to coorect it.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
regards,
Prabhu
Edited by: Alvaro Tejada Galindo on Sep 1, 2008 4:36 PMHello,
After doing GR, goto COGI and press referesh button it will solve your pupose.
REgards
AM -
COGI not clearing after G.R.
Hi,
Abaper Point of view.
I am Doing a G.R. for the records Which are exist in COGI with error as NO SUFFIECENT STOCK, I am doing a G.R. using a BAPI - BAPI_GOODSMVT_CREATE, G.R. document has got created, Stock has posted every thing is fine, But the respective Record appears in COGI tranaction code.
I went thru SDN I found a BAPI - BAPI_PRODORDCONF_CREATE_TT will help in doing that, Please could any one tell me how to correct it.
Points Assured.
regards,
PrabhuHello,
After doing GR, goto COGI and press referesh button it will solve your pupose.
REgards
AM
Maybe you are looking for
-
Repeated 'ORA-12547: TNS: lost contact' messages after installing Oracle 10
Hi, I installed Oracle 10g on Redhat ES 3, and the install went well, but when I try and interact with the server I get the message: ORA-12547: TNS: lost contact For example, if I use the Database Configuration Assistant to attempt to create a databa
-
I updated my itunes this morning, and now I keep getting an error message when trying to burn a disc. Any ideas how to resolve this?
-
User defined fields in Goods Issue and Goods Reciept
Hello, I would like to know how to add user defined fields in the Goods Reciept and Goods Issue matrix. These two are not displayed under user defined fields management. Thanks, Edited by: Martin Kamau on Apr 15, 2009 5:34 PM
-
Block corruption - cant restore from backup
Hi, we have development database 11.2.0.1. There was problem with storage, and as a result there are two corrupted blocks in data files. SQL> select * from V$DATABASE_BLOCK_CORRUPTION; FILE# BLOCK# BLOCKS CORRUPTION_CHANGE# CORRUPTIO 6 2359942 1 0 FR
-
Setting a condition for preferred drill path.
Is there a way we can set a condition for preferred drill path in hierarchy? Our requirement is to skip levels if they have no values.. Thanks in advance.