How To Use Business Function B34A1030 Execute External Program in EnterpriseOne
How To Use Business Function B34A1030 Execute External Program in EnterpriseOne
Dashboard Knowledge Service Requests Patches & Updates Search Knowledge Base Advanced
E1: BSFN: How to use business function B34A1030 Execute External Program in EnterpriseOne (Doc ID 636244.1) To Bottom
In this Document
Goal
Solution
Description of B34A1030
Specifications of B34A1030
Troubleshoot Error "3143 File can not be accessed" returned by B34A1030
Sample Command on Windows platform
Using B34A1030 on the AS/400 platform
What can be the Command Line?
How to code B34A1030 ?
Library List used by B34A1030
Calling B34A1030 in an Interactive Application or UBE run Locally
What to verify when BSFN returns error message 3143 File can not be accessed?
Troubleshoot the Command Line Execution on the AS/400
APPLIES TO:
GOAL
SOLUTION
Description of B34A1030
The business function executes a command/program using the native command interpreter for the platform server where the business function is mapped to run
through the EnterpriseOne Object Configuration Manager (OCM).
Specifications of B34A1030
The input command line must be valid for the platform and must be a Batch mode command (not Interactive mode command)
The business function runs the command line synchronously - it does Not return until the command line is done executing
Security and permissions to execute certain commands may be platform-dependent as well
The business function can only detect if the command executed, but not if the command completed successfully
If the program executed by the business function is located on a cluster drive, try installing the program in the root drive of each server
In a Web client environment, the business function works as long as it is mapped to run on the server via OCM
When the business function returns error message 3143, it means that it was unable to launch the command on the platform server where the business function is
running. Verify the syntax of the command if the command is hard-coded. If the command is built using Event Rule coding, turn Logging on to verify the syntax of
the command in the dumping of the BSFN data structure parameters in the jdedebug log. Test the command on the platform server where the business function is
running.
Create a text file test.txt in ddp\system\bin32 then pass to B34A1030 'attrib +R test.txt' without the quote. The test.txt should turn to Read-Only.
Back to top
A command that can only be executed in Batch mode. For example, command STRPCCMD is an Interactive command and therefore will not work.
A CL program. The recommendation is to add/remove the necessary libraries for the proper execution of the CL.
Recommendation is to use the SBMJOB command to launch the CL or Command so that it executes in a jobstream separate from the parent job unless there is a
need to call the CL/Command in-line with the parent job. If using a CL/Command in-line, it cannot be a command that invokes SQL CLI, for example command
CPYTOIMPF, otherwise, the CL/Command fails with error SQL0842 in the AS/400 joblog because the EnterpriseOne database driver code is designed to get a
database connection in Local mode and there can only be 1 Local database connection in an AS400 jobstream.
The Command line can be hard coded by keying in the AS/400 command as a Literal, for example,
The Command line can be built into an Event Rule (ER) variable using ER Expression Mgr Text function Concat, for example,
When B34A1030 submits the AS400 command, it inherits the library list used by EnterpriseOne. If specific non-EnterpriseOne libraries are required by the AS400
command, embed the AS400 command in a CL program together with command ADDLIBLE to add the required libraries.
Another option is to hardcode the list of libraries in the SBMJOB command parameter INLLIBL (Initial Library List).
The business function must be mapped to the AS/400 in OCM of the System Data Source.
What to verify when BSFN returns error message 3143 File can not be accessed?
This error means that the BSFN was unable to launch the command on the AS/00. Verify the syntax of the command on the AS/400 if the command is hardcoded.
If the command is built using ER, turn Logging on to verify the syntax of the command in the dumping of the BSFN data structure parameters in the jdedebug.log
Test the bsfn in a UBE version that is submitted to the AS/400. (Note: AS/400 Administrator function is required).
On the EnterpriseOne Client-Batch Versions, select the UBE to submit to the AS/400. When Printer Selection screen displays, on the AS/400, first hold the job
queue that the UBE is submitted to, then on the EnterpriseOne Client, click OK to submit the UBE.
On the AS/400,
In the job queue, find the job and note the job number in order to retrieve the corresponding joblog from the outq QEZJOBLOG
Change the job attributes : LOG(4 00 *SECLVL)
Release the job queue
Review the OUTQ QEZJOBLOG after the UBE job completes to find joblog, press F11 to display the Number column and search for the job number noted
earlier.
Back to top
Related
Products
JD Edwards EnterpriseOne > Tools and Technology > EnterpriseOne Tools > JD Edwards EnterpriseOne Tools > Tools - Business Function
JD Edwards EnterpriseOne > Tools and Technology > EnterpriseOne Tools > JD Edwards EnterpriseOne Tools > Tools - Business Function
Keywords
AS400; B34A1030; FILE CAN NOT BE ACCESSED.; JDE1BSFNHOWTO; JOBLOG; NATIVE
Back to Top
Copyright (c) 2013, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement