Automate

 View Only
  • 1.  ME22N cursor field error

    Posted 10-20-2020 04:02
    ​Hello,

    I am new to this forum.
    I am getting below error while updating payement term. The first PO entry in the data file is getting updated but others are not.

    Cursor field (MEPO1226-ZTERM Terms of Payment) is not enabled, or is missing from screen (SAPLMEGUI 0014 View: Purchase Order Window)

    Below are the steps I followed:
    a) execute ME22N in WS
    b) empty display PO screen appeared in SAP
    c) entered PO to display
    d) change to edit mode
    e) clicked on the Delivey/Invoice tab
    f)  updated new payment term
    g) save
    https://higherlogicdownload.s3.amazonaws.com/WINSHUTTLE/UploadedImages/72318e44-f81b-4ed4-8988-3feca962be97/ME22N_20201020_163848.xlsx
    ------------------------------
    suthagar ramachandran
    ------------------------------


  • 2.  RE: ME22N cursor field error

    Posted 10-20-2020 07:57
    Hi Suthagar -

    This is typically due to that when you click to edit mode the first time, you no longer need to click to edit mode after the first time, SAP remembers.  So if you click edit mode during the second row's run, then it actually changes itself back to display mode. 

    https://support.winshuttle.com/hc/en-us/articles/360023688671-ME22N-Scripting-Errors

    Take a look at the above support case in the "Additional Information" section. You'll need to take the TOGGLE action in your script and put an "If First Transaction" type IF Condition around it. The Support cases shows an old screenshot, so below is a screenshot that shows what it would look like in Studio 11/12.


    Thank you!

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



  • 3.  RE: ME22N cursor field error

    Posted 10-20-2020 12:53
    ​Hi Jennifer,

    Thanks for the pointer. However, its still not working for the second line I suppose due to the header collapse.
    I tried below solution from your reference site but not seems to be working even for 1st item.

    The same steps may be required to open the Header section as well. OK code =MEV4000BUTTON should be used in that instance and would also require being placed inside an IF NOT First Transaction condition.

    Therefore, I have attached snapshots of steps I follow and the data sheet result.
    Really appreciate your help on this please.

    ------------------------------
    suthagar ramachandran | business analyst
    Kellogg Corporation | 0169724010
    ------------------------------

    Attachment(s)

    doc
    ME22N error.doc   337 KB 1 version


  • 4.  RE: ME22N cursor field error

    Posted 10-20-2020 16:30
    Hi Suthagar - 

    I would recommend running your script in debug mode for the first 2 rows so that you can exactly see the differing behavior from your Row 2 and your Row 3. You would need to run rows 2-3 and debug both, not one at a time.  Then you should be able to see whether you need the Toggle action or the MEV4000BUTTON action or both.  There seems to be a lot of difference across systems. If I do this same exact type of change in my SAP system, I do not need either of those in my script.  It is fine without them.  But you might need one or the other or both. 

    Thank you,​

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



  • 5.  RE: ME22N cursor field error

    Posted 10-21-2020 03:12
    I would recommend not to use  the MEV4000BUTTON action. Reason is you don't know it the window is opened or closed.
    Instead use the corresponding toggle action.
    Expand header window:  =METOGGON1
    Collapse header window: =METOGGOFF1
    Expand item overview window:  =METOGGON2
    Collapse item overview window: =METOGGOFF2
    Expand item detail window:  =METOGGON3
    Collapse item detail window: =METOGGOFF3

    Always use function keys if possible when recording a transaction.





    ------------------------------
    Jan van Asseldonk | Consultant
    CTAC | +31629078169
    ------------------------------



  • 6.  RE: ME22N cursor field error

    Posted 10-21-2020 02:37
    Hi Suthagar, 

    I've found for simple changes it easier to use the older transaction ME22 and not the Enjoy transaction ME22N.

    ------------------------------
    Ben
    Woodside Energy Ltd
    ben.crerar@woodside.com.au
    ------------------------------



  • 7.  RE: ME22N cursor field error

    Posted 12-29-2020 06:04

    Thanks all for the help. Me22 is working fine.



    ------------------------------
    suthagar ramachandran | business analyst
    Kellogg Corporation | 0169724010
    ------------------------------