Problem using BAPI_BUS2001_CREATE to create project definition

Hi,
i have a problem using BAPI_BUS2001_CREATE to create project definition.
i have customer fields in CI_PROJ structure.
i used help structure BAPI_TE_PROJECT_DEFINITION in EXTENSIONIN table
the problem is that customer fields that i have populated in BAPI_TE_PROJECT_DEFINITION are not processed.
please help.
thanks.

solved,
applay oss note 637345

Similar Messages

  • Error when create project definition and 2 wbs by bapi BAPI_PROJECT_MAINTAI

    Hello everyone,
    I have to create project definition and 2 wbs, I use function BAPI_PROJECT_MAINTAI but I have the error:
    "WBS element 0033.3332.01.R already exists" but that wbs it's created.
    This is my code.
    data:
             I_WBS_ELEMENT_TABLE type BAPI_WBS_ELEMENT occurs 0 with header line,
             I_WBS_ELEMENT_TABLE_UPDATE type BAPI_WBS_ELEMENT_UPDATE occurs 0 with header line,
             I_PROJECT_DEFINITION like BAPI_PROJECT_DEFINITION,
             I_PROJECT_DEFINITION_UPD like BAPI_PROJECT_DEFINITION_UP,
             I_METHOD_PROJECT type BAPI_METHOD_PROJECT occurs 0 with header line,
            E_MESSAGE_TABLE like BAPI_METH_MESSAGE occurs 0 with header line,
            RETURN type BAPIRETURN1,
            lv_index    LIKE bapi_method_project-refnumber.
    lv_index = 1.
    I_METHOD_PROJECT-OBJECTTYPE = 'ProjectDefinition'.
    I_METHOD_PROJECT-METHOD = 'Create'.
    I_METHOD_PROJECT-OBJECTKEY = '0033.3332'.
    I_METHOD_PROJECT-REFNUMBER = lv_index.
    append I_METHOD_PROJECT.
    lv_index = lv_index + 1.
    I_METHOD_PROJECT-OBJECTTYPE = 'WBS-Element'.
    I_METHOD_PROJECT-METHOD = 'Create'.
    I_METHOD_PROJECT-OBJECTKEY = '0033.3332.01'.
    I_METHOD_PROJECT-REFNUMBER = lv_index.
    append I_METHOD_PROJECT.
    lv_index = lv_index + 1.
    clear I_METHOD_PROJECT.
    I_METHOD_PROJECT-OBJECTTYPE = 'WBS-Element'.
    I_METHOD_PROJECT-METHOD = 'Create'.
    I_METHOD_PROJECT-OBJECTKEY = '0033.3332.01.R'.
    I_METHOD_PROJECT-REFNUMBER = lv_index.
    append I_METHOD_PROJECT.
    clear I_METHOD_PROJECT.
    I_METHOD_PROJECT-OBJECTTYPE = space.
    I_METHOD_PROJECT-METHOD = 'Save'.
    I_METHOD_PROJECT-OBJECTKEY = space.
    I_METHOD_PROJECT-REFNUMBER = space.
    append I_METHOD_PROJECT.
    I_PROJECT_DEFINITION-PROJECT_DEFINITION = '0033.3332'.
    I_PROJECT_DEFINITION-DESCRIPTION = 'Training project'.
    I_PROJECT_DEFINITION-PROJECT_PROFILE = 'ZAF0001'.
    I_PROJECT_DEFINITION-COMP_CODE = '0033'.
    I_PROJECT_DEFINITION-RESPONSIBLE_NO                  = 1.
    I_PROJECT_DEFINITION-APPLICANT_NO                    = 1.
    I_PROJECT_DEFINITION-PLANT  = '033A'.
    I_WBS_ELEMENT_TABLE-PROJECT_DEFINITION              = '0033.3332'.
    I_WBS_ELEMENT_TABLE-WBS_ELEMENT                     =  '0033.3332.01'.
    I_WBS_ELEMENT_TABLE-DESCRIPTION                     = 'WBS 1'.
    I_WBS_ELEMENT_TABLE-RESPONSIBLE_NO                  = 1.
    I_WBS_ELEMENT_TABLE-APPLICANT_NO                    = 1.
    I_WBS_ELEMENT_TABLE-COMP_CODE                       = '0033'.
    I_WBS_ELEMENT_TABLE-PROFIT_CTR                      = '0033A99999'.
    I_WBS_ELEMENT_TABLE-PLANT  = '033A'.
    append i_wbs_element_table.
    clear I_WBS_ELEMENT_TABLE.
    I_WBS_ELEMENT_TABLE-PROJECT_DEFINITION              = '0033.3332'.
    I_WBS_ELEMENT_TABLE-WBS_ELEMENT                     =  '0033.3332.01.R'.
    I_WBS_ELEMENT_TABLE-DESCRIPTION                     = 'WBS 2'.
    I_WBS_ELEMENT_TABLE-RESPONSIBLE_NO                  = 1.
    I_WBS_ELEMENT_TABLE-APPLICANT_NO                    = 1.
    I_WBS_ELEMENT_TABLE-COMP_CODE                       = '0033'.
    I_WBS_ELEMENT_TABLE-PROFIT_CTR                      = '0033A99999'.
    I_WBS_ELEMENT_TABLE-PLANT  = '033A'.
    append i_wbs_element_table.
    PERFORM fill_update_flags USING    'BAPI_PROJECT_DEFINITION_UP'
                              CHANGING I_PROJECT_DEFINITION_UPD.
    PERFORM fill_update_flags USING    'BAPI_WBS_ELEMENT_UPDATE'
                              CHANGING I_WBS_ELEMENT_TABLE_UPDATE.
    append I_WBS_ELEMENT_TABLE_UPDATE.
    append I_WBS_ELEMENT_TABLE_UPDATE.
    CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
      EXPORTING
        I_PROJECT_DEFINITION               = I_PROJECT_DEFINITION
        I_PROJECT_DEFINITION_UPD           = I_PROJECT_DEFINITION_UPD
      TABLES
        I_METHOD_PROJECT                   = I_METHOD_PROJECT
        I_WBS_ELEMENT_TABLE_UPDATE         = I_WBS_ELEMENT_TABLE_UPDATE[]
        I_WBS_ELEMENT_TABLE                = I_WBS_ELEMENT_TABLE[]
       E_MESSAGE_TABLE                    = E_MESSAGE_TABLE
    write: / 'Finish'.
    *&      Form  FILL_UPDATE_FLAGS
    FORM fill_update_flags USING    value(p_ddic_name)
                           CHANGING p_struc_upd.
      DATA: lt_dd03l LIKE dd03l OCCURS 0,
            ls_dd03l LIKE dd03l.
      DATA: s(40), c(40), sc(80) TYPE c.
      FIELD-SYMBOLS: <s>, <c>, <sc> TYPE ANY.
      TRANSLATE p_ddic_name TO UPPER CASE.
      SELECT * FROM dd03l INTO TABLE lt_dd03l WHERE tabname = p_ddic_name.
      s = 'P_STRUC_UPD'.
      ASSIGN (s) TO <s>.
      LOOP AT lt_dd03l INTO ls_dd03l.
        ASSIGN ls_dd03l-fieldname TO <c>.
        ASSIGN COMPONENT <c> OF STRUCTURE <s> TO <sc>.
        <sc> = 'X'.
      ENDLOOP.
    ENDFORM.                    " FILL_UPDATE_FLAGS
    Please help me!
    Thank you!
    Edited by: kishan P on Sep 10, 2010 9:37 AM

    Hi,
    Please try creating the project definition and then call the FM again to create the WBS.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/4c/226a7246e611d189470000e829fbbd/frameset.htm
    Hope it helps.
    Sujay

  • Short Dump while using BAPI_PS_PRECOMMIT to set Project Definition Status

    Hi All,
    I am getting a short dump while using BAPI_PS_PRECOMMIT for setting the Project Definition status..
    The requirement is to create a Project Definition and then set its status to REL from CRTD. For this purpose i am using the BAPI's in the following sequence :
    1. BAPI_PS_INITIALIZATION
    2. BAPI_PROJECT_MAINTAIN
    3. BAPI_BUS2001_SET_STATUS
    4. BAPI_PS_PRECOMMIT
    5. BAPI_TRANSACTION_COMMIT
    The Proj Def creation is happening successfully in step2. Interestingly, when I debug the program and stop at PRECOMMIT BAPI the program does not give a dump. I have also tried to give COMMIT WORK / WAIT FOR n SECONDS after BAPI_BUS2001_SET_STATUS, to give BAPI sometime for DB update but nothing seems to be a permanent solution.
    Please give your views on a solution for this problem..
    Thanks & Regards,
    Somil

    Can you please check how to post code in SDN ...
    I cannot read your code properly

  • CJ20N Create Project Definition

    Hi,
    I have a requirement in which we have to change the project definition description (PRPS-POST1) while creating the project itself it means after creating and then if we save description should get changed.
    Please let me know if there is any use exit available for the same.
    Any ips will be appriciated.
    Rgds,
    Rag

    Why are you more specific to go with user exit only ?
    If exit is what you are looking for then it was provided to you in earlier thread.
    CJ20N User Exit
    Then why did you raise a new post again?

  • Problem using BAPI to create Service Confirmation in CRM

    Good afternoon all.
    I have raised this is CRM forum too, just thought it best to ask the broader ABAP community the question too.
    We are encountering a problem using a BAPI to create a transaction in CRM, specifically:
    I am trying to create a Service Confirmation (BUS2000117) in a CRM system using the BAPI BAPI_BUSPROCESSND_CREATEMULTI.
    The BAPI succeeds in creating the header of the transaction, but I cannot make the BAPI create any other data in the transaction such as partners or items.
    Just want to be sure that I am not being foolish...has anyone succeeded in using this BAPI to create an error-free Service Confirmation?
    Regards
    Nick

    I am going to pop this thread into General ABAP forum too.
    Nick

  • How to use Classification Characteristics for project definition and WBS

    dear all:
    my step is below:
    1,  CT04, create "Characteristic"
    2,  CL02, create "Class". and class type is "14".
    3,  now how to customize to use the class in project definiton and WBS.
    Please explain me all the steps to be required.
    Thanks in advance!

    Hi
    Classification is only assigned for the network profile or in the activity.
    CJ20N  -
    > Extra ---> Classification --- > Classification
    Hope this will help you.
    Regds,
    Uddhab

  • Problems using CVS with Jdeveloper - Project

    I have Jdeveloper on Windows 2000 and CVS repository on unix.
    I am using wincvs.
    In the documentation it mentions that I have to create a new project on JDeveloper and then import that project in CVS.
    But if I already have files in CVS then how can I get that in JDeveloper ?
    When I do a CVS checkout I get the files on my local PC. However I get a message which says that project could not be checked out ..
    Now when I do a cvs update JDeveloper tries to update all the files ..
    Any suggestions ?

    Unfortunately there is no way to do this in 9.0.4. This has been fixed in the 10.1.3 preview release, in 9.0.4 you will need to create your session broker in code to work around the problem.
    If you require sessions.xml support for this in 9.0.4, please contact Oracle support.

  • Extension structure for a bapi to create project definition and wbs element

    Hi,
    is there a bapi that have an extension structure for custom fields, that can be used to create a project with wbs elements.
    thanks for your help.

    i yhink BAPI_PROJECT_MAINTAIN  dont have extension structure, so i cant use it because i have custom fields.
    BAPI_BUS2054_CREATE_MULTI seems meet my requirement because it has extension structure,

  • Problem using ant to create a jar...

    Hi,
    I am trying to create a JAR, and amongst other things include in that a directory called docs. I would like both the directory and its contents included, not just the contents.
    I can get this to work, but when using a property it doesn't!
    Within my jar task
                   <fileset dir=".">
                        <include name="doc/**"/>
                   </fileset>will work just fine. However,
                   <fileset dir=".">
                        <include name="${doc}/**"/>
                   </fileset>will not do anything, with doc defined as:
    <property name="doc" location="doc" />Does anyone have any ideas? Many thanks.

    Yes, that's pretty standard code (except you don't need the .newInstance() just loading the class does it).
    I haven't experimented much with Class-Path in jars, but I still think a ClassLoader problem is the most likely cause. Try something like this:
    try {
         Class driverClass = Thread.currentThread().getContextClassLoader().loadClass("com.mysql.jdbc.Driver");
         Driver driver = (Driver)driverClass.newInstance();
         java.util.Properties conProps = new java.util.Properties();
          conProps.setProperty("user", "root");
          conProps.setProperty("password", "");
         dbConnection = driver.connect("jdbc:mysql://127.0.0.1/bdd/", conProps);
    catch(ClassNotFoundException) {
    ....(Of course I might be way off track, and we might have missed something simpler).

  • Is anyone having problems using AAMEE to create CS5.5 deploy packages?

    I am able to create a deploy package without an issue. SN gets verfied so I know its not that eventhough it's getting the pre-chrome license error in the log files.  I looked at the directions that Adobe gives for the pre-chrome error and the only way I can do a silent install is by enabling the built-in Administrator account, logging to that account and running silent command from there.  Thats really not a fix when you have 10,000 computer to deploy to.  Anyone have the workaround for this?

    Thank you! But I've tried that already and still I'm having problems, Apple support has been looking into it, but so far nothing. Thanks again

  • Problem using Automator to create "Watermark PDF Documents"

    After having updated our macs from Mavericks to Yosemite, the "Watermark PDF Documents" using Automator is no longer working.

    Hi Miykael,
    Do you have flash player installed on your system for that browser? Did you tried accessing that pdf file from a different browser?
    I would also recommend you to refer this KB Document : https://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    Regards,
    Rahul

  • Project Definition (BAPI_BUS2001_CREATE)

    Hi Experts,
    I am using BAPI: "BAPI_BUS2001_CREATE"  to create Project Definition.
    I am passing all its mandate values and  theres flag XSTAT(Statstical) and PLINT(Integrated Planning).
    At a time we can pass only 1 ,either Statstical or Integrated Planning.
    Problem:
    Default values are maintain in table TCJ41.
    If suppose for particular Project profile default value for PLINT = 'X' and I am passing XSTAT = 'X' then its give error
    because it takes default value for PLINT = 'X' and also passed value i.e XSTAT = 'X'.
    (Project definition cant have both as 'X').
    please help me to overcome this issue.
    Thanks in advance.
    Thanks,
    Ankit.

    Hi Experts,
    in Table TCJ41 default values are maintain.
    So when i am not passing any values it will take default value-Thats Correct...
    but When i am passing the value it takes both the values(Default and Passed one) and further it gives Dump.
    Thanks,
    Ankit.
    Edited by: Ankit chheda on Sep 23, 2010 2:24 PM
    Edited by: Ankit chheda on Sep 26, 2010 8:37 AM
    Edited by: Ankit chheda on Sep 30, 2010 9:19 AM

  • Creation of project definition and wbs element

    I want creation of project definition and wbs element upto 4 level using bapis.
    i am using transaction cj27,cj01,cj02
    which function module to use for this??

    Hi,
    to create project definition with customer fields the BAPI you should use is : BAPI_BUS2001_CREATE
    to create WBS elements with different levels and specific fields the BAPI you should use is BAPI_BUS2054_CREATE_MULTI
    these bapi must be used in the sequence of call :
    BAPI_PS_INITIALIZATION
    BAPI_BUS2001_CREATE / BAPI_BUS2054_CREATE_MULTI
    BAPI_PS_PRECOMMIT
    BAPI_TRANSACTION_COMMIT
    before using the bapi, you must apply OSS note :
    637345 - Syntax error with enhanced PS tables
    i sent you the oss note to your mail
    please reward points if helpfull.

  • Creating projects

    Hi,
    Need help regarding creation of Projects(project definition in SAP) ,creating partners for the projects,creating WBS elements,updating profitability segments for the created WBS elements and loading classification/chararcteristics data for the created WBS elements(Creating WBS characteristics ).I would like to know whether there are any BAPIs which could do this upload(rather than recording transaction CJ01 etc).Could I know the names of the BAPIs is any exist?
    Thanks & Regards,
    Savitha

    Thanks for that info.But I am facing a problem such that the BAPI for creating project definition does not have all necessary fields that the input  file has.So Is there any way to accomodate them using any other BAPI?other than BAPI_PROJECTDEF_CREATE.Moreover I need to create WBS elements .So I believe that can be done using BAPI_PROJECT_MAINTAIN after creating projects.

  • Validation for Project definition

    Hi Gurus,
    We create project definitions with 12 char. Some time user misses out some characters hence I want to restric the same. I am trying to check the blank fields in the project definition using validation. I could succeed in stopping the user from proceeding in IDES through validation but when I applied the same logic in dev. client, it is checking but not stopping it from going ahead (I have given Error message only). The difference in the dev. client is that I have already created some validations for the PROJ-PSPID field. Is this disallowing the check or what should be the logic I should use to ensure all the 12 characters of the project definition fields are filled.
    thanks in advance
    Vinodh

    Hi Vinodh,
    Try this,
    Pre-requisite:
    PROJ-PSPID Not Equals Symbol ' '
    Check:
    PROJ-PSPID :1-12: Not Equals Symbol ' '
    This should help.
    Note: The place where i have written Not equals symbol, there you insert not equals symbol. Its not getting displayed here.
    Also, input validation name in OPSA in Project defn. field and Tick on Automatic Validation
    Regards,
    Kabir

Maybe you are looking for

  • Illustrator bug- menu bar all messed up, and it keeps crashing

    I have the weirdest bug on my trial version- the menu bar on top appears with $$$ signs and all messed up, and crashes constantly. I tried to delete and reinstall illustrator (I downloaded a trial version of the basic creative suite with Illustrator,

  • Dnsmasq fail at a boot, but start fine after

    systemctl output: cpupower.service                                   loaded active exited    Apply cpupower configuration cups.service                                          loaded active running   CUPS Printing Service dbus.service               

  • Reference to the main Applet

    Hi, how can I give another applet a reference to me at a function call. The "this" variable only gives a reference to the sending component, but I want to give a function a reference to "Applet" itself, so that the other applet can call functions fro

  • Can I use my iTunes account now that I have this

    can I use my iTunes account now with this

  • JComboBox not visually updating after setSelectedItem

    Hi there, I'm having a strange problem wherein I have a JComboBox item, I call setSelectedItem, and visually the control does not update. It will update if I drag the window wider or move my mouse over it, but not immediately after the call. Isn't th