How can one create CAPI manually?

Hei,
we are in the process of migrating from headstart 5.2 to 6.5. We are in making trial migrations everyday, make the stage to create CAPI via procedure. Setting context for workarea is proving tricky..
The major problem observed so far is the length of irid which is 42 long, and irid parameter is defined with 22 length in jr_context.set_workarea(irid); The procedure is compiling but getting an exception at run time..here is the sample with two example tables. We shal appreciate any tips to fgo move forward:
CREATE OR REPLACE procedure opprett_capi
as
--TYPE tbl_list IS TABLE OF VARCHAR2(300) INDEX BY BINARY_INTEGER;
--lv_tbl_list tbl_list;
lv_tab_lst varchar(300);
lv_irid i$sdd_workareas.irid%TYPE;
MVA3_SERVER constant varchar2(30) := 'MVA3_SERVER (MVA)';
lv_antall NUMBER(10);
lv_act_status char(1);
lv_mesg varchar2(50);
lv_errcode number(38);
begin
-- The irid is 826581404640873523725741275569692818
select irid into lv_irid from i$sdd_workareas;
jr_context.set_workarea(lv_irid);
cdapi.initialize(MVA3_SERVER);
lv_act_status := 'N';
cdapi.open_activity;
lv_tab_lst := 'FLS_ARKIVERTE_BREV |FLS_AVDELINGER |';
hsu_capi.run(lv_tab_lst,'Y');
cdapi.close_activity(lv_act_status);
commit;
dbms_output.put_line(lv_act_status);
EXCEPTION
WHEN OTHERS THEN
lv_mesg := SQLERRM;
lv_errcode := SQLCODE;
dbms_output.put_line('This error was returned: '||TO_CHAR(lv_errcode)||': '||lv_mesg);
end opprett_capi;
show errors

You should look in the hsustart.fmb form to see how it initializes the context workarea. This code is fired on the when-button-pressed trigger in the WKA block. You will need to mimic this same code in your procedure.
Regards,
Lauri

Similar Messages

  • How can one create a paint color generated from a photo using Kuler?

    How can one create a paint color generated from a photo using Kuler?

    The best way to remove a pattern is to use a Fast Fourier Transform.  There's a free plugin (as well as examples and instructions) here:
    http://dl.dropboxusercontent.com/u/6795661/4N6site/improc/fftplugin/examples.htm
    Using the plugin requires editing the individual colour channels, which PSE does not natively allow.  You'll need the reasonably-priced Elements+ addin:
    http://elementsplus.net/
    Here's a crop at 100% of the result I got:
    The pattern is much reduced.  With some experimenting, you can probably do a little better.
    Ken

  • How can one create bookmark folders?

    How can one create bookmark folders in Firefox on a Samsung Galaxy S4? I have tried a couple of the suggested apps in Google Play Store but can't get them to interface with Firefox. Thanks for your help!!

    You would need to set up Firefox Sync and manage your bookmarks on desktop Firefox. https://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync

  • How can I create a manual activity that waits a specific number of seconds

    Hi
    I need to create a manual activity that waits a specific number of seconds. Is there a way to do that?
    Regards

    If you have a manual activity (Human Task) and you would like to define a task deadline in order to continue the process you can define it in the task definition as desribed here: Configuring Human Tasks - 11g Release 1 (11.1.1.6.1)
    But if you just like to stop the process without manual activities involved you can ideed use the Timer Catch Event. See section "6.8.2 Introduction to the Timer Catch Event" in Modeling Business Processes with Oracle BPM for further details.
    Regards, Danilo

  • How can I create a manual control switch?

    Using LabVIEW 6i, I am creating an interface to control a set of valves.  Sometimes the valve control is automated, but manual control is also allowed by flipping a "manual control" switch.  When the controls are in "automate" mode, they can not be switched by the user.  The way I have done this is to create two sets of controls on top of one another: one is a "control", and the other is an "indicator".   When I switch between manual and automatic, I change the visibility of the controls to show either the 'control' or the 'indicator', respectively.  It seems that there should be a better way to do this.  Any ideas?

    Use your "manual control" switch to enable or disable the set of valve switches. This you do e.g. by creating a Property Node for each of your valve controls and select the property "Disabled". You can wire the states "Enabled", "Disabled" and "Disabled and Grayed Out" to all of the property nodes. (You cannot operate on disabled controls - which is exactly what you need.)
    This also removes the need to have the two sets of controls and indicators: The set of controls will do.
    Regards, Guenter

  • How can I create more than one main window in a page of SAP SCRIPT?

    How can I create more than one main window in a page of SAP SCRIPT? If anybody helps me I will be obliged.
    Regards,
    Subhasish

    Hi Ganguly,
    It is possible to have more than one main window in a same page.
    You create a main window and simply you copy and past it in the same page.. it will create first main window name as MAIN and other main windows as MAIN01,MAIN02.... up to MAIN99.
    Contets flow from MAIN , MAIN01, MAIN02.......................MAIN99. contents after filling the current window it flows to next window(by default, you skip as well with some keyword not sure could be NEW-WINDOW)
    you want print the main window data twice? or you want to create two main window in the same page ?
    1. give two copies in the no of copies in the output type screen ( Which pop up is coming after excute the program ).
    2. create two page with the same script form.
    3. you can write the coding inside the program to print twice the same page.
    Hope this information use full to you..

  • How can I create multiple sales orders with reference to one contract?

    Hello Gurus,
    Can you please how can I create multiple sales orders with reference to one contract?
    thanks!
    Rakesh

    hi
    Lets consider example
    In your contract for line item 1 you have entered qty 100
    You careated sales order with 70 quantity, and now you want to creat another sales order for 30
    For this first you need to check what is your item category in contract (VA42)
    Goto VOV7
    SPRO - IMG  - Sales and distribution - Sales - Sales document item - Define item categories - Go to change mode
    Make the completion rule = B Item is completed after full quantity has been referenced

  • How can I view my photos in "Events" like in iPhoto? How can I create events?  I have 55,000 photos and 1700 events so the only way I can possibly manage my photos is using events that are one slide in size.

    I have 55,000 images organized into about 1700 events. The only reasonable way to view my library is using events in iPhoto where each event has one image That still leaves 1700 images to sort through but that is a lot easier than 55,000 images.  In the side bar is a folder with "iPhoto Events" but those views still show all of the slides.  How can I create events and view my photos as events as in iPhoto?  Events are critical for large libraries and has been my primary way to sort images.
    Thanks!

    I had a problem a couple of months ago when iPhotos suddenly rearranged the order of my Events (Why won't iPhoto let me arrange my photos?) .  I was told "Use albums not events - events are not a good way to organize - albums and folder are designed for organisation and are very flexible".
    Haha!  I should have paid attention and read between the lines!  My iPhotos were highly organised groupings - not according to date but the way I wanted them - and it was so easy to do!  I see now that if I had them all in albums, as per the Apple Apologist suggestion, I wouldn't have this unholy mess I have been left with just to make iPhone & iCloud users happy.  I am now going through Photos and making Albums (of what used to be in my Events)  ... maybe I'll get this finished before they do another non user friendly update!

  • It wants to verify my account and won't take the password, how can I create a new one or verify the existing one?

    I cloud wants to verify my account and won't take the password, how can I create a new one or verify the one it won't take?

    If you can't remember the password, reset it at...
    iForgot.com

  • How can I edit my website from another computer? and how can I create a new website next to the one, I have already? Can anyone help, please?

    How can I edit my website from another computer? and how can I create a new website next to the one, I already have? Can anyone help, please?

    Move the domain.sites file from one computer to the other.
    The file is located under User/Library/Application Support/iWeb/domain.sites.  Move this file to the same location on the other computer and double click and iWeb will open it.  Remember, it is your User Library that you want and not your System Library, as you will not find iWeb there.
    Just create a new site on the same domain file and it will appear below the other site.  If you want them side by side then duplicate your domain file and have one site per a domain file and they can then be side by side.

  • How can I create a drawing like the one pictured from a photo?

    How can I create a drawing like the one pictured from a photo?

    OK, you are getting closer. Now, use your result, and place a Layer above that. Use the Pen Tool to create the "pen strokes" basically tracing over your background image. Then, when you have created each Path (or Sub-Path), choose Stroke Path, with probably the Pencil Tool and a Brush size that is small enough.
    Not sure which versions of PS these are good for, but here are some plug-ins, that might be helpful.
    AKVIS Sketch
    EdgeLine
    Sketch Effects
    Sketch Master
    I see that one of my old favorites, Flaming Pear's India Ink is not around any more.
    Good luck,
    Hunt

  • Could any one tell me that How can i create the service User ie j2ee SID

    hi all,
    In the implementation of SPNego Authentication schem in my portal system.
    i want to create the service user ie .j2ee-<SID>.
    <b>could any one tell me that How can i create the service User ie j2ee-<SID> in my visual administrator??</b>.
    any help will be highly Appretiated .
    thanks and regards.
    vinit soni.

    Vineet,
    the user management tab opens in Read Only mode - thats why the button is coming as disabled. There is a button for switching into Edit mode - it looks like a pen / pencil on the top bar. Click on that - your "Create User" button would be enabled.
    Also regarding creation of Service User via code level you can see <a href="https://www.sdn.sap.com/irj/sdn/thread?messageID=1057074">THIS</a> thread. And <a href="http://HERE">http://help.sap.com/saphelp_nw04/helpdata/en/f9/e3162ec55f4df6922d161f3785012a/frameset.htm</a>HERE[/url] is the SAP Help documentation on required permission settings.
    Regards,
    Shubhadip
    Message was edited by:
            Shubhadip Ghosh
    Message was edited by:
            Shubhadip Ghosh

  • How can i creat several rectangles with one draw rect.vi

    how can i creat several rectangles with one draw rect.vi? thanks
    Solved!
    Go to Solution.

    You can call it in a for loop, with an array of the rectangle coordinates you want to draw. Is this what you mean?
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    rectangle.png ‏11 KB

  • How Can I Create One Entry Sheet For Multiple Line Items of A PO

    Please Tell Me How Can I Create One Entry Sheet For Multiple Line Items of A PO

    hi,
    It is not possible to create single Service Entry sheet for multiple PO line items. It is 1 to 1 relation.
    you have to make different service entry sheets for different item of service master.
    regards
    Manish Joshi

  • How can i create a Laptop like the ones use in SAP TecEd?

    How can i create a Laptop like the ones use in SAP TecEd hands on labs? with all the NW products install on it.

    Hi,
    Vague question, but to create a laptop with the solution installed - you need to order the solution and and then install it on the laptop. Or download trial versions from SCN and install those as well.
    Regards,
    Srikishan

Maybe you are looking for

  • How to delete multiple emails at one time instead of individually

    I want to select random emails (not all in a row sequentially) and delete with single function. I don't want to have to delete each unwanted email individually.How to d this? Also, There is no delete function at top of email screen-why not?

  • Great Feedback for the G5 iMac and Apple

    My father recently went with a group of people to the Rotary Centennial Conference in Chicargo, and us being from New Zealand this was quite a major trip for their club. About 10 of them went and all took their own photos, but when they got back a th

  • Payment voucher to be transporter

    Hi.. I am preparing things for some taxtile Industry. My scenerio is as follows : Whenever we get Gray to our General Warehouse from where we send it to client's Dying Factory. When we issue challan for it, we  are supposed to gererate Payment Vouche

  • The reasoning behind aggregation rules at report level

    Hello guys I notice that in the answer criteria, we can define column formula of each columns in the request, but we can also set aggregation rules for the numeric columns.. I'd like to have a deeper understanding on how these settings work.. The Avg

  • [solved]pacman seems to be stuck in infinite loop

    Hi, All I was trying out gnome2.20 which is till in testing. Installation of the packages was smooth, but I could not start X after the installation. The Xorg logs said that there was no X sever installed while the It was listed in the pacman -Q I de