on 08-01-2014 11:47 PM
Hi,
Build version M33.104.
I'm trying to submit the SAP_BW_ImportProcessChains using Redwood Script and when i used the following code:
Application app = jcsSession.getApplicationByName("TEST");
aJob.getJobParameterByName("APPLICATION").setInValueString(app.getName());
there is no output, the job definition doesn't get created in CPS.
I also tried the following alternatives:
Application app = jcsSession.getApplicationByName("GLOBAL.TEST");
aJob.getJobParameterByName("APPLICATION").setInValueString(app.getName());
also
Application app = jcsSession.getApplicationByName("TEST");
aJob.getJobParameterByName("APPLICATION").setInValueString(app.getUniqueId().toString()); //from the cookbook
Still no, output. and this time, when i checked the job parameters, it had an number value for the Application.
The application TEST is in the GLOBAL partition.
when i comment the above two lines of code , the import completes successfully.
I also experienced the same issue, when i tried to set the PARTITION parameter for Import Process Chains same way as above.
Please let me know how to correct my issue.
Thanks
Nanda
Hi Nanda,
These SAP Job definitions have hidden constraints. What I would do is submit a Simulate run with the parameters you want, the from the shell you do:
{
Long jid = new Long(123);
Job aJob = jcsSession.getJobByJobId(jid);
String val = aJob.getJobParameterByName("APPLICATION").getInValueString();
JcsOur.println(val);
}
I assume you will get something like GLOBAL.TEST$2, this is the business key, you use getBusinessKey() on the application to get the value.
You can have 100's of applications named Test. In different partitions, in different parent applications, and a combination thereof.
Regards,
HP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.