Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6610353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:49:49+00:00 2026-05-25T19:49:49+00:00

When creating a project in cProjects I am using BADI BADI DPR_FIN_GECCO_ATTR to manipulate

  • 0

When creating a project in cProjects I am using BADI BADI DPR_FIN_GECCO_ATTR to manipulate the external WBS ID that is created in SAP PS.

SAP accepts the ID that I pass for the Phase level, but for the Task level SAP appends a string “/TTO” to the end of my WBS ID. Any idea why this happens and how I can get rid of it. The “/TTO” violates or masking structure in PS?

constants: lc_phase_id_ps type char30 value 'DPR_TV_PROJECT_ELEMENT_ID_PS',
           lc_task_id_co  type char30 value 'DPR_TV_PROJECT_ELEMENT_ID_CO'.

field-symbols: <project_ext> type dpr_ts_project_ext,
               <project_int> type dpr_ts_project_int,
               <phase_ext>   type dpr_ts_phase_ext,
               <phase_int>   type dpr_ts_phase_int,
               <task_ext>    type dpr_ts_task_ext,
               <task_int>    type dpr_ts_task_int,
               <attributes>  type dpr_ts_iaom_object_attribute.

case ir_common->get_object_type( ).
  when cl_dpr_co=>sc_ot_project.
    "not doing anything with this data yet
    assign ir_project_ext->* to <project_ext>.
    assign ir_project_int->* to <project_int>.  

  when cl_dpr_co=>sc_ot_phase.
    assign ir_attributes_ext->* to <phase_ext>.
    assign ir_attributes_int->* to <phase_int>.
    read table ct_attributes assigning <attributes>
      with key data_element = lc_phase_id_ps.
    if sy-subrc = 0.
      <attributes>-value = <phase_ext>-phase_id.  "something like Z/001-001
    endif.

  when cl_dpr_co=>sc_ot_task.
    assign ir_attributes_ext->* to <task_ext>.
    assign ir_attributes_int->* to <task_int>.
    read table ct_attributes assigning <attributes>
      with key data_element = lc_task_id_co.
    if sy-subrc = 0.
      <attributes>-value = <task_ext>-search_field.  "something like Z/001-001-001
      "sometime after this badi call it is changed to Z/001-001-001/TTO
    endif.
endcase.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:49:49+00:00Added an answer on May 25, 2026 at 7:49 pm

    I have found the spot where SAP changes the WBS:

    In Class CL_IM_CPRO_PROJECT_LABEL method IF_EX_GCC_PS_PROJECT_LABEL~GET_WBS_ELEMENT there is the following logic:

    if lv_object_type_co ne 'DPO'.
      read table attributes_of_ext_obj
           into ls_attribute
           with key data_element = 'DPR_TV_PROJECT_ELEMENT_ID_CO'.
      if sy-subrc = 0.
        if lv_object_type_co eq 'TTO' or     "Aufgabe            "H860739
           lv_object_type_co eq 'ITO'.       "Checklistenpunkt   "H860739
          concatenate ls_attribute-value                         "H860739 
                      lv_object_type_co                          "H860739
                      into ls_value.         "<<==Here it is     "H860739
          wbs_element = ls_value.                                "H860739
        else.                                                    "H860739
          wbs_element = ls_attribute-value.
        endif.                                                   "H860739
      else.
        message e013(iaom_cprojects)
          with 'DPR_TV_PROJECT_ELEMENT_ID_CO'
          raising error_occurred.
      endif.
      "...
      "... Code removed
    endif.
    

    This is part of a standard BAdI implementation for GCC_PS_PROJECT_LABEL.

    I have solved the problem by enhancing the method using the implicit enhancement point at the end of the method and resetting the WBS element there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Visual Studios 2010 I'm creating a project that has a database. I decided
I have been busy in my project creating a webapp (in struts) that manages
I am creating a project using maven with spring and hibernate. I added a
Since I started using MSBuild for our projects, I've created several .proj scripts that
So I'm creating my project using a git source control and using some libraries
So, I'm creating an ATL project in visual studio 2008 using the wizard (recommended
I recently started using Git when creating a new project - until then I
So I'm thinking about creating a simple component that I would be using on
I currently use visual studio 2008 for creating projects that can run on windows.
When creating a project with the webapp archetype in Maven, they subtly advise not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.