Automate

 View Only
  • 1.  Copa postings with KE21N SAP FICO

    Posted 04-03-2020 03:14
    Hi,

    Has anyone had any success using Winshuttle with transaction KE21N create copa posting?

    The issue I am having is that there can be a different number of fields on the screen depending on the users monitor size and screen resolution.

    The only other solution i can think of would be to use a bapi, maybe BAPI_COPAACTUALS_POSTCOSTDATA

    Any assistance / guidance would be greatly appreciated.  

    BAPI_COPAACTUALS_POSTCOSTDATA



    ------------------------------
    Phil Harrison | Business Analyst
    CRODA LTD |
    ------------------------------


  • 2.  RE: Copa postings with KE21N SAP FICO

    Employee
    Posted 04-09-2020 18:10
    Hi Phil

    Hope you're well!  I'm not 100% sure what you mean about screen size.  That shouldn't have much to do with recordings overall.  You would tab between fields or page down, for example, to get through all of the fields.

    I took a quick shot at recording KE21N for a simple use case, and it works.  You have to make sure you put an IF condition around the Operating Concern pop-up, as it's only done for the first transaction.  Please see the attached.

    HTH,
    Sigrid

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

    Attachment(s)

    Txr
    KE21N_WE7.Txr   247 KB 1 version
    xlsx
    KE21N_WE7.xlsx   81 KB 1 version


  • 3.  RE: Copa postings with KE21N SAP FICO

    Posted 04-14-2020 06:01
    Thanks for the reply Sigrid.
    Our issue is that we have 43 fields that can be filled in.
    When i use KE21N manually, it shows me fields 1 to 22.

    On a different screen size or resolution i may only see fields 1 to 15 for example.

    When i have filled in the characteristics all i can do is a page down, so for me i can see fields 23 to 43 but for other users they may start with rows 16.

    So i think the issue is (from your script) is that it is inputting (01) in the first field and (02) in the second etc.
    Customer
    GT_LINES-VALUE(01)
    But it doesn't know how many fields there are.

    If the screen had a position search button or line down button, i could have forced it to do the entry line by line but only having a page down option is messing up the script. 


    ------------------------------
    Phil Harrison | Business Analyst
    CRODA LTD | 07767980965
    ------------------------------



  • 4.  RE: Copa postings with KE21N SAP FICO

    Employee
    Posted 04-14-2020 11:42
    Hi Phil

    Haven't tried a bunch of different resolutions.  I would assume this will make it tricky overall.

    So I tried the BAPI. 
    • The good news, I got it to work.
    • The bad news (1) you have to know the techy names of the COPA fields (2) it doesn't provide a document number - apparently well-known on there in the SAP developer community

    Attaching it in case it's something you want to pursue. 
    • The loop includes the geeky field name and value.
    • I created a 2nd version where I copied the structures for name/value and field name and made it one row.


    Best Regards,
    Sigrid

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