Skip to Content
author's profile photo Former Member
Former Member

CJ20N - Copy project

Hello Experts,

Iam copying a project from a template project in CJ20N.

While coopying i could see all the fields getting copied into PRPS except the filed PSPNR (Its being copied as '99999999').

When i save the project , go back and come back into the same project. i could see the PRPS-PSPNR field is updated with new number. I understand, that the system will automatically generates this number while posting the project.

But i would like to know is there any way we get this number before posting the project. because we have created a customer enhnaced screen in CJ20N and depends on this new number we have to update the new screen fields.

Please help if anybody know the answer.

thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 31, 2009 at 04:16 AM

    I dont think this topic is up for discussion in the upcoming Tech'Ed.

    pk

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 14, 2011 at 08:00 AM

    method IF_EX_PROJECTDEF_UPDATE~AT_SAVE

    DATA INTERVAL TYPE NRIV.

    DATA PSPNR TYPE CJBAI_PROJECTDEFINITION-PSPNR.

    IF IM_PROJECTDEFINITION-PSPNR = '99999999'.

    CALL FUNCTION 'NUMBER_GET_INFO'

    EXPORTING

    NR_RANGE_NR = '01'

    OBJECT = 'PROJ'

    • SUBOBJECT = ' '

    • TOYEAR = '0000'

    IMPORTING

    INTERVAL = INTERVAL

    EXCEPTIONS

    INTERVAL_NOT_FOUND = 1

    OBJECT_NOT_FOUND = 2

    OTHERS = 3

    .

    IF SY-SUBRC <> 0.

    MESSAGE 'Projects Interval Not Found' type 'I'.

    ENDIF.

    lv_pspnr = INTERVAL-NRLEVEL+10(10).

    lv_pspnr = lv_pspnr + 1.

    else.

    lv_pspnr = IM_PROJECTDEFINITION-PSPNR

    endif.

    endmethod.

    .

    Edited by: SHASHANK JAISWAL on Dec 14, 2011 9:56 AM

    Edited by: SHASHANK JAISWAL on Dec 14, 2011 9:58 AM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.