Jobs not getting Scheduled when it is called from RFC
Hi Everyone,
I have Functional module in system1 which in turn creates a background Job, but when i call this Function module from System2 using RFC then the background job is not created. THought i debugged and the Function module on system1 is called successfully with right input parameters. M i missing anything ? Please advice
Regards,
Nikesh Kumar
Hi Chen,
Thanks for the reply. Actually the main problem is not with how the Background job is getting executed. Actually my function module schedules are job in system1 , but if the same func module is called via RFC from other system, it gets called successfully with same inputs (checked in debugging), but the background job does not get created.
Regards,
Nikesh Kumar
Similar Messages
-
Not getting values for HR_READ_SUBTYPE while calling from Webdynpro appl
Hello,
When we pass infotype,begda,endda and other required parameters and run this FM in standalone we are
getting values however when same FM is called through Webdynpro ABAP application it is not returning values.
I tried debugging and i found out that some buffer issue is there.
But still my problem is not sloved.
can anyone tell me what can be the reason?
Regards,
MayankHi Mayank,
Can you tell me how much entries you are getting in return when you run FM standalone.
there may be possiblility of huge amount of data returnning.
If u can give more details that will be great!!
Thanks -
Certain Maintenance Plan not getting scheduled in the background job
Hi Gurus,
I am facing an issue here.
A weekly background job (RISTRA20) runs every weekend and schedules the maintenance plans.
But we have noticed that some maintenance plans are not getting scheduled. i.e no orders or schedule is getting generated.
When I run IP30 manually for these plans then the schedule gets generated and orders get called.
I have checked up the background job and it is running fine.
Also, i have noticed a similarity in all these plans which are not getting scheduled. There schedule has been restarted (through IP10) at somepoint or the other.
But i don't see any direct impact of this?
Can any of you provide some help on this?? Points will be rewarded.
Thanks and regards,
Nitin SainiHi Narender,
Thanks for replying.
The message number for 'Groups don't match' is ME303.
I think this does not have anything to do with the restart as i have done further investigation.
Whenever I run IP30 with sortfield input as AS02*, i get the error as mentioned above for a certain number of maintenance plans while the remaining plans get scheduled.
If i run IP30 for any other sort fields, it runs fine and i don't encounter the error
mentioned above.
If you send me ur email address, i could forward you screen-shots of the issue. -
Issue: Not getting response when the document is having special chars
Please help following issue: Not getting response when the document is having special chars(Use any doc with special char(ex: &, $, <, >,.....) TestErrorFour.doc
Error message:
System.FormatException: Invalid length for a Base-64 char array. at
System.Convert.FromBase64String(String s) at
Summarize.Summarizer.AccumulateBroadcast(String filedata, String givenWords) in
c:\DocumentSummarizer\App_Code\Summarizer.cs:line 66
Code:
File 1:
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.Properties;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.hwpf.*;
import org.apache.poi.hwpf.extractor.*;
import com.lowagie.text.Document;
import com.lowagie.text.pdf.PRTokeniser;
import com.lowagie.text.pdf.PdfReader;
public class DocumentSummarizerClient {
static Properties loadProperties() {
Properties prop = new Properties();
try {
prop.load(DocumentSummarizerClient.class.getClassLoader().getResourceAsStream("vep.properties"));
} catch (Exception ioe) {
ioe.printStackTrace();
return prop;
public String getSummary(String fileName,String noOfWordsOrPercentage ){
String summaryInputData ="";
String summarizedData="";
String summarizerURL = loadProperties().getProperty("Summarizer.serviceURL");
try {
String fileExtension=fileName.substring(fileName.lastIndexOf(".")+1, fileName.length());
if (fileExtension.equalsIgnoreCase("doc")|| fileExtension.equalsIgnoreCase("txt")|| fileExtension.equalsIgnoreCase("pdf")) {
if (fileExtension.equalsIgnoreCase("txt")) {
BufferedReader bufferedReader = new BufferedReader(
new FileReader(fileName));
String line = null;
while ((line = bufferedReader.readLine()) != null) {
summaryInputData += line;
if(fileExtension.equalsIgnoreCase("doc")){
POIFSFileSystem fs = null;
fs = new POIFSFileSystem(new FileInputStream(fileName));
HWPFDocument doc = new HWPFDocument(fs);
WordExtractor we = new WordExtractor(doc);
String[] paragraphs = we.getParagraphText();
for( int i=0; i<paragraphs .length; i++ ) {
paragraphs[i] = paragraphs.replaceAll("\\cM?\r?\n","");
summaryInputData+= paragraphs[i];
if(fileExtension.equalsIgnoreCase("pdf")){
Document document = new Document();
document.open();
PdfReader reader = new PdfReader(fileName);
int pageCount =reader.getNumberOfPages();
for(int i=1;i<=pageCount;i++){
byte[] bytes = reader.getPageContent(i);
PRTokeniser tokenizer = new PRTokeniser(bytes);
StringBuffer buffer = new StringBuffer();
while (tokenizer.nextToken()) {
if (tokenizer.getTokenType() == PRTokeniser.TK_STRING) {
buffer.append(tokenizer.getStringValue());
summaryInputData += buffer.toString();
else{
System.out.println("This is Invalid document. Presntly we support only text,word and PDF documents ");
// String encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
String encoded=Base64Utils.base64Encode(summaryInputData.getBytes());
// encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
String parameters= "base64String="+encoded+"&noOfWordsOrPercentage="+noOfWordsOrPercentage;
summarizedData= postRequest(parameters,summarizerURL);
String slength= "<string xmlns=\"http://tempuri.org/\">";
if(summarizedData.contains("</string>")){
summarizedData= summarizedData.substring(summarizedData.indexOf(slength)+slength.length(),summarizedData.indexOf("</string>"));
summarizedData = replaceVal(summarizedData);
//System.out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?><![CDATA["+summarizedData+"]]>");
// System.out.println("Summarized data "+summarizedData);
if(summarizedData.contains("Please enter the percentage")){
summarizedData="Data given cannot be summarized further";
else{
System.out.println("Data given cannot be summarized further");
summarizedData="";
} catch (FileNotFoundException e) {
return("The File is not found \n\n"+e.toString());
} catch (IOException e) {
return("The File is already in use \n\n"+e.toString());
} catch (Exception e) {
return(e.toString());
return summarizedData;
public static String postRequest(String parameters,String webServiceURL) throws Exception{
Properties systemSettings = System.getProperties();
systemSettings.put("http.proxyHost", loadProperties().getProperty("proxyHost"));
systemSettings.put("http.proxyPort", loadProperties().getProperty("proxyPort"));
System.setProperties(systemSettings);
String responseXML = "";
try {
URL url = new URL(webServiceURL);
URLConnection connection = url.openConnection();
HttpURLConnection httpConn = (HttpURLConnection) connection;
byte[] requestXML = parameters.getBytes();
httpConn.setRequestProperty("Content-Length", String
.valueOf(requestXML.length));
httpConn.setRequestProperty("Content-Type",
"application/x-www-form-urlencoded");
httpConn.setRequestMethod("POST");
httpConn.setDoOutput(true);
httpConn.setDoInput(true);
OutputStream out = httpConn.getOutputStream();
out.write(requestXML, 0, requestXML.length);
out.close();
InputStreamReader isr = new InputStreamReader(httpConn
.getInputStream());
BufferedReader br = new BufferedReader(isr);
String temp;
String tempResponse = "";
while ((temp = br.readLine()) != null)
tempResponse = tempResponse + temp;
responseXML = tempResponse;
br.close();
isr.close();
} catch (java.net.MalformedURLException e) {
System.out
.println("Error in postRequest(): Secure Service Required");
} catch (Exception e) {
System.out.println("Error in postRequest(): " + e.getMessage());
return responseXML;
public String replaceVal(String value) {
if (value == null) {
value = "";
value = value.replace("<", "<");
value = value.replace(">", ">");
value = value.replace("&", "&");
return value;
public static void main(String[] args) {
DocumentSummarizerClient testdoc=new DocumentSummarizerClient();
System.out.println("hello");
testdoc.getSummary("C:\\working_folder\\vep\\UnitTestCases\\VEP1.0\\DocumentSummarizerTestData\\TestErrorFour.doc","100%");
Note: Use any doc with special char(ex: &, $, <, >,.....) TestErrorFour.doc
File 2:
---------public class Base64Utils {
private static byte[] mBase64EncMap, mBase64DecMap;
* Class initializer. Initializes the Base64 alphabet (specified in RFC-2045).
static {
byte[] base64Map = {
(byte)'A', (byte)'B', (byte)'C', (byte)'D', (byte)'E', (byte)'F',
(byte)'G', (byte)'H', (byte)'I', (byte)'J', (byte)'K', (byte)'L',
(byte)'M', (byte)'N', (byte)'O', (byte)'P', (byte)'Q', (byte)'R',
(byte)'S', (byte)'T', (byte)'U', (byte)'V', (byte)'W', (byte)'X',
(byte)'Y', (byte)'Z',
(byte)'a', (byte)'b', (byte)'c', (byte)'d', (byte)'e', (byte)'f',
(byte)'g', (byte)'h', (byte)'i', (byte)'j', (byte)'k', (byte)'l',
(byte)'m', (byte)'n', (byte)'o', (byte)'p', (byte)'q', (byte)'r',
(byte)'s', (byte)'t', (byte)'u', (byte)'v', (byte)'w', (byte)'x',
(byte)'y', (byte)'z',
(byte)'0', (byte)'1', (byte)'2', (byte)'3', (byte)'4', (byte)'5',
(byte)'6', (byte)'7', (byte)'8', (byte)'9', (byte)'+', (byte)'/'};
mBase64EncMap = base64Map;
mBase64DecMap = new byte[128];
for (int i=0; i<mBase64EncMap.length; i++)
mBase64DecMap[mBase64EncMap[i]] = (byte) i;
* This class isn't meant to be instantiated.
private Base64Utils() {
* Encodes the given byte[] using the Base64-encoding,
* as specified in RFC-2045 (Section 6.8).
* @param aData the data to be encoded
* @return the Base64-encoded <var>aData</var>
* @exception IllegalArgumentException if NULL or empty array is passed
public static String base64Encode(byte[] aData) {
if ((aData == null) || (aData.length == 0))
throw new IllegalArgumentException("Can not encode NULL or empty byte array.");
byte encodedBuf[] = new byte[((aData.length+2)/3)*4];
// 3-byte to 4-byte conversion
int srcIndex, destIndex;
for (srcIndex=0, destIndex=0; srcIndex < aData.length-2; srcIndex += 3) {
encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex] >>> 2) & 077];
encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+1] >>> 4) & 017 |
(aData[srcIndex] << 4) & 077];
encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+2] >>> 6) & 003 |
(aData[srcIndex+1] << 2) & 077];
encodedBuf[destIndex++] = mBase64EncMap[aData[srcIndex+2] & 077];
// Convert the last 1 or 2 bytes
if (srcIndex < aData.length) {
encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex] >>> 2) & 077];
if (srcIndex < aData.length-1) {
encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+1] >>> 4) & 017 |
(aData[srcIndex] << 4) & 077];
encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+1] << 2) & 077];
else {
encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex] << 4) & 077];
// Add padding to the end of encoded data
while (destIndex < encodedBuf.length) {
encodedBuf[destIndex] = (byte) '=';
destIndex++;
String result = new String(encodedBuf);
return result;
* Decodes the given Base64-encoded data,
* as specified in RFC-2045 (Section 6.8).
* @param aData the Base64-encoded aData.
* @return the decoded <var>aData</var>.
* @exception IllegalArgumentException if NULL or empty data is passed
public static byte[] base64Decode(String aData) {
if ((aData == null) || (aData.length() == 0))
throw new IllegalArgumentException("Can not decode NULL or empty string.");
byte[] data = aData.getBytes();
// Skip padding from the end of encoded data
int tail = data.length;
while (data[tail-1] == '=')
tail--;
byte decodedBuf[] = new byte[tail - data.length/4];
// ASCII-printable to 0-63 conversion
for (int i = 0; i < data.length; i++)
data[i] = mBase64DecMap[data[i]];
// 4-byte to 3-byte conversion
int srcIndex, destIndex;
for (srcIndex = 0, destIndex=0; destIndex < decodedBuf.length-2;
srcIndex += 4, destIndex += 3) {
decodedBuf[destIndex] = (byte) ( ((data[srcIndex] << 2) & 255) |
((data[srcIndex+1] >>> 4) & 003) );
decodedBuf[destIndex+1] = (byte) ( ((data[srcIndex+1] << 4) & 255) |
((data[srcIndex+2] >>> 2) & 017) );
decodedBuf[destIndex+2] = (byte) ( ((data[srcIndex+2] << 6) & 255) |
(data[srcIndex+3] & 077) );
// Handle last 1 or 2 bytes
if (destIndex < decodedBuf.length)
decodedBuf[destIndex] = (byte) ( ((data[srcIndex] << 2) & 255) |
((data[srcIndex+1] >>> 4) & 003) );
if (++destIndex < decodedBuf.length)
decodedBuf[destIndex] = (byte) ( ((data[srcIndex+1] << 4) & 255) |
((data[srcIndex+2] >>> 2) & 017) );
return decodedBuf;
issue 2: Exception when passing 2MB .txt file
Steps to reproduce:
Call getSummary() with 2MB .txt file
Actual:
The following exception has occured:
1. Error in postRequest(): Unexpected end of file from server
java.lang.NullPointerException
Please provide your precious feedback/suggestions.
Thanks in advance…..
Edited by: EJP on 15/03/2011 16:52: added code tags. Please use them. Code is unreadable otherwise.Thanks for your response….
This is enhancement project and some one develops long back.
Regarding point (b) You should be using the java.net.URLEncoder to encode URL parameters, not a base64 encoder.
DocumentSummarizerClient.java I am using base64
Ex:
// String encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
String encoded=Base64Utils.base64Encode(summaryInputData.getBytes());
// encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
String parameters= "base64String="+encoded+"&noOfWordsOrPercentage="+noOfWordsOrPercentage;
summarizedData= postRequest(parameters,summarizerURL);
String slength= "<string xmlns=\"http://tempuri.org/\">";
if(summarizedData.contains("</string>")){
summarizedData= summarizedData.substring(summarizedData.indexOf(slength)+slength.length(),summarizedData.indexOf("</string>"));
summarizedData = replaceVal(summarizedData);
//System.out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?><![CDATA["+summarizedData+"]]>");
System.out.println("Summarized data "+summarizedData);
if(summarizedData.contains("Please enter the percentage")){
summarizedData="Data given cannot be summarized further";
Above specific please I need to modify to resolve above issue.
Could you please suggest me what changes I need to do.
Waiting for positive response. -
Service desk-Email Triggering Action is not getting scheduled
Hi,
I have scheduled an action wherein a mail will be triggered to reporter whenever the status changes.
But this is not happening inspite of all the proper settings maintained in Conditions for Actions.
This thing is working properly in my Development system but not working in Production system
I have tried all the possibilities but still not able to reach any solution.
Could you please suggest me something.?
Thanks
RituHi,
I checked SCOT settings too.
The action is not getting scheduled only so email triggering will not take place.
I cant see the action in Transaction Data of support message.
Please suggest your solution
Thanks
Ritu -
Print program is not getting triggered when saving the application
Hi all,
My requirement is when i save the invoice using VF01 the print program should get triggered.
The print program is not getting triggered when saving the application even when i have configured the outtype and have attached the print program.
The setting "send immediately (when saving application)" is also checked.
I need to configure it for VF01 transaction.
The error message displayed was " please maintain output device in master data".
Regards,
UmeshHi Umesh
Please check if you have missed any of the following:
1. Defining Access Sequence(can use existing).
2. Defining Output Condition Type(can use existing). - Assigning the Driver Program and Form in processing routine.
3. Output Determination Procedure
4. Assign Output Procedure to Billing Types
Kind Regards
Eswar -
Profit Center Document not getting generated when direct FI doc is posted
Dear Experts,
Profit Center Document not getting generated when direct FI doc is posted. However CO Document is generated for Line Item 1 mentioned below.
Accounting Entry
Line 1 -Debit Expense ( Cost Center) 1000
Line 2 - Credit Bank 1000
Advance Thanks
SanjaiHi,
Pls check profit center configuration.... Some config might have missed.....
Use the t.code 1KE1 For analysing the profit center configuration.
Regards,
RAM
Edited by: Ram000 on Oct 7, 2011 10:45 AM -
How do I save photos that have been synced to my Ipad2, so that they do not get deleted when I sync with a different photo foder on my computer (Pc win7).
Place that first folder of photos that you synced to the iPad within the main folder of photos that you sync from and select them to sync again. You can place any number of subfolders within the main folder that you sync from and select those folders to sync. Just "tick"(select) the folders in the photos tab in iTunes.
iOS and iPod: Syncing photos using iTunes -
When i make call from iphone,loudspeaker is being enabled automatically and not able to hear any sound ..
And some time it's worked...OMG.....this very tiny hole located next to the headset jack........I suffered for the same issue around 20 days after purchasing my iPhone 4S. Even I visit the apple store too, they suggested to talk with apple online.....just before going to apple, i was reading "iPhone: Hardware troubleshooting" (http://support.apple.com/kb/TS2802) and at the very first line, i found "Make sure that nothing is blocking the top microphone (located next to the headset jack)." and this located next to the headset jack solved the problem completely for sound in vidio as well as sound with calling speaker phone.....Actually, I purchased a plastic cover (like screen protector type) that blocked this small hole (microphone hole i think) and the problem was because of this...I remember on the first day i talk with speacker phone (nothing on iPhone at that time) and it was working...
No need to restore or hard reset anything...i was fearing i'll lost everything if I hard reset my iPhone that took 5-10 to build my iPhone as I like apps, music, vidio on it.... -
When i make call from iphone,loudspeaker is being enabled automatically and not able to hear any sound ..
reset all settings
settings-general-reset-reset all settings
now reconnect to wifi
settings- wifi- click network name- enter password - join
if issue persists back up and restore as new via iTunes
Peace, Clyde -
0PS_C02 update rules are not getting activated when i install 4rm BI conten
Hi All,
In BI Dev. sys for PS module- Project System - Dates 0PS_C02 cube- update rules are not getting activated when i install from the business content and its giving the error " IC=0PS_C02 IS=0PS_DAT_PRJ error when checking the update rules Message no. RSAU461" .
I deleted the inactive update rules(6 nos) and installed again from BI Content, then the same issue raising.
Can anyone help me out as i stuck up with this to move to go-live.
Thanks,
SakaliHi Vassu,
here are some of the reasons for getting error in update rules activation.
1. Check the formula or routines that are used in Update rules and check is there any syntax errors.
2. check whether the mappings are correct or not.
3. check the info objects which ur used for mapping are in active or not..
(or) if the info object may be deleted which ur using for mappings.
Thanks
Sai Chand. -
I tried syncing entire music library to ipod. some albums were skipped. tried clicking and dragging but device does not get highlighted when i drag the album to the device. How can I sync album to ipod? the album is imported and not purchased thru itunes store.
Does it play in iTunes on the computer? What is the format of the album?
Right click and select Get Info. Look under File in iTunes 12 -
My wife and I upgraded to iOS seven approximately two weeks ago. But now we do not get alerts when we have voicemails waiting. Also we do not have visual voicemail.... My daughter upgraded to iOS 7 around the same time. And has no problems with either settings. We both upgraded to 7.0.2 approximately one week ago. Did that cause everything to go awry? What should do?
Hi there volpone1a,
You may want to double check the notification settings on your device. Take a look at the article below for more information.
iOS: Understanding notifications
http://support.apple.com/kb/HT3576
-Griff W. -
Workflow initiator does not get workitems when PR Approve rejects.
Hi,
Workflow initiators does not get workitems when PR Approve rejects.Is there any thing missing in that .
Please let me know .
Regards,
Gurprit Bhatia
Edited by: GURPRIT BHATIA on Jan 28, 2009 8:38 AMHi GB,
In order that the WF initiator gets workitems on PR rejection, you need to assign method 'InfoReleaseRejected' (BO BUS2009) to a task in the PR rejection flow of your WF. If this is done, then check if you have assigned WF Initiator as the Agent in that task.
Hope this helps.
Thanks,
Ajay -
Just upgraded to MacBook Pro running 10.8.4. Want to convert old movie files to put in Itunes. Can't upgrade QT player preinstalled, so downloaded QT Player 7 and purchased QTPlayer 7 Pro registration code. Can not get it to upgrade. Called Apple 2x. If you have a fix, you can email me direct at [email protected]
Want to convert old movie files to put in Itunes.
What does "old movies" mean to you? File type, audio and/or video compression format(s)?
Can't upgrade QT player preinstalled, so downloaded QT Player 7 and purchased QTPlayer 7 Pro registration code. Can not get it to upgrade.
Did you follow the instructions found here?
If you have a fix, you can email me direct at [email protected]
To which fix do you refer? Activatng QT 7 Pro or converting the files? Even with QT 7 Pro activated you may need to modify your QT codec component configuration depending on the file type and compression formats used to encode your "old movies." There may be many different problems here with each having one or more "fixes." Please try to be more specific regarding your questions. Converting a muxed VOB MPEG2/AC3 file would be very different different from converting an AVI DivX5/MP3 file depending on which application you are attempting to use.
Maybe you are looking for
-
How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done. Thanks Linda
-
Cant connect to OSX server over network in recovery mode
Hi guys. First of all, thanks for any help you can give me. I am running osx server on a mavericks mac mini on a home network. Attached to it I have a 1tb hard drive to which all the macs in my house use time machine to back up over my network and t
-
I bought app in App Store on my Mac Book Pro and now it won't let me run
I bought Barcody Express on my Mac Book Pro in the App Store while up in Seattle, WA and it ran fine at first. 2 weeks later I'm back in L.A. and I get a box asking me to verify my apple ID because this is not the computer on which I bought it and it
-
Hi, When i created an order and saved, the Dynamic credit check failed and the schedule lines were not confirmed. So far it is Ok but why was I not able to see this credit blocked sales order in VKM1? When i ran VKM3 with the sales order number, i wa
-
Classic & EC - PO & other purchasing documents number range
Hi SRM Gurus, Can any one please explain me more precisely about number ranges in SRM & MM. For classical scenario, we will define number ranges for PO & other purchasing documents in SRM as internal number ranges and in MM as external number ranges.