Project Systems - 2 problelms

Hi,
I'm working on a project and having a couple of problems.
1. I wrote a program to upload a file from Kronos of employee activity and load into PS. That works. However, I would like to also be able to confirm the activity. I thought I was doing this correctly, the BAPI returns no errors, I do a BAPI_TRANSACTION_COMMIT, yet when I go to CJ20N and do the pull-down EDIT>ACTIVITY>CONFIRM, it still shows that the user needs to manually confirm. Here's the code:
Maintain the activity.
CLEAR: LT_METHOD_PROJECT.
LT_METHOD_PROJECT-REFNUMBER = '000001'.
LT_METHOD_PROJECT-OBJECTTYPE = 'NETWORKACTIVITY'.
LT_METHOD_PROJECT-METHOD = 'UPDATE'.
CONCATENATE LT_ACT-NETWORK ' ' LT_ACT-ACTIVITY INTO LT_METHOD_PROJECT-OBJECTKEY.
APPEND LT_METHOD_PROJECT.
CLEAR: LT_METHOD_PROJECT.
LT_METHOD_PROJECT-METHOD = 'SAVE'.
APPEND LT_METHOD_PROJECT.
CLEAR: LT_ACTIVITY_ELEMENT.
LT_ACTIVITY_ELEMENT-NETWORK = LT_ACT-NETWORK.
LT_ACTIVITY_ELEMENT-ACTIVITY = LT_ACT-ACTIVITY.
LT_ACTIVITY_ELEMENT-WORK_ACTIVITY = WA_UPLOAD-ARBEI.
APPEND LT_ACTIVITY_ELEMENT.
CLEAR: LT_ACTIVITY_ELEMENT_UPDATE.
LT_ACTIVITY_ELEMENT_UPDATE-NETWORK = 'X'.
LT_ACTIVITY_ELEMENT_UPDATE-ACTIVITY = 'X'.
LT_ACTIVITY_ELEMENT_UPDATE-WORK_ACTIVITY = 'X'.
APPEND LT_ACTIVITY_ELEMENT_UPDATE.
CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
CALL FUNCTION 'BAPI_NETWORK_MAINTAIN'
IMPORTING
RETURN = ls_return
TABLES
I_METHOD_PROJECT = LT_METHOD_PROJECT
E_MESSAGE_TABLE = LT_MESSAGE_TABLE
I_ACTIVITY_ELEMENT = LT_ACTIVITY_ELEMENT
I_ACTIVITY_ELEMENT_UPDATE = LT_ACTIVITY_ELEMENT_UPDATE.
IF ls_return IS INITIAL.
REFRESH: E_MESSAGE_TABLE, I_CONFIRMATIONS, return.
CLEAR: NUMBER.
NUMBER = LT_ACT-NETWORK.
I_CONFIRMATIONS-ACTIVITY = LT_ACT-ACTIVITY.
I_CONFIRMATIONS-PERS_NO = HOLD_PERNR_SAP.
I_CONFIRMATIONS-ACT_TYPE = HOLD_PERNR.
I_CONFIRMATIONS-ACT_WORK = WA_UPLOAD-ARBEI.
APPEND I_CONFIRMATIONS.
CALL FUNCTION 'BAPI_NETWORK_CONF_ADD'
EXPORTING
NUMBER = NUMBER
IMPORTING
RETURN = return
TABLES
I_CONFIRMATIONS = I_CONFIRMATIONS
E_MESSAGE_TABLE = E_MESSAGE_TABLE.
READ TABLE E_MESSAGE_TABLE INDEX 1.
IF E_MESSAGE_TABLE-TYPE = 'I'
AND E_MESSAGE_TABLE-MESSAGE_ID = 'RU'
AND E_MESSAGE_TABLE-MESSAGE_NUMBER = '105'.
CALL FUNCTION 'BAPI_PS_PRECOMMIT'
TABLES
ET_RETURN = return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
RETURN = return.
PERFORM WRITE_REPORT USING WA_UPLOAD-PROJECT_DEFINITION
WA_UPLOAD-PERNR
WA_UPLOAD-ARBEI
'Successfully inserted'.
endif.
endif.
2. I'm creating an ALV report which shows activity by period. The column on the left is essentially the secondary cost element. It joins several tables (COKA, PRPS, PROJ, CSKS, CSU), but the amounts come from COSS. I think these amounts are correct. The user wants a drill-down to see the detail.  I know the hours within the period are stored in AFRU.  Can someone tell me where the activity rate is stored for those hours?
Thanks for your help

Hi Micheal,
For your first problem, I would recommend you to pass the parameter WAIT = 'X' for 'BAPI_TRANSACTION_COMMIT'.
For some transactions to take effect, it takes time and the WAIT parameter helps.
Regards,
Pranav.

Similar Messages

  • How to create the Custom project System as Web Project

    Hi,
    I have created a custom project system using this walkthrough. But
    this walk through is targeting Visual C# project system. I need to create the Custom project system as Web project and set the start up page as index.html file. How can I achieve this?
    Note: 
    I have got the Custom project system sample from VS2013 SDK samples(https://mpfproj12.codeplex.com/).
    But it demonstrate the Custom console applications only.
    - Abbas K

    Hi,
    So you didn't even follow this walkthrough yet? If you did, how did you do it?
    I failed to create such a web project system because I finally messed up my VS experimental instance. But it's possible to create a custom web project system, by following this walkthrough. Someone else has successfully made it, check this
    link.
    The difference is that you have to use web project type instead of the console application project type. You could copy a web project's .csproj file into the VSPackage project and rename it to xxx.myproj. There's an error in the walkthrough that the AssemblyInfo.cs
    file should be put into Properties folder and set the "Build Action" property to Content, "Include in VSIX" to true.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sales order in Project system

    Hi All,
    Can u tell me please how can we create  a sales order,Quotation in projects and what are tcodes for that.
    As i am here involved in Capital projects i dont have any idea of customer projects ican u pleease let me know the customizing part too.
    Assured of rewarsd points
    Thanks in Advance.
    Regards,
    Abraham.S

    Hi,
    to create quote from project system there is quite a bit of PS ( project system ) SD integration is required. i will try my best to deliver with whatever time i have right now.
    1. t-code -CKCM - your will define easy cost planning here whihc will be your pricing factor in in sales order.
    2. ODP1- you define DIP profile here you will also define your costing elements here. this DIP profile is attached to sales doc type. and on main menu you will find button that says quotation. click on that. this willd irectly take you to quote and from there u can take it forward.
    I hope it helps u little. Though i know its not enough.

  • About reversal of Outbound delivery generated from Project system due to sale return

    Hi SAP Expert ,
    We have made delivery from project system using t.code CNS0 and billing document is generated with reference of sales order. Now Goods is return by customer due to some technical reason, We created return sales order with reference of billing document  and Credit memo with reference of Return sales order.
    What is T.code for making return delivery or reversal of  Delivery /PGI generated from Project system in sap r/3 ?
    Pls. suggest to me.
    regards
    VKM

    Hello,
    it depends whether in the billing document the material codes identifies the goods delivered and to be returned or not.
    If it's so, you can create a Return Sales Order with reference to the billing document, create the return delivery, and then the credit memo.
    If it's non so, you can create a Return Sales Order with reference to the billing document (but without copying the material items, and entering manually material code and quantity to be returned), then create the return delivery. Then you can create a Credit memo request with reference to the Billing Document or with reference to the Return Sales Order.
    To create the return delivery, you can run VL01N with reference to the Return Sales Order (just like for outboud deliveries), or from VA02, following the menu path "Sales document --> Deliver".
    Best regards,
    Andrea

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

  • Sub-contracting through Project system.

    Hi
    Can some one please help me in understanding how Project system (PS) is supporting sub-contracting scenarios.
    I am looking for activity sub-contracting and also sub-contracting with Project stock materials.
    I am aware of normal sub-contracting through production order and also sub-contracting through MM. I am specifically looking for sub-contracting in PS.
    Thanks and warm regards,
    Jagadeesh

    Hi,
    If requirements for subcontract items (or services) are generated automatically from PS just make sure that the right document category is used (subcontract) then any requisitions or planned orders etc. will have the right category.
    There is no difference between PP, PS and PM effectively, they all use subcontracting in the same way it is just how the requirement is triggered that is slightly different.
    If you need details on how to trigger the right type of requirement through PS then you may need to use one of teh financial forums that cover PS? (is there one?)
    Steve B

  • Creating Project Profile in SAP R/3 Project System

    Hi All
    While creating a project definition in Project System in SAP R/3, it is the mandatory to select a Project Profile from a pick list. How can I create a new project profile for myself?
    Thanks
    Sheenam

    It is mandatory to select a Project Profile while creating a Project Definition. Project Profile can be created using OPSA transaction.
    regards
    Shravan

  • Changing the data in DataSource in R/3 System for Project System

    Can we change the data of DataSource which is extracted from R/3 sYSTEM for Project System Module?

    Hello Rajesh,
    You can modify it in PSA. Or write the routines or rules logic as per your requirement.
    Could you please elaborate more on what kind of changes you are interested for.
    San.

  • Report Painter Drilldown on Cost Element for Project Systems

    I am currently working on a report for Project Systems. I am trying to copy the functionality of the Internal Order summary (60I2-001) into report group 6P3. I was able to copy the whole layout and also the values of 6oI2-001 into a copy of 6PP4-001 but when I double click on "Balance" it is bringin up the ALV report that 6PP4-001 is using. I would like to call another report which looks like 6LS0-001 but contains Project System info made in report painter when I double click on Balance. Is this possible? Please let me know how.

    Hi Avinash,
    See my replies below.
    1 a & B: You are planning Qty on NWA and capturing costs - labor & Equipment on NWA elements.
    When  you are having elaborated to NWA-Element level, split your total work on each NWA-element and post labor cost. Thus you will have planned Vs actual costs at one place.
    coming to equipment cost - are you capturing using PO through GR?.
    2.a : Option1- create a separate WBS elements for materials and plan cost at WBS level. That value would be your total planned cost of material procurement as estimated. Under this WBS elements create NWAs and assign the materials. With this set up you can assign material and procure so that will have actual costs coming from GR.
    Option 2: Create a one General Cost activity and assign the total planned cost of material on this NWA.
    When you assign the material components, diligently you have to reduce the equivalent amount from the general costs activity. Also note that on component screen, you have to check box "Cost relevant" so that material cost will add to Cost NWA. Let the different materials  have their own valuation class and have default CEs accordingly. that would not be big issue.
    Please discuss with your MM team to get more information. Also my suggestion is to leave blank CE field in configuration.
    The option2 is very cumbersome and high risk but one have to be very cautious to reduce the value from Cost NWA in order to sustain the planned material costs whenever they added.
    3. I have answered the relevance of Cost relevance check box in above.
    Hope above makes sense.
    Thanks,
    Sudhakar

  • Project System - Report Painter - Cost roll up issue

    Hi,
    We have an issue with the roll up of the costs in Report Painter report in Project Systems. The problem occurs only with those costs which have been settled to an internal order from a WBS element.
    We are using the same cost elements to settle to the Cost Center and Internal order and roll up of the costs work fine for those settled to cost center. But the roll up does not happen for the costs settled to an internal order. Would appreciate if someone can guide on how to fix this issue.
    Raj.

    Here are the values:
    Period/year     000.1900     Remainder 1900     PERIO     Period/year
    Value Type     4     Actual                                                 
    Value Type     10     Statistical Plan                                                 
    Object ind.     P     Project item                                                 
    Object ind.     1     Order plan values: appended, apportioned     9     Order values: not appended, deleted
    Debit type     1     Costs and credit-side payments                                                       
    Thanks for your help.
    Raj/

  • Asset settlement issue from Project System

    Hello everyone,
    In SAP, we have tied Project System and Fixed Asset in the sense that for each network/activity in PS we create and link an asset in Asset Accounting. In the Purchase Order, the network/activity number is assigned and all the transactions that occur through this PO (including down payment, its clearing, GR/IR)  are then settled on the specified asset when we execute settlement run at month end through CJ88.
    However, we have encountered scenarios where an asset was not timely allocated to the network/activity but the transactions were carried out through the PO. When the settlement run was executed, its impact was not visible in Asset Accounting. Later, it was realized and the asset was created and assigned. Once the asset was assigned, all the subsequent transactions through the PO were then being settled successfully. But the problem is with those transactions for which the asset number was initially not assigned.
    Is there any program that can be executed to include the impact of the previous transactions. Otherwise, suggest alternatives.
    Thanks

    Hi Thanks for your reply, But that is not relevent to this issue.
    The issue here is -
    First 2 documents has value date of 4th period and the amount is 8800
    Next document has value date of 5th period and the amount is 1200
    Now i am trying to settle 10000(8800+1200) with 5th period date. Its givign an error Settlement amount is greater than Available amount
    Will it solve if i settle 4th period with 8800 first and then 1200 with 5t period? or any other process?
    Thanks
    Yadayya

  • Project System Cash Management in combination with statistical WBS element

    Hi,
    within  a customer project, we have to solve the following issue:
    Customer runs projects and statistical projects in combination with internal orders.
    We want to use the PS Cash Management for planned and actual payments.
    With statistical projects we have the following problem:
    Invoice and actual payments will be processed with the transaction CJFN.
    Actual payments are shown only on the internal order (transaction CJIA), but not on the statistical WBS element.
    We want the information about the actual payments with in the project system reporting (S_ALR_87013574).
    Projects, not flagged as statistical will deliver the expected results.
    Many thanks for your ideas, to solve this problem.
    Steffen

    are u posting to some other cost object also. normally they wud have to be posted to a COPA also with the cost element being 11 category.
    the wbs will receive the statistical posting, so there needs to be a real object also.
    see whether the real object is getting derived.
    the system is nt finding the real object and trying to post with the WBS in real, but since its statistical, the error.
    any other calrifications. plz post.
    regards
    anantha

  • Milestone payment for vendor in project system

    Dear sapient
    As per our client requirement vendor payment is based on the basis of milestone i.e activity based. As per the contract agreement payment is made on the basis of certain percentage as mention below.
    1st payment 5% of total order value (with out tax)
    2nd payment 10% of total order value  (with out tax)
    3rd payment 65% of total order value (Including tax 100 % )
    4th payment 20% of total order value (with out tax)
    Is there any standard or workaround functionality available in sap for vendor payment in project system ?
    Regards
    Soraj

    Thnx for reply
    As per our requirement payment is based on completion of work. can i use payment term on the basis of completion of work/activity not on due date basis?

  • Technical spec for Project systems report

    Hi all,
    My requirement is to create technical spec's on this Project Systems monthly and yearly budget and actual tracking with drill down capability
    And the char and KF are:-
    Char
    Project Definition
    WBS Element
    Cost Element
    Vendor
    Purchase Order No.
    Purchase Order Item
    Requester
    Created On
    PO Description
    Final Delivery
    KF
    PO Value
    Value - Quantity Delivered
    Amount Invoiced
    To be invoiced - Value
    To be Delivered - Value
    Can anyone help me that which standard query is suitable for this requirement.

    Hi,
    Check the below business content queries:
    0PM_MC01_Q0001     Budget Comparison (Actual Costs) 
    0PM_MC01_Q0002     Budget Comparison (Planned Costs)
    0PM_C06_Q0002       Budget Proposal (Periodic)
    0PM_C06_Q0003       Budget Proposal (Objects)
    Check this might be useful:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e8/858f40f5767d17e10000000a1550b0/frameset.htm
    Hope this helps.......
    Rgs,
    Ravikanth

  • Customer Downpayment Update in Project Systems

    Hi,
    I am facing problems w.r.t. update of customer down payment update in project systems. As per standard SAP, after doing customer down payments, this will get updated in project info systems (CN41/CN41N).
    Please suggest me to fix the issue.
    Best Regards,
    Ranjan

    hi,
    Downpayment request is used to create a billing request through
    the t code DP 90.This DR can further be used to create a billing document
    say invoice.
    Actually you will be using these fundas in Resource Related Billing because that is
    where the integration between PS and SD module take place with the help of
    DR against actual resource utilized in the project.
    I hope this clarifies your question and award points if it is so.
    Do not hesitate to ask me if you have any further questions in this.
    Thanking you,
    Best Regards,
    R.Srinivasan

Maybe you are looking for

  • Message output(IDoc) from MIGO creates multiple idocs repeats for each line

    Hi Experts, We want to send one idoc message thru MIGO output message control upon posting at HEADER level regardless of how many line items are there on the Purchase Order. Using MIGO we are doing a 101 goods receipt on a PO with 3 line items and we

  • Problems installing iTunes on Windows XP

    I have just had an error updating iTunes and had to reinstall on my Windows XP computer. I think I have done everything I need to but every time I try to reinstall it says it has completed in about 2 seconds but there is no sign of iTunes on my compu

  • Cannot draw a transparent rectangle in Flash CS4

    Hi, In Flash CS4, when I draw a rectangle (or circle, or anything) with a color that has 0 alpha, nothing is drawn. Also, if I select a piece of drawing and change the color to 0 alpha, the drawing (e.g. rectangle) disappears!! Is there any way to di

  • Smartforms output not proper

    Hi,     I have created a smartform.It was working fine in the print preview and when i took the printout also its coming properly.But after this i added a logo in it and it was very exactly coming in smartform print preview.But when i give print it i

  • Pricing Schema for Project System

    Dear Sappers, I'm configuring Pricing Schema for Project System(PS) module. The requirement is, the schema will be in such a way that it supports both excise, CST, VAT and service tax. In PS module the user raises a Purchase Order having procurement