on 12-10-2012 3:21 PM
Hi all.
I've adjusted a Java code in order to send an XML to customer via email, taking one of the source fields and performing a RFC lookup from ECC retrieving its corresponding email address.
The scenario is an Abap Proxy -> XI -> Email (and RFC lookup).
Running on PI 701 SP 06.
Then, I use the email address and some other fields to fill mail package structure.
Please see attached my java code (used Eclipse to generate it) and then exported into a .jar file, used in an Imported Archive and used it in the Interface Mapping.
My question is:
The scenario is working fine, and the email is being sent as per the need.
Java mapping is being called accordingly, RFC Lookup brings the right values from ERP and everything works perfectly in Dev (for both, PI Interf. Mapping Test tab or end-to-end execution).
When I moved the scenario from Dev to QAS environment, it gives error in the Java code.
The error is:
<Trace
level="1"
type="T">RuntimeException during appliction Java
mapping NFE/NFE_Out</Trace>
Does anyone imagine what I can be doing wrong?
Tks!
Rafael.
The error is about the DOM docout, You try to create or append a node in a worng parent node
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Although it was under green light in RWB, it was configured pointing to the wrong client in quality system.
Also, there wasn't any treatment for the Selects performed by the lookup, so any error in the selection, returns no record to the mapping and therefore it fails.
Thanks for the great help!
Rafael.
Are you using the same business system for both dev and QA? In your condition checking in javalookup mapping you use BS_dev checking for both dev and QA. It should be BS_qas for quality. PLease see the attached code... as below...
if(senderService.equals(BS_dev)){
BSystem = "Sys_DEV_ERP_200";
}else if(senderService.equals(BS_dev)){
BSystem = "Sys_QAS_ERP_100";
}else{
if(senderService.equals(BS_PIDdev)){
BSystem = "Sys_DEV_ERP_200";
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rafael,
Your Java code is failing may be for one of the below issues:
1. RFC Lookup is failing. Go to RWB->Component Monitoring->Adapter Monitoring->Communication Channel monitoring, check the status of the RFC Communication Channel.
2. BAPI/Function Module code which is called through RFC at SAP side is not transported from DEV to QAS.
3. Data issue, the value what you are sending to RFC, does not exist at QAS SAP side (Table). Please change the RFC Communication Channel parameter and point it to DEV SAP system and then run the interface. If you find everything is working after that, then must be the issue either Point 2 or Point 3.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you execute the BAPI in quality SAP back end system using SE37?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.