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?

Similar Messages

  • 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

  • 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

  • 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,

  • 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.

  • Validation on Project Definition

    Hi,
    We configured a validation in Tcode OPSI where:
    Prerequisite is -> PROJ-PSPID :1-4: = 'XXXX'
    Check is -> PROJ-VBUKR = '####'
    However, when we tried to create a project definition with special characters, system allowed us to save the project. Please note that the prerequisite is alpha and the check is numeric. How can we limit that the first 4 characters in PROJ-PSPID are alpha only and no special or numeric characters?
    Thank you.

    Hi,
    I suggest you to check first your Project Coding Mask. And change according to your requirement.
    OPSK - Maintain Special Characters Project Systems
    OPSJ -Project Number Editing
    System will not allow to create Project definition beyond its coding mask.
    Regards
    Shishir

  • 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.

  • 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

  • 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

  • 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

  • LSMW for creating project CJ20N

    Hi,
    I need to create projects by using transaction cj20n, I tried to find any standard sap project/bapi/idoc that I can use in my LSMW to create the project, but could not find.
    Has anyone aware of any standard SAP technique to use in LSMW for creating the project by transaction CJ20N. I am just trying not to create custom recording for the conversion.
    Thanks,

    I have a program for inserting WBS by Batch-input.
    report Z_PS_BI_0001
           no standard page heading
           line-size 80.
    *------------------------------- TABLES -------------------------------*
    tables : proj ,               " Définition de projet
             prps ,               " Elément d'OTP - données de base
             jest ,               " Statut individuel par objet
             tj02t .              " Textes de statuts système
    *-------------------------------- DATA --------------------------------*
    types : begin of type_prps ,
              pspnr like prps-pspnr ,
              objnr like prps-objnr ,
              posid like prps-posid ,
              psphi like prps-psphi ,
              pspid like proj-pspid ,
            end   of type_prps.
    data itab_prps type sorted table of type_prps
                   with unique key pspnr
                   with header line
                   initial size 30000.
    data : bdc_tab type standard table of bdcdata
                        with header line .
    *------------------------ OPTIONS DE SELECTION ------------------------*
    selection-screen begin of block b1 with frame title text-t01.
      parameters : p_nom(12) type c
                             default 'Z_'
                             obligatory ,
                   p_kokrs like proj-vkokr
                           obligatory,
                   p_bukrs like bsis-bukrs
                           obligatory .
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-t02.
      select-options : s_pspnr for proj-pspnr ,
                       s_posid for prps-posid .
    selection-screen end of block b2.
    *-------------------------------- MAIN --------------------------------*
    start-of-selection.
    * Recherche des données.
      perform p_recherche_donnees.
    * Création du dossier batch-input
      perform p_creation_dossier.
    * Edition du compte rendu d'execution.
      perform p_edition.
    end-of-selection.
    *   Procédure P_RECHERCHE_DONNEES.                                     *
    *   Recherche des données nécessaires au programme.                    *
    form p_recherche_donnees.
      types : begin of type_prhi ,
                posnr like prhi-posnr ,
                up    like prhi-up ,
              end   of type_prhi.
      data itab_prhi type sorted table of type_prhi
                     with non-unique key up
                     with header line
                     initial size 30000.
      data : begin of itab_otp occurs 100 ,
               pspnr like prps-pspnr ,                 " OTP
               pspn  like proj-pspnr ,                 " Projet
               posid like prps-posid ,                 " Texte OTP
               objnr like prps-objnr ,                 " Objet
             end   of itab_otp.
      data : begin of itab_tmp_otp_1 occurs 100 ,
               posnr like prhi-posnr ,
               up    like prhi-up ,
             end   of itab_tmp_otp_1.
      data : begin of itab_tmp_otp_2 occurs 100 ,
               pspnr like itab_otp-pspnr ,
             end   of itab_tmp_otp_2.
      data : v_ligne(9) type n.
    * Liste tout les elements d'OTP de niveau 2 pour les projets
    * selectionnees.
      select b~pspnr a~pspnr b~posid b~objnr
             into table itab_otp
             from            proj as a
                  inner join prps as b
                  on b~psphi eq a~pspnr
             where a~pspnr in s_pspnr
             and   a~profl eq '0000010'
             and   a~vkokr eq p_kokrs
             and   b~posid in s_posid
             and   b~stufe eq '2'
             and   b~pkokr eq p_kokrs.
    * Tri de la table
      sort itab_otp.
    * Chargement de la pseudo PRHI
      select posnr up
             into corresponding fields of table itab_prhi
             from prhi
             client specified
             where mandt eq sy-mandt
             and   up    ne space.
    * Extrait la liste des OTP a rechercher.
      append lines of itab_otp to itab_tmp_otp_2.
    * Tri
      sort itab_tmp_otp_2.
    * Créé la liste des OTPs dépendant des OTPs de niveaux 2.
      loop at itab_tmp_otp_2.
        loop at itab_prhi
             where up = itab_tmp_otp_2-pspnr.
          move : itab_prhi-posnr to itab_tmp_otp_1-posnr ,
                 itab_prhi-up    to itab_tmp_otp_1-up ,
                 itab_prhi-posnr to itab_tmp_otp_2-pspnr .
          append : itab_tmp_otp_1, itab_tmp_otp_2.
        endloop.
        delete itab_tmp_otp_2.
      endloop.
    * Recherche si plus petit niveau.
      loop at itab_tmp_otp_1.
        read table itab_prhi
             with key up = itab_tmp_otp_1-posnr.
        if sy-subrc eq space.
          delete itab_tmp_otp_1.
        endif.
      endloop.
      sort itab_tmp_otp_1 by posnr.
    * Recherche de l'objet pour chacun des OTPs trouvés.
      loop at itab_tmp_otp_1.
        select single objnr posid psphi
               into (itab_prps-objnr, itab_prps-posid, itab_prps-psphi)
               from prps
               where pspnr eq itab_tmp_otp_1-posnr.
        if sy-subrc eq space.
          move itab_tmp_otp_1-posnr to itab_prps-pspnr.
          append itab_prps.
        endif.
      endloop.
    * Recherche si les OTPs ont bien le statut Budget seul.
      loop at itab_prps.
        select single *
               from jest
               where objnr eq itab_prps-objnr
               and   stat  eq 'E0002'
               and   inact eq ' '.
        if sy-subrc ne space.
          delete itab_prps.
        endif.
      endloop.
    * Recherche texte projet.
      loop at itab_prps.
        select single pspid
               into itab_prps-pspid
               from proj
               where pspnr eq itab_prps-psphi.
        if sy-subrc eq space.
          modify itab_prps.
        endif.
      endloop.
    * Compte le nombre de ligne à traiter.
      describe table itab_prps lines v_ligne.
      if v_ligne eq space.
        write : /1 'Aucune donnée à traiter.'.
        stop.
      endif.
    endform.                    " P_RECHERCHE_DONNEES.
    *   Procédure P_CREATION_DOSSIER.                                      *
    *   Création du dossier batch-input.                                   *
    form p_creation_dossier.
      data : v_estat type j_estat.
    * Recherche de la position du statut Budget seul.
      select min( estat )
             into v_estat
             from tj30t
             where stsma eq '00000001'
             and   spras eq sy-langu.
      if v_estat ne 'E0002'.
        write : /1 'Customizing statut modifié ! Programme inutilisable !'.
        stop.
      endif.
    * Ouverture du dossier batch-input.
      perform open_bdc using p_nom.
    * Boucle sur la table des données.
      loop at itab_prps.
    *   Ecran de saisie Projet / OTP
        perform bdc_dynpro using 'SAPLCJWB'
                                 '0100'.
        perform bdc_field  using 'BDC_OKCODE'
                                 '=LETB'.
        perform bdc_field  using '*PROJ-PSPID'
                                 itab_prps-pspid.
        perform bdc_field  using '*PRPS-POSID'
                                 itab_prps-posid.
    *   Sélectionne la première ligne et demande les statuts utilisateurs.
        perform bdc_dynpro using 'SAPLCJWB'
                                 '0901'.
        perform bdc_field  using 'BDC_OKCODE'
                                 '=STAT'.
        perform bdc_field  using 'RCJ_MARKL-MARK(01)'
                                 'X'.
    *   Déselectionne la zone Budget/Seul
        perform bdc_dynpro using 'SAPLBSVA'
                                 '0300'.
        perform bdc_field  using 'BDC_OKCODE'
                                 '=BACK'.
        perform bdc_field  using 'J_STMAINT-ANWSO(01)'
    *   Enregistre et sort.
        perform bdc_dynpro using 'SAPLCJWB'
                                 '0901'.
        perform bdc_field  using 'BDC_OKCODE'
                                 '=BU'.
    *   Enregistrement de la transaction.
        perform insert_bdc using 'CJ02'.
      endloop.
    * Fermeture du dossier batch-input.
      perform close_bdc.
    endform.                                 " P_CREATION_DOSSIER
    *   Procédure P_EDITION.                                               *
    *   Edition du compte rendu d'éxecution.                               *
    form p_edition.
      write : /1 'Compte rendu de la création du dossier Batch-Input.'.
      skip 2.
      write : /1 'Dossier Batch-Input' ,
                 p_nom ,
                 'créé avec succés.'.
      skip 4.
      write : /1 'Liste des OTPs que le Batch-Input devrait modifier.'.
      loop at itab_prps.
        write : /5 itab_prps-posid.
      endloop.
    endform.                                " P_EDITION.
    *   Form OPEN_BDC                                                      *
    *   Ouverture du dossier Batch-Input.                                  *
    form open_bdc using v_nom_dossier.
      call function 'BDC_OPEN_GROUP'
           exporting
                client              = sy-mandt          " Numéro de mandant
                group               = v_nom_dossier     " Nom dossier batch
                keep                = 'X'               " Code
                user                = sy-uname          " Nom utilisateur
           exceptions
                client_invalid      = 1
                destination_invalid = 2
                group_invalid       = 3
                group_is_locked     = 4
                holddate_invalid    = 5
                internal_error      = 6
                queue_error         = 7
                running             = 8
                system_lock_error   = 9
                user_invalid        = 10
                others              = 11.
      if sy-subrc ne 0.
        write : /1 'Impossible de créer le dossier batch-input.' ,
                /1 'Erreur :' , sy-subrc.
        stop.
      endif.
      refresh bdc_tab.
      clear   bdc_tab.
      exit.
    endform.                       " OPEN_BDC
    *   Form CLOSE_BDC                                                     *
    *   Fermeture du dossier BTCI                                          *
    form close_bdc.
      call function 'BDC_CLOSE_GROUP'
           exceptions
                not_open    = 1
                queue_error = 2
                others      = 3.
      if sy-subrc ne 0.
        write : /1 'Impossible de fermer le dossier batch-input.' ,
                /1 'Erreur :' , sy-subrc.
      endif.
    endform.                     " CLOSE_BDC
    *   Form BDC_DYNPRO                                                    *
    *   Alimentation de la ligne d'entête de BDCTAB                        *
    form bdc_dynpro using value(progname)
                          value(dynpronr).
    * Efface la header-line.
      clear bdc_tab.
    * Insertion des valeurs.
      bdc_tab-program  = progname.
      bdc_tab-dynpro   = dynpronr.
      bdc_tab-dynbegin = 'X'.
    * Enregistrement des valeurs.
      append bdc_tab.
    endform.                    " BDC_DYNPRO
    *   Form BDC_FIELD                                                     *
    *   Traitement des enregistrements de la structure BDCTAB              *
    *      --> FIELDNAME  Nom du champ                                     *
    *      --> FIELDVALUE Valeur du champ                                  *
    form bdc_field using value(fieldname) value(fieldvalue).
    * Efface la header-line.
      clear bdc_tab.
    * Insertion des valeurs.
      bdc_tab-fnam = fieldname.
      bdc_tab-fval = fieldvalue.
    * Enregistrement des valeurs.
      append bdc_tab.
    endform.                " BDC_FIELD
    * Form BDC_CURSOR                                                      *
    * Positionnement du curseur sur un champ particulier                   *
    form bdc_cursor using value(fieldname) value(fieldvalue).
    * Efface la header-line.
      clear bdc_tab.
    * Insertion des valeurs.
      bdc_tab-fnam = fieldname.
      bdc_tab-fval = fieldvalue.
    * Enregistrement des valeurs.
      append bdc_tab.
    endform.              " BDC_CURSOR
    *   Form  INSERT_BDC                                                   *
    *   Insertion dans le dossier BTCI                                     *
    *   Attention : la transaction est codée en dur                        *
    form insert_bdc using t_code.
      call function 'BDC_INSERT'
           exporting
                tcode            = t_code
           tables
                dynprotab        = bdc_tab
           exceptions
                internal_error   = 1
                not_open         = 2
                queue_error      = 3
                tcode_invalid    = 4
                printing_invalid = 5
                posting_invalid  = 6
                others           = 7.
      if sy-subrc ne 0.
        write : /1 text-003 ,
                /1 'Erreur :' , sy-subrc.
      endif.
      refresh bdc_tab.
      clear   bdc_tab.
    endform.                  " INSERT_BDC
    comment in french

  • Object Project Definition could not be created

    Hi Experts,
    I am facing some trouble with multilevel controlling integration. Whenever I transfer a project I am getting the following error in cProjects:
    Costing data may not be up-to-date  Display Help
    Error occurred in accounting - see controlling cockpit (cProjects)  Display Help
    In the Controlling Cockpit I find the following error:
    Message Text
    Object Project Definition TEST_01 could not be created
    Technical Data
    Message type__________ E (Error)
    Message class_________ CNIF_PI (BAPI Notifications of Project System)
    Message number________ 007
    Message variable 1____ Project Definition
    Message variable 2____ TEST_01
    Message variable 3____ 
    Message variable 4____ 
    Message Attributes
    Level of detail_______ 
    Problem class_________ 
    Sort criterion________ 
    Number________________
    Could you please provide some ideas on this?
    Thanks a lot!!
    Neil
    Edit: Any idea on this?
    Edited by: Neil Billqvist on Nov 6, 2009 2:28 PM

    Hi all,
    I have reviewed the customizing and I cannot find anything missing.
    Just to add some more information, if I go to the controlling cockpit, select the "Definition could not be created" error, and click in the autocheck option the PS project IS correctly created!!!
    Do you have any ideas on this or on how can I track down the root error?
    Thanks!
    Neil

  • Issue in CJ20N tcode for project definition field

    Hi guys,
    After the project definition is created in the system, I have executed the transaction code and when I clicked on change icon(toggle button which is available in the application toolbar) the project definition field is in edit mode. This should not happen at all.
    Kindly let me know your findings on this.
    Thanks & Regards,
    Rg

    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

  • How to set plant to all WBS when creating Project using Copy Standard Project  (CJ20N)

    Hello
    I have created standard project with several WBS. Now I want t o create operative project in CJ20N by copying standard project. While copying I want that the system allows me to define the plant for which the project is created and it gets automatically copied to project defination and all WBS elements. Since I have around 30 plants, I havent maintained any default plant in Standard project. How I can achive this requirement to specify the plant when creating project so that it is automatically copied to all WBS.
    Murad

    Hi Murad,
    I can see three viable options over here. If you are using the same plant across the project structure (on all the WBS elements) you can then go with the suggestion Saurabh suggested (Defaulting it in the project profile itself).  In addition to writing a substitution rule at the PD level, you can also go ahead with the option of mass change in case you have created a project(by copying from an operative project already with some default plant.)? Is something stopping you from carrying out mass change? Please let me know.
    Thanks
    Varun

  • CJ20n Project Definition - Project Type selection Restriction

    Hi,
    We have Capital and Operational projects in the organisation. I have this scenario in my implementation where the PS guys want to restrict the creation of Project Definition only if the person is authorized to do so. Only those working for Capital projects should create the Proj Definition for Capital projects and Those on Operational for operational projects definition.
    As I have analysed, SAP controls authorizations from next level. I mean, its allowing creation of PD for operational projects by Capital user but when he tries to assign some WBS or Network etc it doesnt allow. This is controlled by the Fundiing Source in C_PRPS_ART as far as I am aware.
    I would like you guys to provide your suggestions on how can I control over the project definition it self using the authorization objects. I have looked in to options through C_PROJ_VNR etc but dont seem to catch the point exactly. Also are there any user exits or enhancements which can be used for this purpose.
    Regards,
    Junaid

    Hi,
    PD is controlled by 3 objects C_PROJ_KOK, C_PROJ_PRC, C_PROJ_VNR.
    Alternatively , you can try to restrict it  by Cost Centre - C_PRPS_KST and Profit Centres - C_PRPS_PRC
    regards,
    Anil

Maybe you are looking for

  • How to make the vendor column have figure in GRIR line item with RE document type?

    Dear Experts,      Could you tell me how to make the vendor column have figure in GRIR line item whose document type is RE?      Thanks! Xinling Zhang

  • Question about how javac finds referenced files.

    Hi I am just beginning to learn Java and have got some questions related to packages. I have two classes: MyClass.java package pkg; public class MyClass {      public void prn(int x){      System.out.println("Integer: "+x); Test.java import pkg.*; pu

  • VIM Plugin VJDE, Ruby Error: invalid byte sequence in UTF-8

    Hello I'm trying to install the vim VJDE Plugin for java syntax highlighting. wget tarball tar xvzf tarball makepkg -s pacman -U ... No Problems here. When i run vim foo.java it shows me this mesage: Error detected while processing /usr/share/vim/vim

  • Marking an in or out point in the event browser changes the selected clip

    I'm getting quite infuriated with this issue at the moment. I'm not sure if it's a bug, or I'm doing something wrong. I've created collections of subclips by tagging ranges with keywords in the event browser. I'm now trying to edit these onto the tim

  • Program Structure

    Hi, best to give you current structure, then what i am after. Program - Classes- Main (Swing held here), static dbconn, Member, Membership. What i would like to know, if i click on a button in the Main class to retrieve info from the database and ret