Saturday, January 21, 2012

SAP PI Errors and solutions




1)Mapping exception: Queue does not have enough values in context.



After going into mapping, found


sender has site file node, characteristics node; each has site id filed.
there is UDF , in which 2 for loops for( site node){ for(charecter node){ logic}}
this means, for each site file, checking site record, when ever it is matching that time result list is mapped to category(target structure) node.
After our analysis, we have identified, error is due to duplicate site record.


2)Sender file size is large, Not able to view the sender data.



solution: Download sender file and then view source data.



Fatal error from mapping errors

--------------------------------
use two mappings in interface mapping
1. java mapping( to filter special characters)
2. Graphical mapping( business functionality)

Java code as fallows:

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.StreamTransformationException;


public class RemoveSpecCharacters implements StreamTransformation{
private Map param = null;

public void setParameter (Map param) {

this.param = param;

if (param == null) {

this.param = new HashMap();


}

}


public void execute(InputStream inStream, OutputStream outStream) throws

StreamTransformationException{

try{

BufferedReader in = new BufferedReader(new InputStreamReader(inStream));

BufferedWriter out = new BufferedWriter(new OutputStreamWriter(outStream));


// The pattern matches control characters
Pattern p = Pattern.compile("[^ -~]");

Matcher m = p.matcher("");

String aLine = null;

while((aLine = in.readLine()) != null) {

m.reset(aLine);

//Replaces control characters with an empty string.

String result = m.replaceAll("");

out.write(result);

out.newLine();

}

in.close();

out.close();

}catch(Exception e){

e.printStackTrace();

}

}


}

for more information : Look into java api : pattern and ascii code list










HTML Code
Browser View
HTML Code
Browser View
HTML Code
Browser View
HTML Code
Browser View
HTML Code
Browser View
©©!!__ÛÛ
®®""``žžÜÜ
##aaŸŸÝÝ
""$$bbÞÞ
&&%%cc¡¡ßß
<<&&dd¢¢àà
>>''ee££áá
ÀÀ((ff¤¤ââ
ÁÁ))gg¥¥ãã
ÂÂ**hh¦¦ää
ÃÃ++ii§§åå
ÄÄ,,jj¨¨ææ
ÅÅ--kk©©çç
ÆÆ..llªªèè
ÇÇ//mm««éé
ÈÈ00nn¬¬êê
ÉÉ11oo­ëë
ÊÊ22pp®®ìì
ËË33qq¯¯íí
ÌÌ44rr°°îî
ÍÍ55ss±±ïï
ÎÎ66tt²²ðð
ÏÏ77uu³³ññ
ÐÐ88vv´´òò
ÑÑ99wwµµóó
ÕÕ::xxôô
ÖÖ;;yy··õõ
ØØ<<zz¸¸öö
ÙÙ=={{¹¹÷÷
ÚÚ>>||ººøø
ÛÛ??}}»»ùù
ÜÜ@@~~¼¼úú
ÝÝAA?½½ûû
ÞÞBB¾¾&#252ü
ßßCC¿¿ýý
ààDDÀÀþþ
ááEEƒƒÁÁÿÿ
ååFFÂÂ
ææGGÃÃ
ççHHÄÄ
èèIIÅÅ
ééJJˆˆÆÆ
êêKKÇÇ
ëëLLŠŠÈÈ
ììMMÉÉ
ííNNŒŒÊ?
îîOOËË
ïïPPŽŽÌÌ
ððQQÍÍ
ññRRÎÎ
òòSSÏÏ
óóTTÐÐ
ôôUUÑÑ
õõVVÒÒ
ööWWÓÓ
øøXXÔÔ
ùùYYÕÕ
úúZZ˜˜ÖÖ
ûû[[××
ýý\\ššØØ
þþ]]ÙÙ
ÿÿ^^œœÚÚ


SOAP<----XI---->RFC scenario.


Error: NO_MAPPINGPROGRAM_FOUND

http://scn.sap.com/message/13268572

Error Description: Received XI system error. error code :NO_mappingprogram_found Error text: Error stack: interface mapping object id xxxxxx software component xxxx does not exists in runtime.

When we are calling webservice from exaternal system, we are facing this issue.
1. but it was properly worked last time
2. After few modification in mapping, once again tested in test tool in ID.
3. Some time we are seeing errors in SAP R3/ECC System ST22( to find number of requests to rfc/bapis). we are seeing some dumps.


Rectified the problem like: By simply modifying the password in Integration Repository.
(When ever you see error details: jco communication errors check your communication channel parameters, try to reset your username and password.)

Also check , if the sap user is locked or not, expired or not, (dialog user/system user)




Sending Attachments from SAP SRM to 3rd party system(soap)




Enabling encryption while sending data from XI system



How to view/ see locked user in SAP system


Use t-code su10, select locked user only and execute : you can see the list of locked users.


Not able to view Configuration objects in SAP PI Quality( after transport)



then select nwdi_ctsadm user, select list objects, right click on standard list, transfer object to your user. and activate those objects again. ( Note: before, modify communication channel according to quality configuration)


EOIO message stuck in sxmb_moni.( scheduled mode)

Reason: there might be failed messages for this interface, SMQ2 selection your interface related check boxes, double click on first row, then find the status, if it is failed status, reprocess the messages( Note: before we need to rectify message mapping, and test with sample data, activate the mapping).
do the same process for rest of failed EOIO messages.



Date: 26th April 2013

found error in abap mapping in SAP XI, error follows,

Application error in mapping program Z_ZIFC_CL_IM_OYSTER_MAP, error code: 151 IDOC_ADAPTER, error text: 2 : SAP_IFS : SAPTI1 : 620 : SAPTI1 : 

the abap mapping checking the control fields of sender idoc and throwing error . Initially , we though , this error might be with, wrong data maintained in the sap tables. later realized, this error is due to , meta data of idoc in SAP PI, after loading meta data ,it is resolved. 


Working JAVA Webstart settings for SAP PI software



Use "javaws -viewer" in run command to open java web-start control panel.

After this you will find this window.

In the above case, I have used 3 different javawebstart application. those applications are stored in my cache.

Now see the various working(default settings) in my java control panel application.












In Browser(explorar) in default setting for java is enabled as fallows.





Browser Favorites,Lotous Notes and SameTime settings When system format or New machine

When you format your system, Get a new system, these steps are useful for you
1. Export your favourites in Mozilla FireFox as fallows( after export ,save those file, import that file in new system)






1. User this option in Internet explorer.






Steps for Lotus Notes: Go to Notes folder and move "data" folder in your personal disk. after getting your new system(lotus notes installed system), put this same folder in same location.

then enter your lotus note id, use next..... finish when you start lotus notes.



SameTime chat History: Use same time transcription folder , copy and paste in new system.

and enable the chat history auto save option as fallows.


Enable this option to save sametime chat history.



SAP GUI logon PAD saplogon.ini File Steps

Loading all SAP system details in SAP log-on Pad.

1. First install the SAP GUI software in your system.
then open the options from left top. as shown below.


2. then choose configuration file, see existing(default) path of the saplogon.ini file.



Now, get your saplogon.ini file from your team.(which contains all sap information) and place(replace) it in the same location.



Then you are able to see the all SAP system details of your project.







































































2. Now load the your sap system entries in the logon pad.
















i) Open the sap gui screen.