Setting up number range for projects in cProjects

Hi,
I am new to cProjects & my apologies if my question may sound very naive. My client wants an alpha-numeric number range to be set up for numbering of projects. Is this possible & if yes how? Which is the object for setting the number range? (I believe the transaction in "SNRO")
Thanking you for taking a note of my querry.
Regards
Deepak

Sample Code Method SET_DEFAULTS_UPON_CREATION
Method IF_EX_DPR_ATTRIBUTES~SET_DEFAULTS_UPON_CREATION
*/ This method is called when creating a new project element (i.e. project definition,
*/ phase, task, etc) and can be used to fill in default values for standard as well
*/ as customer defined data fields.
*/ This implementation is provided to assign customer specific numbers to project
*/ elements.
*/ It's interesting to note that when this method is called, the external ID of the
*/ object has already been determined and assigned by the default numbering services
*/ class CL_DPR_NUMBERING_SERVICES. It is also interesting to note that if a user
*/ specified an ID for the object through the user interface, changing the identifier
*/ in this method will have no effect -- meaning the user specified ID will still be
*/ assigned to the object.
*/ Only the example for Project Definition is provided.  For other project elements,
*/ insert similar code between the Beginning and End comments below.  In addition,
*/ the filter for this BADI implementation must be updated to include any other
*/ project element for which custom number assignment is desired.
  DATA:
    lr_parent              TYPE REF TO if_dpr_common,
    lr_project             TYPE REF TO cl_dpr_project,
    lr_approval            TYPE REF TO cl_dpr_approval,
    lr_individual_approval TYPE REF TO cl_dpr_individual_approval,
    lr_phase               TYPE REF TO cl_dpr_phase,
    lr_task                TYPE REF TO cl_dpr_task,
    lr_checklist           TYPE REF TO cl_dpr_checklist,
    lr_checklist_item      TYPE REF TO cl_dpr_checklist_item,
    LV_NUMBER              TYPE DPR_TV_EXTID,
    LV_NUMTEXT             TYPE CGPL_EXTID,
    LV_INTERVAL            TYPE NRIV.
  FIELD-SYMBOLS:
    <ls_project_attrs>             TYPE dpr_ts_project_int,
    <ls_phase_attrs>               TYPE dpr_ts_phase_int,
    <ls_task_attrs>                TYPE dpr_ts_task_int,
    <ls_checklist_attrs>           TYPE dpr_ts_checklist_int,
    <ls_checklist_item_attrs>      TYPE dpr_ts_checklist_item_int,
    <ls_approval_attrs>            TYPE dpr_ts_approval_int,
    <ls_individual_approval_attrs> TYPE dpr_ts_individual_approval_int.
*/  Determine which project element (object category) is being processed
  CASE flt_val.
    WHEN cl_dpr_co=>sc_ot_project.
      ASSIGN cs_attributes TO <ls_project_attrs>.
      lr_project ?= ir_common.
*/ Beginning of custom project number assignment.
*/    In this example, the default system numbering is manipulated to
*/    produce the Project Number...
*/    Get info regarding the number range for operative projects...
      CALL FUNCTION 'NUMBER_GET_INFO'
        EXPORTING
          NR_RANGE_NR              = 'DO'
          OBJECT                   = 'DPR_EXTID'
*         SUBOBJECT                = ' '
*         TOYEAR                   = '0000'
        IMPORTING
          INTERVAL                 = LV_INTERVAL
        EXCEPTIONS
          INTERVAL_NOT_FOUND       = 1
          OBJECT_NOT_FOUND         = 2
          OTHERS                   = 3.
      IF NOT SY-SUBRC IS INITIAL.
        RAISE EXCEPTION TYPE CX_DPR_FATAL_ERROR
          EXPORTING
            TEXTID = CX_DPR_FATAL_ERROR=>SC_INVALID_PARAMETERS.
      ENDIF.
*/    Strip off the year that has been appended to the object number
*/    by the default numbering services...
      write <ls_project_attrs>-project_id(20) to lv_number.
*/    Get the incremental number of the project from the number range...
      lv_number = lv_number - LV_INTERVAL-FROMNUMBER.
*/    Format the number according to customer specific requirements:
*/    In this example the number is PROJ-<inc num> where <inc num>
*/    is the incremental number of the project (i.e. for the 33rd project
*/    created, the <inc num> is 33).
      WRITE lv_number to lv_numtext no-zero.
      condense lv_numtext.
      CONCATENATE 'PROJ' lv_numtext INTO lv_numtext SEPARATED BY '-'.
      TRY.
          CALL METHOD LR_PROJECT->SET_PROJECT_ID
            EXPORTING
              IV_PROJECT_ID              = lv_numtext.
      CATCH CX_DPR_OBJECT_UPDATE_ERROR .
          RETURN.
      ENDTRY.
*/ End of custom project number assignment.
    WHEN cl_dpr_co=>sc_ot_phase.
      ASSIGN cs_attributes TO <ls_phase_attrs>.
      lr_phase ?= ir_common.
*/ Beginning of custom phase number assignment.
*/ End of custom phase number assignment.
    WHEN cl_dpr_co=>sc_ot_approval.
      ASSIGN cs_attributes TO <ls_approval_attrs>.
      lr_approval ?= ir_common.
*/ Beginning of custom approval number assignment.
*/ End of custom approval number assignment.
    WHEN cl_dpr_co=>sc_ot_individual_approval.
      ASSIGN cs_attributes TO <ls_individual_approval_attrs>.
      lr_individual_approval ?= ir_common.
*/ Beginning of custom individual approval number assignment.
*/ End of custom individual approval number assignment.
    WHEN cl_dpr_co=>sc_ot_checklist.
      ASSIGN cs_attributes TO <ls_checklist_attrs>.
      lr_checklist ?= ir_common.
*/ Beginning of custom checklist number assignment.
*/ End of custom checklist number assignment.
    WHEN cl_dpr_co=>sc_ot_checklist_item.
      ASSIGN cs_attributes TO <ls_checklist_item_attrs>.
      lr_checklist_item ?= ir_common.
*/ Beginning of custom checklist item number assignment.
*/ End of custom checklist item number assignment.
    WHEN cl_dpr_co=>sc_ot_task.
      ASSIGN cs_attributes TO <ls_task_attrs>.
      lr_task ?= ir_common.
*/ Beginning of custom task number assignment.
*/ End of custom task number assignment.
  ENDCASE.
ENDMETHOD.

Similar Messages

  • How to find next number range for project definition in tcode CJ20N

    Hai Experts,
          Please help me 'How to find next number range for project definition in tcode "CJ20N". I was trying in function module NUMBER_GET_NEXT. Is it right function module? If its right what input i need to give for this tcode and for the field project definition?
    Note: I searched in forum before posting, but couldn't find the solution.
    Thanks
    Regards,
    Prabu S.

    Hi,
    For project defination internal number is assigned by system.
    When you saves's project then system allocate one number to project defination, you can view it,
    SE11 >>> table  PROJ >> Click on contents >>> execute,
    here you will get your project defination & number is assigned to project defination.
    kapil

  • Set Up number range for OM Objects

    Hi All,
    I have set up Ext number range for Org Unit & Position.
    example: Org Unit 50000000 - 599999999 and i have uploaded data till 50000999.
    so it should be update current number as 50000999.
    but in my scenario its not updating current number still is '0'
    Please help me.
    regards

    Hi Waseem
    I am agree with your reply as I am doing the same thng. Currently I am using External Number Range as I am going to upload data and later will change into Internal.
    but my question is in Number Range Maintanace in Current Number should be update automatically or not.
    Example Org Unit from 500000000 - 59999999 and we uploaded data till 50000900
    so  in Current it should show 50000900
    NO      From Number     To Number      Current Number     EXT
    EX      500000000          59999999     0
    but in my case it is showing '0' in current number
    so Please confirm me whether it should update automatically, if yes pls tell me how
    regards,

  • Number range for Project created automatically when creating SalesOrder

    Hello all,
    Scenario is that i have setup the system so that the Project is created automatically via Standard NWP/WBS when creating the sales order.
    Now if the sales order number created is 812 system automatically picks the project code number created in background as M.812 (Coding Mask defined is X.XXX.XX...).
    I want to understand where is the Sales order number range linked with Project coding mask??
    Warm Regards,
    Jatinder Bansal

    Hi,
    Apart from what has been mentioned, I think there is no link between SO numbering and project numbering. There is link between coding mask but not with number. The reason you are getting same numbers is probably all projects in M series are created via assembly processing. If some one creates a project manually in M series or even a sales order using this number range & which is not related to assembly processing; this corelation will get disturbed. And further you will see different number for SO and project, but theres nnothing to worry about it.
    Regards
    Shrikant

  • Problem--Define number range for cProjects projects

    Hi,
    Does anybody knows how to define/create number range for projects in cProjects?.
    In the standard cPrjects frontend system, the system is taking 16 digits number automatically so i want to define my own number range as required by the client.
    Hence please let me know if some knows abt how to define number ranges for projects in cProjects system.
    You can also reach me on [email protected]
    Thanking you,
    Cheers,
    Suresh Nagaraja

    Hi Suresh,
    don't think there is a standard functionality for this. But you could create your own number range object and fill the data via BAdi. Try DPR_ATTRIBUTES.
    Cheers
    Thorsten

  • External number range for service items?

    I want to create Purchase order with services using BAPI. Is it possible to set external number range for the extrow / introw, so that if I need to change a service line item, I will be able to find out which service item needs to be changed.

    It depends on whether you have a service master or not.
    1. If you have service master, then there will be a service number (just like a material number). You can use that identify which one has to be deleted.
    2. If NOT, then they would still send the text for the Service lines (I guess this will be unique for each line item). So, you will have to identify the line to be deleted by that.
    Makes sense?
    A question - You are saying you will get information to update the PO, but how does the system know which PO to be updated, how are you going to identify which PO needs to be changed?
    Regards,
    Ravi
    Message was edited by: Ravikumar Allampallam

  • Number range  for vendors

    how to set a number range for vendor automatic.
    please help....
    i will assign point.

    Hi Jatin,
    fallow the path:
    Financial Accounting-> Accounts Receivable and Accounts Payable -> Vendor Accounts -> Master Data -> Preparations for Creating Vendor Master Data -> Create Number Ranges for Vendor Accounts.
    Here you can create number range for vendors. And in number range screen, you have a check box called Ext. If you select this, it will ask you to give your number (means external number system). If you need internal number (Automatic number), do not select this.
    Hope this will help you.
    Pl. Assign points if useful.
    Thanks,

  • /RPM/ITEM_MODIFY is not taking custom number range for external ID during creation

    Hi Experts,
    I face an issue in trying to create projects through file using /RPM/ITEM_MODIFY.
    I have been successfully able to create both item and project but it somehow is not taking the external number range for project ID that we had defined for the item type. It takes the SAP standard number for Project ID (external ID). I want the FM to create using the external number range that we use.
    Can someone help me with this?
    Regards,
    Amit

    It is not through PS project. No linkage as we have not integrated this with PS. It is through item.. check the code. This is just to check how to create from backend. This is where we don't get our custom project id. it takes sap project id.
    DATA : ls_item_context type /RPM/TS_ITEM_CONTEXT.
    DATA : ls_attributes type /rpm/ts_item_d_api.
    data : ls_GUID Type /RPM/TT_GUID .
    data : ls_detail_guid type /RPM/TT_GUID.
    data : l_rc type i.
    data : lT_ATTRIBUTES TYPE  /RPM/TT_ITEM_D_API.
    data : LV_NRLEVEL type NRLEVEL.
    data : Lv_NRLEV type char20.
    ls_item_context-CREATE_CPROJECT = 'X'.
    ls_item_context-CPRO_TEMPLATE = '45A24B95FB43010200000000837FF54C'.
    ls_attributes-portfolio_GUID = '456C418E3AED018800000000837FF54C'.
    *ls_attributes-EXTERNAL_ID = '102680'.
    *ls_attributes-parent_GUID = '4576F8DCF90B01F800000000837FF54C'.
    ls_attributes-parent_GUID = '4717C6437A8D010A00000000837FF54C'.
    ls_attributes-Proj_description = 'NEW TEST'.
    ls_attributes-item_type = 'ZPEP_PT_31'.
    *Select single NRLEVEL into lv_nrlevel from NRIV where OBJECT = 'ZPEP_NPO'.
    *lv_NRLEVEL = Lv_NRLEVEL + 1.
    *lv_NRLEV = lv_NRLEVEL.
    *ls_attributes-EXTERNAL_ID =  lv_NRLEV.
    APPEND ls_attributes to lt_attributes.
    CALL FUNCTION '/RPM/ITEM_MODIFY'
      EXPORTING
        IV_LANGUAGE             = 'EN'
        IV_CHANGE_MODE          = 'C'
    *   IV_COMMENTS             =
    *   IV_SHORT_TEXTS          =
       IS_MODIFY_CONTEXT       = ls_item_context
    IMPORTING
       EV_RC                   = l_rc
      TABLES
        IT_ATTRIBUTES           = lt_attributes
    *   IT_ACLS                 =
    *   ET_MSG                  =
        ET_GUID                 = ls_GUID
        ET_DETAIL_GUID          = ls_detail_guid
    If sy-subrc = 0.
      CALL FUNCTION '/RPM/SAVE_CHANGES'
    *   EXPORTING
    *     IV_CHECK_ONLY           = /RPM/CL_CO=>SC_FALSE
    *     IV_REMOVE_OBJECTS       =
    *   IMPORTING
    *     EV_RC                   =
    *     ET_MSG                  =
        if sy-subrc = 0.
        endif.
      endif.

  • How to setting for the number range for Business Partner

    Dear Sir,
    I create the new role for Business Parnter , However, I would like to set the new number range for that buiness Partner with that role.
    Please kindly advise what is the step to do.
    Thank you and best regards,
    Vimol

    Hi Vimol,
    In CRM  standard system it is not possible to link specific role with specific grouping. 
    To achive the same go to following IMG path:
    SAP Implementation Guide>Cross-Application Components>SAP Business Partner>Business Partner>Basic Settings>Number Ranges and Groupings>
    Define Groupings and Assign Number Ranges
    Hope you selected the opton button for column 'Int Std.
    I already suggested a work around above.
    Best Regards,
    Satish Mathala

  • Plantwise separate number range for Production order

    Hello SAP Expert,
      I my project our client require plantwise number range for Production order,order Confirmation for indentifiction purpose .
       Please give way to do this.
    Thanks in advance.
    Regards,
    Yogesh.

    Hi,
    As per standard SAP not possible because Order types are maintain at Client level and not at Plant Level, but as Sukender said use Different Order Types for different Plants.But I guess user will face one problem often during Manual Production / Process Order Creation , and that is if they select wrong order type then face a problem like no Order type dependent Parameter set for required Plant.
    Regards,
    Dhaval

  • Excise number range for 2009

    Dear All,
    I work for Indian client...
    I have maintained Number ranges for excise invoice as follows...
    NO-YEAR-FROM NUMBER-TO NUMBER-CURRENT NUMBER
    01---200800000000010000004999--64
    I want the Number to be continued for 2009 also.
    For eg, if the last number in 2008 is 64.Then next invoice in 2009 should be 65.
    Now my doubt is, For 2009, what should i do ?
    Will system cosider the same range for 2009 or Should i maintain no range for 2009 ?
    Regadrs

    Hi
    System will not consider the same number range for 2009. You have to maintain this for 2009 too.
    If you want to continue the same number range then you have to maintain it as below. This is only required only if you want the number to be continued in the 2009. Else you can set the status as 0 instead of 64.
    01---200900000000010000004999--64
    Also the number range from 1 to 64 for will not be reflected in year 2009. It will be reflected in year 2008.
    Regards
    MBS

  • Switching off the buffering of number range for Trips (travel expenses)?

    Hi,
    In Tcode SNRO object RP_REINR has a buffer of 10.
    If this is switched off, it could influence the performance.
    Has anyone had any experience in switching off the buffering of number range for Trips (travel expenses)?
    Thank you.
    Kind regards,
    Linda

    Dear Linda,
    I recall switching off the buffer in one of my projects. We did not encounter any problems, since it was a rare activity. Therefore, I do not expect any performance issues on this matter. Anyway, I presume, one can always switch it back.
    Regards,
    Eli

  • Not able to created Number Ranges for Asset Classes in AS08

    Dear Friends,
    I am not able create Number Ranges for Asset Classes in AS08.
    It is giving me an error message as company code does not exist.
    When I Check Consistency under path SPRO -> Financial Accounting -> Asset Accounting -> Preparing for Production Startup -> Check Consistency -> Overview Report: Company Codes. I am getting the following
    RSOL  Reliance Sealink One PLtd                                            
    CoCode no. alloc.    NKTR                                                
    Fiscal Year Variant  V3   Apr.- March, 4 special periods                 
    Start 2nd half month 00                                                  
    Transfer date        31.03.2006                                          
    Chart of dep.        TOLL Chart of Depreciation - For Highway Projects   
    Net worth tax        01   Book depreciation as per Compinies Act 1956    
    Enter net book value                                                     
    Status company code  2                                                   
    Current fiscal year  2007                                                
    Doc. type dep. pstng AF   Dep. postings                                  
    > Number range &1 in co.code &2 for doc.type &3 must be defined as internal
    Calc.insur.value                                                         
    Input tax exempt         
    If you see the above first two line you will find the difference is that Company code RSOL in the first line and NKTR company code in the second line.
    Actually CoCode no. alloc. has been wrongly copied as NKTR while copying CoCode it should be RSOL and not NKTR.
    I think because of this wrong allocation it is giving me an error in AS08. Also it is not showing me CoCode in drop down list in AS08.
    Please help me to resolve the problem.
    Thanks
    Rahul Jain

    Look in TC OAOB if the company code is assigned to a chart of depreciation

  • Number range for extended classic scenario

    Hi,
    we've activated extended classic scenario for some defined categories (material groups), other will use classic scenario as before. It works, we are able to craete POs in both ways. I've tried to use the same number range for backend POs and for local POs. I've set the same number for both ranges but only the one which is used is getting updated. Is it possible to syncronize these ranges so backend POs will all be created in the same range?
    Regards
    Hubert

    Hi Hubert,
    Not the best practice that you are following. it might work for some time  but will fail for most of the time . The maintenance is going to be huge and you could expect problem with these.
    I would suggest not to think on the solution of same number range itself.
    Thanks
    Iftekhar Alam

  • Issue on Number Range for MRP Purchase Requisition

    Hi Gurus,
    Please help me on the issue explained below.
    We are already using SAP ECC 6.0 and SRM 5.0 and now we are implementing Plant Maintenance Module.As a result of this implementation ,we have created number of PR document types and assigned to unique number ranges in ECC. One of these document types has been maintained for MRP group for a material type in order to identify the MRP purchase requisitions created on the shortage of the materials for these material types.
    This functionality is working fine. MRP run for the materials is picking the appropriate PR document but number range of the document is not the same what was assigned to the linked document type.Some other number series is getting picked by system .
    There is setting under SPRO Consumption Based PlanningNumber RangesPurchase Requisitions
    Here, number range assignment is against plant. This is the same number range which is being taken by system on running MRP. But the desired number range is the one which has been linked to PR document type.
    If I change the number range above then number range for MRP PR in present system will get affected..
    Can you please advise me on above so that PR generated on MRP run should have appropriate number range?
    Thanks & Regards,
    Niti

    Hi,
    As per my understanding, what you have mentioned above is exactly the way SAP is designed. Its SAP Standard behaviour.
    But if you check your PR document type - no:range & the CBP no:range both will be same only since both refers to the same object.
    Please check the PR document type that you have assigned in the CBP & its no:ranges.
    Thanks & Regards,
    Ram

Maybe you are looking for