Skip to Content
avatar image
Former Member

Automatically create Project number

Hello,

i heard that there is a way to create automatically a project number when the user creates a new project.

There must be a BADI to configure it.

Can anybody help me?

Thanks for your help!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Sep 04, 2008 at 07:39 PM

    I don't remember the name exactly, but it is something like BUS2172 -- search in SE18

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2008 at 07:32 AM

    Hi Denis,

    You can use BADI DPR_ATTRIBUTES (transaction SE18/SE19), method SET_DEFAULTS_UPON_CREATION. Create your own implementation with your logic to generate the project ID.

    Regards,

    Matthias

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I have used the Example code given by SAP for the method IF_EX_DPR_ATTRIBUTES~SET_DEFAULTS_UPON_CREATION

      But it gives a dump (RABAX_STATE) on the ASSIGN -

      /***********************************************

      FIELD-SYMBOLS:

      <ls_attributes> TYPE dpr_ts_project_ext.

      /*Work with field symbols (IS_ATTRIBUTES has no type)

      /* this ASSIGN statment is causing a dump

      ASSIGN cs_attributes TO <ls_attributes>.

      /************************************************

      Can someone see what is the problem here?

  • avatar image
    Former Member
    Oct 01, 2008 at 10:17 AM

    Hi,

    At project creation, the system triggers this BADI for each project element: project, phase, tasks...

    This means cs_attributes can have a different structure depending on the object type -> DUMP of the field symbol is not declared accordingly.

    2 options:

    - set a filter value in the BADI definition to pass only project elements (DPO)

    - write a CASE statement in the code on the flt_val parameter, and write the right code depending on the object type.

    Matthias

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 06:22 AM

    my additional quests is:

    Can we disable the input for the project number field when creating a new project?

    Add comment
    10|10000 characters needed characters exceeded

    • Hello,

      this should work with customizing the global elements. There you will find the field control with some customizing options for this.

      The path should look like: SPRO > collaboration projects > global extensions to project elements > define field control. There you will find some possibilities to set them read only.

      hth, Vanessa