Batch number not appearing in OIBT

Dear Experts,
I am facing a problem concerning a Receipt from production. In fact, I have a query running in order to print label. In this query I take the batch number on OIBT table, (link to IGN1 through Baseentry, BaselinNum and BaseType)
There is one case where there is no information on OIBT for the document whereas there is a Batch number assigned to the production receipt (see screen shots ).
What can explain this situation ?
Thank you for your help.
best regards
Sébastien TABORE

Dear Nagarajan,
The query is the following one :
Declare @res as table(docEntry int , linenum int , itemcode nvarchar(20) , itemname nvarchar(100), unit nvarchar(20) ,U_DKE_CONDITION nvarchar(8) , U_DKE_CONDITION_value numeric(19,6) , BatchNum nvarchar(20) , Expdate datetime ,Proddate datetime, quantity numeric(19,6))
Declare @DocEntry as int
Declare @Linenum as int
Declare @U_DKE_CONDITION_value as numeric(19,6)
Declare @quantity as numeric(19,6)
Declare @batchNum as nvarchar(20)
Declare @count as numeric(19,6)
Declare @ik as int
Declare cursor1 cursor for
SELECT T0.[DocEntry] , T0.[LineNum], case when isnumeric(t3.name) = 1 then cast(t3.name as numeric(15,2)) else 0 end as u_dke_condition_value
, T2.Quantity , T2.batchNum FROM [dbo].[ign1] T0
inner join [dbo].[OITM] T1 on T0.Itemcode = T1.ItemCode
Inner join [dbo].[OIBT] T2 on T2.Baseentry = T0.DocEntry and T2.BaseLinNum = T0.LineNum and T2.BaseType = T0.ObjType
inner join [dbo].[@DKE_CONDITION] T3 on T1.u_dke_condition = t3.code
Where T0.Docentry = [%DocEntry]
order by T0.[DocEntry] , T0.[LineNum], T2.batchNum
open cursor1
fetch next from cursor1 into @DocEntry , @Linenum , @u_dke_condition_value , @quantity , @batchnum
if @@fetch_status = 0 set @ik = 0 else set @ik = 1
while @ik = 0 and @u_dke_condition_value > 0
Begin
set @count = 0
While @count < @quantity
Begin
Set @count = @count + @u_dke_condition_value
Insert into @res
SELECT T0.[DocEntry] , T0.[LineNum], T0.[ItemCode], T1.Itemname , T1.SalUnitMsr , T1.U_DKE_CONDITION ,
case when isnumeric(t3.name) = 1 then cast(t3.name as numeric(15,2)) else 0 end as u_dke_condition_value
, T2.BatchNum , T2.ExpDate, T2.PrdDate , T2.Quantity FROM [dbo].[ign1] T0
inner join [dbo].[OITM] T1 on T0.Itemcode = T1.ItemCode
Inner join [dbo].[OIBT] T2 on T2.Baseentry = T0.DocEntry and T2.BaseLinNum = T0.LineNum and T2.BaseType = T0.ObjType
inner join [dbo].[@DKE_CONDITION] T3 on T1.u_dke_condition = t3.code where T0.[DocEntry] = @Docentry and T0.[LineNum] = @LineNum and T2.batchnum = @batchnum
End
fetch next from cursor1 into @DocEntry , @Linenum , @U_DKE_CONDITION_value , @quantity, @Batchnum
if @@fetch_status = 0 set @ik = 0 else set @ik = 1
END
Close cursor1
deallocate cursor1
Select * from @res
For your information
The concerned batch is included in your query's result.
Thank you for your help.
best regards
Sébastien TABORE

Similar Messages

  • Delivery number not appearing in MD04

    Hi Experts,
    Delivery number not appearing in MD04.
    Regards

    Thanks Jp..
    Order Created with 3 materials  with 0ne qty each, delivery crated 3 materials but for two materilas delivery qty and picking qty is one for third material (material X) delivery qty is ZERO, overal PGI status Completed.
    One material (material X) sales order qty is One.
    Delievry qty is ZERO.
    this sales order not appearing in MD04,
    I have created another sales order with same material  delievry not created  this sales order number showing in MD04.
    why its nt showing previous sales order.
    i need solution urgently..
    regards
    Edited by: michelchn on Aug 6, 2010 11:46 AM

  • Process order batch number not reflecting in corresponding inspection lot

    Hi QM gurus,
    I am working on inprocess inspection for production. I am creating process order during that time batch no is generated automatically by the system. Now process order is released during this time Inspection lot generated with inspection type 03. Now the problem is in the inspection lot, process order batch number is not reflecting. I have checked all the master data seetings. All seems to be fine. what could be the problem. any settings missed can anybody help me out.
    Thanks
    Vinameath

    Hi Vinameath,
    Go to the Master Recipe (C202) of this Process order/Material. Go to Recipe Header tab and click on the Quality Management Header button.
    Now,go to the Partial Lot Assign field and maintain the value " 0 Partial Lots not supported " and save.
    Then create a new process order and in all probabilities, the batch should appear on the in-process inspection lot.
    Hope this helps you!
    Regards,
    Vinodh

  • Sales document number not appearing in Work Item.

    Hello gurus,
         I have created a WorkFlow for approval of Sales order. My problem is, the sales document number is not appearing in the WorkItem for user decision task. I am passing container variable the sales document number in the Parameter1 of the User Decision task of the work flow. Value is populated correctly in the container variable for sales document number, but fails to appear in the work item content in SBWP.
         Please suggest a solution.
    Regards,
    Dnyanesh.

    Hello All,
         Thanks for your reply.
    I am passing the value of sales document number in parameter 1 of the standard task for approval as below.
    But in my Business Workplace I do not get the Sales document number. Below is the screenshot.
    Regards,
    Dnyanesh.

  • PO number not appearing in Purchasing Document number

    Hi
    I have posted a MIRO. PO number: 4500000013. Now when i see in FBL1N & vendor open items, PO number does not appear in Purchasing Document field. Let me know how to bring the PO number.
    Edited by: Deepak Agrawal on Oct 8, 2009 11:50 AM

    Hi,
    The display of the purchasing document number for customers/vendors via the line item display is not possible. However, you can branch from the vendors/customers line item display into the document overview and there display the purchasing document number for the individual G/L account line items.
    Regards,
    Eli

  • STO po number not appearing in VL10B transaction

    Dear Guru,
    I have created STO PO with inter plant transter and shipping tab is also coming as per required in STO
    but for further operation in VL10B transaction STO PO number is not appearing
    Pl let me know if i have missed anything important.
    Regards,
    Vimlesh

    hi,
    Please try this way with check points
    1.delivery date in PO and make sure it is in the delivery creation date range of VL10B
    2.Stock of material should be available in supplying plant.
    3.Enter PO number in Purchase Orders tab (T code VL10B) and execute
    4.In next screen,Select line and click on Background button.this will create a delivery.
    Hope it would work...
    regards,
    Vineet

  • Number not appearing when calling landlines

    I have a subscription for an American number with months to go, but when I call a landline in the US the number is not appearing on the caller ID like before.
    This is an error that needs to be fixed.  

    MatthewLieblong wrote:
    Agreed.  This is ridiculous that you pay for a US local number, which works, but you cannot use it as your caller ID number.  That was half of the point of getting the online number, I never would have imagined it didn't show up as your caller ID.  So basically I can never get anyone to answer when I call because it looks like some crazy California area code and/or hidden/private/telemarketer phone number in the caller id of whomever I am calling.
    THIS NEEDS TO BE FIXED.  It should be default set to use your online number as your caller ID, and you could change it to a mobile number or otherwise if you wanted to afterwards.   Can someone from Skype fix this, or at least explain why?  If they don't, I will be searching for other web phone solutions when my subscriptions expire.
    Skype does not automatically use an Online Number for Caller ID, since that is a privacy question best left to Skype users.  First of all, not all Online Numbers are usable as Caller ID.  Next, some users may have multiple Online Numbers that are eligible for use as Caller ID.  In that case, which number should Skype select? 
    If you want to access the Caller ID settings, one way to do that is to log into your Skype account here on the Skype web site.  Use the "Account" link at the top of this page, and you will see the current Caller ID settings.  From there, you can change it.  US Online Numbers can be selected as Caller ID, as can Online Numbers from a few other countries (the UK is one of those other countries).  Online Numbers from certain countries (Australia and Mexico are two of those) can't be used as Caller ID when calling telephones from Skype. 
    Patrick
    Location/Ubicacion: Arizona USA
    Time Zone/Hora Local: UTC/GMT -7
    If this message has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.
    Si esto mensaje le ha ayudado, por favor haga clic en "Aceptar como solución". Si encuentra un mensaje útil, por favor "Da Kudos" al final del mensaje, por lo que esta información puede beneficiar a otros.
    I am not a Skype employee. No soy un empleado de Skype.

  • My Phone Number not appearing...

    My phone number is not appearing in contacts or settings as other users claim to be seeing. I just noticed that iTunes shows my Phone Number as N/A on the summary tab. I could have sworn that it listed my number earlier.
    Any ideas?

    Power off/on. My appeared after doing this.

  • Batch Number Not copied over from Production order to Confirmation

    Dear Experts,
    In the production order, I specify the batch # for the components.  But when I do the confirmation, the batch number for the components is not getting copied over. 
    Can anyone suggest what has to be done.
    Regards
    Tom

    Dario, I have not saved my confirmation.  But when I execute CO11N and go to "Goods Movement" tab, I expect the Batch to be copied from the production order for the components.  But the batch field is Blank.
    How do we make the batch field to be copied over from the production order.
    Thanks in advance.
    Regards
    Tom

  • Sales order Number not appearing in CO-PA report painter

    Hi
    I have prepared profitability report through report painter through t-codes KE34 and KE31-
    Characteristics I have chosen is Sales order No/Plant/sales organization/product and customer-
    In the report Sales order Number is not appearing?
    We are able to see plant number/sales organization no/product no and customer no-
    Where I have committed mistake
    Thanks in advance
    joseph david

    HI,
    In order for you to see Characteristics in KE34 form definition, they have to be defined as 'Segment level' in KEQ3, as also metioned by Christian. However, it is not advisable to define 'Sales order #' as a Segment level, considering that 'Sales order #', changes frequently and also owing to performance issues with huge number of Segment level records which gets created in the course of time.
    If you want to report based on Sales order, then please consider using line item form/report KE94/KE91 or check if KE24 is sufficient.
    Hope this helps.

  • Sales order number not appears  in account assignment tab

    Hi,
    User raised PO for third party and account assignment category.But ,Sales order number  and its item not appear in account assignment tab.
    Can anybody help me.
    Lucky.

    Hi Lucky,
    Z Account assignment is not in standard SAP it is customized, u have to check the settings in SPRO->MM->PURCHASING->ACCT ASSIGNMENT-> ITEM CATEGORIES as well u have to know why this is customized, since there is deviation from standard i'm really not able to locate the issue. this is purely based on the requirement done, if it is as per standard SAP sales order number will definitely show in acct assingment tab view.
    Thanks for your inputs on this issue.
    Regards
    Rang

  • Internal Batch number not getting generated

    Dear Experts,
    We want to generate internal batch numbers during production order creation. To achieve the same ,
    the following Customization settings were done:
    1. Acitvate Internal Batch number assignment (T-code OMCZ)
    2. Maintain Internal Batch number Assignment Range  (No exits will be used for batch number generation)
    3. Creation of New Batches  -->  Define Batch creation for prdn. order --> Automatic batch creation during order creation
    4. Creation of New Batches  --> Define Initial Creation of Data for Batch Master Transactions --> Automatic creation
        only allowed for a material type.
    All the relevant materials are markes as Batch Managed.
    But when we are creating a Production order system generates a error shown below.
    No batch numbers could be determined
    Please guide.
    Regards,
    Namratha

  • Line item number not appearing in BE_OBJ_ITEM field in Table BBP_PDBEI

    Hi SRM Experts,
    We are on SRM7.0 (SP09) using classic scenario (SAP R/3 backend 4.6C). Since last few days, we are observing strange behaviour when SC is approved and transferred to backend. The SC remains in status I111(Item in transfer). The reports clean_reqreq_up and bbp_get_status_2 does not help.
    What I've observed is in BBP_PD, table BBP_PDBEI, the field BE_OBJ_ITEM is not updated... but all other fields are properly updated.
    BE_OBJ_ITEM
    BE_OBJECT_TYPE               BUS2012
    BE_OBJECT_ID                 7100000149
    As a result, even re-transferring the SC using BBP_REQREQ_TRANSFER does not help..
    This phenomenon is not appearing for all SC's but some SC's ...
    Can someone suggest any solution to above issue ?
    Thanks and Regards,
    Ram

    Hi
    Please delete the status I1111 for this SC from table CRM_JEST in Debug change mode and than exe FM # BBP_REQREQ_TRANSFER
    This is only aworkaround
    Regards
    Trinath

  • MB03 Vendor Batch is not appear

    Hi,
    I just perform MIGO 101 of Purchase order. I enter vendor batch number ABC123. After save, I go to MB03, I cannot find my Vendor batch number that I have entered just now.
    Please suggest me where should I configure to display the vendor batch in material document posted.
    Thanks

    You can check the vendor batch details vide Transaction MSC3N, mention the material, Plant, Batch and enter.  You can find the vendor batch in Basic data1.   Alternatively vide MB03, mention the document number and enter, double click the batch, click go to Classify batch, you can find the vendor batch.
    S. Kumar

  • Contract number not appearing in PO while converting PR into PO using ME21N

    Hi SAP MM Experts,
    We are having scenario as Demand PO  SOPRHub PO. We are creating demand PO for company code 1700 by setting massage type ZYT1 in that because of which SO got created through Idoc. In that SO, PR is updated. This is the Hub PR which is created automatically for hub plant 4511 & company code 4500. In this PR, on source of supply tab contract & vendor are appearing as required. When I am converting this PR in PO using ME21N the contract number is not fetching into PO though it is there in PR. This is the issue.
    I know the source list (ME03) having multiple sources & contracts so that I need to follow 2 steps as:
    1) We need to fix the vendor in source list
    2) In change mode of PR we need to assign source manually by clicking on u2018Assign source of supplyu2019 button.
    But avoiding these two steps, how can it possible to fetch contract number into PO from PR.
    Any pointers in this case will be great help for me.
    Thanks in advance.
    Regards,
    Sachin Patil

    does the item in your contract have a different item category or accounting category than in your PR/PO?

Maybe you are looking for

  • Some websites like igoogle do not display compleatly

    some websites (especially igoogle) do not display properly, or they take awhile to display. in igoogle I have the app youtube but it does not load for maybe 10 minutes,some websites have the mising search bar or side bar, I reinstalled Firefox and Di

  • Panasonic AG-DVX100B -- Compatibility?

    A few questions on this product. First off, the link is here. http://www.expresscameras.com/prodetails.asp?prodid=450977&start=1 Second; will that thing work with Final Cut Express? And third, I'm betting that thing uses little tapes to record everyt

  • Could not load type 'BusinessObjects.Enterprise.Provider.BOEMembershipProvi

    I am using ASP.Net (.NET Framework 3.5) and VS 2010 and BOE XI 3.1 Server. I am trying to write a .NET WEB App and use BOE Membershipprovider class and keep getting this message. I have followed the steps mentioned in SAP BOE SDK Document and added p

  • Principal Propagation Issue - J2EE_GUEST being used in some messages

    Hi guys !         I have the following situation, my customer have a SAP PI 7.1 Ehp 1 and, some interfaces are configured to run under Principal Propagation.         What is occurring is, for an interface that uses principal propagation and works cor

  • Sending email issues

    I am receiving emails fine, but not able to send. My info is as follows... Carrier: Bell Mobility Email: Shaw POP ACCOUNT INFO: Name: My name Address: [email protected] Description: Shaw INCOMING MAIL SERVER: Host Name: pop.shaw.ca User Name: emailad