Error: No instance of object type PurchaseOrder has been created.

Hi:
I am using BAPI_PO_CREATE1 to create PO's using webdynpro. I get the following error message when I attempt to create a PO.
No instance of object type PurchaseOrder has been created. External reference:
Please help.
Thanks
Sriram

Ramki:
Yes, I did. The initialization code is as follows
Bapi_Po_Create1_Input input = new Bapi_Po_Create1_Input();
input.setPoheader(new Bapimepoheader());
input.setPoheaderx(new Bapimepoheaderx());
input.addPoitem(new Bapimepoitem());
input.addPoitemx(new Bapimepoitemx());
input.addPoaccount(new Bapimepoaccount());
input.addPoaccountx(new Bapimepoaccountx());
input.addPoschedule(new Bapimeposchedule());
input.addPoschedulex(new Bapimeposchedulx());
input.addPotextheader(new Bapimepotextheader());
Thanks
Sriram

Similar Messages

  • BAPI_PO_CRETE1:No instance of object type PurchaseOrder has been created

    Hi All,
    It's very urgent,can u plz guide me how to use <b>BAPI_PO_CRETE1</b>
    I am getting the folowing errorrs while creating,<b>esp the error 1</b>
    can u plz guide me what are all the parameters to to pass to suppress this error
    <b>1. No instance of object type PurchaseOrder has been created. External reference:</b>
    2. Purchase order still contains faulty items
    3. Please only use sites with local currency EUR
    4. Net price for item 00010 taken from conditions
    Thanks in advance.
    Best Regards,
    Vishnuvardhan reddy.

    there are mandotary fields in ur bapi that have to b filled in, and u have to check the item elemant of how many characters it requires if the data elemant if 5 charaters u have to fill in the precceding with a number of zero here is a sample code of creating a Po with a single line item
    REPORT zak_testing .
    CONSTANTS : c_x VALUE 'X'.
    ***Structures to hold PO schedule data
    **DATA : itemschedule LIKE bapimeposchedule OCCURS 0 WITH HEADER *LINE ,
    **itemschedulex LIKE bapimeposchedulx OCCURS 0 WITH HEADER LINE .
    *Structures to hold PO header data
    DATA : header LIKE bapimepoheader ,
    headerx LIKE bapimepoheaderx .
    *Structures to hold PO account data
    DATA : account LIKE bapimepoaccount OCCURS 0 WITH HEADER LINE ,
    accountx LIKE bapimepoaccountx OCCURS 0 WITH HEADER LINE .
    *Internal Tables to hold PO ITEM DATA
    DATA : item LIKE bapimepoitem OCCURS 0 WITH HEADER LINE,
    itemx LIKE bapimepoitemx OCCURS 0 WITH HEADER LINE,
    *Internal table to hold messages from BAPI call
    return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
    *Internal table to hold messages from BAPI call
    pocontractlimits LIKE bapiesucc OCCURS 0 WITH HEADER LINE.
    DATA : w_header(40) VALUE 'PO Header',
    purchaseorder LIKE bapimepoheader-po_number,
    delivery_date LIKE bapimeposchedule-delivery_date.
    DATA : ws_langu LIKE sy-langu.
    header-comp_code = '01'.
    header-doc_type = 'NB'.
    header-vendor = '0000101111'.
    header-creat_date = sy-datum.
    header-purch_org = '0001'.
    header-pur_group = '502'.
    header-doc_date = sy-datum.
    *header-quot_date = sy-datum.
    *append header.
    *POPULATE HEADER FLAG.
    headerx-comp_code = c_x.
    headerx-doc_type = c_x.
    headerx-vendor = c_x.
    headerx-creat_date = c_x.
    headerx-purch_org = c_x.
    headerx-pur_group = c_x.
    headerx-doc_date = c_x.
    *populate ur item table
    item-po_item = '00010'. " note item in Quotes
    item-acctasscat = 'K'.
    item-short_text =  'workforce labour'.
    item-matl_group = '904045'.
    item-plant = '0002'. " depending if 0002 plant exist in ur database
    item-quantity = '1'.
    item-po_unit = 'EA'.
    item-net_price = '1000000'.
    item-price_unit = '1'.
    APPEND item.
    CLEAR item.
    *POPULATE ITEM FLAG TABLE
    itemx-po_item = '00010'. "notice that item has to b passes in every instance
    itemx-po_itemx = c_x.
    itemx-acctasscat = c_x.
    itemx-short_text = c_x.
    itemx-matl_group = c_x.
    itemx-plant = c_x.
    itemx-quantity = c_x.
    itemx-po_unit = c_x.
    itemx-net_price = c_x .
    itemx-price_unit = c_x.
    APPEND itemx.
    CLEAR itemx..
    itemx-material = c_x.itemx-net_price = c_x
    *POPULATE ACCOUNT DATA.
    account-po_item = '00010'.
    account-creat_date = sy-datum .
    account-gr_rcpt = 'MTCD FS'.
    account-unload_pt = 'Woodstock'.
    account-costcenter = '0000120010'.
    account-gl_account = '0000455655'.
    *account-CO_AREA    = 'MTCD FS'.
    account-serial_no = serial .
    APPEND account.
    CLEAR account.
    *POPULATE ACCOUNT FLAG TABLE.
    accountx-po_item = '00010'.
    accountx-po_itemx = c_x.
    accountx-creat_date = c_x .
    accountx-gr_rcpt = c_x.
    account-unload_pt = c_x.
    accountx-costcenter = c_x.
    accountx-gl_account = c_x .
    APPEND accountx.
    CLEAR accountx.
    APPEND itemx. CLEAR itemx.
    **POPULATE ITEM SCHEDULE DATA.
    **POPULATE ITEM FLAG FOR SCHEDULE TABLE.
    *BAPI CALL
    CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
    CALL FUNCTION 'BAPI_PO_CREATE1'
         EXPORTING
              poheader         = header
              poheaderx        = headerx
         IMPORTING
              exppurchaseorder = purchaseorder
         TABLES
              return           = return
              poitem           = item
              poitemx          = itemx
              poaccount        = account
              poaccountx       = accountx.
    *Confirm the document creation by calling database COMMIT
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
              wait = 'X'.
    IF NOT header IS INITIAL.
      CALL FUNCTION 'DEQUEUE_ALL'.
    ELSE.
      CALL FUNCTION 'DEQUEUE_ALL'.
    **message i036.
    ENDIF.
    try this n substitute the code where relavent

  • No instance of object type PurchaseOrder has been created. External referen

    Hi Friends,
    We are on SRM 5.0 SP11, R/3 4.7 backend.
    When we try to create a PO manually in SRM PO doesnot get created, but we get this error message in application monitors of RZ20  - "No instance of object type PurchaseOrder has been created. External reference: "
    I have looked at the note 973952 but this is not applicable for our system.
    any help on this ???
    Regards,
    Kumar
    Edited by: Kumar on Apr 23, 2008 1:35 PM

    Hi all,
    @Dinesh: I have checked all the settings mentioned by you and they are in place.
    @David: the other errors following this issue are
    PurchOrder 0800000024: PO header data still faulty
    PO 0800000024: Document type ECPO not allowed with doc. category F (Please check input)
    PurchOrder 0800000024: Item category not allowed with document type ECPO.
    As suggested by Hitender, I tired to push the PO manually throgh the function module and now in RZ20 i get the error as PO 0800000024: Document number 800000024 not within defined inter val
    But I checked the number ranges in both the systems and they looks fine...
    This is ECS scenario:
    In SRM System I have maintained the number ranges for local PO as 08     0800000001     0899999999     800000030     
    and in R/3 08     0800000001     0899999999     800000030     X(ext flag selected).
    Please advice whether this is correct.. I have also checked the Document types item categories.....
    Regards,
    Kumar

  • BAPI 001 No instance of object type purchaseorder has been created

    Hello All,
    I get teh following error message in SC monitor (backend application error) as well as in RZ20. I tried to push into backend but no luck.Scenario Classic.SRM 5.0
    Shopping cart XXXXX(PO XXXXX) BAPI 001 No instance of object type purchaseorder has been created.
    The latest log in BBP_PD
    0000000001 I1111          Item in Transfer Process       X
    0000000001 I1112          Error in transmission
    Any clue is appreciated.
    Muthu
    Edited by: Muthuraman Govindasamy on Oct 7, 2008 2:59 PM

    Hi Andrea
    We can create a PO vis sourcing cockpit in classic mode.
    SC: Error in transmission BAPI 001
    Note :- 973952 and follow the Peter instructions. This error  message misleads
    regards
    Muthu

  • BAPI 001 No instance of object type PurchaseOrder has been created. Externa

    HI,
    we have the below mentioned issue when we are creating SC through describe requirement.
    BAPI 001 No instance of object type PurchaseOrder has been created. External reference:  (Document Number XXXXXXXXXXX
    06 213 Error in net price calculation, item 000010 (Please correct)  (Document Number XXXXXXXXXXX)
    we are trying to assign the inforrecord when we are creating the SC through describe requirement.
    Could any one suggest what is going wrong
    regards
    subbu

    this error is misleading error message from SRM SIDE . click follow on document icon via monitor sc. you will get real error message in application monitor or rz20.
    check the real error message in rz20.
    update here what is ther error message...
    muthu

  • No instance of object type PurchaseRequisition has been created.External re

    Dear experts,
           I used the bapi:BAPI_PR_CREATE to create PR, occurs below error.
    No instance of object type PurchaseRequisition has been created. External reference: A0460-0013
    Can you tell me how to resolve ?
    CALL FUNCTION 'BAPI_PR_CREATE'
          EXPORTING
           PRHEADER                    = PRHEADER
           PRHEADERX                   = PRHEADERX
             TESTRUN                     = 'X'
           IMPORTING
            NUMBER                      =  PR_NO
            PRHEADEREXP                 =
            TABLES
             RETURN                      = PR_RETURN
              PRITEM                      = PRITEM
              PRITEMX                     = PRITEMX
              PRITEMEXP                   =  PRITEMEXP
            PRITEMSOURCE                =
             PRACCOUNT                   = PRACCOUNT
            PRACCOUNTPROITSEGMENT       =
            PRACCOUNTX                  = PRACCOUNTX
            PRADDRDELIVERY              = PRACCOUNTX
            PRITEMTEXT                  =
            PRHEADERTEXT                =
            EXTENSIONIN                 =
            EXTENSIONOUT                =
            PRVERSION                   =
            PRVERSIONX                  =
            ALLVERSIONS                 =

    Hi Merry,
    I think you are missing some of the mandatory fields for this BAPI, thats why you are getting this error.
    Check all the fields filled and also PRHEADERX, that have you filled X for all the fields filled in PRHEADER.
    Regards,
    Nitin.

  • No instance of object type PurchaseRequisition has been created.

    Hi,
    We are facing a problem while creating purchase requisition documents with the help of IDocs.
    We are using the SAP standard function module to create purchase requisition. But IDocs are failing in the above mentioned error.
    This is the function module that is called internally BAPI_PR_CREATE from the standard function module IDOC_INPUT_PREQCR1. Here in BAPI_PR_CREATE instance is not getting created.
    Can any one let me know where exactly the problem lies and are there any OSS Notes to be implemented.
    Raghuram.

    Hi Merry,
    I think you are missing some of the mandatory fields for this BAPI, thats why you are getting this error.
    Check all the fields filled and also PRHEADERX, that have you filled X for all the fields filled in PRHEADER.
    Regards,
    Nitin.

  • IDoc failed with the error massaeg "Instance of object type could not be ch

    Hi All
    I am getting IDoc failed with the error massaeg "Instance of object type could not be changed"
    Message type :PORDCR
    Basic type : PORDCR05
    Message no. BAPI003
    Status : 51
    All POs are get uploaded in SAP during Cut over activities only.
    Please suggest on this.It will be a great help.
    Thanks
    Ajit

    Hi
    After uploading POs into SAP we are changing quantity and value in PO in Legacy system, and for this all IDocs are failed, subsequently these changes are not triggering to ECC.
    Please help
    Thanks
    Ajit

  • BPM Error:Runtime handle of object type could not be created:CX_MERGE_SPLIT

    HI Guys...
    I am working on a RFC to HTTP scenario:
    It is a standard SAP interface ....so we created only ID objects..obviously the BPM delivered by must be correct.
    in sxmb_moni_bpe  it is throwing th following error texts:
    Runtime handle of object type could not be created
    Error executing service for node
    Exception CX_MERGE_SPLIT occured
    component mapping has returned an error
    unmodeled exception when executing service for node
    No payload found
    object FLOWITEM method EXECUTE cannot be executed
    I tested the mapping payload from sxmb_moni in IR and it is working fine.
    Receiver is an HTTP so could not able to find exactly whats happening as no thrid party tools can be installed....struck up here.
    Any iputs will be of help in this area.
    Thanx in adavance.
    Kiran

    any inputs around this plz??

  • IDoc Error -Instance of object type could not be changed

    Hi All
    I am getting IDoc failed with the error massaeg "Instance of object type could not be changed"
    Message type :PORDCR
    Basic type : PORDCR05
    Message no. BAPI003
    Status : 51
    Please suggest on this
    Thanks
    Ajit

    Hi Madhu
    All these POs are uploaded during the Cutover Activities only, I am not sure whether it is uploaded through LSMW or not. What I guess is If its uploaded thrugh LSMW , then we can't change any value in the PO.
    Please sugest how can I process allthese IDocs.
    Thanks
    Ajit

  • ORA-39083: Object type TRIGGER failed to create with error:

    i m getting these two error when i import data using impdp.
    ORA-39083: Object type TRIGGER failed to create with error:
    ORA-00942: table or view does not exist
    i have exported (expdp) data from production db, when i importing (impdp) the dump file to the test db i m geting the above two errors.
    example:
    ORA-39083: Object type TRIGGER failed to create with error:
    ORA-00942: table or view does not exist
    Failing sql is:
    CREATE TRIGGER "NEEDLE"."CC_BCK_TRG" BEFORE INSERT OR UPDATE
    ON NIIL.cc_bck_mgmt REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW
    DECLARE
    w_date DATE;
    w_user VARCHAR2(10);
    BEGIN
    SELECT USER,SYSDATE INTO w_user,w_date FROM DUAL;
    IF INSERTING THEN
    :NEW.cretuser :=w_user;
    :NEW.cretdate :=w_date;
    END IF;
    IF UPDATING THEN
    :NEW.modiuser :=w_user;
    :NEW.modidate :=w_date;
    END IF;
    END;
    status of the above trigger in pro db is valid. and source table also exist even though i m getting error when i import
    please suggest me...

    perhaps you don't have table... (impdp created trigger before create table)
    check about "NIIL.cc_bck_mgmt" table.
    and then create it (trigger) manual ;)
    Good Luck.

  • It is showing as error *Instance of object type PO could not be changed*

    HI Gurus,,
    i have requirement in PO Change IDOC , i have tested this IDOC .. but it is showing in Status record as error Document is does not exist
    and in Segmentheader for E1BPMEPOHEADER ..it is showing as error Instance of object type PO could not be changed
    SEGMENT NAME : E1BPMEPOHEADER
      PO_NUMBER
      COMP_CODE
      DOC_TYPE
      CREAT_DATE
      VENDOR
      PURCH_ORG
      PUR_GROUP ;;;
    we have entered related entries in it ...
    am uanble to find out where is porblem lies in it... plz help ASAP ...
    Thanks in advance..

    HI srinivas
    "It seems a data issue, Similar PO might be changed already and thus in SAP it is not allowing to change.
    So try changing the test data and post the IDOC again , it will change the PO . "
    yes we have entered the PO create and PO change .. where in PO change we have changed only QUANTITY and DATE .
    and showing this error" *It is showing as error Instance of object type PO could not be changed. "*
    Thanks in advance.

  • Error in creation of Object Type from XML passed

    Hi,
    I am facing a problem creating a appropriate a object type for a XML.
    Below are the details:
    XML Passed
    <mer_offer_action_data>
    <form_id>
    134039588
    </form_id>
    <action_cd>
    OA
    </action_cd>
    <offer_decline_reason_cd>
    </offer_decline_reason_cd>
    <start_dt>
    </start_dt>
    <candidate>
    <ds_prs_id>
    109315
    </ds_prs_id>
    <ds_prs_id>
    110534
    </ds_prs_id>
    <ds_prs_id>
    110059
    </ds_prs_id>
    </candidate>
    </mer_offer_action_data>
    Types Declaration
    +CREATE OR REPLACE type MER_OFF_CANDIDATE
    AS
    OBJECT
    DS_PRS_ID NUMBER
    CREATE OR REPLACE TYPE MER_OFF_CANDIDATE_t
    AS
    TABLE OF MER_OFF_CANDIDATE;
    CREATE OR REPLACE type MER_OFFER_ACT_DATA
    AS
    OBJECT
    FORM_ID NUMBER,
    ACTION_CD VARCHAR2(6),
    OFFER_DECLINE_REASON_CD VARCHAR2(6),
    START_DT VARCHAR2(11),
    CANDIDATE MER_OFF_CANDIDATE_t
    CREATE OR REPLACE TYPE MER_OFFER_ACT_DATA_t
    AS
    TABLE OF MER_OFFER_ACT_DATA;
    CREATE OR REPLACE type MER_OFFER_ACTION_DATA
    AS
    OBJECT
    MER_OFF_ACT_DATA MER_OFFER_ACT_DATA_t
    /+
    My Declaration
    +merOffActDataXML      xmltype;
    merOffActData     MER_OFFER_ACTION_DATA := MER_OFFER_ACTION_DATA(MER_OFFER_ACT_DATA_t());+
    Inside Pl/SQL block
    +-- Converts XML data into user defined type for further processing of data
    xmltype.toobject(merOffActDataXML,merOffActData);+
    when I run the Pl/Sql block it gives me error
    ORA-19031: XML element or attribute FORM_ID does not match any in type ORADBA.MER_OFFER_ACTION_DATA
    which means the object type mapping is wrong
    I would like to know whether the object type I had created is correct or not.
    Thanks for your help
    Beda

    Bedabrata Patel wrote:
    Below are the details:The details except for a description of the problem
    I am facing a problem creating a appropriate a object type for a XML.And which error you are getting
    Error in creation of Object Type http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/toc.htm
    And which version of Oracle you are getting the unknown error creating the unknown problem.

  • Error in creation of Object Type

    Hi,
    I am facing a problem creating a appropriate a object type for a XML.
    Below are the details:
    XML Passed
    <mer_offer_action_data>
         <form_id>
              134039588
         </form_id>
         <action_cd>
              OA
         </action_cd>
         <offer_decline_reason_cd>
         </offer_decline_reason_cd>
         <start_dt>
         </start_dt>
         <candidate>
              <ds_prs_id>
                   109315
              </ds_prs_id>
              <ds_prs_id>
                   110534
              </ds_prs_id>
              <ds_prs_id>
                   110059
              </ds_prs_id>
         </candidate>
    </mer_offer_action_data>
    Types Declaration
    +CREATE OR REPLACE type MER_OFF_CANDIDATE
    AS
    OBJECT
    DS_PRS_ID NUMBER
    CREATE OR REPLACE TYPE MER_OFF_CANDIDATE_t
    AS
    TABLE OF MER_OFF_CANDIDATE;
    CREATE OR REPLACE type MER_OFFER_ACT_DATA
    AS
    OBJECT
    FORM_ID NUMBER,
    ACTION_CD VARCHAR2(6),
    OFFER_DECLINE_REASON_CD VARCHAR2(6),
    START_DT VARCHAR2(11),
    CANDIDATE MER_OFF_CANDIDATE_t
    CREATE OR REPLACE TYPE MER_OFFER_ACT_DATA_t
    AS
    TABLE OF MER_OFFER_ACT_DATA;
    CREATE OR REPLACE type MER_OFFER_ACTION_DATA
    AS
    OBJECT
    MER_OFF_ACT_DATA MER_OFFER_ACT_DATA_t
    /+
    My Declaration
         +merOffActDataXML          xmltype;
         merOffActData          MER_OFFER_ACTION_DATA := MER_OFFER_ACTION_DATA(MER_OFFER_ACT_DATA_t());+
    Inside Pl/SQL block
         +-- Converts XML data into user defined type for further processing of data
         xmltype.toobject(merOffActDataXML,merOffActData);+
    Thanks for your help
    Beda
    Edited by: Bedabrata Patel on Jul 12, 2010 5:51 AM

    Bedabrata Patel wrote:
    Below are the details:The details except for a description of the problem
    I am facing a problem creating a appropriate a object type for a XML.And which error you are getting
    Error in creation of Object Type http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/toc.htm
    And which version of Oracle you are getting the unknown error creating the unknown problem.

  • Error: A previous document of this type has been created with later date

    hi
    when i am adding invoice with a particular date.
    and if i am adding  another invoice for same customer with date previous to the first one i am getting this error
    pls tell the error were i have made and how to slove the error

    Om,
    Pleae check the following ...
    Marketing document with earlier posting date not added
    Symptom
    Error message: 'A previous document of this type has been created with a later date.' and the document is not added.
    Other terms
    AR, AP, invoice, credit memo, reserve invoice, wizard, document, generation, past, previous, posting date, settings, initialisation, SAP Business One
    Reason and Prerequisites
    Business requirement that marketing documents with an earlier date than the current system date are entered.
    Solution
    Under Administration -> System Initialisation -> Document Settings -> Tab 'General' is a tickbox 'Block Documents with Earlier Date'.
    If this box is ticked, the error message 'A previous document of this type has been created with a later date.' is received and the document cannot be added. This affects the following documents:
    AR and AP Invoice
    AR and AP Credit Memo
    AR and AP Reserve Invoice
    If the box is unticked, the system displays the message: 'A previous document of this type has been created with a later date. CONTINUE or CANCEL.' If 'Continue' is chosen, the document can be added.
    This setting will also affect documents to be processed by the 'Automatic Summary Wizard'.
    HTH,
    Eddy

Maybe you are looking for

  • How can I use the Apple remote to view photos on my macbook?

    When I try to use the remote, it launches iTunes and will only control iTunes. I would like to use the remote to do other things on my computer!

  • Opening/Closing Balance amounts missing in J_3RFCASH15

    Hello, I am having a problem with the new program for printing cash journal for Russia. When I am executing program J_3RFCASH15 and then select the KO-4 form layout the following data is missing: - Opening Balance amount - Closing Balance amount - Da

  • How to make label transperent

    I have a Form with a image on the background. the radio group button has a label. This label is not transparent. So, i have to choose a white background. But that is not nice. When I fill the Prompt property, I get a prompt which is transperent. How

  • 845PE max-2 + 3.06 P4 no HT ?

    Hi, According to previous posts i do comply with all requirements for getting HT to work, but it simply does not show up in the BIOS. Specs : 3.06 Ghz P4 845PE-MAX2 DDR333 1024MB As far as my simple brain can get me, i presumed that this HT-option sh

  • Is it too much lines of code inside a class file?

    Hi, I was wondering about how many lines can be considered too much in a java class file. I saw some class files with more the two thousand lines of code and even more than three thousand lines. When we have so many lines in the code I've realized th