Automate

 View Only
  • 1.  Does not contain * (asterisk)

    Posted 27 days ago
    Edited by Leo van Horrik 27 days ago

    Hi,

    I am creating a Winshuttle query where I want to add a criteria where the results does not contain the character "*" (asterisk).

    For example, if I have these material numbers: 1234, 1234*, 12*34 and 1234**, I want the result to be only material number 1234.

    I think I have to use the operator "Not Like" and then use an escape. But I don't know how to create the escape in a Winshuttle query.

    Hopefully someone can help me out.

    Greetings, Leo.



    ------------------------------
    Leo van Horrik
    Knowledge Community Shared Account
    Burlington MA
    ------------------------------



  • 2.  RE: Does not contain * (asterisk)

    Posted 27 days ago

     In SAP, you can search in MM02 on the description field using *#**. SAP uses # as an escape so * is input as a character instead of a wildcard.

    Excel uses ~ for an escape so the * is input as a character instead of a wildcard;  you can search using ~*.

    hth, jan



    ------------------------------
    jan ketele
    release expert
    Xeikon Manufacturing NV
    ------------------------------



  • 3.  RE: Does not contain * (asterisk)

    Posted 27 days ago
    Edited by Leo van Horrik 27 days ago

    Hi Jan,

    Thanks for your reply but it's not for searching in SAP or in excel. It's for a Winshuttle query. 

    I did try the  *#** in the Winshuttle query but it did not work.

    Greetings, Leo.



    ------------------------------
    Leo van Horrik
    Knowledge Community Shared Account
    Burlington MA
    ------------------------------



  • 4.  RE: Does not contain * (asterisk)

    Posted 26 days ago

    Hi Loe,

    Please try % in place of *.

    Use like if you want the 1234 to match as shown in my attachments. 

    Hope this helps to what you are looking for.



    ------------------------------
    Benjamin Kielas
    Supervisor SAP Master Data
    Generac Power Systems, Inc.
    WAUKESHA WI
    ------------------------------



  • 5.  RE: Does not contain * (asterisk)

    Posted 22 days ago
      |   view attached

    Hi Benjamin,

    Thank you for your reply. I see that your solution is working on your system but unfortunately it's not working in my system. When I enter %*% it keeps on running.

    Greetings, Leo.



    ------------------------------
    Leo van Horrik
    Knowledge Community Shared Account
    Burlington MA
    ------------------------------



  • 6.  RE: Does not contain * (asterisk)

    Employee
    Posted 16 days ago

    Hi, 

    This blog post might be of help here - https://community.precisely.com/discussion/studioevolve-tip-handling-strings-with-special-characters#bm462ce168-cf6f-4e7c-8dae-feda08a710bd

    Here is how to use ESCAPE for special characters: https://docs.progress.com/bundle/datadirect-openaccess/page/topics/sqlref/escape-clause-in-like-operator.html



    ------------------------------
    Jayasri Varyani
    SE
    Precisely Software Inc.
    ------------------------------



  • 7.  RE: Does not contain * (asterisk)

    Posted 16 days ago

    Hi Jayasri,

    Thank you for your answer. I already saw this post and tried '**%*' ESCAPE '*' but that does not work. Therefore this post, I was hoping somebody could hand me the correct escape.

    Greetings, Leo.



    ------------------------------
    Leo van Horrik
    Knowledge Community Shared Account
    Burlington MA
    ------------------------------