Saltar al contenido principal

Using Exec SQL with parameters from production order

Respondida

Comentarios

4 comentarios

  • Comentario oficial
    Nadav Caridi

    Hi , 

    Does that even work as an SQL ? 

    I always start off by running the command on SSMS to see that I'm using the proper SQL syntax with real values.

     

  • Sarah Swettlen

    Macro error in UF-081: System.Exception: Incorrect syntax near the keyword 'where'.
    [Macro Command: ExecuteSQL(EXEC SAP_LabelFileCreator where owor.itemcode = '$[$6.0.0]' AND owor.docnum = '$[$18.0.0]' )]

    Macro Enviroment parameters:
    [Cu

  • Yaremi Miranda Lopez

    Hello Sarah,

     

    As Nadav mentioned, please check the syntax and execute the SP in the query manager first.

  • Sarah Swettlen

    Hi Yaremi! 
    I was able to get it to work by having the entire stored procedure in the boyum button and then using the syntax there.

     

    It works great!

    Thank you all for your feedback! :)

Iniciar sesión para dejar un comentario.