Pop up new form(Purchase Order) with current data

Dear All,
i have created a COPY TO button in my addon form. Now my quiry is that when ever i press the COPY TO button the purchase order form will open with my addon form data. Kindly suggest me the code.
Thanx
Sanjoy Paul

Hi...
         use this code...
Try
SBO_Application.ActivateMenuItem("2305")
       oForm = SBO_Application.Forms.ActiveForm
            OItem = oForm.Items.Item("4")
            Oedit = OItem.Specific
            Oedit.Value = vendor.ToString()
            rs1 = Nothing
            rs1 = OCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            'rs1.DoQuery(" Select Ur Table")
            'OItem = OPOForm.Items.Item("aaa")
            'Oedit = OItem.Specific
            'Oedit.Value = rs1.Fields.Item("Ur - Field").Value & ""
            OItem = OPOForm.Items.Item("bbb")
            Oedit = OItem.Specific
            Oedit.Value = rs1.Fields.Item("Ur - Field").Value & ""
        Catch ex As Exception
            SBO_Application.MessageBox(ex.Message)
        End Try
REM Matrix
OItem = oForm.Items.Item("38")
        oMatrix = OItem.Specific
        oCols = oPoMat.Columns REM Columns
Oedit = oCols.Item("1").Cells.Item(1).Specific 'item no
            Oedit.Value = itmcd.ToString()
It Will Work...
Regards...
Billa 2007

Similar Messages

  • Copy a service P.O. to create a new service purchase order

    I want to create a new service purchase order with items category D. However when I give ref. of some another purchase order the vendor and org. data fields become grey. How do I change these fields in new purchase order which I want to create? In case of material P.O. these fields are editable.
    Pl. help.
    Regards.

    Dear,
    Please check at the time of Service order creation the document type of purchase order is for services. If no please first change document type in ME21N select document type for service po then enter reference of document number in field of purchase order and it's line item at item detail level.
    So please compare your process of purchase order creation with below detail.
    Enter ME21N -Select document type for po.
    Then enter purchase order number in field of reference purchase order field. then check your data.
    Regards,
    Mahesh Wagh.

  • How pop up form Purchase Order !

    How pop up form Purchase Order  and show last record

    Basically you perform same steps as you would do manually in B1 app, that is
    - Click Modules - Purchasing A/P - Purchase Order = .ActivateMenuItem("2305")
    - Click Data - Last Data Record = .ActivateMenuItem("1291")
    Pls, try searching this forum for more details, it's all there.
    For example, Load standard SBO form from add-on might be useful.
    HTH
    Juha

  • Purchase Order with Invoice Plan

    Hi,
    I need to understand working with Invoicing plans for a Purchase Order. Especially the service PO for the rents and other related services.
    How the PO is linked to the Invoice Plan and how the process happens in SAP?
    Thanks in advance!

    Creating an Invoicing Plan  
    The following procedure describes how to create an invoicing plan with the pre-Enjoy ordering transactions (ME21, ME22, ME23).
    The procedure described is also applicable u2013 with certain restrictions u2013 to the Enjoy purchase order (ME21N, ME22N, ME23N).
    If you are using the Enjoy purchase order, you will find:
    ·         The Invoicing Plan button and the indicators for GR-based invoice verification (GR-Based IV), service-based invoice verification (Srv.-Based IV), evaluated receipt settlement (ERS), and invoice receipt (Inv. Receipt) among the item details on the Invoice tab page.
    ·         The account assignment among the item details on the Account Assignment tab page
    ·         The Goods Receipt and GR Non-Valuatedindicators among the item details on the Delivery tab page
    Prerequisites
    Vendor Master Record
    Before you can use the invoicing plan with automatic settlement, the Evaluated Receipt Settlement Delivery indicator must be set on the Purchasing Data screen in the vendor master record.
    (If you wish to enter invoicing dates manually, this is not necessary.)
    Purchase Order
    ●     We recommend using a framework order (that is a purchase order with a validity period and a reason for rejection). The invoicing plan can adopt the validity period specified in the PO header.
    ●     PO items for which you wish to use an invoicing plan must have account assignment irrespective of whether a material with a master record, a material described by a short text, or an external service is involved.
    ●     The GR/IR control facility must be set up in such a way that no goods receipt (or, in the case of services, no service entry) is expected - only an incoming invoice. If you wish to have automatic settlement, you must also set the Evaluated Receipt Settlement indicator.
    If you nevertheless wish to allow service entry sheets for the item (e.g. for information purposes only), you must set the GR Non-Val. indicator.
    Customizing
    Under Purchase Order à Invoicing Plan in Customizing for Purchasing, you can maintain data such as the desired invoicing plan types, date categories, and date descriptions.
    Procedure
           1.      Create a purchase order with account assignment (framework order).
    Click  to access the item overview (or the overview of service lines if you chose item category D for services).
           2.      Enter the desired material or service, the quantity, and the price.
           3.      Select the desired item and click  Account Assignments to access the account assignment screen. Enter the account assignment for this item.
           4.      Click  to access the item detail screen. Check that the GR/IR control indicators are set correctly on the item detail screen.
    ○     The GR and GR-Based Invoice Verification or Service-Based Invoice Verification indicators must not be set.
    ○     IR must be set.
    ○     You must set ERS if you wish to have Evaluated Receipt Settlement.
    ○     If you wish to have service entry sheets purely for information, for example, allow non-valuated goods receipt (i.e. select the GR Non-Val and GR indicators).
           5.      Choose Item ® Invoicing Plan. A window appears, in which the invoicing plan types predefined in Customizing are suggested. Choose the desired invoicing plan type and click  Continue.
    You can use the following invoicing plan types:
    ○     Periodic Invoicing Plan
    ■      You use the periodic invoicing plan if the total value of the PO item is to be invoiced in each period.
    ■      The system creates the invoicing dates automatically on the basis of the settings in Customizing.
    ■      The invoicing date and the amount to be invoiced are shown for each settlement period (e.g. month). In the case of the periodic invoicing plan, the amount represents the total value of the PO item.
    ■      You can change the suggested dates and block individual dates for automatic invoicing if necessary.
    ■      You can enter the start and end dates for the invoicing plan.
    ■      With the Dates from and Dates to fields, you can determine that an invoicing plan does not contain invoicing dates extending over the entire validity period of the purchase order but only for a certain period within that validity period. (E.g. within a validity period from 1.1. to 12.31, only dates within the period 1.1. to 06.30.)
    ■      With the Horizon field, you control how far into the future dates can be created. If you enter a date rule that adds six months to the current date here, invoicing dates will be created for just half a year in advance in each case.
    The system automatically creates new dates if you change the invoicing plan or when you invoke the transaction for Updating Periodic Invoicing Plans. See Generating Further Invoicing Plan Dates
    ■      The In Advance indicator allows you to specify whether the invoice is to be created with regard to a prior or subsequent period. (E.g. at the beginning of February, either in advance for the month of February or in arrears for the month of January).
    ■      In addition, fields with information on the existing invoicing plan are displayed (e.g. the calendar upon which the date determination process is based).
    ○     Partial Invoicing Plan
    ■      You use the partial invoicing plan if the total value of the PO item is to be invoiced in several partial amounts.
    ■      You get an empty date overview in which you can manually enter the desired dates.
    ■      If you work with a reference invoicing plan, the system automatically generates dates in accordance with the reference plan.
    You have the following options:
    ●      You create a reference invoicing plan in Customizing for the invoicing plan type.
    ●      You enter an existing invoicing plan as reference plan directly in the invoicing plan for the PO item.
    ■      You can flag a date in field B (Billing/Invoicing Rule) as follows:
    ●      As a down payment (percentage or value)
    ●      As an invoicing date (percentage or value)
    ●      As a final invoice
           6.      Click  to return to the item overview.
           7.      Click  to save the purchase order item with the invoicing plan.
    You can then start the automatic invoice creation process during invoice verification.
    For more information, refer to the section Settlement of Amounts Due Under Invoicing Plans.
    Once assigned to an item, the invoicing plan type (e.g. partial invoicing plan) cannot be changed. If you wish to assign a different invoicing plan type, you must delete the item and create a new one.
    Generating Further Invoicing Plan Dates  
    If you have assigned a periodic invoicing plan to a PO item but have not initially defined invoicing dates covering the entire validity period of the purchase order, you can generate further dates in due course.
    You have created a PO item with a periodic invoicing plan for a certain planned procurement. The purchase order is valid from 1.1. to 12.31. When creating the invoicing plan, you specified one invoicing date per month for the first half of the year. You have not yet planned any dates for the second half of the year because you do not wish information from the invoicing plan to be passed on to purchase order commitments at this stage, for example.
    By mid-June, it is clear that the PO is to proceed as envisaged, and you therefore wish to schedule invoicing dates for the remainder of its validity period.
    Procedure
    To schedule further invoicing dates, proceed as follows:
    Choose Purchase order ® Follow-on functions ® Period. invoicing plan
    Specify the purchase orders for which invoicing dates are to be generated in the invoicing plan and perform the function.
    A log can be created if desired.
    Result
    The system adds further dates on the basis of information such as the validity period or horizon from Customizing, the purchase order, and the invoicing plan.
    regards,
    indranil

  • Duplicate Purchase Order with all fields.

    Hi,
    I need a method to Duplicate a Purchase Order with ALL the fields. I tryed with a SendKey("^D") method but the new instance not copy the IC data. Looking for a better method, I read about the option to Save as XML the selected purchase, but I don't know what is the procedure to load the "clone instance" stored in the XML into the SBO Form with a new DocEntry.
    Anyone knows the better path to do this?
    Thanks in advance.
    Oscar Sanchez Montaner

    Hi Oscar,
    The XML method is fine. You export the original PO to an XML file. You can then use XSLT or a .NET XMLDataDocument object (or similar method if you are using another development environment) to remove the values in the DocNum, DocEntry and any other nodes you don't want to clone (eg DocDate). You can then load this back in to SBO using the GetBusinessObjectFromXML method of the Company object. Personally, I like the XSLT method because it's easy to do and very easy to amend without recompiling your addon (eg if you create new UDFs then you can quickly amend the XLST file to include or exclude these fields).
    Kind Regards,
    Owen

  • Error while creating purchase order with account assignment category "A"

    Dear All,
                      At the time of creating purchase order with account assignment category A - Asset its throwing error as " GL Account 123400 can not be used"
    how to resolve this  issue"
    Edited by: Matt on Sep 16, 2010 10:09 AM - removed bold tags

    HI,
    Assign all assets GL to Asset Class
    spro --> financial accounting new -->assets accounting --> assets accounting (lean Implementation) --> organization structures --> Assign GL
    Hope Help U !
    Regards,
    Pardeep Malik

  • Validity start & end, in Purchase Order with limit

    Hi All,
    We are using  a model of SAP with one type of Purchase Order: we have created a new type of purchase order (ZFOA), that we use for all purchase orders.
    Now we want to use ZFOA also for Blanket Purchase Order, instead of the standard type proposed for this scope by SAP (FO).
    We have inserted Validity Start & Validiti End  as Optional Entry in Customizing.
    ( IMG - MM - Purchasing - Purchase Ordrer - Define Screen Layout at Document Level).
    We have inserted them as Optional Entries, and not as Required Entries, because they are Required only for Blanket Purchase Order. (and we use ZFOA for all ours types of Purchase Order)
    So i want to know if it's possible to connect the obligatory requirement of these two entries to:
    - ZFOA (type of Purchase Order)
    - B (Item category in Purchase Order)
    In this way:
    1) when i create a PO (ZFOA) without item category B --> Validity date & Validity End are not obligatory fields
    2) when i create a PO (ZFOA) with item category B ---> Validity date & Validity End are  obligatory !!
    Have you got any Solutions??
    Best regards
    Alba

    Thanks very much!
    Now i found in MM SAP Manual (SCM 520, Purchasing) a similar example, and it could seem possible:
    When creating a standard purchase order with the standard item category, the following field selection key is determined for the Material group field:
    • Field selection key ME21N (Create/Change Purchase Order transaction):
    The Material Group field is an optional field.
    • Field selection key AKTH(Create activity category):
    The Material Group field is an optional field.
    • Field selection key NBF (purchasing document type NB):
    The Material Group field is an optional field.
    • Field selection key PT0F (item category Standard):
    The Material Group field is a mandatory (required-entry) field.
    The combination of field selection keys ME21N, AKTH and NBF means that the field is an optional field. Because the Material Group field is defined as a mandatory field in the field selection key PT0F however, this means that the field requires an entry when a purchase order is being created.
    I have the same problem for Validity start field, but why if i do all of this things, the field remain not mandatory?
    Thanks in advance
    Best regards
    ALba
    Edited by: Alba Battolini on Apr 22, 2009 9:21 AM

  • G/L Account default in purchase order with account assignment category K

    Hello gurus,
    when creating a new position in a purchase order with account assignment category K "Cost Center", the G/L Account No. is always filled with a default account.
    Where and how can I define, what account is used as default GL Account?
    The version is sap ecc 6.0.
    I will reward points all answer!!
    Thank you!

    Hi
    check the valaution class assigned to the material or the material group (if no material is being used)
    Now goto OBYC, Click on the transaction key GBB, for the account modifier VBR, & for the valuation clqass combination - check the G/L account.
    Based on this combination the G/L is determined auitomatically in the PO. if you chnage it here ... it will reflect in PO at the time of creation.
    Thanks & Regards
    Kishore

  • ME21N Create Purchase Order with reference to previous Purchase Order

    Hello Expert,
    Previously have been using Purchase Info Records for reference when creating Purchase Orders using ME21N.  We then have deleted the Pricing Condition in the Purchase Info Record using ME12.  Now when we are trying to create a new Purchase Order with the same values (Vendor, Material, Plant and Storage Location), the transaction code ME21N automatically fetches the previous values of the Pricing Condition as if it was cached.  I remember of studying this in the MM academy but I am not sure how to disable it. 
    This error only happens when we are creating the first Purchase Order after the deletion, for the second Purchase Order, error will be prompted to the user saying that the Pricing Condition could not be found. 
    I would like to ask where in configuration can I delete this cache behaviour or is that any work around for this. 
    Thanks in advance.

    Hello Antony,
    I found the "Update Prices" function in the Conditions Tab of the Item Details helps to refresh the data and fetch the new information from the Purchase Info Record.  I would like to ask is there anyway to provoke this function automatically everytime when a user runs the transaction ME21N.
    Thanks in advance again.

  • How to Create Purchase Order with Co Product greater than Consumption

    Hi All,
    I'm new to SAP. Can any one please help with the steps to create PO with Co Product greater than Consumption.
    Thanks in Advance.    

    Hi Srinivasu,
    If you are talking about handling by-products during subcontracting follow the following steps.
    Create Purchase order with item category "L". In the components tab maintain by-product in negative quantity. If you are not sure about the actual quantity, enter theoretical quantity ( Actual quantity can be adjusted in Subsequent adjustment in Goods receipt).
    Hope this helps you.
    If this has not helped you, please elaborate your requirement.
    Thanks
    Vasuki B S

  • "Individual Purchase order" with supersession

    have a scenario "Individual Purchase order" with supersession
    i face this problem
    When using the old transactions ME22n, we can replace the material with the
    new in supersession however; we cannot create an outbound delivery as
    it refers to the old material in ATP.
    We can re-run product selection in delivery, however SAP says the
    following:
    "For interchangeable parts to be considered in sales order processing
    for availability check there has to be the reason for substitution
    0009. The value for the field Outcome has to be B."
    "Note that copy routine 110 is only supported when you use outcome A
    and usage PSEL for deliveries"

    Is their any solution

  • Goods receipt for purchase order with account assignment 'K'

    Hello All,
    There are couple of purchase orders with acc.*** "K". On doing the GR for these PO's they have been done with mvt type 103 & mvt typ 105.
    I understand that material has been directly consumed to the respective cost center.
    How do track the internal movement for these materials??
    I need to view the stock for these materials at the cost center as in MMBE the stock is seen as ZERO.
    All these materials are with QM proc ACTIVE. So a goods receipt is done 105, then the inspection lot is cleared. However, in this case as the material is directly consumed, it is NOT displayed in QA32.
    Is the above procedure correct??? Is it better to receive stock against mvt type 101 & then do a 201 mvt ??
    Request your inputs.....
    Regards,
    Manoj Reddy

    Account assignment inventories are not maintained. To maintain a report for cost center receiving/issuing you need to make a customized report with help of ABAP.
    Other way is to pull report in MB51, with selection criteria COST CENTER and it will give you result of stocks available on cost center. For stocks received on cost center, you can pull report with cost center and movement 101.
    201 is used for goods issue to cost center from warehouse, the stock you receive from PO against 101 is directly charged to cost center, so no need to issue later to cost center.
    Edited by: Afshad Irani on May 17, 2010 2:17 PM

  • Report to Purchase Orders with Good Receipt and pending for Invioce Receipt

    Hello,
    I'm looking a report bring me Purchase Orders with Goods Receipt and waiting for Invioce Verificacion (MIRO).
    I appreciate any help.
    Regards,
    Hector

    Hi,
    ME2N - In selection screen, enter Selection parameters as
    WE102 i.e. Goods receipt exists and in output screen put a filter on "Still to be invoiced (qty)" and "Still to be invoiced (val.)" as not equal to zero OR greater than Zero.
    OR use RECHNUNG i.e. Open invoices and execute the report
    OR Use MB5S - GR/IR Balances

  • Purchase order with -ve Qty

    Hi,
    Is it Possible to create purchase order with negative  Quantity, right now it is issuing msg "negative Quantity will not be allowed for service based invoice verification".
    If yes please suggest the config steps.
    Regards,
    Rani

    not possible.
    negative stock can be maintained for storage location for goods issue

  • Default a gl account in account in a purchase order with account assignment

    Hi all
    I need default a gl account in account in a purchase order with account assignment P. can somebody help me. They have used a gl account which is not correct.
    Thanks

    Hi,
    Please refer posted tread in the forum
    default G/L account for purchasing documents
    Regards,
    Santosh

Maybe you are looking for

  • How to create an inbox item with attached BOR object?

    Dear Colleagues, Does anyone of you know a simple way to create inbox items for a user? I would like to use the inbox for notifying users and attach a BOR object to the message as attachment. Is there a good and plain way to do that? It would also be

  • Editing multiple portfolio

    Hi I have Creative cloud CS 6 I want to create portfolios of multiple single page PDFs for product instructions So my end result is a portfolio for multiple products that share the some of the same pages... but then if I update one page it updates al

  • Transfer Order : Data for storage type search is not defined (A   )

    Dear Experts , While trying to use the Transfer Order and trying to determine the storage type this error appears : Data for storage type search is not defined (A   ) Message no. L3007 Diagnosis Information on the storage type search has not been def

  • New to MDM

    Hi Recently i got new project on MDM ,my requirement is like this Here is the information on the requirement we have in the procurement area to report on u201CDiversity Indicatoru201D. we have to analysis at some point on bringing vendor data in.  Wh

  • HT3258 migration problem mac to mac

    i'm having a very strange problem migrating data from my macbook pro (10.6.8) to my new macbook air (10.7.5). i've been in touch with a supervisor level guy at apple support and he doesn't know what the problem could be. i keep some folders on the gr