Automate

 View Only
  • 1.  BAPI_CONTRACT_CREATE issues

    Posted 20 days ago

    I am getting this errors:

    " No instance of object type PurchasingContract has been created. External reference: # 1 Start of validity period is in the past Error transferring ExtensionIn data for enhancement CI_EKPODB Please enter material number or account assignment category Unit of measure  not defined for language EN Enter Order Unit Please check the price "

    I have put some sample data in. for the line items not all information is needed for different scenarios.

    Thanks for your assistance.

    Jane



    ------------------------------
    Jane Dobbs
    Specialist Supply Chain
    Canadian Pacific Railway
    Calgary AB
    ------------------------------

    Attachment(s)



  • 2.  RE: BAPI_CONTRACT_CREATE issues

    Employee
    Posted 20 days ago

    Hi Jane

    Great you're trying a BAPI for purchasing contracts! :)

    Every system is a bit different. Yours looked good to me except for one thing 

    Line 34 maps item number in the ITEMX table as a hard coded value of "N". You want to map it to column N - the same column as the ITEM table has item number mapped to.

    When I did that, I was able to run your script with a standard value contract and my vendor, purch org (which was hard coded) and materials.

    Please give that a try, mapping your item number from the ITEMX table, and see if it works for you.

     Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------



  • 3.  RE: BAPI_CONTRACT_CREATE issues

    Posted 19 days ago

    My goodness... saw the N and totally missed the upload portion, thank you...  

    However, it was created but still getting an error message 

    " PurchasingContract 6500000171 has been created. External reference: Start of validity period is in the past No message generated for output of purchasing document Company Code 1000 created under the number 6500000171 Error transferring ExtensionIn data for enhancement CI_EKPODB"

    I love using the BAPI's as it gives so much more control and flexibility. 



    ------------------------------
    Jane Dobbs
    Specialist Supply Chain
    Canadian Pacific Railway
    Calgary AB
    ------------------------------



  • 4.  RE: BAPI_CONTRACT_CREATE issues

    Employee
    Posted 19 days ago

    Hi Jane

    It looks like it was created or could be created. Did you see if the purchasing contract was posted?

    IDK what "Error transferring ExtensionIn data for enhancement CI_EKPODB" means. It could be related to some type of generated output based on what's in the message right before it or perhaps a user exit/customization to do something when a contract is created.

    I also did a search and found this: https://www.scribd.com/document/894749249/1918804-Error-ME887-when-using-ExtensionIn-structure-for-any-of-the-material   It's pointing to someone who can look at the ABAP - potentially data that is inconsistent with the data type of a field?  I would check with your SAP Basis team.

    Just my best guesses on where to look for the rest of this puzzle. :)

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------