Boa tarde! Alguém já criou algum atribute no AME (Transaction Type: Purchase Order Approval) que fosse utilizado para recuperar o valor da linha da PO? Eu criei um com a seguinte query SELECT DECODE(type_lookup_code, ‘STANDARD’, (SELECT (pol.unit_price * pol.quantity) AS PRICE FROM po_distributions_all pod, po_lines_all pol, po_headers_all poh, po_line_locations_all poll WHERE pol.po_header_id = poh.po_header_id AND poh.ame_approval_id = :transactionId AND pol.po_line_id = pod.po_line_id AND pol.po_line_id = poll.po_line_id AND poll.line_location_id = pod.line_location_id AND NVL(poll.cancel_flag,’N’) = ‘N’ )), poh.currency_code, NVL(poh.rate_type, psp.default_rate_type) FROM po_headers_all poh, po_system_parameters_all psp WHERE poh.AME_APPROVAL_ID = :transactionId AND psp.org_id = poh.org_id Quando executo a query é retornado o valor correto, mas quando executo o *Test Workbench no AME* de uma PO com duas ou mais linhas é apresentado o seguinte erro: “Error: An error occurred while fetching the attributes for given transaction id. Ensure that the given transaction id is correct and the dynamic queries for attributes and item classes are correct. “ Alguém poderia me ajudar? Obrigado, Anderson Marques
Orabr
Base e troca de conhecimentos, divulgação de oportunidades e projetos