Error in determining Paper Format for Printout triggering from ABAP Code
Hi Experts,
I am trying to trigger a printout from my ABAP code using "NEW-PAGE PRINT ON ...... NEW-PAGE PRINT OFF" statement.
I am passing the Print Parameters using the FM "GET_PRINT_PARAMETERS" as below:
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = ls_options-tddest
copies = 1
list_name = 'Notification'
list_text = 'ERROR NOTIFICATION'
immediately = 'X'
release = 'X'
new_list_id = ' '
* expiration =
line_size = 79
line_count = 23
layout = 'X_65_80'
sap_cover_page = ' '
receiver = 'SAP*'
department = 'System'
no_dialog = 'X'
IMPORTING
out_parameters = lv_params.
But I am facing a problem. Though I am passing X_65_80 to the LAYOUT in the Function Module, it is trying to print in LETTER format. But the specified printer as the printer supports only A4 paper format and as a result, I am not getting any printout.
Kindly help me with your suggestions to resolve this.
Thanks in advance.
Regards,
Keerthi
Hi,
I just found that this problem is even stranger.
I am able to print the said message on my local printer but when I try to print the same message on a different printer located at a different location, the printout does not get triggered. I am not getting any error messages also in this case.
What could be the possible reason for this?
Kindly share your views/experience with me on this one.
Thank you.
Regards,
Keerthi
Similar Messages
-
Abort Could not determine a value for variable 0DAT from the authorizations
Hi All,
I encountered an error '/ Abort Could not determine a value for variable 0DAT from the authorizations\' when executing my query on a multiprovider in BW 3.5.
Can anyone help me in finding a solutionn to this issue.
Thanks,
Kartik.Hi Kartik,
I am sorry as that note is for NW2004s. Please check if 0DAT variable installed from a business content? if not then I think thats the cause of the problem.
Hope this helps,
Bye... -
Abort Couldn't determine the value for 0P-KEYD2 from Authorizations
Hi All,
When attempting to open a query, i'm encoutered with an error like "Abort Could not determine a value for variable 0P_KEYD2 from the authorisations".
Last month it was working fine, and working fine in Quality enviroment also.
If anyone come across such situation or any ideas, Please help me out in this regard.
Awaiting to see replies for this.
Regards,
PRK.Dear PRK,
I'm facing exactly the the same problem - which solution did you finally find.
Regards,
Axel -
I got data from OTF in SAPSCRIPT and send by email.
How to change the paper format in SOST tcode from X_65_80 to X_65_255?
I need to change it automatically from abap.
Any suggestion?Hi,
change line size and line count in report.
By default report line size and line count is taken in printer
settings
REgards
amole -
Any program for calling bapi from ABAP step by step
any program for calling bapi from ABAP step by step
points will be rewarded,
thank you,
Jagrut BharatKumar ShuklaHi Jagrut,
BAPI stands for Business API(Application Program Interface).
A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
The following standardized BAPIs are provided:
Reading instances of SAP business objects
GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
The BAPI GetList() is a class method.
GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
Create( ) and CreateFromData! ( )
The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
Change( )
The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
ex BAPI:
API_SALESORDER_CREATEFROMDAT1
BAPI_SALESORDER_CREATEFROMDAT2
You can get good help form the following links,
BAPI-step by step
http://www.sapgenie.com/abap/bapi/example.htm
list of all bapis
http://www.planetsap.com/LIST_ALL_BAPIs.htm
for BAPI's
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://www.planetsap.com/Bapi_main_page.htm
http://www.topxml.com/sap/sap_idoc_xml.asp
http://www.sapdevelopment.co.uk/
http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
Also refer to the following links..
www.sappoint.com/abap/bapiintro.pdf
www.sap-img.com/bapi.htm
www.sap-img.com/abap/bapi-conventions.htm
www.planetsap.com/Bapi_main_page.htm
www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://sap-img.com/bapi.htm
<b>EG::</b>
<b>Here is the step by step procedure for creating BAPIs.</b>
There are 5 different steps in BAPI.
- Create BAPI Structure
- Create BAPI Function Module or API Method.
- Create BAPI object
- Release BAPI Function Module.
- Release BAPI object.
Step1. Creating BAPI Structure:
- Go to <SE11>.
- Select Data Type & Enter a name.
- Click on Create.
- Note: Always BAPI should be in a development class with request number (Not Local Object).
- Select Structure & hit ENTER.
- Enter the fields from your database. Make sure that the first field is the Primary Key Field.
- Then SAVE & ACTIVATE.
Step 2. Creating BAPI module:
- Enter TR.CODE <SE37>.
- Before entering any thing, from the present screen that you are in, select the menu
Goto -> Function Groups -> Create Group.
Enter a name (Note: This name Must start with ZBAPI)
Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
Click on the Third ICON that says Inactive Objects.
Select the group that you just created and click on Activate.
Notice that the group you created will disappear from the list of inactive objects.
- Go back to ><SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
Then click on the second tab that says [IMPORT].
Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box Pa. All remotely enabled functional modules MUST be Pa enabled, where Pa means Passed by Value and if you dont select Pa, then that means it will be passed by reference..
Then click on tab that says [EXPORT].
Enter the following as is in the first three fields
RETURN TYPE BAPIRETURN (These 3 field values are always same)
Here also select Pa meaning Pass by value.
Note: BAPIRETURN contains structure with message fields.
Then SAVE and ACTIVATE.
Step 3. Creating BAPI object:
- Enter Tr.Code <SWO1> (Note. It is letter O and not Zero).
- Enter a name and then click on create. Enter details.
NOTE: Make sure that that Object Type and Program name are SAME.
- Enter Application M, if you are using standard table Mara. If you are using your own database then select Z at the bottom.
- Then hit <ENTER>.
- Now we have to add Methods. High light METHODS and then select the following from the menu:
Goto Utilities -> API Methods -> Add Methods.
- Enter function Module name and hit <ENTER>.
- Select the second FORWARD ARROW button (>)to go to next step.
- Check if every thing looks ok and again click on FORWARD ARROW button (>).
- Then select YES and click on <SAVE>.
- Now on a different screen goto TR.CODE <SE37>. Enter Function Module name and select from the top menu Function Module -> Release -> Release.
- Goback to TR.CODE <SWO1>.
Here select the menu combination shown below in the same order.
- Edit -> Change Release Status -> Object Type Component -> To Implemented.
- Edit -> Change Release Status -> Object Type Component -> To Released.
- Edit -> Change Release Status -> Object Type -> To Implemented.
- Edit -> Change Release Status -> Object Type -> To Released.
- Then click on <SAVE>.
- Then click on Generate Button (4th button from left hand side looks like spinning wheel).
- Then Click on the button that says PROGRAM to see the source code.
To check if this is present in work flow goto TR.CODE <BAPI>.
Here it shows business object repository.
- First click on the middle button and then select ALL and hit ENTER.
- Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully
<b>Reward pts if found usefull :)</b>
regards
Sathish -
IPC error when displaying product config for order replicated from ISU
Hi all,
I am trying to set up ISU contract replication from ISU to CRM and I am having the problem sending product configuration. I am able to send all the nessesary settings for product config from ISU: when I look in resulting Bdoc in smw01 I see correct CUVAL values, CUCFG and CUINS. CRM order gets created without no problem. However, when I try to go to product configuration tab while displaying my order I see error message:
ISA Framework: Internal Error: java.lang.NullPointerException
I assume something might be wrong with the configuration values I am sending, however I have no idea how to get more details what caused this error. IPC apparently runs on separate server and I do not have direct access to it.
May be somebody can give me a hint where to look or what to do?
Any help is much appreciated,
VitaliHi Vitali,
Have you resolved this error? I have the same message (but under different circumstances) and am curious how to resolve it.
Thanks,
Peter -
Error while calling MII transaction as web service from ABAP
Hello Experts,
I want to call a MII transaction from ABAP program, as a web service.
Following is output of http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX (TAG_TRX is name of my transaction).
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.sap.com/xMII" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
- <!-- Types
-->
- <types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII">
- <s:complexType name="InputParams">
- <s:sequence id="InputSequence">
<s:element maxOccurs="1" minOccurs="0" name="WEIGHT" type="s:string" />
<s:element maxOccurs="1" minOccurs="0" name="BATCHID" type="s:string" />
</s:sequence>
</s:complexType>
- <s:element name="XacuteRequest">
- <s:complexType>
- <s:sequence>
<s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string" />
<s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string" />
<s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="Rowset">
- <s:sequence>
<s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row" />
</s:sequence>
<s:attribute name="Message" type="s:string" />
</s:complexType>
- <s:complexType name="Row">
<s:sequence id="RowSequence" />
</s:complexType>
- <s:element name="XacuteResponse">
- <s:complexType>
- <s:sequence>
<s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
- <!-- Messages
-->
- <message name="XacuteSoapIn">
<part element="s0:XacuteRequest" name="parameters" />
</message>
- <message name="XacuteSoapOut">
<part element="s0:XacuteResponse" name="parameters" />
</message>
- <!-- Ports
-->
- <portType name="XacuteWSSoap">
- <operation name="Xacute">
<input message="s0:XacuteSoapIn" />
<output message="s0:XacuteSoapOut" />
</operation>
</portType>
- <!-- Bindings
-->
- <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="Xacute">
<soap:operation soapAction="http://www.sap.com/xMII" style="document" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
- <!-- Service mapping
-->
- <service name="XacuteWS">
- <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
<soap:address location="http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX" />
</port>
</service>
</definitions>
Now, when I am using http://<<server>>:50000/XMII/SOAPRunner/TAG_TRX to create a Enterprise Service in SAP (i.e. SE80 transaction-> Create Enterprise Service-> Service Consumer-> URL/HTTP Destination-> URL ... I am getting following error.
Incorrect value: Entity "<<document>>"(5 /93 ). unexpected symbol: '<'
But, whenever I am using the same URL in MII BLS, it does not give any error. It correctly shows all input and output parameters.
Please help me to resolve this issue.
Regards
Neeta.Now, I am able to create the Web Service in SAP and it is now showing the respective class, attribute and methods to execute this web service (web service to call MII transaction).
But when I am calling it from ABAP (a simple Web Dynpro for ABAP method), it is showing me the following error:
Error (id=GET_BUSINESS_SYSTEM_ERROR): An error occurred when determining the business system (LD_ERROR)
Thought this error is coming from ABAP program, but I am sure that this is related to some configuration at SAP level. (Let me inform you that there are two different servers for SAP Web Dynpro ABAP and SAP MII.
Please help.
Thanks in advance. -
Schedule a background job for a program using ABAP code.
Hi,
I have to write a program to schedule a background job for another program.
Need your help to understand how we can achieve this functionality.Any example of an abap code would be of great help.
Need it urgently.
Thanks in advance.
Sandeep.Hi Sandeep,
Here is the demo program regarding the BDC For the background job.
report zprprbdc1
no standard page heading line-size 255.
include bdcrecx1.
parameters: dataset(132) lower case.
*** DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
* If it is nessesary to change the data section use the rules:
* 1.) Each definition of a field exists of two lines
* 2.) The first line shows exactly the comment
* '* data element: ' followed with the data element
* which describes the field.
* If you don't have a data element use the
* comment without a data element name
* 3.) The second line shows the fieldname of the
* structure, the fieldname must consist of
* a fieldname and optional the character '_' and
* three numbers and the field length in brackets
* 4.) Each field must be type C.
*** Generated data section with specific formatting - DO NOT CHANGE ***
***data: begin of itab occurs 0 ,
*** matnr(20) type c,
*** mbrsh(30) type c,
*** mtart(30) type c,
*** kzsel(20) type c,
*** maktx(40) type c,
*** meins(5) type c,
*** end of itab.
data: begin of record occurs 0,
* data element: MATNR
matnr_001(018),
* data element: MBRSH
mbrsh_002(001),
* data element: MTART
mtart_003(004),
* data element: XFELD
kzsel_01_004(001),
* data element: MAKTX
maktx_005(040),
* data element: MEINS
meins_006(003),
* data element: MTPOS_MARA
mtpos_mara_007(004),
end of record.
*** End generated data section ***
start-of-selection.
*perform open_dataset using dataset.
perform open_group.
**do.
**read dataset dataset into record.
**if sy-subrc <> 0. exit. endif.
call function 'GUI_UPLOAD'
exporting
filename = 'c:\jitu\bdc\10002.txt'
filetype = 'ASC'
has_field_separator = 'x'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* VIRUS_SCAN_PROFILE =
* NO_AUTH_CHECK = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
tables
data_tab = record
* EXCEPTIONS
* FILE_OPEN_ERROR = 1
* FILE_READ_ERROR = 2
* NO_BATCH = 3
* GUI_REFUSE_FILETRANSFER = 4
* INVALID_TYPE = 5
* NO_AUTHORITY = 6
* UNKNOWN_ERROR = 7
* BAD_DATA_FORMAT = 8
* HEADER_NOT_ALLOWED = 9
* SEPARATOR_NOT_ALLOWED = 10
* HEADER_TOO_LONG = 11
* UNKNOWN_DP_ERROR = 12
* ACCESS_DENIED = 13
* DP_OUT_OF_MEMORY = 14
* DISK_FULL = 15
* DP_TIMEOUT = 16
* OTHERS = 17
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at record .
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RMMG1-MATNR'
record-matnr_001.
perform bdc_field using 'RMMG1-MBRSH'
record-mbrsh_002.
perform bdc_field using 'RMMG1-MTART'
record-mtart_003.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
record-kzsel_01_004.
perform bdc_dynpro using 'SAPLMGMM' '4004'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'MAKT-MAKTX'
record-maktx_005.
perform bdc_field using 'BDC_CURSOR'
'MARA-MEINS'.
perform bdc_field using 'MARA-MEINS'
record-meins_006.
perform bdc_field using 'MARA-MTPOS_MARA'
record-mtpos_mara_007.
perform bdc_transaction using 'MM01'.
**enddo.
endloop.
perform close_group.
*perform close_dataset using dataset.
&*****************Reward point if helpful************& -
Changing Field Label length for Data Element using ABAP code.
Hi Experts,
We have a scenario where we have to update the maximum length of the various Field Labels (Short, Medium, Long..) for a Data Element using ABAP code.
Does anyone know how to do this ? Is there a Function Module available for this purpose ?
Appreciate your valuable inputs.Hi ,
Use the view
DD03M
Give
TABNAME as table name,
DDLANGUAGE = EN / sy-langu
and order by position. (for correct sequencing)
You will get description of the fields (short,medium, long etc). You will also get the length and other details. -
Configurational settings for calling HTTP from ABAP
Hi,
I need to call HTTP from ABAP.
Other than ABAP code, what configurational settings (and functional settings, if any) I need to do for this scenario..
Please help...
Thanks,
Shivaa...
Moderator message - Duplicate post locked
Edited by: Rob Burbank on May 7, 2009 3:44 PMHi All,
I have a problem to pass a file.txt in a parameter of a web service.
Iam using CL_HTTP_CLIENT and I am passing the parameters (user, password and file):
clear wa_form.
wa_form-name = 'user'.
wa_form-value = '33333333333'.
append wa_form to it_form.
clear wa_form.
wa_form-name = 'password'.
wa_form-value = '11111111'.
append wa_form to it_form.
clear wa_form.
wa_form-name = 'file'.
wa_form-value = data. ---> "data" is a type string with the data of the file.txt.
append wa_form to it_form.
r_client->request->set_form_fields( fields = it_form ).
I have not problem with the user and password parameters.
Thank. -
Error in determining the variable for Workitem Text
Hi Friends,
My workflow is getting triggered by the event but during sending a notification to the agents the variables which i used in the workitem text is not coming. It is showing variables in workitem text cannot be displayed.
I checkd in the workflow log. The same variable is coming till the task of sendmail but its not coming into the mail notification.
But when i tirgger the WF manually the workitem text is cmng........Can u tell me from wher dis error cmng from??
Thanks
KumarRead,
ABAP Proxy error : GET_BUSINESS_SYSTEM_ERROR
Dump "GET_BUSINESS_SYSTEM_ERROR" when changing relationships.
They might help
Regards
Juan -
declare
repname varchar2(50);
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
begin
repid := find_report_object('MKTRCON03_SUM_WAG11');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'spreadsheet');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'P_CLIENT='||:block4.CLIENT_CODE||' '||'P_MONTHNM='||:block4.MONTH_NM);
v_rep := RUN_REPORT_OBJECT(repid);
WEB.SHOW_DOCUMENT('http://iterp1:8889/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_iterp1','_blank');
end;What is the prototype of the function you're calling?
void Norm(uint8_t *Image, uint32_t width, uint32_t height, uint32_t Nx, uint32_t Ny, double *Norm);
What does your LabVIEW code look like?
Files attached. It simply reads in an image and calls the C library. This vi executes with a test-dummy dll that accepts the same inputs, and outputs a direct copy of the image; therefore, I can assume that the vi is fine and my inputs match the correct types.
Are you using arrays? Is the DLL assuming that the caller allocates memory?
Yes. I initialize two arrays in the calling vi and pass the pointer into the dll. Inside the dll, I dynamically allocate 2 arrays and deallocate them at the end of the function.
I am sure that the arrays are initialized correctly in the code and the correct value and type are passed into the dll. I made sure of this by commenting out the real code, and writing a simple function to copy the original array into the the resulting array. The results were favorable and the array was successfully copied in the dll and the vi finished without errors, and with correct copied values in the resulting array.
Is the DLL allocating memory for things like arrays that doesn't get released?
Yes, I dynamically allocate arrays that are used inside the dll only. These do not get used by my calling vi, and as far as I know, they are effectively deallocated at the end of the function.
Are you using the correct calling convention?
My dll is a .cpp file, but it is written as a C-callable function.
Message Edited by Candice on 08-11-2009 09:52 AM
Attachments:
test driver for dll 2.1.vi 50 KB
Pad an Image with Zeros subvi.vi 50 KB -
Parse errors on 'white space' when migrating procs/triggers from Sybase
getting:
Error occurred on line nn:
oracle.mtg.sybase12.parser.ParseException:
Parse error at line nn, column 1.
Encountered:
looks like this happens for every proc/trigger that has a blank line at the end of its text.
anyone know of any fix/workaround for this?
thxHi Collierville,
The 'Repository' term referes to the Oracle schema/user where you told the OMWB to create its repository. You reference this schema when you log into the OMWB.
The OMWB created lots of tables to hold the captured and converted details of your database. Its this Oracle schema that you should run the script on using SQL Developer or SQL*Plus.
I tried your testcase with 10.1.0.4 and still cant produce an issue. I put a few new empty lines at the bottom as well. So something fishy is happening.
Due to not having information about your SWINT datatype the following is generated for me.
CREATE OR REPLACE FUNCTION swsp_greateq_zero(
fieldValue IN SWINT DEFAULT NULL)
RETURN INTEGER
AS
BEGIN
IF fieldValue < 0 THEN
BEGIN
RETURN 1;
END;
ELSE
BEGIN
RETURN 0;
END;
END IF;
END swsp_greateq_zero;
Just to note, We are releasing a Sybase 12 and Sybase 15 plugin for the new SQL Developer Migration Workbench in the next release, which will hopefully be early next year.
Regards,
Dermot -
Max resolution and format for Apple TV from imovie and itunes
I use iMovie '09 to make movies from my HD 1920x1080P camera that I SHARE to mobile me, itunes and for use on Apple TV via itunes.
I am trying to figure out the max resolutions and formats.
If I SHARE from imovie with 960x540 it goes right into itunes and shows as an HD movie on the Apple TV
If i export from imovie in 1280x720p i can drag into and play from itunes however it doesnt show up on the Apple TV? i thought the apple TV supported 720p? is the format wrong? when you export it comes out as .mov and when you SHARE it comes out as .mp4?I have been struggling with this for some time. We have great HD cameras, and fairly capable consumer grade video editing capability with iMovie; but we have limited HD viewing opportunities other than a computer.
Apple TV does play it in 720p provided you meet the specs below - perhaps your 720p movie exceeded these specs. You see, there is 720p, and then there is 720p with serious Mbps.
At least for me, when I export at 720p @ 5Mbps the viewing is jittery and not smooth. I guess it is too much processing, although it seems to work fine when it is a downloaded movie in HD, just not an iMovie production.
So, I just use the 960x540, which is clear and smooth, and wait for the day an improved Apple TV hits the market with the processing power to smoothly handle 720p and beyond. I have a big (100") screen, so I can use all the resolution I can get to keep that large of an image sharp.
The alternative is to use a Mac mini and route through HDMI to your TV. That does a good job but is more expensive (triple) the ATV.
Video formats supported:
H.264
up to 5 Mbps, Progressive Main Profile (CAVLC) with AAC-LC audio up to 160 Kbps (maximum resolution 1280x720 @ 24fps, 960x540 @ 30fps) in .m4v, .mp4, and .mov file formats
MPEG 4:
• up to 3 Mbps, Simple Profile with AAC-LC audio up to 160 Kbps (maximum resolution 720x432 @ 30 fps) in .m4v, .mp4, and .mov file format -
Register failk error when invoking ActiveX control for a JavaBean from VB6
J2RE v1.4.2_09
Visual Basic 6.0 SP5/Visual C++ 6.0 SP5
Windows 2000 SP4
We have our existing production applications written using VB6 and VC++6. We are in the process of moving them incrementally to J2EE. Before everything is totally re-written in J2EE, we need to do something for interoperability between existing VB6/VC++6 and J2EE. ActiveX Bridge seems to be the solution we need, if only it works.
Problem that I am facing....
Register failk error when I try to insert a java bean activex control on a VB6.0 or VC++6.0 form or create an instance of the activex "Person.Bean.1" using CreateObject function, it throws the following error. I am able to create an instance of Person Bean ActiveX Control using ActiveX Control Test Container that comes with Visual Studio 6.0 and invoke the methods in the bean successfully though which means that the ActiveX control is registered properly and working.
Error Message Box Title: asdas
Error Message: register failk
And then another error message pops up.
Error Message Box Title: Java(TM) Plug-in Fatal Error
Error Message: Cannot load class sun/plugin/JavaRunTime
The Bridge was installed at <D:\PROGRA~1\Java\J2RE14~2.2_0> but the class is not there. Modify the registry key to reflect the new bridge location. The key is HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Plug-in or Change your CLASSPATH to include the new directory.
I have this sample java bean class.
a) Person.java
import java.io.*;
public class Person implements Serializable{
private String fName,lName;
public Person(){
fName = new String();
lName = new String();
public void setFirstName(String firstName){
fName = firstName;
public void setLastName(String lastName){
lName = lastName;
public String getName(){
return fName+" "+lName;
b) person_manifest
Name: Person.class
Java-Bean: True
Steps followed:
call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"
set path=D:\j2sdk1.4.2_09\bin;%path%
javac Person.java
jar -cvfm Person.jar person_manifest Person.class
mkdir "d:\Program Files\Java\j2re1.4.2_09\axbridge\bin"
D:\j2sdk1.4.2_09\bin\packager -out "d:\Program Files\Java\j2re1.4.2_09\axbridge\bin" -reg Person.jar Person
Person.dll file created under d:\Program Files\Java\j2re1.4.2_09\axbridge\bin and Person.jar copied under d:\Program Files\Java\j2re1.4.2_09\axbridge\lib.
I am able to create an instance of this Person Bean ActiveX Control using ActiveX Control Test Container that comes with Visual Studio 6.0 and invoke the methods in the bean successfully. But, when I try to insert the activex control on a VB6 or VC++6 form or create an instance of "Person.Bean.1" using CreateObject function, it throws the above mentioned errors.
I checked the registry and it shows J2RE1.4.2_09 version properly under that key and the Person.dll file exists under d:\Program Files\Java\j2re1.4.2_09\axbridge\bin. I also explicitly added the plugin.jar, person.jar to the classpath. Still it gives the error.
Any ideas? Any fix or workaround for this problem? Thanks.Sometimes solutions are simpler than expose the problem.
Did you add the dll to the project references?
Sometimes also it is usefull to use the regsvr32 program to register the DLL.
Pedro
Maybe you are looking for
-
Bridge Problem opening files in Photoshop CS6
CS6 Bridge appears to work fine, however when I try to open a file into Photoshop CS6 I get a flag saying it cannot find Photoshop CS4? Any ideas? TIA Keith
-
Digital Signature when order TECO
Hello, I have a requirement now where order TECO need to sign-off. This is requirement by the industry. What i am thinking of is using digital signature to achieve this. I know digital signature can be configured for operation sign-off as explain [
-
I upgraded my MacBook Pro to 10.6.8 today and now it hard crashes the Operating System when I connect my iHome USB keyboard. I get a window that states I must press the power button until the computer shuts down and then restart. On reboot sends Pa
-
Okay, so this is my problem. I have an iPod nano 3G and it's been working perfectly well for years until yesterday. i tried reinstalling iTunes and updating the drivers, but this still did not work. My computer suggested that I should format my iPod.
-
What is the lock icon located near the battery condition icon?
I noticed this lock icon to the left of the battery condition indicator. Any ideas on what it may be associated with?