JCoDestination Problem: JCO_ERROR_RESOURCE: Destination does not exist
Hello Experts,
I followed the JCo3 tutorial of accessing backend ABAP system.
I implemented the following code:
File configuration = new File(JCO_DESTINATION_APP +".jcoDestination");
if(!configuration.exists() || updateprovider) {
Properties properties = new Properties();
properties.setProperty(DestinationDataProvider.JCO_ASHOST, Configuration.getInstance().ashost);
properties.setProperty(DestinationDataProvider.JCO_SYSNR, Configuration.getInstance().sysnr);
properties.setProperty(DestinationDataProvider.JCO_CLIENT, Configuration.getInstance().client);
properties.setProperty(DestinationDataProvider.JCO_USER, Configuration.getInstance().user);
properties.setProperty(DestinationDataProvider.JCO_PASSWD, Configuration.getInstance().passwd);
properties.setProperty(DestinationDataProvider.JCO_LANG, Configuration.getInstance().lang);
properties.setProperty(DestinationDataProvider.JCO_POOL_CAPACITY, "" + Configuration.getInstance().connections);
properties.setProperty(DestinationDataProvider.JCO_PEAK_LIMIT, "" + Configuration.getInstance().connections);
FileOutputStream fos = new FileOutputStream(configuration, false);
properties.store(fos, JCO_DESTINATION_APP);
fos.close();
When I execute the following code:
this.getDestination().getAttributes()
I get the following error:
com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination JCO_DESTINATION_APP does not exist
at com.sap.conn.jco.rt.DefaultDestinationManager.update(DefaultDestinationManager.java:163)
at com.sap.conn.jco.rt.DefaultDestinationManager.searchDestination(DefaultDestinationManager.java:292)
at com.sap.conn.jco.rt.DefaultDestinationManager.getDestinationInstance(DefaultDestinationManager.java:90)
at com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.java:61)
at com.exz.app.common.helper.IntegrationPlatformAccessor.getDestination(IntegrationPlatformAccessor.java:83)
at com.exz.app.common.helper.IntegrationPlatformAccessor.<init>(IntegrationPlatformAccessor.java:67)
at com.exz.app.common.helper.IntegrationPlatformAccessor.getInstance(IntegrationPlatformAccessor.java:32)
at com.exz.app.interfacemng.services.Template_WebService.<init>(Template_WebService.java:34)
at com.exz.app.interfacemng.services.ConfigurationScenarioServiceClient.<init>( ...
What am I missing?
Regards.
As a starter it might be best to take try out the examples that ship with the JCo3 distribution. I cannot comment much on your code, as it's an excerpt and doesn't show everything. E.g. I have no clue what the line this.getDestination().getAttributes() means; usually you retrieve destinations via the class JCoDestinationManager and there you always have to at least provide the name of the destination.
So let me give some generic comments instead:
<ul style="list-style:circle">
<li>Properties for destinations can be returned via a class that implements the interface DestinationDataProvider; you can register your own implementation (once) via static method Environment.registerDestinationDataProvider().</li>
<li>SAP ships the JCo with a generic file handler for providing destination attributes: It basically searches in the current directory (i.e. from where you started your application) for client destinations with the given name and extension ".jcoDestination" (server destinations use extension ".jcoServer"). As far as I remember you can also change the directory where those destination property files are searched for by setting System property "jco.destinations.dir".</li>
<li>I strongly recommend registering your own DestinationDataProvider (or ServerDataProvider) and so does SAP; this is especially true if you get your properties from somewhere else (as it seems to be in your case) or want some specific processing (e.g. use encrypted passwords in your properties that you decrypt upon loading).</li>
<li>For troubleshooting your existing coding I'd verify that you did actually create the file with the properties and that the file name (without the extension) matches the name that you use when trying to retrieve the destination.</li>
</ul>
Cheers, harald
Similar Messages
-
Destination does not exist (help please)
Background:
- Using Flex Builder 3 plugin for Eclipse
- Downloaded latest BlazeDS release build
- Running Tomcat 6.0.16
=======
First I want to note the samples that come with BlazeDS run
absolutely fine.
So I created a new project in Flex Builder 3. I'm just trying
to get something simple working at first so my one mxml file is as
follows (I stripped out everything except the code in question):
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:RemoteObject id="ro"
destination="enrollmentService"/>
<mx:DataGrid
dataProvider="{ro.getEnrollmentList.lastResult}" width="100%"
height="100%"/>
<mx:Button label="Get Data"
click="ro.getEnrollmentList()"/>
</mx:Application>
=====
I created and EnrollmentService class and I'm sure it's
getting compiled to WEB-INF/class...I see .class file there.
I added the flex folder to the WEB-INF folder. My
remoting-config.xml is as follows (because of problems I specified
a default and repeated it to be sure):
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object"
class="flex.messaging.services.remoting.adapters.JavaAdapter"
default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="enrollmentService">
<properties>
<source>test.service.EnrollmentService</source>
</properties>
<channels>
<channel ref="my-amf"/>
</channels>
</destination>
</service>
My services-config has the following channel defined:
<channel-definition id="my-amf"
class="mx.messaging.channels.AMFChannel">
<endpoint url="
http://{server.name}:{server.port}/{context.root}/messagebroker/amf"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
</properties>
</channel-definition>
My web.xml is a follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN" "
http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>RemoteTest</display-name>
<context-param>
<param-name>flex.class.path</param-name>
<param-value>/WEB-INF/flex/hotfixes</param-value>
</context-param>
<!-- Http Flex Session attribute and binding listener
support -->
<listener>
<listener-class>flex.messaging.HttpFlexSession</listener-class>
</listener>
<!-- MessageBroker Servlet -->
<servlet>
<servlet-name>MessageBrokerServlet</servlet-name>
<display-name>MessageBrokerServlet</display-name>
<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
<init-param>
<param-name>services.configuration.file</param-name>
<param-value>/WEB-INF/flex/services-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MessageBrokerServlet</servlet-name>
<url-pattern>/messagebroker/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
</web-app>
====
So I start Tomcat from Eclipse and run the app by clicking
the Run button in Eclipse. The app comes up fine, but when I press
the "Get Data" button. I get the error message below. For the life
of me I don't understand why. I clearly have a default channel AND
I have specified a channel. This is so frustrating...any help would
be greatly appreciate.
====
[RPC Fault faultString="[MessagingError message='Destination
'enrollmentService' either does not exist or the destination has no
channels defined (and the application does not define any default
channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'enrollmentService'"]
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\ src\mx\rpc\AbstractInvoker.as:257
at mx.rpc.remoting.mxml::Operation/
http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\ src\mx\rpc\remoting\mxml\Operation.as:197
at
mx.rpc.remoting::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remotin g\Operation.as:113]
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at
mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\re moting\mxml\Operation.as:170]
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc::AbstractService/
http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev\3.0.x\frameworks \projects\rpc\src\mx\rpc\AbstractService.as:285
at
FlexJ2EE_test/___FlexJ2EE_test_Button1_click()[C:\Prj\workspace\RemoteTest\flex_src\Remot eTest.mxml:36]While creating a Flex project using Flex builder, did you
select the server type for your project? If you did not select a
server type for your flex project, did you configure your compiler
to include your services-config.xml using the -services argument?
In your project's compiler settings, add -services
"configurationfiles/services-config.xml" argument to the compiler
arguments. The path should point to your services-config.xml.
If the above mentioned steps were completed and still your
facing problem, can you please try running "clean" on your project.
Hope this helps. -
System Refresh problem - request/task does not exist
I have a problem after system refresh, and when I am trying to import users and roles, I get the message - request/task XXXXXXX does not exist.
Data/cofile are present.
Can someone help me please ?
Thanks in advance,
JordanI got it ... in SCC4, the client role must have been set to TEST instead of PRODUCTION, since the refresh is on Quality.
-
Problem - STD Task does not exist in ECC 6.0
Hi All,
While looking for SAP standard Workflows in ECC 6.0, I am able to go to
Workflow --> Activiy --> Task, but after that I am not able to go inside the task and see the properties/ specifications of the task, its not giving any error msg, but its not navigating to the task screen.
I have tried other way also, i have copied the task number and pasted it in task with task type as "standard task" in PFTC, n tried to display it , but it is throws the message as "task does not exist".
Same thing happens if I copy any workflow number , paste it in task with task type as "Workflow Template" n try to display in PFTC.
Because of this problem I am not able to use any standard task in my zworkflow.
It will be great if someone can tell the possible cause and solution of this problem.
Thanks
PriyaHey Priya,
Its standard Leave workflow's Standard Task, Then as Mark and others said, please check the authorization stuff. Also please remember not to give TS when you select the Standard Task.
Regards
<i><b>Raja Sekhar</b></i> -
Squirrelmail problem - data dir does not exist [solved]
After install package, configuration (conf.pl) and log in I see error:
Could not create initial preference file!
/var/lib/squirrelmail/data/ should be writable by user nobody
Please contact your system administrator and report this error.
When I run http://mydomain/squirrelmail/src/configtest.php I see:
FATAL ERROR: Data dir (/var/lib/squirrelmail/data/) does not exist!
Of course /var/lib/squirrelmail/data/ exists (created by pacman) and its is owned by nobody.
Problem is independent of /var/lib/squirrelmail/data/ permission.
Last edited by qwak (2007-06-18 16:20:50)qwak wrote:
Soved.
It was php security issue and some changes in http (or php) configuration was required.
See: http://pl2.php.net/features.safe-mode
I just set:
php_admin_value open_basedir /
in my mail virtual host section.
I thing that squirrelmail package should include .../extra/http-squirrelmail.conf apache configuration file with required configuration or some info should by typed to user when squirrel package is installed.
I agree! I just ran into this same problem! -
Punch Out Catalog problem business patner does not exists
Dear experts,
We configured punch out catalogs. When we check out the portal pages has the error "business patner does not exists".
How do i resolve this. How to create the business partner on SRM system to get rid of this error.
Thanks,
vikasHi Masa,
I am enclosing the OCI Parameters returned from the external catalog.
NEW_ITEM-shoppingcartID[1] SH95
NEW_ITEM-DESCRIPTION[1] DISPENSER,FLAG&POST-IT
NEW_ITEM-MATGROUP[1]
NEW_ITEM-EXT_CATEGORY[1] 44111501
NEW_ITEM-EXT_SCHEMA_TYPE[1] unspsc
NEW_ITEM-MATNR[1]
NEW_ITEM-QUANTITY[1] 1.000
NEW_ITEM-UNIT[1] EA
NEW_ITEM-PRICE[1] 6.64
NEW_ITEM-PRICEUNIT[1] 1
NEW_ITEM-CURRENCY[1] USD
NEW_ITEM-LEADTIME[1] 1
NEW_ITEM-VENDOR[1] 1000000000
NEW_ITEM-VENDORMAT[1] A2C-313D
NEW_ITEM-MANUFACTCODE[1] MMM-C
NEW_ITEM-MANUFACTMAT[1] C-313D
NEW_ITEM-CONTRACT[1]
NEW_ITEM-CONTRACTITEM[1]
NEW_ITEM-EXT_PRODUCT_ID[1] A2C-313D
NEW_ITEM-LONGTEXT_:132 DISPENSER,FLAG&POST-IT
NEW_ITEM-SERVICE[1]
Once the external catalog returns to SRM it is throwing Null Value Exception. Is this exception is in regards to Material Group or something missing in the configuration.
Error Message:
The following error text was processed in the system : Access via 'NULL' object reference not possible.
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: /SAPSRM/IF_CLL_MAPPER~REFRESH of program /SAPSRM/CL_CH_WD_DOTM_SC_I_BD=CP
Method: WDDOMODIFYVIEW of program /1BCWDY/IU0RHDVCLMQ4J466CPJC==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/IU0RHDVCLMQ4J466CPJC==CP
Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP
Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP
Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Please let me know how to fix this.
Thanks,
Vikas -
MIGO Posting problem show material does not exist
hi,
in migo i am not able to process it show me the following error message :-
(Material M11 PLN1 S11 does not exist
Message no. M7006
Diagnosis
For material M11, no material master data exists in plant PLN1, storage location S11.
Procedure
Make sure your entries are correct.
If your entries are correct, then storage location data does not yet exist for the material.
Storage location data is created when you maintain the Storage view for the material or use the 'Enter Storage Locations' function in the material master menu or post the first goods receipt (provided that automatic creation of storage location data is allowed for the given plant and movement type).
Please help me out
Kind regard
maashishHi,
Check Material is maintain your plant and storage location with MM03.
Enter MM03 t-code, enter material code and press enter then check material is maintain your plant and storage location.
If no than first maintain it with below mention detail.
Enter MM01 - For Material Master creation.
Enter your material M11, Plant - PLN1, Storage location - S11.
And maintain other required detail.
Then check with migo.
Regards,
Mahesh Wagh -
How to avoid this problem "tablespace 'USERS' does not exist"
I dont want to create all source tablespaces in target.
I have given unlimited tablespace priv to user.Still I get this error
IMP-00003: ORACLE error 959 encountered
ORA-00959: tablespace 'USERS' does not existThe situation, I understand is as follows:
1. An original export file contains references to the USERS tablespace
2. You want to import it, but you don't want to create the USERS tablespace
3. You create a user and assign USERS as its default tablespace, even though you don't have it created and you don't want to create it.
If you assign a default tablespace to a user, first thing, make sure this tablespace exists, when import is performed if tablespace defined at import file doesn't exist, then import will use the default user's tablespace, in this case the USERS tablespace.
So, if you want to avoid this behaviour, then assign the user an existing tablespace when defining the default tablespace for this user.
Once corrected, retry import.
~ Madrid -
Index does not exist in database system DB6
Hi,
Problem : <b>Index does not exist in database system DB6</b>.
I need further explanation why when i transport index from Development Client to Production Client the index is active but does not exist in database system DB6.
So when the cases is occurs i must re-create the index again in Production Level...
Can someone give me some ideas?
Thanks.Hi,
it might be due to some BUG in RDBMS...
First Check the Secondary index in TEST system
Look at the Transport Number in DEV system, If this is having error, then it will show you the error details also,
If that not moved Properly then you need to create another request for the INDEX and move it again
See the threads with similar problem...
Warning: Index does not exist in database system MSSQL
Index does not exist in database system ORACLE??????
Re creation of database index
Hope it will solve your problem...
<b>Reward Points if useful</b>
Thanks & Regards
ilesh 24x7 -
Hello,
I ask you for advice (assistance). A week ago I re-installed the PC and installed to the computer again Photoshop CS5. Everything works for me except for the function of storing images for web by creating events. Called me constantly destination folder does not exist. The problem I had before. I ask you this advice on how to solve this problem.
Thanks for the advicehi,
i don't know if i integrate your code correctly, but it doens't work for me. I presently create skin for client and this plugin is really usefull for me.
i use win7 64bit home edition, and photoshop cs5
there is how i integrate this :
// EDIT ALEX GRENIER
function getPreferencesFolder() {
var userData = Folder.userData;
if (!userData || !userData.exists) {
userData = Folder("~");
var folder = new Folder(userData + "/xtools");
if (!folder.exists) {
folder.create();
return folder;
function exportChildren(dupObj, orgObj, dupDocRef, folder) {
if (getCSVersion() >= 10) // CS3 Only
// Create assets folder in Flex app's directory
// var tempFolder;
// tempFolder = new Folder (folder + "/assets/");
// tempFolder.create();
// EDIT ALEX GRENIER
var tempFolder;
tempFolder = getPreferencesFolder();
i put the code creating the folder in comment and put your code in place, i also put your function before the function creating file.
With the base code (without modification) photoshop is able to create my folder assets, but when it try to export the png, it export nothing, so i have a empty folder.
thank you,
Alex -
The following error pop's up as an [OK] dialogue box after logging in the iMac,
There was a problem connecting to the server "Time Capsule".
The share does not exist on the server. Please check the share name, and then try again."
As it happens, a connection to the Time Capsule is established usually, anyway. On occasion it doesn't.
I have a Volume, Data, on the capsule, which similarly, usually mounts, but occassionally doesn't, with access permissions denied.
Any suggestions on how begin to work out how to achieve networking seamlesness?First, restart the Time Capsule by disconnecting the power adapter and reconnecting it. If other devices on the network can see it, you can skip this step.
From the menu bar, select
▹ System Preferences ▹ Network
Click the lock icon in the lower left corner of the window and authenticate to unlock the settings, if necessary. Click the Advanced button, then select the TCP/IP tab in the sheet that drops down. Click Renew DHCP lease.
Try again to back up.
If you still can't, open the Time Machine preference pane and delete the TC from the list of backup destinations. You may have to unlock the settings by clicking the lock icon in order to do this. Then add it back. -
The problem
I am migrating a mail server from 10.5 to 10.6 (as the first step to moving to 10.8).
I'm trying to migrate mail from Cyrus to Dovecot, using the command migrate_mail_data.pl but I keep getting the error:
Error: cvt_cyrusdb does not exist in: .
Background
An example of how to use the command is at:
http://www.opensource.apple.com/source/dovecot/dovecot-239/dovecot.Config/migrat e_mail_data.pl
Example: migrate_mail_data.pl --cyrusBin "/Volumes/Tiger/usr/bin/cyrus/bin" --database "/Volumes/Tiger/var/imap" --sourceSpool "/Volumes/Tiger/var/spool/imap" --targetSpool "/Library/Server/Mail/Data/mail "
So, the syntax is:
sudo [location of migrate_mail_data.pl command] --moveMail 0 --cyrusbin "[location of cvt_cyrusdb binary]" -- database "[location of original mail database] "--sourceSpool "[location of original spool files]" --targetSpool "[location of destination files]"
Locating my files
Locate all of my files:
sudo find / -name migrate_mail_data.pl
/usr/libexec/dovecot/migrate_mail_data.pl
sudo find / -name cvt_cyrusdb
/usr/bin/cyrus/bin/cvt_cyrusdb
--database files are at the default location:
/private/var/imap
--sourceSpool files are at the default location:
/private/var/spool/imap
--targetSpool is set for:
"Volumes/Iomega1TB/121014/121005Dovecot/mail"
What I've tried
So, I've tried the following commands (and many other variations!):
sudo /usr/libexec/dovecot/migrate_mail_data.pl --moveMail 0 --cyrusbin "/usr/bin/cyrus/bin" -- database "/var/imap" --sourceSpool "/var/spool/imap" --targetSpool "Volumes/Iomega1TB/121014/121005Dovecot/mail"
sudo /usr/libexec/dovecot/migrate_mail_data.pl --moveMail 0 --cyrusbin "/usr/bin/cyrus/bin/" -- database "/var/imap/" --sourceSpool "/var/spool/imap/" --targetSpool "Volumes/Iomega1TB/121014/121005Dovecot/mail/"
sudo /usr/libexec/dovecot/migrate_mail_data.pl --moveMail 0 --cyrusbin /usr/bin/cyrus/bin/ -- database /var/imap/ --sourceSpool /var/spool/imap/ --targetSpool "Volumes/Iomega1TB/121014/121005Dovecot/mail/"
sudo /usr/libexec/dovecot/migrate_mail_data.pl --moveMail 0 --cyrusbin /usr/bin/cyrus/bin -- database /var/imap --sourceSpool /var/spool/imap --targetSpool "Volumes/Iomega1TB/121014/121005Dovecot/mail/"
All give me the same error:
Error: cvt_cyrusdb does not exist in: .
Interpretation
The error message tells me (perhaps I'm misunderstanding!) that there is a problem with this part of the command:
--cyrusbin "/usr/bin/cyrus/bin"
because that's what defines the path to cvt_cyrusdb
But 'Find' has told me the location of that cvt_cyrusdb command and I can see it in the GUI, too!
Help!
What am I doing wrong?
With thanks in anticipation,
KevinThanks for your advice, MrHoffman.
I was trying to avoid taking the mail server down for more than a few minutes so wanted to:
a. clone and migrate the server configuration to the new machine
b. take server offline
c. copy data to new machine and convert it from Cyrus to Dovecot
d. take server online
Due to the problem with converting the data, it looks like my only option will be to take the mail server down for some hours while I perform all of those operations.
I was really hoping that there might be a simple answer to invoking the cvt_cyrusdb command!
Can anyone tell me how I might fix that?
Kevin -
Problem : Spool Request 0 does not exist ..
Hi, I have a report to be converted to PDF format and then download the pdf as a local file. The code are as below.
My problem is each time i execute my program, it will show me a message saying "Spool request 0 does not exist". Then i wil have to delete that particular code (the code below), activate the program and then copy and paste back the code (the code below from elsewhere) and activate it again. The code i copied is exactly the same, nothing is changed. But i dont want to practice this method everytime i execute my program.
What are the cause to this problem and how should i solve it ? Please advise me..
Thanks.
Extracted Code ****
*& Form print_pdf
FORM print_pdf .
STRUCTURES
DATA: mstr_print_parms LIKE pri_params,
mc_valid(1) TYPE c,
mi_bytecount TYPE i,
mi_length TYPE i,
mi_rqident LIKE tsp01-rqident.
INTERNAL TABLES
DATA: mtab_pdf LIKE tline OCCURS 0 WITH HEADER LINE,
mc_filename LIKE rlgrap-filename.
CONCATENATE 'c:\EEOReport-' sy-datum '_' sy-uzeit '.pdf' INTO mc_filename.
Setup the Print Parmaters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = space
copies = '1'
list_name = space
list_text = space
immediately = space
release = space
new_list_id = 'X'
expiration = '1'
line_size = 132
line_count = 65
layout = 'X_65_132'
sap_cover_page = 'X'
receiver = 'SAP*'
department = ''
no_dialog = 'X'
IMPORTING
out_parameters = mstr_print_parms
valid = mc_valid.
IF mc_valid <> space.
NEW-PAGE PRINT ON PARAMETERS mstr_print_parms NO DIALOG.
NEW-PAGE PRINT OFF.
ENDIF .
Make sure that a printer destination has been set up
If this is not done the PDF function module ABENDS
IF mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LOCL'.
ENDIF.
Explicitly set line width, and output format so that
the PDF conversion comes out OK
mstr_print_parms-linsz = 132.
mstr_print_parms-paart = 'X_65_132'
Find out what the spool number is that was just created
PERFORM get_spool_number USING sy-repid
sy-uname
CHANGING mi_rqident.
Convert Spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
IMPORTING
pdf_bytecount = mi_bytecount
TABLES
pdf = mtab_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CALL FUNCTION 'DOWNLOAD'
EXPORTING
bin_filesize = mi_bytecount
filename = mc_filename
filetype = 'BIN'
IMPORTING
act_filename = mc_filename
TABLES
data_tab = mtab_pdf.
ENDFORM. " print_pdf
*& Form get_spool_number
FORM get_spool_number USING P_SY_REPID
P_SY_UNAME
CHANGING P_MI_RQIDENT.
DATA: lc_rq2name LIKE tsp01-rq2name.
SELECT * FROM tsp01 WHERE rq2name = lc_rq2name
ORDER BY rqcretime DESCENDING.
P_MI_RQIDENT = tsp01-rqident.
EXIT.
ENDSELECT.
IF sy-subrc NE 0.
CLEAR P_MI_RQIDENT.
ENDIF.
ENDFORM. " get_spool_numberHi.. i've added this line
submit (sy-repid) to sap-spool without spool dynpro
spool PARAMETERS mstr_print_parms
and return.
added before
*-- Find out what the spool number is that was just created
perform get_spool_number using sy-repid
sy-uname
It will keep going back to my selection-screen unless i click the back button. when i click on the back button it will only convert the pdf file and it can be converted succesfully. Is there any way where i can modify the code so that it wont return to the selection-screen again and again when i click one execute ??
Please assist... i need this urgently.. thanks -
Java communication error - RFC destination NOT_CONFIGURED does not exist
Hello,
We are facing problem when sending reports(BEx Quert) through broadcasting to the users. We are getting the error "Java communication error RFC destination NOT_CONFIGURED does not exist" in the Log Display (Tcode: RSRD_ADMIN).
In the broadcasting setting, if we select variable values in the tab "General Precalculation" then we can able to send the report to user, instead of selecting variable values, if we use the option "User Specific" check box in the tab Receipient(s) (which will take selection from the role authorizations defined in the respective user roles), then we are getting the above error.
Recently we have upgraded suppor package, please find the system details below
P_BASIS - SAPKB70025
PI_BASIS - SAPKIPYM12
SAP_BW - SAPKW70027
Java - Support Package 25
We didn't change any roles and authorizations recently, just upgraded to latest SP. Can anyone suggest if any steps or checks need to be perfomed after applying these SP or missing anything?
Thanks in advance
Regards,
VenkateshHi,
This is configuration issue. Please check the configuration between BW and EP below link:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0a5216a-349c-2a10-9baf-9d4797349f6a?QuickLink=index&overridelayout=true
Thanks,
Venkat -
RFC destination P11TPMREPL does not exist.
Hi All,
We are having inbound qRFC from CRM system to ECC R/3 Quality system . The problem which I am facing is all the qRFC from CRM to ECC R/3 going into 'CPICERR' error. The error message say 'RFC destination P11TPMREPL does not exist.' .
We are receiving this error in our Quality system and the 'P11TPMREPL' is the production RFC destination.
I am not getting why the inbound qRFC from CRM to our Quality system is looking for production 'P11TPMREPL ' destination.
Is anyone having idea; what is going wrong and where do I need to for RFC settings.
Thanks.
ShilpaSorry,
In my system IDOC got the same problem.
I thought yours also same problem.
There is no queue configuration, since this is a logical queue. There are no separate tables for the individual queues. For an R/3 system, there is only one table for the send queues. All entries for queues of all participating LUWs are stored in the queue table TRFCQOUT.
and also check this table QSENDDEST.
Thanks
Naresh
Maybe you are looking for
-
Can I use a iTunes card for iTunes match?
Igot a 25 dollar iTunes gift card and I tried redeeming it for iTunes match but it wont let me it still says I need a credit card on file. Whats the deal APPLE? Can I use the gift card, if not what do I have to do?
-
Prepping to upgrade from 10.2.8 to 10.4 -- problem with Disk Utility
I have an 17" iMac that I'm preparing to upgrade from 10.2.8 to 10.4. In preparation, I did the following: * Mounted a new external HD (LaCie) (my second one) * Backed-up all personal files / folders to the new drive * Ran Software Update to check fo
-
How to run 11g Form from a batch file (.bat) !
Hi, Previously, I run my Form 6i from a batch file (with Windows Schedular Tasks) as below; E:\orant\bin\ifrun60.exe e:\lock.fmx This form lock some items on a certain date (with the help of Windows Schedular Task). How can this possible in Forms 11g
-
Oracle DB Can't Survive ZFS SA Controller Failover
We are running two new Sparc T4-1 servers against a ZFS SA with two heads and a single DE2-24P disk shelf. It is configured with a single pool for all the storage. Our servers are clustered with VCS as an active/passive pair, so only one server acces
-
Is the 27" iMac display exactly the same as the 27" ACD?
I'm looking at updating my existing set up and want to know whether the above displays are exactly the same. From memory the ACD's were usually of a better quality compared to the iMac displays. Have they achieved parity now? Where will I find full