Changing Activity Elements  under the WBS in Project Systems

I have added additional fields to the AFVU structure and need to update the fields.
I created a sub-screen using enhancement CNEX0008. This subscreen contains my added fields.  I wanted to use tcode CN22 to perform the updates.
When i record a BDC for Tcode CN22 to preform the update, I find the screen numbers change. I am trying to update the internal activity entries.  I can not see a pattern as to why this is happening so i thought i would look for a bapi to perform my updates. But i don't know how to use the bapi's to update my added fields. or which one to use.
Can anyone give me ideas as to which way to go - and how?
Please and Thanks,

Hi,
Use BAPI BAPI_INTERNALORDER_CREATE. To add custom field, you have to user the table EXTENSIONIN of this BAPI. But before that you will have to <b>extend AUFK using append structure CI_AUFK ( enhancement COOPA003 )</b>
This what SAP says about this table.
You can use this parameter to transfer user-defined fields from  order master records. However, no fields are supported that are updated in user-defined tables. Only the user-defined fields created within the framework of the SAP enhancement COOPA003 that are updated automatically in table AUFK are supported. This means you must use the table extension BAPI_TE_AUFK
The enhancement COOPA_01 includes the function module EXIT_SAPLRKIO_001, in which checks of the user-defined fields can be implemented.
The documentation to the structure BAPIPAREX that this parameter is based on contains more information about the use of this parameter.
<b>This is how you populate this table.</b> Check this code
DATA: gt_ci_aufk     LIKE bapi_te_aufk
                         OCCURS 0 WITH HEADER LINE.
DATA: gt_extensionin LIKE bapiparex
                         OCCURS 0 WITH HEADER LINE.
DATA: lst_ci_aufk LIKE ci_aufk.
** Five variables used to handle the structure length changes
DATA: lv_length    TYPE i,
      lv_length1   TYPE i,
      lv_length2   TYPE i,
      lv_length3   TYPE i,
      lv_length4   TYPE i.
FIELD-SYMBOLS <f> LIKE bapi_te_aufk.
DESCRIBE FIELD <f> LENGTH lv_length.
IF lv_length > 720.
  lv_length4 = lv_length - 720.
  lv_length3 = 240.
  lv_length2 = 240.
  lv_length1 = 240.
ELSEIF lv_length > 480 AND lv_length <= 720.
  lv_length3 = lv_length - 480.
  lv_length2 = 240.
  lv_length1 = 240.
ELSEIF lv_length > 240 AND lv_length <= 480.
  lv_length2 = lv_length - 240.
  lv_length1 = 240.
ELSEIF lv_length <= 240.
  lv_length1 = lv_length.
ENDIF.
* move custom field
lst_ci_aufk-field1 = 'field1 data'.
lst_ci_aufk-field2 = 'field2 data'.
lst_ci_aufk-field3 = 'field3 data'.
lst_ci_aufk-field4 = 'field4 data'.
* move order number
gt_ci_aufk-orderid = 'iternal order no'. "In create node keep this blank
* move custom fields
MOVE-CORRESPONDING lst_ci_aufk TO gt_ci_aufk.
* This is for the EXTENSIONIN (Custom fields structiure - CI_AUFK)
LOOP AT gt_ci_aufk.
  gt_extensionin-structure = 'BAPI_TE_AUFK'.
  IF lv_length1 > 0.
    MOVE gt_ci_aufk+0(lv_length1)   TO gt_extensionin-valuepart1.
  ENDIF.
  IF lv_length2 > 0.
    MOVE gt_ci_aufk+240(lv_length2) TO gt_extensionin-valuepart2.
  ENDIF.
  IF lv_length3 > 0.
    MOVE gt_ci_aufk+480(lv_length3) TO gt_extensionin-valuepart3.
  ENDIF.
  IF lv_length4 > 0.
    MOVE gt_ci_aufk+720(lv_length4) TO gt_extensionin-valuepart4.
  ENDIF.
  APPEND  gt_extensionin.
ENDLOOP.
Let me know if you have any question.
Regards,
RS

Similar Messages

  • Change Table Fields in "Costing" in with Project System (PPM 5.0)

    Dear Gurus;
    I need to know, how can I change fields in "Costing" with Project System (Project Management in tab name "Accounting").
    The integration works well, but I need to view the values of: Actual, Plan and Commitment.
    In the Standard way, just only can see the Plan (with the colum "Costs").
    Please, help.
    Best regards.
    Mariano.
    Edited by: Mariano Sabiche on Apr 27, 2011 3:17 PM

    Hi Mariano
    The particular screen you are referring to will only show the planning on Easy Cost Planning due to the labour costs and revenues planned on the cProject.  You can use the services&deatil on the assignment - click on the WBS assigned to get the detailed list of services for the assigned WBS element.  You can then click on Detail Data to get detailed data on the assigned WBS element.  If you want a report with all the data, best use the BW cubes for that to combine cP and PS data.
    Hope this helps
    Regards
    Duan

  • Budgeting on WBS in Project System

    Hello every body,
    Can u tell me, the procedure of the budget implemented in the WBS?
    I am use the CJ30 t-code. Suppose the budget is exceeded at that time, I am change the overall budget. Still, when I am going to change the yearly budget it shows the error and it could not do the contract requisition. I think I may wrong.
    What is its procedure?
    How to transfer the budget one year to another year with step-by-step procedure?
    How to settlement the project with step-by-step procedure?

    Hi Asutosh,
    The budget is the approved cost limit for a project.It differs from project cost planning due to its binding nature. Whereas the project costs need to be estimated as accurately as possible during the planning phase, the funds are predetermined as a budget in the approval phase. The budget is the limit set by management for project costs over a certain period of time.
    Through transaction CJ30, you can change original Budget.But once approved by Management,you can not change it in CJ30 as and when your requirement gets changed.
    Let us say initially you have got budget of Rs.1,50,000/- from Management for one WBS,then this amount will appear for particular WBS in CJ30. You can raise contract requisition against this WBS till max limit Rs.1,50,000/- only.
    Suppose your contract value is going to exceed Rs.1,50,000/- , you can not  go and change amount for WBS in transaction CJ30.It is not allowed.You have to give justification for exceeding amount for this contract. Then management can approve you additional amount in the form of supplementary budget.
    Similarly if you have got budget of Rs.1,50,000 and you are going to spend only Rs.1,25,000 in this year, then balance can be carried forward for next year.Same can be informed to Managment as well.
    For transferring budget from one year to another year use transaction CJ34.
    There is one more concept called Availability control.With this you can set up a tolerance limit.Let us say for your budgetted amount, you have put up tolerance limit of 90%, then you are allowed to raise contract requisition against WBS till 90% of total budgetted amount.If contract amount is going to exceed this limit, then system will give an error with the message "Budget not available".Then you have to get supplementary budget to fulfill this crietria.
    Please refer the link below to know more about the procedure of Budget implementation
    http://help.sap.com/saphelp_46c/helpdata/en/86/98853478616434e10000009b38f83b/frameset.htm- Go to topic Budget Management.
    For Settlement of the project, you should define settlement rule for WBS element.Settlement rule will contain Distribution rule in the form of category,settlement receiver,perecentage allocation,amount.
    Hope this will be helpful.
    Regards
    Tushar

  • How can we explain the process from project system to final asset

    Dear masters,
    how can we explain from project system to final asset flow in the configuration level.
    thanks
    Moderator: Please, refer to basic SAP material

    Hi,
    Project & its related WBS will be initial cost collector (i.e invoices are booked against them). Once the status of Project/WBS is set to tech complet and AUC is assigned in the settlemnet rule. That particular asset record will recive values when we run the suttlemnets.
    This is an broad line view. Specific will depend on case to case.
    Thanks
    Vaibhav

  • I accidentally changed permissions of all the files of my system drive (10.8.5)

    Hi,
    By mistake, I accidentally changed the permissions for all the files of my entire system drive. On the root of my system drive, I've put on "Read and Write" for Admin, staff, and everyone, and applied this change to all the files of my entire drive.
    Since I did that, I experiment issues with some applications which worked perfectly before that : when I try to open some applications (not all, just some), it tells me things like "something is wrong in the installation of the application", or "can't open the following application", or it simply just doesn't open it.
    I have to mention I have no Time Machine or backups of my drive, as I bought my mac three days ago and spent the two last days installing plugins and applications on my drive (for audio production). So I can't replace my drive with a backup of the system before I accidentally changed all permissions.
    Also, I repaired permissions on my drive with the disk utility, but all the app that doesn't work are from external developpers (not apple).
    Is there any way to "repair" this without having to reinstall all the app that are causing problems ? It would be a pain for me as I just spent 48hours installing everything...
    Thanks for anyone that could help...

    You need a backup, preferably more than one. This is an example of why.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - Mavericks

  • Full page slide show won't show elements under the object

    I created a master page with several elements.  I then went to the "home" page and added a full page slide show.  It is on top and nothing can be seen but the slide show.  I have selected the element and did an object move to back but still nothing shows.  What am I doing wrong?

    Hi
    Please go to master page and then in layers panel create a layer and drag the content you want to show on top of all pages wherever the master is applied.
    Thanks,
    Sanjit

  • Question on the topic from Project Systems

    Hi Friends,
    Iam creating Activities in my program for a given network using the bapi Function module
    " BAPI_BUS2002_ACT_CREATE_MULTI " but the bapi is throwing the following error for me in the creation of an activity "Enter a time unit, since you have entered either work or actual work" .
       I have even checked by passing the value in the field un_work of it_activity table. Even this din't help me out.
    Can anyone suggest me anything I have missed out in that .
    Following are the fields which I have filled in it_activity :
    activity
    work_cntr
    description
    work_activity
    un_work
    duration_normal
    duration_normal_unit
    factory_calender

    Hi,
    We had the same problem but with the difference that we didn't used work center. The message was the exactly the same.
    We solve'd it only passing in the Activity structure this fields.
    Control_key
    description
    wbs_element
    duration_normal
    We discovered that the DURATION_NORMAL_UNIT was the one causing this message to appear. Try taking it off and see what happen.
    Hope it helps.!!

  • PO changes not reflecting in the SAP R/3 system in Extended classsic

    Hi Guys,
    I have a querry regards to deletion of a PO line item in Extended classic scenario Version 5.0. User has deleted the line item in the shopping cart and now the status of the shopping cart is with Zero value and line item deleted, but in the PO there is a line item with some Value and we are trying to delete it and save it, it gets deleted and PO status it shows as awaiting approval. but at the Item level of the PO the check box  of Item deletion is updated. which means PO line item is deleted.
    Now my querry is the status of the PO in the SRM shows a awaiting approval and this is not in approval tab but at the header level when I try to search the PO with PO display/change option. Also its not reflecting with the deleted item in R/3 system.
    Please help me.
    Regards
    Srujank

    Hi
      Check configuration of your Message server. check if your message server is configured properly. Just go to your SAP logon. Select the system say "DEV" and click on groups.Then Click on System id and enter the id as "ID1" in your case.
    and then enter the machine name in the message server box and then click on generate list. If your message server is configured correctly you would get some groups in the list below. only if that comes then go to SLD and check in the ABap technical system if you have configured technical system using the proper logon groups.
    Then you should not face this problem. Let me know if you require more information.
    regards
    ravi

  • Changes in a field of any of the WBS element should change in all WBSelemnt

    Dear All ,
    I have a requirement in CJ20N transaction where if i am changing in any of the field under a certain WBS element then it should change automatically for all the WBS elements of that project automatically.
    Now it is changing only in that particular WBS elemnt.
    Do anybody knows the BADI/exit for the same/how to make it possible if there is a way.
    Regards
    Rajendra

    Hey experts its much required , can u do some thing on this.

  • Create WBS Element under Specific existsing Level1 WBS Element

    Hi friends,
           In a Project definition, once the User creates the Level 1 WBS Element,
    I need to Create a Level 2 WBS Element by default. Please suggest me any function modules or BAPI
    to Create the WBS element under Particular WBS Element.
    I checked the BAPI BAPI_BUS2054_CREATE_MULTI
    I hope it creates WBS elements, but not under Specific WBS element.
    I am checking the function module CJWB_CREATE_PRPS
    Please suggest how to go ahead.........
    Thanks in Advance,
    Ganesh

    wbs cant b created under network,
    just go to cj20n, select network/activity, then right click there, u ll never see any wbs element in create tab.
    Graphically network is above a wbs in cj20n, does not mean that wbs is coming under network.
    ashis

  • WBS Elements not getting created in ECC Project System from CRM 7.0

    Dear all,
    We are trying to integrate SAP CRM 7.0 with SAP ECC-PS module. The objective is to bring in the marketing plan and elements data from the CRM system, and to create the corresponding WBS in project system. We have done most of the configuration as recommended by SAP in both the systems, and we see that the BDOCS are getting generated and sent to the ECC system. The following steps have been successfully completed:
    1.       Set up the RFC connections between the two systems
    2.       Selected the connection type as Middleware in CRM system.
    3.       Installed the cProject Add on in CRM box.
    4.       Created a project scenario (with project and network profiles) in the PS system and assigned the same in the CRM system.
    5.       The Project Scenario in PS config has the same name as the Project Type in CRM config.
    6.       Created and released the campaign ids being created in the CRM system.
    As already mentioned, we can see that the BDOCS are coming to the ECC system and are getting stored in BDOC_TRACK table. However the issue is that the corresponding WBS elements are not getting generated in the ECC system. Is there anything that that we are missing in the ECC box which would trigger the WBS element creation?
    Request you all to share your inputs which would be immensely beneficial for us in achieving this integration.
    Thanks and Kind Regards,
    Aditya Shrivastava

    Hello Aditya,
    We too are facing this issue.. if you have resolved the issue could you please let us know the solution ?
    Some inputs related to our system,
    We have upgrade from CRM 4.0 to CRM 7.0 SP07 and R/3 backend system is on 4.7 SP27, earlier we have completed the upgrade on sandbox without any issues which was upgrade to CRM 7.0 SP04 but with SP07 we are facing the problem of WBS Element not getting created in R/3.
    Your help is highly appreciated.
    Thanks & Regards,
    Sumukh Kapoor.

  • BADI for CJ20N to get the WBS status when changed

    Hi all,
    Here's the requirement:
    I have to capture the previous status and currently changed status of the WBS element in CJ20N T-CODE and save this in the ZTABLE.
    Every time the STATUS of WBS element changes..the ZTABLE has to get updated.
    Will you please help me out to do this.
    I have tried with BADI - WORKBREAKDOWN_UPDATE, could find that the status part is updated after the call to WORKBREAKDOWN_UPDATE.
    Thanks and Regards,
    Krishna Chaitanya G
    Edited by: Krishna Chaitanya  G on Apr 27, 2009 6:30 PM

    Use BADI WORKBREAKDOWN_UPDATE method AT_SAVE.  The WBS elements are in internal table IT_WBS_ELEMENT which has structure PRPS.  Use OBJNR to find status with function module
    CALL FUNCTION 'STATUS_READ'
      EXPORTING
      CLIENT                 = SY-MANDT
        objnr                  = gs_wbs_element-objnr
        ONLY_ACTIVE            = ' '
      TABLES
        STATUS                 = et_status
      EXCEPTIONS
        OBJECT_NOT_FOUND       = 1
        OTHERS                 = 2
    The statuses are buffered in a separate memory area so be careful if you call any function modules that affect statuses e.g one to create Sales Orders as this initializes the buffered statuses and they are not changed when you save the WBS element.  To get round this problem put the current status in a separate memory area carry out the processing that initializes the statuses and then recall the status from memory.
      CALL FUNCTION 'STATUS_BUFFER_EXPORT_TO_MEMORY'
        EXPORTING
          i_memory_id = 'ZPSS_STATUS'.
      LOOP AT gt_pss_01 ASSIGNING <ls_pss_01>.
        AT NEW sold_to_party.
          CLEAR: ls_order_header,
                 lt_order_items,
                 ls_order_partners,
                 lt_order_partners.
          "Header
          ls_order_header-doc_type = c_rsbill_order_type.
          CALL METHOD <ls_pss_01>-o_pss01->get_sales_area
            IMPORTING
              e_sales_org  = ls_order_header-sales_org
              e_division   = ls_order_header-division
              e_distr_chan = ls_order_header-distr_chan
            EXCEPTIONS
              not_found    = 1.
          IF sy-subrc NE 0.
            CONTINUE.
          ENDIF.
          "Partner
          IF <ls_pss_01>-sold_to_party IS INITIAL.
            CONTINUE.
          ENDIF.
          ls_order_partners-partn_role = 'AG'.
          ls_order_partners-partn_numb = <ls_pss_01>-sold_to_party.
          APPEND ls_order_partners TO lt_order_partners.
        ENDAT.
        "Items
        CLEAR ls_order_items.
        ls_order_items-itm_number = <ls_pss_01>-posnr.
        ls_order_items-material = c_rsbill_material.
        ls_order_items-wbs_elem = <ls_pss_01>-posid.
        APPEND ls_order_items TO lt_order_items.
        AT END OF sold_to_party.
          CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
            EXPORTING
              order_header_in   = ls_order_header
              behave_when_error = space "'P' "Save when error occurs
              testrun           = space
            IMPORTING
              salesdocument     = <ls_pss_01>-sales_order
            TABLES
              return            = <ls_pss_01>-bapireturn
              order_items_in    = lt_order_items
              order_partners    = lt_order_partners.
        ENDAT.
      ENDLOOP.
    *--Re-fill status from memory
      CALL FUNCTION 'STATUS_BUFFER_IMPORT_FROM_MEMO'
        EXPORTING
          i_memory_id = 'ZPSS_STATUS'.
    Hope this is of some use

  • PR of the Activity Element

    Hi experts,
    In my project, we have the requirement from the our client that they want to manage the PR of the Activity Element with the same number with the PR of the External Activity which it belongs to. I gave them the solution that make the same PR number to all the activity in the Network (Collectivity PR). But they refused, they want the PR of the External Activities have different PRs Number but the PR of the Activity Element with the same number with the PR of the External Activity which it belongs to. This is the scenario:
    - Activity 1                          -
    > PR number : 00000001 - 010
           + Activity Element 1     -
    > PR number : 00000001 - 020
           + Activity Element 2     -
    > PR number : 00000001 - 030
    - Activity 2                          -
    > PR number : 00000002 - 020
           + Activity Element 1     -
    > PR number : 00000002 - 020
           + Activity Element 2     -
    > PR number : 00000002 - 020
    So do you have any solution for this.
    Thanks

    try in txn OPUV for your network type with collective requisition ticked
    if that is not working then you have to use some exit as it cannot be done via std sap
    use txn SMOD to get all the ps exits enter CN* and check if any is suitable
    also you can try with different networks ie create one network for internal and another for external with different settings and different network types

  • Assign personal resource to the internal activity element with diff. UOM.

    Hi All,
    Is it possible to assign personal resource to the internal processing activity ELEMENT if the unit of measure for the work assigned is different than the unit of measure of the internal processing ACTIVITY.....
    Regards,
    Arunchalam.An

    My activity type UOM and the work UOM are the same.
    I would explain again the scenario,  I have created a internal processing activity and the work UOM is HR as well as the activity type UOM is HR and to that i have assigned an internally processing activity element with work UOM as M3 and the activity type UOM also as M3.
    Now, while i am in CMP2, I am not able to assign the work force to both activity and activity element.  The conflict is the UOM.  Hope now I am clear.
    Regards,
    Arunachalam.An

  • Scheduling in the project systems

    Dear all
    Can anyone explain me about the scheduling what is the path we have to follow for scheduling please help me for my query its very urgent
    Regards&Thanks
    P.Srinivasan

    Dear Srinivasan,
    Scheduling in PS can very complicated and difficult to understand, if its not studied extensively. A lot of trial and error needs to be done on this subject.
    In PS, the scheduling will take place by means of the normal duration of the activity which you specify and the relationship of the various activities.
    Basically there are two types of scheduling. One is WBS scheduling and another one is Network Scheduling. You have various settings in Customizing wherein you set whether WBS determines dates or Network determines dates.
    If you want that the WBS dates shall fall under the dates of the activities, then you need to choose " Network determines date". On the other hand if you want that the dates of the activities shall fall under the WBS dates , then you can choose setting " WBS determine dates".
    In a simple scenario, you can create a project along with WBS elements and network activites. Give only start date of the project in the project definition.Then Give duration to each of the activities. Additonally give relationship between trhe activities. Now, Scheduling can be done a Network header level as well as Project definition level. Schedule the network at Project definjition level. You will see that the dates of all the the WBS elements and scheduled dates of the activities will be populated. These dates will based on couple of parameters i.e Scheduling scenario & planning method ( which you can find in the Control data of project definition and Scheduling type ( in the network header ).
    A very important note which will be befinicial to study is a consulting note from SAP , note no. 151551 " Scheduling of Network"
    Depending upon the Patch level of your component, you may need to implement note no. 591833 and 945671 to get the correct scheduling data.
    I hope I have given a basic overview of Scheduling in PS.
    Please reward points, if you feel that this explaination was helpful.
    Warm regards,
    Srinivas Potluri

Maybe you are looking for

  • How do I transfer the music from my iPod to my new IMac computer (95% of the music on it is from CD's I own)?

    How do I transfer the music from my IPod to my new IMac computer?  I just changed from a PC to IMac. 95% of the music on it is from CD's I own and the ITunes on the new IMac is only recongnizing the ones I bought off of ITunes.

  • ITunes keeps on opening up

    I find it annoying. I eject the ipod from iTunes, then close out the program. A few seconds later, it recognizes the iPod again and re-opens. This happens sometimes 3 or 4 times. Does this happend to anybody else? I don't mind it recognizing it when

  • Where can I hire Office developers for projects?

    Hi all, Apologies if this is not a technical question, but I could not find other forums that would fit better. I'm looking for a Words 2013 developer who could implement, against payment, a proof of concept version of an app. Where can I find potent

  • OSB invoking Database

    Use Case We have a requirement to read .csv using FIle adapter in OSB. Name,Age,salary XYZ,31,30000 ABC,34,40000 Once the data is read in OSB, I would like to know how to pass it on to Java Class that invokes Stored procedure. I have two queries here

  • Need clarification on AT LINE SELECTION & AT USER COMMAND

    Hi all, can we use AT LINE SELECTION and AT USER COMMAND events in the same report? If yes what r the precautions that we have to take? Thanks in advance venkat