Automate

 View Only
Expand all | Collapse all

CS01 Scripting issues

  • 1.  CS01 Scripting issues

    Posted 10-29-2020 15:02
    I am attempting to create a script for CS01.  On the BOM header screen the Base Quantity field is a required field.  When the screen first opens the cursor goes to that field and I get a error saying the field is required.  I populate the field and then go through and finished adding the components and all necessary fields.  When I test the script it stalls at  the field.  I have tried running the script in different mode and creating in different modes (all except GUI scripting so far) and nothing seems to work.  Any suggestions or thoughts?

    ------------------------------
    Kevin Simard | Manager DMO COE
    Kraft-Heinz | 412.456.1031
    Kevin.Simard@kraftheinz.com
    ------------------------------


  • 2.  RE: CS01 Scripting issues

    Posted 10-29-2020 16:33
    Hi Kevin -

    I have the most luck recording CS01 in batch recording mode. It works just fine, although during the recording the transaction does behave a bit differently showing extra screens, but creates all the same information. Do you have a batch version that you have tried? Feel free to send along the script and the excel file. 

    Thank you!

    ------------------------------
    JENNIFER HWANG | SE
    Winshuttle North America
    ------------------------------



  • 3.  RE: CS01 Scripting issues

    Posted 10-29-2020 16:53
    Thank you.  I did try in Batch and still had the issue.  Any help would be greatly appreciated.

    ------------------------------
    Kevin Simard | Manager DMO COE
    Kraft-Heinz | 412-456-1031
    ------------------------------

    Attachment(s)

    xlsx
    CS01_20201022_125217.xlsx   11 KB 1 version
    Txr
    CS01_20201022_125217.Txr   566 KB 1 version


  • 4.  RE: CS01 Scripting issues

    Posted 10-29-2020 17:16
      |   view attached
    Hi Kevin -

    Not sure why, but your script was missing a screen. There's a second BOM Header screen that shows up ("Additional Data") and for whatever reason it was not in your script at all. I've added it so you should be good to go, for at least that No batch input data for screen (SAPLCSDI 0111 BOM Header: Additional Data) error goes. 

    Thank you!

    ------------------------------
    JENNIFER HWANG | SE
    Winshuttle North America
    ------------------------------

    Attachment(s)



  • 5.  RE: CS01 Scripting issues

    Posted 10-29-2020 17:36
      |   view attached
    Thank you!  I am seeing a new error now.  Looks like at the initial screen this time...

    ------------------------------
    Kevin Simard | Manager DMO COE
    Kraft-Heinz | 412-456-1031
    ------------------------------

    Attachment(s)



  • 6.  RE: CS01 Scripting issues

    Posted 11-02-2020 11:03
    Hi there - still having issues.  Any help would be greatly appreciated!

    ------------------------------
    Kevin Simard | Manager DMO COE
    Kraft-Heinz | 412-456-1031
    ------------------------------



  • 7.  RE: CS01 Scripting issues

    Posted 11-05-2020 07:16
    Hello Jennifer -

    Here is the latest files.  The script seems to be stopping at the initial screen for CS01.  There is a warning message in SAP (Yellow message) that it seems to be getting stuck on.

    Thank you for the help.

    ------------------------------
    Kevin Simard | Manager DMO COE
    Kraft-Heinz | 412-456-1031
    ------------------------------

    Attachment(s)

    xlsx
    CS01_20201022_125217.xlsx   6 KB 1 version
    Txr
    CS01_20201022_125217.Txr   566 KB 1 version


  • 8.  RE: CS01 Scripting issues

    Posted 11-05-2020 09:29
      |   view attached
    Hi Kevin -

    I thought the file you would send would be different than the one that Sigrid originally replied to, but the error is the same.  The issues are still the same. The screen numbers in your script indicate it was recorded in non-batch mode instead of batch mode. So when it's run in batch mode, it doesn't have the right screen numbers (they are different between batch and non-batch for this t-code). It needs to be recorded in batch mode to reflect the correct screen numbers. In addition, even the ok-code for adding a new item is different between the modes.  

    I've updated the script accordingly with the batch mode based screen numbers and ok codes.  Also, an additional header screen was still missing. I have added it, but placed a skip in case your system does not produce it. As Sigrid had mentioned in her reply, there was also an incorrect ERFA ok-code which has been changed to a /00. 

    Thank you.

    ------------------------------
    JENNIFER HWANG | SE
    Winshuttle North America
    ------------------------------

    Attachment(s)



  • 9.  RE: CS01 Scripting issues

    Posted 10-29-2020 18:10
      |   view attached
    Here is the data file with error

    ------------------------------
    Kevin Simard | Manager DMO COE
    Kraft-Heinz | 412-456-1031
    ------------------------------

    Attachment(s)

    xlsx
    CS01_20201022_125217.xlsx   6 KB 1 version


  • 10.  RE: CS01 Scripting issues

    Employee
    Posted 11-02-2020 18:23
    Hi Kevin
    It's on the component screen.
    This is the technical information on that screen
    But in the script you have a completely different screen name and number
    The script doesn't know what to do because it's on the SAPLCSDI-0140 screen. 

    Typically the screen names are captured as you record it.  Did you edit them?  The screen name and number can be edited, but it's not recommended unless you know exactly what you're doing.

    Also I noticed an OK code inside the loop that isn't correct.  Perhaps it needs to be ENTER, which is "/00"
    HTH,
    Sigrid


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



  • 11.  RE: CS01 Scripting issues

    Employee
    Posted 12-10-2020 12:05
    H Kevin, 
    Looks like you got a lot of help and advice from my colleagues. Were you able to resolve your issue? 
    Please confirm
    Jayasri

    ------------------------------
    Jayasri Varyani | SE
    Winshuttle North America |
    ------------------------------