Problem with CAPI routines get_date|num|char_value

Hi CDM Ruleframe users,
I created the following testscript
(table a (id number,begindate date))
begindate is initial 01-01-2000 for id=1
1) update table a set begindate= sysdate
2) rollback.
3) app_a_capi.get_date_value
In the debug monitor i log the data value this routine returns. This routine returns the new value of the date value (sysdate) instead of the old one(01-01-2000)!
Is this because the built-in cache of the CAPI is not working properly?
We are using CDM Ruleframe with CAPI generator v 6.0.2.1.
Kind regards,
Jan-Derk Weitering
null

Jan-Derk,
It is technically not possible to rollback the CAPI cache (stored in package variables) just by issueing a database rollback command. There is no ON ROLLBACK database trigger to catch the event.
If you want to do a rollback in a CDM RuleFrame environment, you should always call qms_transaction_mgt.abort_transaction instead. This combines rollback with clean up of transaction management, clears all business rules from the rule stacks and clears all messages from the cg$errors message stack.
After this, it is possible that the CAPI cache still contains the wrong value, but no business rule code will look at it because there is no open transaction anymore. When a new DML action is performed, the CAPI cache is cleared (with each DML action, the CAPI compares the current transaction id to the previous transaction id).
I hope this explains it,
regards,
Sandra

Similar Messages

  • Problem with Caps Lock and Num Lock after 10.5.1

    I noticed after updating to 10.5.1 my caps and num lock lights were on, i thought this odd as I did not push the buttons, pushing the buttons to turn the lights off however actually turns the caps and num lock features on.
    In short, the light is backwards! when caps is OFF the light is on and when caps is ON the light is OFF!
    the same is true for the num lock key/light...???
    anyone else notice this problem?

    Same exact problem... after updating I noticed that my numbers lock and caps lock were on. Didn't think much of it so I turned them off and then I notice that they are working in reverse. Caps lock on gives me lower case letters and numbers lock on I only get the symbols associated with that key above the number....mmmmm.
    Anyone found a fix yet? I have looked in preferences and other places but found no solution.

  • Problem with standard Routine "Seniority"

    Hi gurus,
    I have a problem with the routine "Seniority" that evaluate the length of service for the infoObject 0SRVCLEN - Length of Service. It is a standard routine in the update rule 0HR_PA_0.
    The problem occurs when the Employee has less than a year of service. The result of the routine is "0" but in the BW query "0" is interpreted like "#" - Not assigned.
    How can I change the value of the Not assigned result?
    This is the main part of the routine:
      IF NOT EMPLOYEE_WA-ENTRYDATE IS INITIAL.
        RESULT = ULTIMO0(4) - EMPLOYEE_WA-ENTRYDATE0(4).
        IF ULTIMO4(4) LT EMPLOYEE_WA-ENTRYDATE4(4).
          RESULT = RESULT - 1.
        endif.
      ENDIF.
    Thanks
    Alberto

    Sonal,
    To find the number of items please correct the code as below:
    Determine number of PO item lines
    LOOP AT TKOMV WHERE<b> KNUMV = TKOMV-KNUMV</b>
                                AND      NOT KPOSN IS INITIAL.
    AT NEW KPOSN.
    I = I + 1.
    ENDAT.
    ENDLOOP.
    Keep rest all code as it is.
    Let me know if this works,
    Thanks.

  • MacBook starts with caps lock and num lock ON

    From time to time after upgrading to Leopard, my caps lock and num lock lamps are lit after startup. However, all other keys work normally, caps lock and num lock are not actually turned on. Is there a way to avoid this misbehaviour?

    Do computers have child diseases? My computer's immune system now seems to have taken care of the caps lock/num lock problem. I haven't had any inverted startups in weeks now. Very strange!
    In my experience, the treatment is to ignore the fact caps lock/num lock is lit, and to restart the computer. If you need to log in to restart, do it as if startup was normal, since caps lock/num lock is not actually turned on.
    And hope for the natural healing.
    Does anyone have different experiences?
    /Joachim

  • Problem with Transformation Routine

    Hi all
    I am using a DSO 0FIGL_O02 taking data from the DataSource 0FI_GL_4 . I have a field 0Customer to the DSO & for that i´m taking data from the another DSO ZPCA_EC3 .
    The folllowing is the Tranformation Routine i have tried
    Routine 1,
    Data : zcustomer type /BIC/AZPCA_EC300-CUSTOMER.
    select single customer
           from  /BIC/AZPCA_EC300
           into  ZCUSTOMER
           where AC_DOC_NO = SOURCE_FIELDS-BELNR.
         RESULT = zcustomer.
    Routine 2.
    Data : zcustomer type /BIC/AZPCA_EC300-CUSTOMER.
    select single customer
           from  /BIC/AZPCA_EC300
           into  ZCUSTOMER
           where AC_DOC_NO = SOURCE_FIELDS-BELNR
            and  COMP_CODE = SOURCE_FIELDS-bukrs
            and FISCYEAR  = SOURCE_FIELDS-gjahr.
        RESULT = zcustomer.
    I dont get any errors for this Routine , But when i run the DTP it is going on Running & Running for hours, with no results , But again no errors also.
    What could be the problem  ?
    Could anyone help me write a better routine .here is my requirement
    I want to pick up 0Customer field data from ZPCA_EC3 based on 0AC_DOC_NO in both ZPCA_EC3 & 0FI_GL_4 DataSource.
    Regards
    Ramesh

    Hi,
    well I don't know the key of your ods. But the first check would be to use fields in the where clause which are in the key or a additional index. Another option might be to select the data for the complete data package at once into a internal table and access the internal table in the routine. May be you can also do the whole thing in the start routine.
    regards
    Siggi

  • Problems With Cap converter

    Hello,
    so far i have managed to write some Applets and install also Cap files on a Card.
    But i am not able to install my own created cap files...
    My Environment ist the following:
    My OS is Windows Vista
    I am using JavaCard 2.1.1 (Cause my Stick has only it)
    I am using JCDE 0.1 for JavaCard 2.2.2
    The Card is GloablPlatform compatible :-) (i think all javacards are,or??)
    I am using GPShell to install Caps.
    The applet is written in JCDK 2.1.1
    I can install some Test Caps. (Caps i got form another Hompage like wrankl.de)
    I am writing more or less the same code as the test Caps.
    I am converting the Applet with JCDE and i am testing it with JCDWE. So far no problem at all.
    But as soon as i want to Install the Cap i am getting the following error:
    Response: 6438 unknown ISO Error. (0x80206438)
    In the first place the installation looks fine but than it interrupts with this error...
    If i want to convert the applet by hand i am getting only strange envrionment errors like jre1.6 was not found or something like this.
    The problem is that it looks like the global variable is defined well but the error says otherwise.
    So if anybody as an idea about:
    - my global variable problem in windows vista
    - what the error 6438 means or stand for
    - if there exists a better eclipse plugin to wrap the jcdk tools
    - if there exists another cap converter
    I would be really grateful.
    Thanks & Bye
    McUrban

    In answer to your question regarding the SW you are seeing this might help (or at least explain what it is).
    From ISO7817-4:
    ===============================
    *8.6.1 Triggering by the card*
    SW1-SW2 set to '62XX' with the value of 'XX' from '02' to '80' means that the card has a query of 'XX' bytes
    that the interface device should retrieve and for which the card possibly expects a response.
    SW1-SW2 set to '64XX' with the value of 'XX' from '02' to '80' means that the card aborted the command; a
    possible completion of the command is conditioned by the recovery of a query of 'XX' bytes, for which the card
    possibly expects a response.
    If present in the historical bytes with a value such as above, SW1-SW2 shall be interpreted as above.
    If a PUT DATA command (see 7.4.3) for transmitting a reply is aborted with SW1-SW2 set to '64XX', then
    --- with '64XX' from '6402' to '6480', the card wants to send at least one more query of 'XX' bytes;
    --- with '64XX' set to '6401', the card is expecting an immediate response.
    ===============================
    This may not help very much but it basically means that the applet is expecting something to happen. If this is not your applet it may be hard to determine what is required.
    I am not too sure about your other problems as I am using JCDK 2.2.1 under Windows XP. You may need to ensure that when running the converter by hand that both JAVA_HOME and JC_HOME are set in your environment variables. You should try running from a command prompt and run the following commands to see if they are set correctly:
    echo %JC_HOME%
    echo %JC_HOME%You may also want to try using an older version of Java to compile your classes. I know that JCDK 2.2.1 does not work if you don't set the source and target level to 1.3.
    I hope this helps,
    Cheers,
    Shane

  • Problem with Caps Lock

    Hi Mac-World,
    Owning already 4 others Mac's (2 x iBook, one Powerbook and a Mac Book), I bought myself a new MacBook Pro 2 weeks ago. It has a 17"screen and 4gig of Ram.
    Now the "Caps Lock" button on my new MBP doesn't work the same way as on my other computers. It appears to react much slower or I need to hit it much harder. Let's say if I would tab the button 10 times in a normal manner, it will only turn on (and put the light on) 3 or 4 times.
    I took the computer back to the shop. They changed the keyboard and the parts underneath. Same thing. They have a 17" and a 15" MBP in the shop. They both work fine .
    They are gonna try another keyboard this week but I fear it isn't change much.
    Anyone some ideas ?
    Werner.

    same thing here
    caps lock doesn't react normally.
    i must confess it is better in my windows XP machine :(((
    I must hit the key several times to make it work properly. Anyone having the same issue? I am also facing the issue with the stripes on the screen.

  • New out of the box MacBook Pro with Caps Lock/Num Lock lit keys

    I just set up my brand new MacBook Pro 15" laptop and, right out of the box, the Caps Lock and Num Lock keys were lit up. I didn't think anything of it, and transferred all my user files from my old PowerBook G4. Well, they 2 keys seem to be working in reverse. When Caps Lock is lit up green, all characters are in lower case. Same as Num Lock. Any advice? Do I have a lemon?
    Thanks!

    I've also had this problem twice over the past couple of weeks.
    I have a theory that it has something to do with plugging in my USB mouse during the system boot. A reboot cured it both times though, and it's not gotten tot he point that it's annoying enough to investigate further.

  • Problem with READ Statement in the field routine of the Transformation

    Hi,
    I have problem with read statement with binary search in the field routine of the transformation.
    read statement is working well when i was checked in the debugging mode, it's not working properly for the bulk load in the background. below are the steps i have implemented in my requirement.
    1. I selected the record from the lookuo DSO into one internal table for all entried in source_packeage.
    2.i have read same internal table in the field routine for each source_package entry and i am setting the flag for that field .
    Code in the start routine
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
         and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp <> 3.
    delete it_zcam where end_dt initial.
    sort it_zcam by surce accno.
    endif.
    field routine code:
    read table it_zcam with key source = source_package-source
                                                 accno  = source_package-accno
                                                 binary search
                                                 transportin no fields.
    if sy-subrc = 0.
    RESULT  = 'Y'.
    else.
    RESULT = 'N'.
    endif.
    this piece of code exist in the other model there its working fine.when comes to my code it's not working properly, but when i debug the transformation it's working fine for those accno.
    the problem is when i do full load the code is not working properly and populating the wrong value in the RESULT field.
    this field i am using in the report filter.
    please let me know if anybody has the soluton or reason for this strage behaviour.
    thanks,
    Rahim.

    i suppose the below is not the actual code. active table of dso would be /bic/azcam_o1100...
    1. is the key of zcam_o11 source and accno ?
    2. you need to get the sortout of if endif (see code below)
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
    and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp 3.
    delete it_zcam where end_dt initial.
    endif.
    sort it_zcam by surce accno.
    field routine code:
    read table it_zcam with key source = source_package-source
    accno = source_package-accno
    binary search
    transportin no fields.
    if sy-subrc = 0.
    RESULT = 'Y'.
    else.
    RESULT = 'N'.
    endif.

  • Problem with Small Caps

    I have a problem with small caps when using Times New Roman and Helvetica, but not when using Adobe Garamond Pro, and would like to find out why.
    I generate the small caps within InDesign by the "TT" box in the Control Window. Adobe Garamond comes up with beautiful small caps that blend in with the surrounding text. When I do the same with Helvetica, the small caps, especially if they have normal caps amongst them, are quite inelegant looking because of different letter widths.
    So I did some experiments with half a dozen other serif and sans-serif fonts and none of them were as elegant as Adobe Garamond Pro. For a sample of what I mean, download:
    http://www.mediafire.com/?z5fm0zndmzm
    which compares three fonts: Adobe Garmond, Heletica, and Times New Roman.
    Unfortunately, I did not pick up this problem until I received my first proof from the printers, and now I will have to change all the Helvetica small caps to normal caps, as I can see no other way of overcoming this inelegancy.
    I checked in New Scientist magazine (it uses a serif and sans-serif font throughout, and what I thought I remembered as small caps to begin their stories) to see what they do, but they actually use caps instead of small-caps at the beginning of stories.
    Three questions:
    Q1: Is the way I generate small caps the correct way?
    Q2: Is there something wrong with my Helvetica and Times New Roman fonts?
    Q3: Could it be that only Adobe Garamond has an internal, properly designed small caps?
    I have checked the attributes of the fonts: Garamond is Open Type Postscript, Helvetica is PostScript Type 1 , and Times New Roman is TrueType.
    Any comments most appreciated.

    Thanks for the hints. I tried Scott's method and it works with a bit of extra adjustment. The settings I obtained for 12 point Helvetica were:
    Horizontal and vertical scaling: 70.5%;
    Stroke: 0.1 pt
    Tracking: +25 em
    Baseline shift: +0.1 pt
    The steps to obtain small-caps 12 pt Helvetica are:
    Step 1: Type text as normal.
    Step 2: Select only the lower-case text you want to convert to small caps. i.e if what is to become small caps already has a capital (such as a place name) do not apply the settings to the capitals, unless that's the effect you want.
    Step 3: Apply the above settings manually or via or Character Style.
    Problem 1: How do I rid my Character Style of the font size so that only the scaling factors remain? As it is, if I want to apply small-caps to a different font size than the one I have set up, I have to manually change the font size after applying the style.
    Problem 2: The scaling factors do not appear to work for changes in font size. When I used 24 pt and applied the above settings, the small-caps were too thin. The method only really works for a particular size, which in reality is all you would normally require.

  • After performing a routine software update this week, I am having problems with both of my email accounts.  I am unable to "Reply" to any emails. Does anyone have a solution to this problem?

    After performing a routine software update this week, I am having problems with both of my email accounts.  I am unable to "Reply" to any emails. Does anyone have a solution to this problem?

    I am having the same problem also  Thought it was my network and reset everything including Apple TV but still the problem is there . I assume now it is down to iOS 8 prior to that was perfect

  • Problems with Motion5 accented letters in all caps

    Hi,
    I am having problems with text in all caps when the text contains accented letters (éèàù) they are not rendered as accented caps but in their original format.
    It is funny because some smaller programs less professional like iWork handle that fine?
    Any suggestions?

    Hi,
    I am having problems with text in all caps when the text contains accented letters (éèàù) they are not rendered as accented caps but in their original format.
    It is funny because some smaller programs less professional like iWork handle that fine?
    Any suggestions?

  • W530 Num Lock problems with VMWare

    All,  I am having a major problem with VMWare and the W530 "Num Lock".  When I move the cursor into the VMWare window a message comes on say "NUM LOCK: ON" when I move it out of the VMWare window I see message "NUM LOCK: OFF".  I do not have any key on the keyboard to disable Num Locl.  There are utilities I can run in the SUSE VMWare image to capture the key binding and remap, but I do not have anyway of turning Num Lock on or off to capture
    the key binding.
    Suggestions ?
    Solved!
    Go to Solution.

    Hello and welcome,
    A couple of things you might try.  Don't know if they'll work on your W.  They do work on some other Lenovo machines.
    Plug in a USB keyboard that has numlock.  Use that and see if it sticks after reboot.
    Use the on-screen keyboard.  Click "options" and enable numeric keypad.  That should add a keypad and NUMLOCK key to the on-screen keyboard.  Use that.  See if it works - and if it sticks.
    (Windows 7) Start -> Accessories -> Ease of Access -> On-Screen Keyboard.
    A little more detail here:  http://www.beezmo.com/geezblog/?p=259
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • I am having problems with my Pantech Caper. Please Help!

    I just transferred my phone number over to a used Pantech Caper that I bought a few years ago. When I used the Caper previously I had no problem with it. And the phone i had before i transferred numbers worked just fine i was just having problems with some buttons not working. Now that i have transferred the number over to the Caper i can receive texts and picture messages but can not download the messages. I can not receive calls nor can i send texts out. after i try to send a text I receive a message saying I have insufficient fund to send message. oh extra info... i have the plan for 500 minutes and unlimited text picture messages and unlimited web. Please Help... I need my phone for work.

        Hi YukiCross,
    I am  confident your issue has been resolved since your original post! If not,let's get this figured out. Based on your description it sounds like you have Pre-Paid service with us. For Pre-Paid assistance please reach out to:888-294-6804 . I can gladly address and resolve any Post-Pay related concerns.
    Thanks for your contribution to our community forums,
    AyaniB_VZW
    Follow us on Twitter @VZWSupport

  • Problems with auto-cap of I on ios6?

    I upgraded my 4s to iOS6 and not my auto capitalization of "I" is not working. Anyone else have this problem or know how to fix it?

    Yeah I tried making a shortcut to make i into I, but it has to be two characters. I guess I'll just go into the store tomorrow and see if anyone else has had problems with it with iOS6. I haven't heard that anyone has had any wonderful experiences with it yet

Maybe you are looking for