Problem Posting Receipt From Production and Issue for Production
Hi Everyone,
I am posting Receipt from Production and Issue for Production through DIAPI in SAP Business One 2007A SP00 PL03.
I am using following lines of code
oDocument.Lines.SetCurrentLine(0);
oDocument.Lines.BaseEntry = int.Parse(BaseEntry);
oDocument.Lines.Quantity = double.Parse(Quantity);
lRetCode = oDocument.Add();
The Document adds perfectly but when I open the document in SAP Business One i am not able to see the Order Number at Line level on which this document was Based.
I identified the problem being Order Number Column being binded to BaseRef field hence form is not able to Show the Order Number and we cannot set BaseRef via DIAPI since the property to set that field is not exposed.
I donot want to update the table through a Recordset Update Query. I would appreciate if the property to set that field is exposed by SAP or any other workaround can be put forward by anyone who has faced the same problem.
Thanks
Kapil
Do you need to set
oDocument.Lines.BaseType = 17 (if this is sales order)
and then baseentry = baseentry....etc
If you bind the base entry correctly it should alwasy shows the base document on both database as well as front end. I have never had any problem with this
Sincerely
Similar Messages
-
Buying in Kg and issue for production in Litres
Hi All,
One of my client is having a requirement where they buy raw material in KG and issue for production in Litres. Based on density of the material when issues in litres the same should be converted into Kilograms automatically and deduct it from Instock.
How can we map this scenario?
thanks
SV ReddyHI SV,
Even though you have closed this thread, let me offer some of my experiances in the Base Oil industries.
They had the same requirements as you except that when they received Base Oil from their supplier, its in Litres and when they issue to Production (as a component) its in KG for the the "Filler" to use a scale to measure how much he is putting into the tank. Another diff is that each "Batch" of Base Oil has its own charrecteristics and the density and viscosity is never exactly the same.
We solved this with
- keeping the Inventory Unit of measure as LTs, what they use in when Purchasing ps: the finished product is always in Litres. ie: Kgs in -> Lts out.
- Each bathc of the item recieved has a factor based on a chart and formulars that gives the "Unit Ratio" for the KG : LT
- So when they buy in LT, in the Purchase Order, its straight forward. BUT, when they issue to production, the Production order calculates the Weight of what is required and prints it on the Production order Sheet. This way the production guy does not have to go through the calculations manually all the time. The Production Order takes the Litre Base Qty and checks against the selected "Batch"'s "Unit Ratio" and does the calculation and stores it on that items line in the Prod Ord.
This has been working for them and we have modified it to suite other items that have other Production Charrecteristics Requirements.
A bit complex but im sure the concept applies to alot of Liquid Manufacturing Industires.
Regards.
P.S: this was all achieved with and an Add-On Development
Edited by: Noor MC Jooma on Jun 8, 2009 5:25 PM -
Production Order & Issue for production query
Hi All,
My scenario is in BOM it is mentioned that to make
A - 1 quantity needed
Child items B - 2 Quantity
But Actual consumption of B is 4 Quantity
How can I Map this in B1
Regards
ShashiActually it happens over here lot of times. the child items will be issued less or more and production people will come to know it later date.
I tried to change in the Planned quantity after receipt from production in production order it is allowing me to change and I can able to issue. and the difference is posted to WIP variance account.
But what if the child items are less. system is not allowing to reduce the quantity of child items after issue.
so what should be done for that..
Regards
Shashi -
Query based on production order,receipt for production and issue for produc
hello sap experts i need a query on
this is my query but iam not getting correct result could anypne help out any relation is wrong in this pls verify it and reply asap .
SELECT T0.[DocNum], T0.[ItemCode], T0.[PlannedQty], T1.[ItemCode], T1.[PlannedQty], T3.[Quantity], T5.[Quantity]
FROM OWOR T0 INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry, OIGN T2 INNER JOIN IGN1 T3 ON T2.DocEntry = T3.DocEntry, OIGE T4 INNER JOIN IGE1 T5 ON T4.DocEntry = T5.DocEntry
WHERE T1.[ItemCode] = T3.[ItemCode] and T1.[ItemCode] = T5.[ItemCode] and T0.[PostDate] between [%0] and [%1]
GROUP BY T0.[DocNum], T0.[ItemCode], T0.[PlannedQty], T1.[ItemCode], T1.[PlannedQty], T3.[Quantity], T5.[Quantity]
ORDER BY T0.[DocNum]
regards
JennyHi,
Here is another suggestion.
select t0.docnum,
case
when t0.status = 'P' then 'Planned'
when t0.status = 'R' then 'Released'
when t0.status = 'L' then 'Closed'
when t0.status = 'C' then 'Cancelled'
else t0.status end as 'Production Order Status',
t0.ItemCode as 'Parent Item', t0.PlannedQty as 'Planned Parent Item',
T1.ItemCode as 'Component Item', T1.PlannedQty as 'Planned Component Item',
(select T2.Quantity
from ign1 t2
where t0.itemcode=t2.itemcode and t0.docentry = t2.baseentry) as 'Received End Product',
case
when t1.issuetype = 'B' then 'Backflush'
when t1.issuetype = 'M' then convert(varchar(15), t3.quantity)
end as 'Issued Component Item'
FROM OWOR T0
INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry
left join ige1 t3 on t1.docentry = t3.baseentry and
t1.linenum = t3.baseline
Somehow I get the feeling it would make more sense to have it in 2 separate reports. But if it works for you it's good.
Let us know how it goes and if these are indeed the reports you are looking for.
Jesper -
Issue for Production Report With Production Order Details and Batch Number
Hi Guys,
I am looking for a batch report.I have tried it but i didnt get the desired results.Pls any body give me some solution.
I need to include the Batch number in this report and when i have done the same the values are repeating and also need to display the Item Description for (Description in Production Order - Parent Item)
SELECT distinct t0.docnum,T0.[DocDate], t4.IssuedQty as 'Consumed Qty', T1.[ItemCode] as 'Circle Codee',T1.[Dscription] as 'Circle Name',t3.itemcode
FROM [dbo].[OIGE] T0
INNER JOIN [dbo].[IGE1] T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN owor t3 on t1.baseref = t3.docnum
left join wor1 t4 on t3.docentry=t4.docentry
INNER JOIN OITM T5 ON T1.ItemCode = T5.ItemCode
INNER JOIN OITB T6 ON T5.ItmsGrpCod = T6.ItmsGrpCod
INNER JOIN IBT1 T7 ON T5.ItemCode = T7.ItemCode
INNER JOIN OIBT T8 ON T7.BatchNum = T8.Batchnum and T7.ItemCode = T8.itemcode
where t0.docdate between [%0] and [%1] and T6.[ItmsGrpNam] = 'Raw Materials' and t0.JrnlMemo = 'Issue for Production'
Any body provide me some idea for achieving this....
Regards,
Vamsi.Hi Bala.
Thanks for the query but still not acheived the result.
The Scenario is to know the quantity of the Coil (Raw MAterial) used IN making a product in different stages and from which batch and Whse the RawMaterial is Consumed in making of the Product(Production Order Parent Item)
------------- (Issue for Production )-----------------------| Production Order Qty(IssuedQty) Production Order | BatchNum
DocNo/Date | ( RawMaterial/Coil Code/Desription) | (Quantity issued for RM) ItemCode/Description | Batchnum
Regards,
Vamsi..
Edited by: VamsamP on Dec 1, 2010 5:06 PM -
Error while doing Good Issue for Production Order using BAPI
Hi All,
I am facing an error like 'u2018Content of order 1011907: MDT218AJ10 transferred to interface (IMSEG): T-86410-71".
I have written the code as below. Please let me know what is missing when using the BAPI 'BAPI_GOODSMVT_CREATE'. What is the cause of this error ?
*Action in Transaction (GM_CODE)
*GM Code for Goods Issue for Production Order is 03
gs_gmcode-gm_code = '03'.
*Header Data
*Posting date
gs_header-pstng_date = sy-datum.
*Document date
gs_header-doc_date = sy-datum.
*Item Data
*Material
gs_item-material = zptp_s_rf_migo_261-matnr1.
*Movement Type
gs_item-move_type = '261'.
*Movement Indicator
gs_item-mvt_ind = 'F'.
*Stock Type
gs_item-stck_type = 'F'.
*Plant
gs_item-plant = gv_plant.
*Storage Location
gs_item-stge_loc = gv_str_loc.
*Quantity
gs_item-entry_qnt = zptp_s_rf_migo_261-menge2.
*Unit
gs_item-entry_uom = gv_uom.
*ISO code for unit of measurement
gs_item-entry_uom_iso = gv_uom.
*Order Number
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = zptp_s_rf_migo_261-aufnr
IMPORTING
output = gs_item-orderid.
*Reservation Number
gs_item-reserv_no = gv_resv_num.
*Reservation Item
gs_item-res_item = gv_resv_itm.
*Reservation Type
gs_item-res_type = gv_resv_type.
APPEND gs_item TO gt_item.
Calling BAPI_GOODSMVT_CREATE to create the Material Document Number
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gs_header
goodsmvt_code = gs_gmcode
IMPORTING
goodsmvt_headret = gs_headret
TABLES
goodsmvt_item = gt_item
goodsmvt_serialnumber = gt_serial
return = gt_return.
Thanks in Advance.hi,
did you look at message ?
System says, there are differences between the interface data and the order data. It can be anything. I think you should check
data in the interface .
this is the long explanation of your message :
Diagnosis
When calling the function module MB_CREATE_GOODS_MOVEMENT or the BAPI GoodsMovement.CreateFromData (BAPI_GOODSMVT_CREATE) to post a goods receipt for a production order, there are differences between the interface data and the order data.
Example: The order was created for plant 0001, but plant 0002 is passed on in the interface.
The system checks this for the material and the order item.
System response
Due to this difference, the system cannot post the goods receipt.
Procedure
Check the data in the interface (IMSEG-WERKS, IMSEG-AUFNR). If necessary, correct the plant or the order number in the interface.
<< Moderator message - Point begging removed >>
Edited by: Rob Burbank on Feb 6, 2012 11:24 AM -
Print layout - Goods issue & Issue for Production
I designed two print layouts separately 1 in Goods issue for Goods issue in inventory module
and 1 in Issue for production for Issue for production in production module.
If i take a print preview or print in Issue for production , it will reflects the print layout designed in Goods issue.
regards
kavitha SHi Kavitha,
I think, are you duplicate the Goods issue PLD Template to Issue for Production PLD Template on Duplicate Layout Template.
Best, Try to create a New PLD from Issue for Production(System) PLD.
Regards,
Madhan. -
Error While Updating Issue For Production
Hi,
When i am trying to update an UDF in issue for production i am getting the following error message.
Item is Not a Component to the Referenced work order[Goods Issue - Object Type] Message 3560 -5Dear Manikandan K,
Regarding the message we can tell you that the error message
"Item is not a component of the referenced Work Order" usually appears
because there is a case sensitive problem between the item code given
in the BOM and the item code given in the item master data.
Please check if the item codes of the BOM are exactly the same as the
codes given in the item master data. There should not be any differences
between spelling of the codes (for example item code in the item master
data is with capital letters X00014447 while the item code in the BOM
is with normal letters x00014447).
In case you find item with this issue please correct its item code
in the BOM manually so it will be exactly identical with the code given
in the item master data.
Regards,
Marcella Rivi
SAP Business One Forums Team -
How to show returned components on Issue for Production on a query.
Hi Guru's,
Is there a way to show the items that have been returned (Return Components) on Issue for Production using a query?
Thanks and Regards,
ChristianHi,
1. Create row level UDF for issue from production order.
2. Assign below FMS to this UDF and set it auto refresh based on quantity.
SELECT T0.[Quantity] FROM IGN1 T0 WHERE T0.[BaseRef] = $[$13.61.number] and T0.[ItemCode] = $[$13.1.0]
Thanks & Regards,
Nagarajan -
Very big problem with JSF about FORM and "id=" for HTML form's elements and
I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
Suppose you have something like this, to render some datas form a Java Beans :
<h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
<h:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
</h:column>
</h:dataTable>
Everything works fine...
Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
<td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
You think you can use the java instructions :
Enumeration NamesParam = request.getParameterNames();
while (NomsParam.hasMoreElements()) {
String NameParam = (String) NamesParam.nextElement();
out.println("<h4>"++NameParam+ "+</h4>);
YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
Edited by: ungars on Jul 18, 2010 12:43 AM
Edited by: ungars on Jul 18, 2010 12:45 AMWhile I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
"Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
Ed -
[svn:fx-trunk] 8786: Minor updates from Sujata and Min for fxgutils.
Revision: 8786
Author: [email protected]
Date: 2009-07-23 21:10:35 -0700 (Thu, 23 Jul 2009)
Log Message:
Minor updates from Sujata and Min for fxgutils. Addresses an issue where FXG files with a matrix display differently after running through FXG to FXG. Also includes a fix to stop processing of unknown fxg tags in skipped sections.
QE: No
Doc: No
Checkintests: Pass
Reviewer: Min and Sujata
Modified Paths:
flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/filters/AbstractFilte rNode.java
flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/transforms/MatrixNode .java
flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXGSAXParser.java
flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXGSAXScanner.javaThis is a duplicate post. This should be locked to avoid further confusion.
My CSS wont change
Nancy O. -
Updating materials issued for production thru movement type
hi
we are using repetitive manufacturing scenario, and we are using back flush, how to find out the materials issued for production thru movement types, from which tables can i get the data
from AUFK i am getting the movement types and the order number, and i am unable to find out material numbers.
the requirement is need to update the costs of the materials based on the movement types for the productionHi
I dont know if this question falls under the category of "Asking basic questions"
You can use MB51 to get the desired info.. It will give you the Material Consumed + mvt type (261) and Order where the Material is consumed
br, Ajay M -
Issue for Production Price list field missing
Hello all,
I have a strange issue with a field missing in the issue for production window. When an issue for production is created, the Price list field is missing. Please see the attached screenshot. Does anyone know how to show this field? I have checked form settings and it's not an option there.Hi Chris
Following is the SAP Note No: 1720071
Symptom
When opening "Issue for Production" from "Production Order", "Price List" field is missing.
Reproducing the issue
1. Login to SAP Business One.
2. Go to Production->Production Orders, open a "released" production order document.
3. Right-click a row whose "issue method" is "Manual", and choose "Issue Components". (If all the rows have "Backflush", you need to change one of them.)
4. "Price List" field is missing on the left top of the new screen.
5. If you click "Attachments" tab, the field will be showing correctly.
Solution
Current workaround is to click "Attachments" tab to make "Price List" showing.
The issue is planned to be fixed in SAP Business One 9.0.
With Regards
Balaji -
Hi,
I'm having a situation when I print "Issue for Production" for an item, sometimes the batch issued printed out wrongly. I'm wondering is there a way to write a query to display issue for production (item code, item description, quantity, batch) based on production number? Please advise. Thank you for your help and time.
Cheers,
sereneTry the code below. You will have to replace the XXXXXXXXX with Document Number of the Production Order.
SELECT dbo.OIGE.DocEntry,dbo.OIGE.DocNum, dbo.IGE1.ItemCode, dbo.IGE1.Dscription,
dbo.IBT1.BatchNum,dbo.IBT1.Quantity, dbo.IGE1.LineNum
FROM dbo.OIGE INNER JOIN
dbo.IGE1 ON dbo.OIGE.DocEntry = dbo.IGE1.DocEntry
INNER JOIN dbo.IBT1 ON dbo.IGE1.ObjType = dbo.IBT1.BaseType
and dbo.OIGE.DocEntry = dbo.IBT1.BaseEntry and dbo.OIGE.DocNum = dbo.IBT1.BaseNum
and dbo.IGE1.LineNum = dbo.IBT1.BaseLinNum
and dbo.IGE1.ItemCode = dbo.IBT1.ItemCode
where dbo.IGE1.BaseType = 202
and dbo.OIGE.DocNum = XXXXXXXXX
order by dbo.IGE1.LineNum
Krishnan -
Approval Procedure For Issue For Production form
Hi All,
How to Defind the Approval procedure For the Issue For Production tell me is it possible or not
vikasHi Vikas,
As workaround you can set the approval to the stock transfer for the production warehouse and allow only issue for production from that production warehouse.
Cheers
Maybe you are looking for
-
Logic does not see my hd omni as an input device. Any ideas? I've been told to reinstall logicpro - but apple won't let me because it says its already installed on this machine.
-
Howto enable deprecated warnings?
Hi! How can i enable deprecated warnings during the build process within workshop? The deprecated warnings should also be shown in PageFlows (*.jpf) and Controls (*.jcs). Is this possible? Best Regards, Ralf Schumacher Message was edited by [email pr
-
Hello guru's, In my sap system application help is not comming.can u anybody plz help me out. wht parameters i need to maintain to get the application help. it shows the below error message: Please check the entries in the file sapdoccd.log in the w
-
Blackberry curve 8520 blackberry app world
Hello, I have a question. Is it possible to download angry birds on curve 8520 when i look on my bb i can see it is but when i look at the computer at blackberry app world i can't see it's possible. I hope somebody can help me. Thanks
-
Images resized from Intel to PPC Using Motion 3
Hey guys, I'm having a reoccurring issue. I work on an animation using still images doing basic ken burns animations with some masks. However when I open the same exact project on my Dual G5 Power Mac which has the same version of Motion. the images