Automate

 View Only
  • 1.  Cost Center Update (KS02) Script Issue

    Posted 03-21-2020 23:05
    Dear Winshuttle community,

    I have built a transaction script to update cost center master data in SAP. The script was built to simply test updating the person responsible for selected cost centers.

    While the script works for simple scenarios, it failed for cost centers that have multiple validity periods. For example a cost center could be created for 01/01/2001 - 12/31/2019 under one department, but created for 01/01/2020 - 12/31/9999 under another department. 

    When this happens a screen will pop-up after cost center is input into KS02. And since the script I recorded was based on a cost center that has only one validity period, it failed. 

    Should I create another script for cost centers that have multiple validity periods separately? Has anyone created a script for KS02 before and faced similar issue? 

    Thanks so much in advance for sharing your experience with me.

    Regards,

    Yi

    ------------------------------
    Yi Gao
    3012127826
    ------------------------------


  • 2.  RE: Cost Center Update (KS02) Script Issue

    Posted 03-23-2020 03:19
    Hi,
    you have basically given yourself an answer.
    Record it again, this time using a const center with multiple validity dates. The newest validity period should always be on the top, so it's easy to record selecting first line on validity selection screen.

    Then you need to cover the part for cost centers with single validity, as you won't get the selection screen.
    Mark the steps as 'skip screen if not present' in expert view.


    I've just tested the above and it worked in all scenarios.

    ------------------------------
    Radoslaw Poziomek | BSC Continuous Improvement Specialist
    Owens Illinois | *
    ------------------------------