Problem with conditions in creation of contract using BAPI_CONTRACT_CREATE
Hi,
I am using BAPI_CONTRACT_CREATE and it does creates contracts and items, but even I am sending condition information to the BAPI , but it is not create them and I donu2019t even get an error message.
Thanks and Regards,
Pavan Meda
This FM is pretty well documented, make sure all tables are filled in correctly (e.g. ITEM_CONDITION, ITEM_CONDITIONX). Also make sure you actually can enter those conditions in the online transaction - sometime people are trying to push something through that is not supposed to work.
Also search SDN for posts regarding conditions in BAPI_SALESORDER_CREATEFROMDAT2, you might find some similarities.
Similar Messages
-
hi, i have a macbook air and i've been having problems with the camera when i'm using skype. i know im no the 1st one and i'd like to know when apple or someone 'll do something about this.
Try reinstalling Combo Update.
http://support.apple.com/kb/DL1676
Best. -
Im having a problem with the dvd quality, I'm using compressor to convert the video fils from apple prores to mpeg2 .It doesn't matter how long my video is even if its just 5 minutes I'm getting cut edges/lines in the video specialy if i have titles it comes up really bad , I took the same video to a friend of mine who have PC and he uses Encore , did the encoding there and it was just fine no problems! BTW I tried using doferent setings in compressor from CBR and VBR I even pushed up the setings to 8 or 9 BR and still no luck !
does anyone have any idea ?
Thanks in advence ...Let's focus attention on just the Sony. (What model and what resolution are you shooting?)
For now, I'll assume you're shooting 1080i.
Take a representaive clip into a new sequence. Add a title.
In your sequence, make sure field dominance is set to Upper.
Set render settings to Pro Res 422.
After rendering, export QT self contained.
Import into Compressor (I'm now referring to v3.5).
Select the 90 minute Best quality DVD preset.
Open frame controls and turn on (click the gear icon). Set Resize filter to Best.
Submit burn and check quality on TV.
Good luck. -
Can anyone please help me, I'm having problems with sound while watching video clips using flash player & Internet Explorer
There's a good chance that this is a known issue. We'll have a Flash Player 18 beta later this week that should resolve this at http://www.adobe.com/go/flashplayerbeta/
-
I downloaded Firefox 7 and when I click on the browser icon nothing happens, the browser does not load on desktop.I had no problems with Firefox 4 I had been using for several years and liked very much
Most people have no problems with installing firefox as an upgrade, but there are quite a few things that can cause problems. Please have a look at the articles
* [[software Update Failed]] <-- clickable link (blue ) --
* [[firefox will not start]]
* [[firefox does not work]]
Post back after you read them and say what you tried. Have you ensured you used an admin account, possibly needing to check the UAC setting, and that security software is not blocking the changes. You should certainly try starting in firefox's [[safe mode]] either from a menu/icon option or by holding the shift key as you attempt to run firefox.
Is the browser icon you see on the desktop, and a firefox icon ? -
I am having problems with downloading Windows Support Software by using Boot Camp Assistant. Is there somewhere else I can download from?
No. There is no other location. Be patient. Read the posts in the Bootcamp Forum. There are hundreds of posts about your issue and what to do. https://discussions.apple.com/community/windows_software/boot_camp
-
Problem with Multiple record creation using BAPI BAPI_PRICES_CONDITION
Hi,
I am working on IS Media Sales And Distribution wherein i am using BAPI BAPI_PRICES_CONDITION for condition record creation in TCODE JC9B. I am able to create one record using this BAPI for one sales promotion but having problem while creation of multiple records for the same sales promotion wherein my internal table have multiple records. It gives me error that data in BAPICONDIT is missing.
I am aatching followig code for reference
BAPI have field of varkey which i am filling as combination of sales org. + distn channel + sales promotion + delivery type
In this varkey delivery type is changing for sales promotion Can be said that one sales promotion can have multiple delivery type .
Am i giving the correct varkey for each itration of internal table ?
I am attaching code for reference.
Here loop it_cond contain one promotion and multiple delivery type.
sales org distn ch promotion delivery
0100 01 zsalesprom 03
0100 01 zsalesprom z3
LOOP AT it_cond INTO wa_cond.
Get next condition number
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'KONH'
QUANTITY = '1'
SUBOBJECT = ' '
TOYEAR = '0000'
IGNORE_BUFFER = ' '
IMPORTING
number = number
QUANTITY =
RETURNCODE =
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Here i am concacating varkey for each new delivery
CLEAR : l_min,l_length,l_var.
CONCATENATE wa_cond-vkorg wa_cond-vtweg wa_cond-wrbakt INTO l_var.
l_length = STRLEN( l_var ).
IF l_var+14(2) IS INITIAL.
WRITE wa_cond-lifart TO L_VAR+14.
l_length = STRLEN( l_var ).
ENDIF.
W_LINE = W_LINE + 1.
*First table in BAPI
wa_bapicondct-operation = '009'.
wa_bapicondct-cond_usage = 'A'.
wa_bapicondct-table_no = '506'.
wa_bapicondct-applicatio = 'J0'.
wa_bapicondct-cond_type = 'RATE'.
wa_bapicondct-varkey = l_var.
wa_bapicondct-valid_to = wa_cond-datbi.
wa_bapicondct-valid_from = wa_cond-datab.
wa_bapicondct-cond_no = number. "
APPEND wa_bapicondct TO it_bapicondct.
*Second table in BAPI
wa_bapicondhd-operation = '009'.
wa_bapicondhd-cond_no = number.
wa_bapicondhd-cond_usage = 'A'.
wa_bapicondhd-table_no = '506'.
wa_bapicondhd-created_by = sy-uname.
wa_bapicondhd-creat_date = sy-datum.
wa_bapicondhd-applicatio = 'J0'.
wa_bapicondhd-cond_type = 'RATE'.
wa_bapicondhd-varkey = l_var.
wa_bapicondhd-valid_from = wa_cond-datab.
wa_bapicondhd-valid_to = wa_cond-datbi.
APPEND wa_bapicondhd TO it_bapicondhd.
*Third table in BAPI
wa_bapicondit-operation = '009'.
wa_bapicondit-cond_no = number.
wa_bapicondit-cond_count = wa_cond-cond_count.
wa_bapicondit-applicatio = 'J0'.
wa_bapicondit-cond_type = 'RATE'.
wa_bapicondit-calctypcon = 'C'.
wa_bapicondit-scaletype = 'A'.
wa_bapicondit-cond_value = wa_cond-kbetr.
wa_bapicondit-condcurr = wa_cond-konwa.
wa_bapicondit-promotion = wa_cond-wrbakt.
APPEND wa_bapicondit TO it_bapicondit.
*Fourth table in BAPI
wa_bapicondqs-operation = '009'.
wa_bapicondqs-cond_no = number.
wa_bapicondqs-cond_count = wa_cond-cond_count.
wa_bapicondqs-currency = wa_cond-kbetr.
wa_bapicondqs-condcurr = wa_cond-konwa.
wa_bapicondqs-cond_unit = 'EA'.
wa_bapicondqs-LINE_NO = W_LINE."'0001'.
APPEND wa_bapicondqs TO it_bapicondqs.
*Fifth table in BAPI
wa_bapicondvs-operation = '009'.
wa_bapicondvs-cond_no = number.
wa_bapicondvs-cond_count = wa_cond-cond_count.
wa_bapicondvs-currenckey = wa_cond-konwa.
wa_bapicondvs-currenciso = wa_cond-konwa.
wa_bapicondvs-currency = wa_cond-kbetr.
wa_bapicondvs-condcurr = wa_cond-konwa.
wa_bapicondvs-curren_iso = wa_cond-konwa.
wa_bapicondvs-LINE_NO = W_LINE."'0001'.
APPEND wa_bapicondvs TO it_bapicondvs.
CALL FUNCTION 'BAPI_PRICES_CONDITIONS'
EXPORTING
PI_INITIALMODE = ' '
PI_BLOCKNUMBER =
TABLES
ti_bapicondct = it_bapicondct
ti_bapicondhd = it_bapicondhd
ti_bapicondit = it_bapicondit
ti_bapicondqs = it_bapicondqs
ti_bapicondvs = it_bapicondvs
to_bapiret2 = it_bapiret2
to_bapiknumhs = it_bapiknumhs
to_mem_initial = it_cnd_mem_initial
EXCEPTIONS
update_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
RETURN =
CLEAR : wa_bapicondct,wa_bapicondhd,wa_bapicondvs,wa_bapicondqs.
CLEAR : wa_bapicondit.
ENDLOOP.
ENDIF.
ENDIF.
Kindly Suggest.
Thanks
ParagSolved By myself
There is problem while passing data to internal table for item level -
Problem with SLD and Creation of JCo
Hello everyone!
I have a problem with the SLD and the Creation of JCo on the Portal, in trying to create the JCo always tells me that the name used there in the SLD, being that the facility is new.
Who performs the installation, set in the SLD the ECC 6 PRD, delete it to see if I could create a JCo but still the error again when creating the ECC 6 PRD in the SLD I said that already exists and can not create it.
I found a forum which recommended re-import the cimsap .... .... zip and zip CR_Content which would clean everything, I managed to import the zip cimsap ... but in trying to raise CR_Content gives me the following message "All incremental updates of the selected aggregate import for export SAP_CR line have already been loaded before. You require a newer import to update your current content SAP_CR version 4.11." .
I recommend, do the installation again, reload the cimsap.zip and CR_Content.zip a copy homogeneous.
from already thank you very much
Text of error to create JCo destination
Failed to process request. Please contact your system administrator.
[Hide]
Error Summary
While processing the current request, an exception occured which could not be handled by the application or the framework.
If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
Root Cause
The initial exception that caused the request to fail, was:
java.lang.NullPointerException
at at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:991)
at at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:469)
at at com.sap.tc.webdynpro.tools.sld.ButtonBar.onActionGoForward(ButtonBar.java:505)
at at com.sap.tc.webdynpro.tools.sld.wdp.InternalButtonBar.wdInvokeEventHandler(InternalButtonBar.java:280)
at at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
... 28 more
See full exception chain for details.
System Environment
Client
Web Dynpro Client Type HTML Client
User agent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.1)
Version null
DOM version null
Client Type msie7
Client Type Profile ie6
ActiveX enabled
Cookies enabled
Frames enabled
Java Applets enabled
JavaScript enabled
Tables enabled
VB Script enabled
Server
Web Dynpro Runtime Vendor: SAP, build ID: 7.0017.20081210091801.0000 (release=NW04S_17_REL, buildtime=2009-01-12:09:43:27[UTC], changelist=52884, host=pwdfm114), build date: Tue Apr 28 19:28:39 CLT 2009
J2EE Engine 7.00 patchlevel 48199.450
Java VM IBM J9SE VM, version:2.2, vendor: IBM Corporation
Operating system Linux, version: 2.6.18-92.el5, architecture: amd64
Session & Other
Session Locale en
Time of Failure Fri Aug 28 11:43:53 CLT 2009 (Java Time: 1251474233677)
Web Dynpro Code Generation Infos
sap.com/tcwdtools
No information available null
sap.com/tcwddispwda
No information available null
sap.com/tcwdcorecomp
No information available null
Detailed Error Information
Detailed Exception Chain
java.lang.NullPointerException
at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:991)
at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.checkStatus(WDSystemLandscape.java:469)
at com.sap.tc.webdynpro.tools.sld.ButtonBar.onActionGoForward(ButtonBar.java:505)
at com.sap.tc.webdynpro.tools.sld.wdp.InternalButtonBar.wdInvokeEventHandler(InternalButtonBar.java:280)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:207)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)Hello!!
The "SLD" with which I am working up to Portal, the "ECC" installs itself as "ABAP.
Who did the installation and initial configuration, do not leave any documentation about it.
Now I need to create the systems and "JCo" necessary to enable them to implement the "ESS", but errors are presented above.
Some days ago I managed to update the CR_Content, which allowed me to create the "JCo" but at the time of the test, says' com.sap.mw.jco.JCO $ Exception: (103) RFC_ERROR_LOGON_FAILURE "name or password incorrect .
I managed to also create the portal systems, "System Administration -> System Configuration -> Content Portal" and to test it fails on "Test Connection with Connector", which as noted is associated with the connectors "JCo".
For the creation of the system, I think I should create something in the Visual Administrator ", but within the documentation that I do not see anything about it.
thanks for your help! -
Problem with One-Step Approval of Contracts ws14000088
Hi, I have a problem with the One-Step Approval of Contracts ws14000088, the workflow can't find approverat the task TS14007969
regards
DayanaHi
<b>Please go through these links, which will definitely help -></b>
Which SRM version are you using ?
Re: Problem with one step approval contract workflow
Re: No Approver(s) Found
Reminders for work item
Re: How to add a new field to the notification mail
Do let me know.
Regards
- Atul -
Having a problem with commandButton attribute when i am using it under tabl
Having a problem with {color:#800000}commandButton {color}{color:#339966}attribute {color}when i am using it under{color:#ff0000} table{color}
I am using a command button under a table.
here is the example
<h:dataTable value="#{wlmHandler.plexes.plexes}" var="{color:#ff0000}onePlex{color}" border="0" cellspacing="0" cellpadding="0" width="100%" border="0">
<h:column>
<h:panelGrid border="0" cellpadding="0" cellspacing="0" columns="5">
<h:commandButton action="" styleClass="tixbutton" value="#{labels.ADD}" onclick="#{onePlex.tran}"/>
<f:verbatim> </f:verbatim>
<h:commandButton action="#{createTransaction.transactionCommand}" styleClass="tixbutton"
value="#{labels.SUBMIT}" actionListener="#{createTransaction.processAction}">
<f:attribute name="dbName" value="#{wlmHandler.dbName}"/>
<f:attribute name="plexName" value="{color:#ff9900}#{onePlex.name}"{color}/>
</h:commandButton>
</h:panelGrid>
<h:/column>
</h:dataTable >
when i am using this plex name atribute it is giving nullPointerException
{color:#ff9900}this value #{onePlex.name} i cant able to access inside the command button{color}balu i have tried by seeing u r blog.
this is my structure of tables
plexes (if i iterate plexes table gives plex object)
|
------ plex (plex table gives transaction object)
|
------transactions(transactions table gives transaction table)
|
here i will have a command link to this link i have to pass the plex name which
will come from
i tried in this command action with HTMLDataTable getRowData()
i am not getting the selected row data .i am downcasting this getRowData() to plex. -
I have had nothing but problems since I installed the latest version of Firefox version 18. It hangs up my computer no matter what I am doing. Even if I am not using the browser. I uninstalled it three times and the problems just seemed to be getting worse. I finally uninstalled it and did not reinstall it again. I am not going to use it again until the problems are fixed. I also don't know what funmoods is or whatever it is that replaced my google home page. I don't like software deciding what services I should use. I have been a firefox user for over 15 years. I have never had problems like this before. I have switched to Safari. It works without interfering with the other tasks I am doing on my computer. I don't know what version 18 did but the previous version of firefox I was using was perfectly fine. I had no problems whatsoever with it. It appears as if this version was not sufficiently tested. Also my daughter is having the same problems with her computer and they all started with the new version. So it isn't just me. At least give us the option of going back to the previous version and asking us if we want to upgrade when a new one comes out. However, I have never had these problems in the past with any version of firefox I installed. I like the features of firefox but cannot afford to keep rebooting my computer. It seems that firefox gets hung up and then hangs the computer up and I can't do anything else even if I am not using it. It seems to stay on in the background and hang everything up. Please fix this.
It most definitely is the browser that is causing most of the problems. I have used Firefox so long, I can't even remember. Maybe since its beginning. But today is a sad day. I gave up on it. I can't accomplish anything and end up spending hours troubleshooting. I see I am not alone. I am so sick of it "not responding." It's simply not worth it to spend so much time trying to make the thing work, so I can actually do something. Installed, removed, reinstalled numerous times, and I can't fix your software on my Win 7 Pro machine. No problems with IE or Chrome. So. as much as I hate Google Update, Chrome has won the test. Sad, sad day for me to lose Firefox, but it just does not work on the Win 7 machine. I don't have the same issues with the XP machine and have exactly all the same add-ons. Keep it up developers and you will have no Win 7 users at all.
-
Problem with NIReport.llb\Print HTML Report using IE.vi on different machines
We have 5 machines here in our workgroup which have the same state regarding security patches and other system updates. We recently found out that there is a problem with the NIReport.llb\Print HTML Report using IE.vi on the different machines.
If I would open the VI on MachineA the control could be loaded. If I would open the VI on MachineB the control could be loaded. If I would copy the VI from MachineB to MachineA and open the VI the control could not be loaded. If I would copy the VI from MachineA to MachineB and open the VI on MachineB the control could be loaded. MachineB could load the version from MachineA and MachineB but on MachineA only the own version will load. I have seen that both versions have the same GUID for the Microsoft Webbrowser but are different in some other aereas.
Since printing HTML Reports is part of the application which will be distributed as application I want to know if someone else have seen such a behaviour or has got problems distributing an application.
Also I want to know which additional information is stored in an Active-X container about the control beside the GUID.
We have Win XP Prof SP2 with MS IE 6.0.2900.2180 on all machines in the workgroup.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questionsHi Tom,
this is the VI <vi.lib>\Utillitiy\NIReport.llb\Print HTML Report using IE.vi copied from a machine that can load and run the VI and it will print. On this machine the control in the VI is white.
This VI will give the "Control could not be loaded" message on my machine.
The file shdocvw.dll is 2006-10-23 16:18 size 1.460 KB and I verifyed that both machines have the same version of this file.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Attachments:
Print HTML Report using IE.png 11 KB -
Problem with writing continuous data to excel using using Report Generation vi's
Hey Everyone,
I am trying to read the data from DAQ and write to excel continuously using Report Generation vi's.
But when I run the VI, it writes only one interation of the while loop (gathering data from DAQ continuously) and doesn't append the data into the same file when I run it again after stoping the VI.
I have attached the VI i created. Please let me know if you have any idea to solve this issue.
Thanks
Attachments:
sample 5.vi 35 KBThere are two problems with your VI. First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this: Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition. When you exit the acquire/write to file loop, then close the file. In particular, the opening and the closing of the file should not be inside the loop.
As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus. As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function. Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
Good Luck.
Bob Schor -
Problem with HP-UX extended procedures that use C++ Standard library
I am experiencing a problem with using the C++ standard library on HP-UX inside my extended procedures.
Here is the definition for the library and procedures:
-bash-3.2$ more nuhash2.sql
CREATE OR REPLACE LIBRARY xp_nuencryption_l
AS
'/home/jchamber/datasecure/lib/libxp_nuencryption.sl';
CREATE OR REPLACE PACKAGE xp_nuencryption
AS
PROCEDURE xp_nuhash2;
END xp_nuencryption;
CREATE OR REPLACE PACKAGE BODY xp_nuencryption
IS
PROCEDURE xp_nuhash2
IS EXTERNAL
LIBRARY xp_nuencryption_l
NAME "xp_nuhash2"
LANGUAGE C;
END xp_nuencryption;
Here is the PL/SQL test program:
-bash-3.2$ more testnuhash2.sql
SET SERVEROUTPUT ON SIZE 1000000
DECLARE
BEGIN
xp_nuencryption.xp_nuhash2 ();
END;
Here is the implementation of the extended procudure - notice how we are using the C++ Standard library:
-bash-3.2$ more xp_nuhash2.cpp
#include <string.h>
#include <iostream>
#include <fstream>
class MyException {
public:
MyException() {}
int func(std::ofstream& fout )
fout << "func: About to throw exception in func()" << std::endl;
throw MyException();
extern "C"
void xp_nuhash2 ()
std::ofstream fout("/home/jchamber/xp_nuhash2.txt");
try {
fout << "xp_nuhash2: About to call func()" << std::endl;
func(fout);
catch (MyException& ex) {
fout << "xp_nuhash2: caught MyException" << std::endl;
fout << std::flush;
fout.close();
Here is how we build the library on HP-UX:
# compile
aCC -g -AA DA2.0W DS2.0 +z -c xp_nuhash2.cpp -o xp_nuhash.o
#link using aCC
aCC -g -AA DA2.0W DS2.0 +z -b -o /home/jchamber/datasecure/lib/libxp_nuencryption.sl xp_nuhash.o \
/usr/lib/pa20_64/libstd_v2.a \
/usr/lib/pa20_64/libCsup_v2.a
chatr +dbg enable /home/jchamber/datasecure/lib/libxp_nuencryption.sl
Here is how we test:
SQL> @nuhash2
Library created.
Package created.
Package body created.
SQL> @testnuhash2
DECLARE
ERROR at line 1:
ORA-28576: lost RPC connection to external procedure agent
ORA-06512: at "JCHAMBER.XP_NUENCRYPTION", line 0
ORA-06512: at line 3
Now, if i use classic C++ (aCC -AP) it works. The trouble is, we have a lot of code that uses the Standard C++ library and we don't have the time to port it back to classic C++.
The problem seems to be with an incompatibility with the standard C++ library. What is the magic potion of linker and/or compiler switches that would enable my extended procedures to use the standard C++ library?
Here is the environment we are using:
Oracle 9i (64-bit)
HP UX 11.11
RegardsI am experiencing a problem with using the C++ standard library on HP-UX inside my extended procedures.
Here is the definition for the library and procedures:
-bash-3.2$ more nuhash2.sql
CREATE OR REPLACE LIBRARY xp_nuencryption_l
AS
'/home/jchamber/datasecure/lib/libxp_nuencryption.sl';
CREATE OR REPLACE PACKAGE xp_nuencryption
AS
PROCEDURE xp_nuhash2;
END xp_nuencryption;
CREATE OR REPLACE PACKAGE BODY xp_nuencryption
IS
PROCEDURE xp_nuhash2
IS EXTERNAL
LIBRARY xp_nuencryption_l
NAME "xp_nuhash2"
LANGUAGE C;
END xp_nuencryption;
Here is the PL/SQL test program:
-bash-3.2$ more testnuhash2.sql
SET SERVEROUTPUT ON SIZE 1000000
DECLARE
BEGIN
xp_nuencryption.xp_nuhash2 ();
END;
Here is the implementation of the extended procudure - notice how we are using the C++ Standard library:
-bash-3.2$ more xp_nuhash2.cpp
#include <string.h>
#include <iostream>
#include <fstream>
class MyException {
public:
MyException() {}
int func(std::ofstream& fout )
fout << "func: About to throw exception in func()" << std::endl;
throw MyException();
extern "C"
void xp_nuhash2 ()
std::ofstream fout("/home/jchamber/xp_nuhash2.txt");
try {
fout << "xp_nuhash2: About to call func()" << std::endl;
func(fout);
catch (MyException& ex) {
fout << "xp_nuhash2: caught MyException" << std::endl;
fout << std::flush;
fout.close();
Here is how we build the library on HP-UX:
# compile
aCC -g -AA DA2.0W DS2.0 +z -c xp_nuhash2.cpp -o xp_nuhash.o
#link using aCC
aCC -g -AA DA2.0W DS2.0 +z -b -o /home/jchamber/datasecure/lib/libxp_nuencryption.sl xp_nuhash.o \
/usr/lib/pa20_64/libstd_v2.a \
/usr/lib/pa20_64/libCsup_v2.a
chatr +dbg enable /home/jchamber/datasecure/lib/libxp_nuencryption.sl
Here is how we test:
SQL> @nuhash2
Library created.
Package created.
Package body created.
SQL> @testnuhash2
DECLARE
ERROR at line 1:
ORA-28576: lost RPC connection to external procedure agent
ORA-06512: at "JCHAMBER.XP_NUENCRYPTION", line 0
ORA-06512: at line 3
Now, if i use classic C++ (aCC -AP) it works. The trouble is, we have a lot of code that uses the Standard C++ library and we don't have the time to port it back to classic C++.
The problem seems to be with an incompatibility with the standard C++ library. What is the magic potion of linker and/or compiler switches that would enable my extended procedures to use the standard C++ library?
Here is the environment we are using:
Oracle 9i (64-bit)
HP UX 11.11
Regards -
Problem with Polish Characters while downloading data using GUI_DOWLOAD
Hi,
I was trying to create a file on the presentation server using GUI_DOWLOAD.
I am facing a problem with the data that contains polish characters.. like Ą , Ł..
There is a vendor numer in the system as FRĄCZEK, when i was tring to download, the vendor number is downloaded as FR¥CZEK, even i tried to download from SE16 also, still i am facing the same problem.
I am facing the above problem with soem other polish characters..
Is there any solution to download the data properly.. ?
Guys please help me.
Thanks in advacnce.
Regards,
Sriram.
Edited by: Srirama Murthy Maddirala on Oct 27, 2009 8:10 AMHi Sriram,
<li>Get the front-end code page using NLS_GET_FRONTEND_CP.
<li>Pass the code page through GUI_DOWNLOAD.
REPORT ztest.
TYPE-POOLS:abap.
DATA:frontend_codepage TYPE cpcodepage.
DATA:codepage TYPE abap_encoding.
"Get the Frontend Code page
CALL FUNCTION 'NLS_GET_FRONTEND_CP'
EXPORTING
langu = sy-langu
IMPORTING
frontend_codepage = frontend_codepage.
"Pass the codepage through GUI_DOWNLOAD function module
codepage = frontend_codepage.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\temp\data.xls'
filetype = 'ASC'
codepage = codepage
TABLES
data_tab = it_data.
Thanks
Venkat.O
Maybe you are looking for
-
PL/SQL Procedure Calling Java Host Command Problem
This is my first post to this forum so I hope I have chosen the correct one for my problem. I have copied a java procedure to call Unix OS commands from within a PL/SQL procedure. This java works well for some OS commands (Eg ls -la) however it fails
-
IMovie HD movie has no Play buttons.. partially frozen
IMovie HD movie has no Play buttons.. partially frozen/ please help. It is only with a particular movie which is both on an external hard drive and on the computer.
-
Guys, I have a query in Which I have used a calendar date as a prompt. I can add this via a variable to the report title. This is not my problem. When I select a date it returns (in my query) the financial week it is associated with. So in my current
-
I ma using Coldfusion 4.5 (yes I know it's old but it's what I have to work with) to generate a dynmaic RSS feed. The problem I have encounterd is that some of the fields (overview) inside the DB have HTML in them, and even with the CDATA tags in pla
-
Withdrawl quantity Restriction - Plant Maintenance Module
Dear Experts, In standard SAP, we can issue more than the material quantity created in reservation. Can we restrict the same, user will not able to issue more quantity than the quantity reserved while creating reservation. Any idea? Thanks DM