Copy the from am unsaved goods receipt PO udf  into a batches setup

I am trying to copy the value from a from a goods receipt PO udf  that is not yet saved into a batches setup screen through a formatted search . The batches setup  opens when i press the add button in the goods receipt PO because the item uses batch numbers. Because the goods receipt PO is not the current screen, I cannot use variables. Any idea?

I had exactly the same requirement and this is how I solved it.
You will not be able to use a formatted search as the context window when the batches / serial window opens is different and the field from the GR PO are not available.
You need to create a temp table and write a formatted search to insert the value that you want to carry to the Bacth screen from the GR PO on the refresh of the Item Name or whatever in your case.  (If you give me the exact details I can give you the steps)
Once you open the Batch screen the Goods Receipt PO number is available on the top which you can use as referesh to fetch the data from the temp table.
One more important NOTE:  As you know the Goods Receipt No can be the same for more than one user because SBO gives you the next available number.  To get the record exactly pertaining to that user, when writing the data from GR PO you should also insert the $[USER] value which identifies the user.  You may compare this when fetching the data from the temp table on the Batch screen.
Let me know if you need further direction or help
Suda

Similar Messages

  • Problem with the Posting Date of Goods Receipt or Invoice Receipt for PO

    Hi All,
    I am working on 2LIS_02_SCL - Purchasing Data (Schedule Line Level),
    For our report, we should get the scheduled PO quantity,actual PO qty, Scheduled date and actual date in the report.
    we are getting all these fields from the above extractor...
    For a PO which is opened (Delivery Completion indicator not set) - we where getting all field as in ECC(ME23N)
    But for a PO which is finished(Delivery completion indicator is set) - we where are getting actual GR qty,planned qty,planned or scheduled date at schedule line level.But we are not getting the Posting Date of Goods Receipt or Invoice Receipt for PO from history EKBE for all the schedule line.
    ex:
    for open PO
    PO num         item num   schedule line    Planned date   actual date  difference  actual qty  planned qty  difference
    450002432   10                        1              01/10/2011    02/10/2011       1 day          100             100             0
                                                     2              02/10/2011    04/10/2011       2 days        200             400            200
                                                     3              03/10/2011    07/10/2011       4 days         300            300              0
    For the same PO when it is Finished or completed(Delivery completion indicator is set)
    PO num         item num   schedule line    Planned date   actual date  difference  actual qty  planned qty  difference
    450002432   10                        1              01/10/2011    07/10/2011       6 day          100             100             0
                                                     2              02/10/2011    07/10/2011       5 days        200             400            200
                                                                    03/10/2011    07/10/2011       4 days         300            300              0
    for all the schedule line its displaying the last posting date(i think its taking from EKKO table)
    Is there any possibility to get that posting date history ....

    You can have multiple receipts against a PO schedule line, but this extractor is not meant to go to that level of granularity.  Please try to use 2lis_02_sgr instead which provides goods receipts per PO schedule line.

  • What are the tables  related to Goods receipt details

    Hi,
    Please tell me the GR related data base tables.
    What are the tables  related to Goods receipt details
    Regards,
    Sunil Kumar.T
    Edited by: sunil kumar on Apr 28, 2008 8:49 AM

    Hi,
    If you want to know tables which are related to transaction.
    Use recording through SHDB tcode.
    go to shdb tcode
    after enter name of your zname.
    after for which transaction you are doing recording enter that tcode here migo.
    after press start recording.
    then enter data into fields after at last save and back.
    then it goew to control recording session screen
    after press program for create.
    then enter attributes ,select source code after save your code.
    Using this tables and which fieldsa you are using for perticular requirement.
    this is an easy procedure to know tables and fields.
    or
    USE ST05 tcode by entering single filed into application.
    These two approaches are usefull but go to first one if you knew which data you have to entered.
    Otherwise go to st05.
    *Reward points
    for goods receipt tcode by entering data

  • Freight from PO or goods receipt into sales order in Third party drop ship

    Hello!!!
    We have a requirement where the freight charged by vendor in third party drop ship sales order scenario should show up in the billing document to customer. So we will create a sales order with TAS item category.  This will create PReq and PO subsequently.  Once the vendor delivers the goods to customer and we do the goods receipt in the system, we will bill the customer.  While we bill we want to bring the actual freight charged by vendor to the customer billing document.  Also we bill the customer as soon as we do the receipt and do not wait for the vendor invoice.
    I am not sure if we can do this standard SAP but would like to if anyone has come across this scenario and what is the approach if we need to do this. We can have vendor send us the freight while doing the goods receipt but not sure how to transfer the value to sales order or to billing document directly.
    Any help or idea is appreciated.
    Thanks in advance,

    During GRN we cannot enter any value apart from the excise or customs duty, therefore the freight that you have incured at actuals cannot be captured during GRN and therefore cannot be transfered to the invoice also.
    While creating invoice to the customer you can insert a freight condition type and enter the freight value manualy.
    Generally in third party scenario we can only invoice the cust after purchase booking has taken place. In your case you want the cust invoice to be created based on grn, for that you have modify the copy control settings.
    raj

  • Outbound Delivery IDOC not updating values from MKPF for goods receipt

    hi all,
    I have a question say I am generating an outbound delivery IDOC. which  has fields Goods Issues & Goods Receipt date retrieve from MKPF(BUDAT).
    say when i post goods issues, MKPF is updated and  IDOC is gernerated with issues date taken from MKPF.
    and when i tried to goods receipt, MKPf is updated and IDOC is generated but no receipt date taken from MKPF. then i check in MKPF, date is there and then once again I triggered the IDOC, receipt date comes......so my doubt is the time issues say when IDOC is triggeres, no value in MKPF...but when i check the time it is 4 mins difference from the MKPF time and the IDOC time...
    and also 1 more thing for doing goods receipt, we do in different transaction and for good issue we do in Vl02n.
    so bit confused.
    kindly help

    True , but in BKPF only Issues date are stored not the receipt date say if the document type = WE.
    Please let me know is there any other options to fetch rather than MKPF.
    because at the time of IDOC generation, there is not entries in MKPF. I tried to do using WAIT UP TO 50 seconds , even that didnt work.
    Please guide me
    thanks

  • Valuation type to pick from delivery in Goods receipt of STO

    Dear experts
    In case of STO, the material is Split valuated (Say RM local & RM Import). STO is created for 1000 qty with Valuation type of RM local.
    But delivery is done in 2 steps with both the valuation types (say for e.g 1st delivery with valuation type RM Import and 2nd with RM Local)
    When I do the goods receipt against the Outbound delivery, in Std system, it will fetch the valuation type entered in STO (PO), but the requirement is to take from Delivery.
    Please suggest Solution for this (BADI or any User exit)
    Regards
    Muthu

    Hi
    The requirement is such that client does not want to split the Quantity in PO, as they don't know how much quantity will be delivered from different valuation types. So that SAP note may not be helpful
    Anyway thanks a lot for your suggestion

  • Values disappear after saving the Purchase Order and Goods Receipt PO

    HI,
    Our client is using SAP Business One 2007 A(8.00.181) SP 00 PL 47, When they raise Purchase Order for service item, the details and amount disappears automatically after adding the document and similar case for Good Receipt PO. But when they book directly in AP invoice the details and amount will appeared.So please help on solution for the above problem.
    Best Regards,
    Grayson

    Dear Mr Burton,
    If I understood correctly you cannot see the information inside the document you added. This made me think that it is a GUI issue.
    In the second answer you specified that when you try to open it again you'll receive the error message saying that there is no total value or total and I assume there is no information in the document.
    I believe the second issue is a consequence of the first one.
    I was suggesting to open a message on the portal (the message that requires the S number from the partners) in order to investigate the issue better.
    However, as you have an error message that pinpoints to certain fields it could be possible to see the information in the tables. Do you have this information?
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Get Process Order Confirmation&Counter from material document/goods receipt

    Hi @ all,
    i´m looking for a way (the tables) to get the order confirmation and the counter from a goods receipt. I have the material document number und the position of the goods receipt.
    Kind regards,
    Axxter

    Hi,
    we don´t have the goods receipt material documents in AFRU. I don´t know the reason why.
    Message was edited by:
            Sebastian Becker

  • Generating Accruals from Service type Goods Receipt PO's

    I have identified that Service type Goods Receipt PO's do not write to the G/L, but a.) I don't understand why they don't and b.) how does one create system generated accruals if not by Goods Receipt PO?  I am sure this question has been asked before, but I couldn't find the thread.
    Thanks in advance,
    Donald

    Invoices create an actual expense.  Accrual expenses are normally captured as a result of work performed or items received but not invoiced.  Once again, I understand what SAP Business One does in this scenario.  I am being asked why and for that I don't have an answer.  It doesn't seem to be in conflict with GAAP, so I am not sure why they don't allow G/L Account determination for Service Documents to Accrual accounts.  It is a similar problem on the AR side, SAP B1 doesn't support money received, but not recognized to the liabilites bucket without manual intervention.
    Thanks again,
    Donald

  • Regarding the User Exit  for Goods Receipt (MIGO) Transaction code

    Hi,
    I have a requirement where I want to capture the Goods Receipt Document number when it’s got saved (Created).
    I have find out Exits available for the MIGO.
    MB_CF001
    MBCF0002
    MBCF0005
    MBCF0006
    MBCF0007
    MBCF0009
    MBCF0010
    MBCF0011
    I want to know which is the right one to serve my purpose (Exit Name).

    Hi Nikhil.
    I'm not sure which one is the best (there are several exits in SAP).
    But what i usually do is:
    - i have a dummy project in DEVELOPMENT SYSTEM, where i include the enhancements i suspect that solve my problems.
    - then i set the project active, break point ... that's it.
    Hope this helped.
    Reward helpfull ideas.
    Best regards.
    Valter Oliveira.

  • Goods receipt of more than one batches for Production Order

    Hi ,
    We are assigning the Batch number in CO01 t code as A1234.1 for Order quantity 100.
    I am doing the partial GR and also for the next successive GR's I want to do the GR with batch number as A1234.2, A1234.3..
    System is not allowing me to do the Goods recipt for the Batch A1234.2, .3, .4...in MB31.
    Please let know if any other way to Goods Receipt.
    Amit Shah

    We are assigning the Batch number in CO01 t code as A1234.1 for Order quantity 100.
    Dear You are assigned the Batch number in production order, SO It won't allow other than That Batch Number during GR.
    IF you want different batch for each GR then remove the Batch assignment in Production order

  • Batchbatch assignment ( multiple batches ) takes place - at goods receipt ( order confirmation ) assignment ( multiple batches ) takes place - at goods receipt ( order confirmation )

    Hi all,
    when will the batch assignment ( multiple batches ) takes place - at goods receipt ( order confirmation ) for each process order ?
    we will be prompted for the batch assignment ?
    thanks
    Vinu

    Hi,
    Yes system will create three process order considering you have maintain maximum lot lize as 1 Lac in Mateial master MRP 1 View.
    and these three process order will have different three batches considering you have batch number assignment as the time of release of production order.
    this can be multiple batches as well if partial confirmation done and batch number assignment is done on GR.
    If you are looking for one batch for three process order you need to go with development.
    Thanks

  • How to change the Profit centre in goods receipt before posting

    Hi All,
    when we are doing MB01,  material master and Purchase order  are  having different profit centres, since legacy has multiple profit centre for the same material.
    My requirement is to change the profit centre before posting a Goods receip with the Purchase order Profit centre.
    Is thre any user-exit, Badi or Substitutions for this requirement.  I have implimented the below code in the Badi
    MB_DOCUMENT_UPDATE.
    data : ls_xmseg type mseg.
    ls_xmseg-Profit Centre = .....
    ls_xmseg-prctr = '0020077170'.
    modify XMSEG from ls_xmseg transporting prctr .
    But i'm getting Data base update terminated message. Please help me in this.
    thanks,
    Ram.

    Dear Sir,
    But is T-code not working ....
    have you other code/ process so, pls. give me ....
    Pls sir
    Regards
    Jayesh Kanungo

  • Copy data from a UDO form to Goods Receipt PO using UI API

    Hi, all
    I tried to copy data from a UDO form to Goods Receipt PO using UI API through following codes.
    It works fine while copying to a Item-type Goods Receipt PO.
    But when the doctype is set to service, I got errors.
    I use for-loop to copy two items, Description and LineTotal, into the matrix of Goods Receipt PO form, but both failed.
    any suggestion?
    Edited by: Chao-Yi Wu on Aug 25, 2009 5:50 AM

    Hi  Chao-Yi Wu ,
    SBO_Application.ActivateMenuItem("2306")
    Dim oFormGR As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
    Dim omtxIQC, omtxGR As SAPbouiCOM.Matrix
    Dim oedIQC, oedGR, oed As SAPbouiCOM.EditText
    Dim ocbIQC, ocbGR As SAPbouiCOM.ComboBox
    oFormGR.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
    oedIQC = oFormIQC.Items.Item("13").Specific
    oedGR = oFormGR.Items.Item("4").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("21").Specific
    oedGR = oFormGR.Items.Item("24").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("edComments").Specific
    oedGR = oFormGR.Items.Item("16").Specific
    oed = oFormIQC.Items.Item("3").Specific
    oedGR.Value = oedIQC.Value + ", Goods Recript PO:" + oed.Value
    ocbIQC = oFormIQC.Items.Item("cbDocType").Specific
    ocbGR = oFormGR.Items.Item("3").Specific
    If ocbIQC.Selected.Value = "I" Then
         ocbGR.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
    Else
         ocbGR.Select(1, SAPbouiCOM.BoSearchKey.psk_Index)
    End If
    omtxIQC = oFormIQC.Items.Item("mtx_0").Specific
    For i As Integer = 1 To omtxIQC.RowCount
    omtxGR = oFormGR.Items.Item("38").Specific
           If ocbIQC.Selected.Value = "I" Then
                oedIQC = omtxIQC.Columns.Item("c_ItemCode").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("c_AQty").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("11").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("col_19").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("14").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
       Else  
    omtxGR = oFormGR.Items.Item("39").Specific
               oedIQC = omtxIQC.Columns.Item("c_Descrp").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
               oedIQC = omtxIQC.Columns.Item("col_16").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("12").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
      End If
                Next
    for items the matrix is 38 and for service the matrix is 39
    Rgds
    Micheal

  • How to disable and hide the menu items of 'copy From' button of Goods Recei

    hi expert,
    I am new in SAP B1. so please help me.
    Q:How to disable and hide the menu items of 'copy From' button of Goods Receipt PO form?
    Regards
    sanoj

    Hi Sanoj,
    Try This.....
    If pVal.FormType = "143" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE And pVal.BeforeAction = False Then
                oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, "1")
                Dim oitem As SAPbouiCOM.Item
                oitem = oform.Items.Item("10000330")
                'To Disable the button
                oitem.Enabled = False
                'To hide the button
                'oitem.Visible = False
            End If
    Thanks
    Shafi
    Edited by: shafi_sunshine on Sep 15, 2011 7:35 AM

Maybe you are looking for

  • Using a Forward Slash (/) in CFFILE Destination

    Hi everyone, I couldn't find this anywhere in the forums (at least not searching for "cffile forward slash", "cffile /", or "cffile destination") and hope I'm posting this in the correct place (please let me know if not). I need to use a forward slas

  • Problems with con https port on a Apache mod_ssl

    I have created test certificates using the openssl command. I am having problems with using this certificate in a web browser application I have created in Java. I have no problems with http requests. The certificate is self-signed and is no expiried

  • Update record to specific value or to null

    Hello. We have two tables. Both have the same attribute. Update sentence look if attribute has the same value in both tables. If the value is the same, another attribute is updated to specific value in one table. Now i want to update attribute in all

  • Runtime Error while using Dynamic Selection

    Hi,   We are getting a runtime error while using a dynamic selection. One of the fields has got an apostrophe in the middle of the text and so the condition is returning an error SAPSQL_WHERE_PARANTHESES.   Let's say the value in the field is SCV's.

  • Problem with gparted

    I'm having a problem with gparted, everytime I run it by sudo gparted I get this No protocol specified (gpartedbin:5407): Gtk-WARNING **: cannot open display: :0 When I run it by su I get the same error. When I run it outside of the terminal I get a