on 11-25-2014 6:03 AM
A small query. In the same RFC to JDBC scenario its working fine in Development server.
In Quality server this is giving an error in date format.
Format in RFC is structure Dats . Tried all transformation in date still working in development not in quality.
Checked all date format related setting in ECC also,
<?xml version="1.0" encoding="UTF-8"?><rfc:ZBAPI_MM_GRR xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><BAPI_INPUT><SDATE>2014-01-01</SDATE><EDATE>0000-00-00</EDATE></BAPI_INPUT><RETURNMESSAGES></RETURNMESSAGES><XT_DISP><item><MBLNR>5004791288</MBLNR><EBELN>0000202087</EBELN><LIFNR>523 0000</LIFNR><XBLNR>864320130707BRAK</XBLNR><MATNR>PRING.PNO.06030960</MATNR><BUDAT>���-�-��</BUDAT><MAKTX>D020226</MAKTX><QTYAD>0</QTYAD><QTYRC>0</QTYRC><QTYAC>0</QTYAC><QTYRJ>0</QTYRJ><MEINS></MEINS><WERKS></WERKS><LGORT></LGORT><REASON></REASON><S_FLAG></S_FLAG><ZEILE>0000</ZEILE></item><item><MBLNR>5004791288</MBLNR><EBELN>0000202087</EBELN><LIFNR>523 0000</LIFNR><XBLNR>3965201307070301</XBLNR><MATNR></MATNR><BUDAT>���-�-
���-�-��
- Date format is working wrongly. no conversion done here. Its working fine in development.
Regards
Sharada
Had no choice so created using sproxy (changed the scenario) and solved this issue .
Updated jdbc created without RFC and created inbound proxy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check Your Input Data field size
You Should check if the it is greater than >9(dd-mm-yyyy) based on your date format
Just check for the length before the transform function.
i.e. If the length is > then do the transformation else send the blank value..
you can use the below logic before transformation
input --> map with default blank --> equals (blank) --> Not -> If without else --> map the input field and perform date transformation after then.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Friends,
In sxmb_moni there a red flag and it says "Mapping general error" (Why only in quality!!!!)
Runtime exception occurred during application
mapping
com/sap/xi/tf/_View***~
com.sap.aii.utilxi.misc.api.BaseRuntimeException:C
haracter reference "�" is an invalid XML.
Manual transfer of RFC not possible to Quality suman.
Cache refresh done yesterday ravi.
Regards
Sharada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharada,
Are getting the same XML in quality than i development environment?, the error seems to be in an illegal character, then it's possible that you are getting a character that you don't retrieve in development. Have you installed the same languages in the two places?, is your system set as unicode?
Hope this helps.
Regards.
Hi
Use the following UDF
public String convertDateTimeToUTC(String strDate, Container container) throws StreamTransformationException{
AbstractTrace trace = container.getTrace();
Date date=null;
SimpleDateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
try{
String dt = strDate;
date = sdfSource.parse(dt);
trace.addInfo("Local Date:"+date);
SimpleDateFormat sdfDestination = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
strDate = sdfDestination.format(date);
}
catch(ParseException pe){
trace.addInfo("Parse Exception : " + pe);
}
return strDate;
Regards,
Ravi
Hello Sharada,
It seems like you have used the Transform Date function the filed mapping for this field and the input that you are getting from quality system is not providing the SADATE data.
That means, for the mapping you will have to handle empty values or NULL values when the RFC does not provide any data.
Regards,
Alka Panday.
Hi
Go through the following link
It May Helpful to You
SAPTechnical.COM - Date conversions in XI / PI
Ans specify Your Error if it is Matching with Your Error
Regards,
Ravi
Hi,
Can You Share Your Error Screenshot in Moni..
So that it is Good to Analyze..
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regards
Sharada
Hi,
Have you debug the RFC in quality. It seems data is coming wrong into PI.
If you have debug access to ECC, check what data is sending to PI.
If the data coming out from ECC is proper, import the RFC into PI ESR manually.
Suman
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 | |
10 | |
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.