我是Android开发者。最近我正在做PDF生成项目。我们使用Oracle EBS。在这个系统中,有一个并发程序可以生成 PF 分类帐的 PDF。我们可以通过在Oracle Apps中运行并发程序来获取PDF。我的任务是从 Android 应用程序生成相同的 PDF。
现在我想开发一个 API,它将返回并发程序生成的 PDF 文件的 URL。
这样可以吗?如果可能的话,请给我指导工作。
运行报告后创建 Oracle PLSQL 包,其中使用了这部分内容
v_url :=
fnd_webfile.get_url (file_type => fnd_webfile.request_out,
id => ln_req_id,
gwyuid => v_gwyuid,
two_task => v_two_task,
expire_time => 9999999999);
示例
DECLARE
l_request_id NUMBER := :P_REQ_ID; -- The request id
l_two_task VARCHAR2 (256);
l_gwyuid VARCHAR2 (256);
l_url VARCHAR2 (1024);
BEGIN
-- Get the value of the profile option named, Gateway User ID (GWYUID)
--- l_gwyuid := fnd_profile.VALUE ('APPLSYSPUB/PUB');
SELECT profile_option_value
INTO l_gwyuid
FROM fnd_profile_options o, fnd_profile_option_values ov
WHERE profile_option_name = 'GWYUID'
AND o.application_id = ov.application_id
AND o.profile_option_id = ov.profile_option_id;
-- Get the value of the profile option named, Two Task(TWO_TASK)
SELECT profile_option_value
INTO l_two_task
FROM fnd_profile_options o, fnd_profile_option_values ov
WHERE profile_option_name = 'TWO_TASK'
AND o.application_id = ov.application_id
AND o.profile_option_id = ov.profile_option_id;
l_url :=
fnd_webfile.get_url (file_type => fnd_webfile.request_log, -- for log file. Use request_out to view output file
ID => l_request_id,
gwyuid => l_gwyuid,
two_task => l_two_task,
expire_time => 500-- minutes, security!.
);
DBMS_OUTPUT.put_line (l_url);
END;