Automate

 View Only
Expand all | Collapse all

Cj20N - project creation with multiple WBS in SAP

  • 1.  Cj20N - project creation with multiple WBS in SAP

    Posted 09-25-2018 02:30
    Hi team,

    Could you please send me some videos as how to create a script for SAP transaction CJ20N with multiple WBS?

    Regards,
    Mahesh Navale
    Ingram Micro India


    Sent from my iPhone

    ----------------------------
    This e-mail is for the use of the intended recipient(s) only. If you have received in error, please notify the sender immediately and delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author prior permission. Ingram Micro checks outgoing mail and accepts no liability for any loss or damage caused by software viruses.
    ----------------------------
    [Ingram_2818e5de]


  • 2.  RE: Cj20N - project creation with multiple WBS in SAP

    Posted 10-02-2018 18:11

    Hi Mahesh, 

    We don't currently have any tutorials or videos posted specifically for CJ20N with WBS elements.

    Have you already attempted to build a Transaction script for this SAP Transaction, and if so were there specific issues you ran into that you're looking for guidance on?

    Describing the situation more fully (example: I need to build a script that uploads multiple line items in a project, with multiple wbs elements per line) and providing specific questions (example: how do you loop in a table without an insert row button; or how can I upload multiple wbs elements for each project row) can help Community members to provide suggestions or tips and tricks.

    Thanks!



    ------------------------------
    Winshuttle Training
    Winshuttle | Bothell
    ------------------------------



  • 3.  RE: Cj20N - project creation with multiple WBS in SAP

    Employee
    Posted 10-05-2018 14:57
    HI Mahesh

    CJ20N is great for looking at projects visually, however it's not great for automation.  

    I would recommend CJ2D for creates and CJ20 for updates, which are non-SAP "enjoy" transactions.  If you have access to those, I can attach an example.  Please let me know.

    Best Regards,
    Sigrid


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle North America
    ------------------------------



  • 4.  RE: Cj20N - project creation with multiple WBS in SAP

    Posted 03-05-2019 04:01
    Dear Sigrid. 
    We are also interested in creating/updating projects via CJ2d and Cj20 (as far as we understand that CJ20N is not the the correct transaction to do this). One of our requeriments is the creation/update of WBS elements and operations with long texts for descriptions. Could you please post some help about how to achieve this?.

    Kind regards. RAfa Albesa

    ------------------------------
    Rafael Albesa | IT Manager
    Xiob Group | +34.964260026
    ------------------------------



  • 5.  RE: Cj20N - project creation with multiple WBS in SAP

    Employee
    Posted 03-07-2019 09:40
    Hi Rafael

    Only have time for a quick reply today. 

    Updating WBS details is pretty straight forward. 

    1. Go to CJ20 and enter project and WBS and then click open details since you just have one
    2. if you have multiple WBS elements to update, go to CJ20 and enter project number
    3. Go to basic data tab (this is where the binoculars work)
    4. click to select all and then click to expand - especially if you have multiple levels - so that you see all WBS elements
    5. Click into the WBS Element column and then click binoculars to find a WBS line
    6. enter the WBS element and click position
    7. click to go into details and edit your fields and remember to go back to the first tab in the details before clicking ok.  SAP remembers where you left off, and we don't want this in the recording, as the script will be expecting to be on the first tab of the details for the next wbs element.
    8. click the checkbox to go back to the WBS list on the basic data tab
    9. click unselect all, since the row you worked on will be selected
    10. find the next one and repeat - i.e. put this into a loop.

    Attaching a simple example built in Studio 12.0.

    I could not get the long text to be included in the recording (I tried in a separate test).  I'm not certain why, and right now I don't have time to dig into it.  You might check with Support.  There may also be a BAPI for that.

    Hope this gets you started!
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle North America
    ------------------------------

    Attachment(s)

    Txr
    CJ20_UpdateWBSDetails.Txr   349 KB 1 version


  • 6.  RE: Cj20N - project creation with multiple WBS in SAP

    Posted 01-29-2020 11:08
    ​Hello,

    I'm trying to develop a script to create WBS structures with several sublevels. Which is the best transaction to use? I tried CJ01 but I got stuck in trying to add different levels in the main project.

    My script keeps overriding the first line, because I can't make it to pass to the next line so it can create a new sublevel.

    Do you have any example of scripts using loops to create a project with various levels in it?

    Thanks for the help.

    BR
    Joao Rino

    ------------------------------
    joao.rino |
    SIEMENS SA (GSS A&F CENTER Lisbon) |
    ------------------------------



  • 7.  RE: Cj20N - project creation with multiple WBS in SAP

    Employee
    Posted 01-29-2020 11:17
    Hi Joao

    You can use CJ01.  Here are you options:
    Enter WBS on line one, then Use the insert button at the bottom  - but it will push all WBS elements down and thus load everything in reverse order.  Load your WBS on the first line
    Enter WBS on last line, then use the bottom and page down buttons to expose new lines.

    HTH
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 8.  RE: Cj20N - project creation with multiple WBS in SAP

    Posted 01-29-2020 12:52
    Hi Sigrid,

    Thank you very much. It works perfectly.

    Joao

    ------------------------------
    joao.rino |
    SIEMENS SA (GSS A&F CENTER Lisbon) |
    ------------------------------



  • 9.  RE: Cj20N - project creation with multiple WBS in SAP

    Employee
    Posted 01-29-2020 15:13
    Glad it worked, Joao!

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 10.  RE: Cj20N - project creation with multiple WBS in SAP

    Posted 02-13-2020 07:07
    Hello Sigrid,

    after finishing my script to create projects with multiple WBS levels, I'm trying to create a new one to edit each level.

    I'm trying to use CJ20n, and then trying to have a loop which can open each level and editing them regarding its level.

    I can edit one, but somehow it is not passing to the next line. I was trying to use "open project" in the tabs:


    And then try to have a loop that will open other sublevel, after change the first entry. But as I said the script is ending as soon as it managed to edit the first line.


    Thanks for the support.

    BR
    João


    ------------------------------
    joao.rino |
    SIEMENS SA (GSS A&F CENTER Lisbon) |
    ------------------------------



  • 11.  RE: Cj20N - project creation with multiple WBS in SAP

    Employee
    Posted 02-13-2020 09:04
    Hi João

    I avoid CJ20N if at all possible.  As a workbench for viewing, it's great, but not for automation.. I use CJ20 instead and if you can use it, please do so.

    For CJ20 enter your project
    Then make sure you go to the Basic Data tab for the WBS elements

    Start Loop
    Position your cursor on any WBS element
    Click Edit -> Object -> Position
    Then enter the WBS element and click position


    It will move that WBS to the first row and then you can edit it.  Either just the row or going into the details

    End loop
    save

    Hope that helps
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 12.  RE: Cj20N - project creation with multiple WBS in SAP

    Posted 02-13-2020 09:33
    Hi,

    thank you! I already did it, just have one question: After editing all the fields in basic data, I do have to go back to the wbs structure overview and save it, right?

    Because my loop is not coninuing to the second line :/

    João

    ------------------------------
    joao.rino |
    SIEMENS SA (GSS A&F CENTER Lisbon) |
    ------------------------------



  • 13.  RE: Cj20N - project creation with multiple WBS in SAP

    Employee
    Posted 02-13-2020 10:10
    Yes, João.

    You click the checkbox on the details window, which should take you back to the Basic Data list of WBS elements
    But please make sure you go back to the FIRST detail tab - the Basic Data tab in the details, before closing.  SAP remembers where you left off, but you want to always start at the same place, which would be the first tab - Basic Data.

    That's inside the loop.

    Then outside of the loop click save.

    If you still have issues, please attach you script, I can try to make time to take a quick look at it today to check your loop, if you like.

    Best Regards,
    Sigrid


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 14.  RE: Cj20N - project creation with multiple WBS in SAP

    Posted 02-13-2020 11:58
      |   view attached
    Hi Sigrid,

    it's working the loop, but I'm having problems in the settlement rule, there are some sublevels which don't need it, and I left the cell blank.

    Even though, when I run the debug it's filling with "FXA", don't know why.


    Attached you have the script.

    Thank you.

    João


    ------------------------------
    joao.rino |
    SIEMENS SA (GSS A&F CENTER Lisbon) |
    ------------------------------

    Attachment(s)

    Txr
    CJ20_20200213_145858.Txr   445 KB 1 version


  • 15.  RE: Cj20N - project creation with multiple WBS in SAP

    Employee
    Posted 02-14-2020 08:58
    Hi João

    Great you are making progress! :)

    For the settlement rules, I'm not sure what you are asking.   You say there are levels you don't need and left them blank. 
    - Do you mean you want settlement rules only conditionally?  If so, you can use IF conditions.
    - Are you trying to blank out the settlement rule, i.e. delete it?
    - Or were you trying to do something else? 
    Please let us know, and we might be able to help.

    As for the defaults, it's all going to be based on how your system is configured.  

    Thanks for sharing the script.  I did take a quick look.  You have the SAVE option inside the loop, and it should be outside.
    You have:

    If you are updating more than one WBS element, you'll want SAVE outside of the loop, like this.

    Hope that helps - and please let us know about the settlement rules.

    Best Regards,
    Sigrid


    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 16.  RE: Cj20N - project creation with multiple WBS in SAP

    Posted 01-24-2024 09:32

    Hello Sigrid,

    I tried developing an GUI Script using CJ20N for creation of multi-level WBS (with optional AUC Asset creation) logic.

    But now when we try to execute it, shows error as 'Type mismatch: 'Session.FindById(...).selected''.

    Could you please help / guide us how to resolve this ?

    Thanks in advance,



    ------------------------------
    Prathamesh Padwal
    Knowledge Community Shared Account
    ------------------------------

    Attachment(s)



  • 17.  RE: Cj20N - project creation with multiple WBS in SAP

    Employee
    Posted 01-25-2024 16:05

    Hi Prathamesh

    Please see my suggestions on alternate tcodes for project creation and updates, like CJ2D and CJ20.  You won't need GUI scripting, either.

    There are other tcodes, too - like CJ01 and CJ02 - and there are examples here:  https://community.precisely.com/sap-module-templates/home/template-tcodes

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------



  • 18.  RE: Cj20N - project creation with multiple WBS in SAP

    Posted 01-30-2024 05:12

    Hello Sigrid,

    Okay, thank you for your suggestion. I will try creating using CJ2D or CJ20 now instead.

    Thanks & Regards,

    Prathamesh



    ------------------------------
    Prathamesh Padwal
    Knowledge Community Shared Account
    ------------------------------