Virtual Charactertistic Code .

Hi All,
I am trying to write a code for the virtual charactertistics  . I am using these 3 programs :
ZXRSRTOP - Global declaration of variables is done here
ZXRSRU02 - Mode of access for each of the IOs used in the exit is defined here.
ZXRSRZZZ - Association of the global variable to the actual IO is done here.The exit logic is also written here.
I want to generate an indicator in the report output, so i took on dummy char of length 1 .
Now in the report selection screen user enters the date range .
In my virtual char code , i want to access these dates given by the user in the selection screen , so that i can write my logic.
How do i access anything which the user enters in the selection screen, that is my question .
Regards,
Ashutosh Singh

Hi All,
Issue got solved .

Similar Messages

  • Any way to map characters to sequences of virtual key codes?

    I have a text and I need to make the java.awt.Robot class instance to type it. The text may contain any Unicode characters. Unfortunately the Robot class accepts only virtual key codes which generate different characters depending on the currently used keyboard layout. I was wondering whether there is any way to create a map of how to convert Unicode characters onto combinations of keyboard layout(s) and sequences of KeyEvent virtual key codes?
    I was originally hoping to find access to the method which interprets sequences of virtual keys (represented by KeyEvent instances of type KEY_PRESSED and KEY_RELEASED) and generates a KEY_TYPED key event (which already contains the resulting character). I however failed to find the code responsible for this functionality and I'm afraid this is done by the underlying operating system. Can anyone give me a hint on where to search?
    The only workable solution I've found so far is to fire sequences of KEY_PRESS and KEY_RELEASED events and their combinations with the Shift key, listen for eventual KEY_TYPED events and save the mapping between the original press/release sequence and the resulting character if such an event is received. This can be repeated for a set of keyboard layouts switched through InputContext.selectInputMethod().
    This solution is however an ugly, inefficient and time consuming hack which may or may not find mapping for a particular character. It also requires a GUI displayed so that one can receive key events, and I also need to find a solution which would run without GUI just from CLI.
    Does anyone have an idea on how to implement this more efficiently?

    I suspect that you are trying to solve the wrong problem. I don't see any reason for converting characters to virtual keys because:
    * this is dependent of current keyboard layout
    * many characters will not map at all
    If you want to use shortcuts use the virtual key codes instead. I wrote few articles regarding keyboard usage in an international context - check http://blog.i18n.ro/category/readiness/input/

  • 5900 PR virtual instrument code

    Hi all
    I have a panametrics 5900 PR (pulser receiver) which is a computer controlled device. Panametrics provided me with the driver and an old virtual instrument code. The code can only work for operating systems up to windows NT (98 and below). Currently, I don’t have access to Windows NT but I have windows XP instead. Is the current code going to work with windows XP? (I think that some specific codes, depending on their usage of registry files, can work in most of the operating systems).
    In the mentioned code, when I try to open it, my labview version( ver 9) says that these codes are too old to open (ver 4).
    Can anyone help me please...

    There is no way for us to be able to tell you whether it will work under XP since we have no idea what the driver does. That's something that's better asked of the vendor.
    As for the LabVIEW code itself, if you cannot get a newer version of the code then you can upload the code here and someone can save it for you in 8.x so you can open it in 2009.
    Note: in the future, please stick to one thread for the same topic.
    Message Edited by smercurio_fc on 12-10-2009 12:48 PM

  • Debugging virtual characterstics code--Urgent

    Hi All,
    I am not able to debug the code written for virtual characterstics.
    Uisng RSRT, I tried to debug.I have put break points also in the code.
    But it is not going to the code I have written.
    Please help me reagrding this.
    This is very urgent.
    Thanks in advance!

    Where have u written the code for vir char?
    Are u using BADI ?

  • Virtual KF code help needed

    Hi,
    Iam trying to calculate the no of days between 2 dates entered by user against system date and factory calendar. Here is the code I have written. Currently the code is written to compute the difference of days based on today's date. So if user enters 'from date' as 1st march and 'to date' as 16th march, then I will compute no of days based on system date. But instead of taking today's date the requirement is to consider the end date for the difference. So the difference between 1st and 16th march excluding weekends will be 11 days etc. How do I pass the end date of bill date in the following code for p_date2. Any ideas?
    FORM USER_0SD_C03 USING I_S_RKB1D TYPE RSR_S_RKB1D
    CHANGING C_S_DATA TYPE ANY.
    DATA: l_zcount1 TYPE int4.
    FIELD-SYMBOLS <L_0BILL_DATE>.
    FIELD-SYMBOLS <L_0COMP_CODE>.
    FIELD-SYMBOLS <L_ZCOUNT1>.
    ASSIGN COMPONENT G_POS_0SD_C03_0BILL_DATE
    OF STRUCTURE C_S_DATA TO <L_0BILL_DATE>.
    ASSIGN COMPONENT G_POS_0SD_C03_0COMP_CODE
    OF STRUCTURE C_S_DATA TO <L_0COMP_CODE>.
    ASSIGN COMPONENT G_POS_0SD_C03_ZCOUNT1
    OF STRUCTURE C_S_DATA TO <L_ZCOUNT1>.
    IF <L_0COMP_CODE> = 'AB99'.
    CALL FUNCTION 'ZCALC_WDAYS_BETWEEN_DATES'
    EXPORTING
    P_DATE1 = <L_0BILL_DATE>
    P_DATE2 = SY-DATUMP_CAL_ID = 'Z1'
    IMPORTING
    P_DAYS = l_zcount1.
    <L_ZCOUNT1> = l_zcount1.
    ENDIF.
    ENDFORM. "USER_ZSFIGC02
    Edited by: Sujatha Raghunathan on Mar 19, 2009 5:48 PM

    Hi,
    check this thread: Re: Working days of month with factory calendar and FM 'DATE_CONVERT_TO_FACTORYDATE'. You can use it twice like described in thread. End date will be your booking date...
    I solved a similar scenarion with this coding...
    Regards
    Andreas

  • Debugger missing Virtual Characteristics code

    Hi Guys,
    I have written a BADI based on definition RSR_OLAP_BADI. I have also written the code, but when I debug the query in RSRT, the code is getting skipped.
    Here is what I have done
    1) created a characteristics with initial value
    2) created the BADI using definition RSR_OLAP_BADI
    3) used the characteristics in the report
    Appreicate your inputs
    Thanks,
    SK

    I have already debugged alot. At one condition it checks
    l_s_rkbif-userexitmode EQ rrke_c_mode-no_selection.
    If this userexitmode is blank, its not going further to the code.
    I have no clue where to make it userexit enabled.

  • Short Dump ASSIGN_TYPE_CONFLICT in Virtual KF implementation

    Hi
    Iam getting a short dump in my virtual KF code. Here is the code that I have written. If I have only bill date it works fine. The minute I add company code it gives the short dump. Can you pls let me know what is it that Iam doing wrong. any help will be greatly useful. Thanks.
    INCLUDE ZXRSRU02
    DATA: L_S_CHANM TYPE RRKE_S_CHANM.
    DATA: L_SUBRC1 TYPE SY-SUBRC. "execute only, if key figure really used
    CASE I_S_RKB1D-INFOCUBE.
       WHEN '0SD_C03'.
                L_S_CHANM-CHANM = '0BILL_DATE'.
                L_S_CHANM-MODE  =  RRKE_C_MODE-READ.
                APPEND L_S_CHANM TO E_T_CHANM.
                L_S_CHANM-CHANM = '0COMP_CODE'.
                L_S_CHANM-MODE = RRKE_C_MODE-READ.
                APPEND L_S_CHANM TO E_T_CHANM.
                APPEND 'ZCOUNT1' TO E_T_KYFNM.
    ENDCASE.
    *Include ZXRSRTOP*
    DATA : G_POS_0SD_C03_0BILL_DATE TYPE I.
    DATA : G_POS_0SD_C03_0COMP_CODE(4).
    DATA : G_POS_0SD_C03_ZCOUNT1 TYPE I.
    Include ZXRSRZZZ
    FORM USER_0SD_C03 USING I_S_RKB1D TYPE RSR_S_RKB1D
      CHANGING C_S_DATA TYPE ANY.
      DATA: l_zcount1 TYPE int4.
      FIELD-SYMBOLS <L_0BILL_DATE>.
      FIELD-SYMBOLS <L_0COMP_CODE>.
      FIELD-SYMBOLS <L_ZCOUNT1>.
      ASSIGN COMPONENT G_POS_0SD_C03_0BILL_DATE
      OF STRUCTURE C_S_DATA TO <L_0BILL_DATE>.
      ASSIGN COMPONENT G_POS_0SD_C03_0COMP_CODE
      OF STRUCTURE C_S_DATA TO <L_0COMP_CODE>.
      ASSIGN COMPONENT G_POS_0SD_C03_ZCOUNT1
      OF STRUCTURE C_S_DATA TO <L_ZCOUNT1>.
      IF <L_0COMP_CODE> = 'AB99'.
        CALL FUNCTION 'ZCALC_WDAYS_BETWEEN_DATES'
          EXPORTING
            P_DATE1  = <L_0BILL_DATE>
            P_DATE2  = SY-DATUM
            P_CAL_ID = 'Z1'
          IMPORTING
            P_DAYS   = l_zcount1.
        <L_ZCOUNT1> = l_zcount1.
      ELSEIF <L_0COMP_CODE> = 'DC99'.
        CALL FUNCTION 'ZCALC_WDAYS_BETWEEN_DATES'
          EXPORTING
            P_DATE1  = <L_0BILL_DATE>
            P_DATE2  = SY-DATUM
            P_CAL_ID = 'Z2'
          IMPORTING
            P_DAYS   = l_zcount1.
        <L_ZCOUNT1> = l_zcount1.
      ENDIF.
    The short dump:
    ASSIGN_TYPE_CONFLICT
    "CL_IM_RSR_OLAP_BADI===========CP" or "CL_IM_RSR_OLAP_BADI===========CM002"
    "IF_EX_RSR_OLAP_BADI~INITIALIZE"
    get field postions for characteristics in structure
    LOOP AT i_th_sfc ASSIGNING <l_s_sfc>
         WHERE user_exit NE rrke_c_mode-none.
    field name in structure is keyreturnnm
    name of the global variable
      CONCATENATE '(SAPLXRSR)G_POS' i_s_rkb1d-infocube <l_s_sfc>-chanm
          INTO l_global_name
          SEPARATED BY '_'.
    fill the global variable
      UNASSIGN <l_global>.
    >>>>>>>>  ASSIGN (l_global_name) TO <l_global>.

    My suggestion is that you review the how-to papers on SDN regarding exit RSR00002 or RSR_OLAP_BADI.  These are alternative methods of accomplishing virtual characteristics and key figures.  The code you have given is for exit RSR00002 (although it is full of syntax errors so is not executable), but the short dump you are getting refers to RSR_OLAP_BADI, so you must have implemented that Class as well, but incompletely. 
    Which method are you attempting to use?

  • Request for sample ZXRSRU01 code-  pass to VKF

    Hello,
    I wrote an earlier mssg but I fear I may have been too complicated in my request.
    I would like to pull a BEx variable user entry in and use it to calculate a key figure.
    I have the virtual KF code working fine.
    I just need help pulling the user value in.
    The variable is a single value entry. So I am unsure about the high/low range that I see in most examples.
    My include is setup as follows-
    *how would I write the code to pull the user entry?
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    REFRESH e_t_range.
    *- Steps
    CASE i_step.
      WHEN '2'.
        CASE i_vnam.               " Variable name
      When 'VariableTech_name'.
         <insert code to pull here>
    ENDCASE.
    Additional questions:
    1) Is there a way to turn off the filtering of the user entered variable? I would prefer to only use it to just pass the info to CMOD rather than filter out data on the report.
    2) Do I need to create special BEx variable? (customer exit, etc) Or will any work with this?
    Thank you very much.
    - Brandon

    Hi KJ,
    Thx for the quick reply!
    In the code example-
    and 'MONTH' represents the variable tech name that we are pulling. And 'CUMMONTH' represents the place we are passing it to?
    Is this correct? Then calculations are done in BEx.
    I would like to do calculations in ZXRSRF02.
    If my infoobject is defined as <ZNEWEST> in my virtual KF code-  How do I get it passed to ZXRSRF02?
    I would like to take user entry and pass it to <ZNEWEST> infoobject in my VKF code.
    Here is my code as I translated it from the example:
      WHEN '2'.
        CASE i_vnam.               " Variable name
          WHEN 'ZNEWEST'.
          Loop at I_T_VAR_RANGE INTO LOC_VAR_RANGE
               WHERE VNAM = 'NEWTSK'.
            Clear L_S_RANGE.
            L_S_RANGE-LOW      = LOC_VAR_RANGE-LOW(4).
            L_S_RANGE-LOW+4(2) = '01'.
            L_S_RANGE-HIGH     = LOC_VAR_RANGE-LOW.
            L_S_RANGE-SIGN     = 'I'.
            L_S_RANGE-OPT      = 'BT'.
            APPEND L_S_RANGE to E_T_RANGE.
            EXIT.
          ENDLOOP.
    Thx!

  • File download code works without error, but no file is downloaded

    Hello,
    I have a very strange problem -- I am trying to download a
    simple file from a server, using virtually identical code to what
    is in the FileReference.download() examples. My code executes
    flawlessly, I get the browse window to select the location to save
    and name of the file, as expected. I click "Save" in the file
    dialog, and the window disappears -- but no file. I know my URL is
    right, because I can test the URL from the browser, and I get the
    file back. But here's the even weirder thing: I threw TCPMon in
    between Flex and the server, and discovered that the
    FileReference.download() method isn't even sending a request to the
    server. If I try the exact same URL through a browser, TCPMon shows
    both the request and response. But Flex never registers a request
    at all.
    Help! I have 100% error free code that follows the
    documentation examples but doesn't request or download the file.
    Your help is appreciated!
    Thanks,
    Brad

    I found the answer to my problem, but now I want to know WHY
    this is, and if it is considered a bug by Adobe -- if anyone out
    there has an explanation, that would be great.
    I implemented the full set of event handlers, and guess what
    -- not only was I not getting any HTTP request being made, but I
    also didn't get any event callbacks. Bottom line, I think I found
    an Actionscript bug.
    The answer to the $64,000 question is this: when the
    FileReference object goes out of scope (I had it declared locally),
    because the download() call is asynchronous, it doesn't call event
    handlers or make a request. It must be garbage collecting it. So
    you have to have your variable as a member, not a local variable.
    Weird. I find no other objects in Actionscript work like that. I
    wonder if it has something to do with the fact that the call
    crosses the native boundary (because it is leaving the Flash
    sandbox, and interacting with the browser/native OS.
    To me, that's like prematurely killing a thread before it has
    completed processing just because it has no parent object with a
    reference to it. In general, most rules for garbage collection I've
    seen in various platforms require either a parent object or thread
    of processing to prevent cleanup.
    If anyone has an explanation, I'm all ears!
    Thanks,
    Brad

  • Register User and code validation Images

    Hello,
    I am programming regiester user page and i nedd to add a image with show a code validation aleatorie, but i dont know how to do this.
    Please help me.

    Hi
    I don't know where the information for that field is from
    Validation 1.
    IF T.CODE ; VA01 or VA02 and User id isXXXXX ( REAL group),then check ZZSO_SORT = REAL (hard code value)
    Validation 2.
    IF T.CODE ; VA01 or VA02 and User id isXXXXX ( VIRTUAL group),then check ZZSO_SORT = VIRTUAL (hard code value)
    The field VBAK-ZZSO_SORT can be filled programatically by the user-exit USEREXIT_MOVE_FIELD_TO_VBAK (include MV45AFZZ):
    FORM USEREXIT_MOVE_FIELD_TO_VBAK.
      IF T180-AKTYP = 'H' OR                                    "---->VA01
         T180-AKTYP = 'V'.                                      "---->VA02
        IF SY-UNAME = <......>.
          VBAK-ZZSO_SORT = 'REAL'.
        ENDIF.
        IF SY-UNAME = <......>.
          VBAK-ZZSO_SORT = 'VIRTUAL'.
        ENDIF.   
      ENDIF.
    ENDFORM.                    "USEREXIT_MOVE_FIELD_TO_VBAK
    Otherwise it needs to know who/what inserts the value of  VBAK-ZZSO_SORT in order to decide where the control has to be placed.
    Max

  • Custom Keyboard Scan Code

    Hi 
      We have a custom keyboard with 20Keys . We need to implement a custom scan code for every keys . Has microsoft documented any custom keys so that OEMs or IHV can use for their requirement so that it doesnt conflict with the standard keyboard scan codes 
      Thanks 

    About Keyboard Input
    From above link.
    "Scan Code
    The scan code is the value that the keyboard hardware generates when the user presses a key. It is a device-dependent value that identifies the key pressed, as opposed to the character represented by the key. An application typically ignores scan codes.
    Instead, it uses the device-independent virtual-key codes to interpret keystroke messages."
    Virtual-Key Codes
    La vida loca

  • Virtual Chars - a new problem

    Hi folks, new to the forum but been working with BW since version 1.2A!!!!
    Anyway, I have implemented Virtual KF to allow me to rank values within a report. This solution was put in place to give a certain ranking when there are drill down and drill across chars on the same page.
    The issues I have is that I would like to access different Virtual Char code depending on which query is being executed.
    Virtual KF sit at the Cube level and execute the same code whenever a qurey with that KF is executed, I need to be able execute different code for the same Virtual KF for different queries
    any ideas?
    thanks
    alan

    Hi Roberto,
    Thanks for providing Alan with information on how to assign points. This time I gave you points on his behalf.
    Contribution Recognition Program FAQ: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
    Cheers,
    Linda

  • Virtual keys - JIS keyboard layouts

    I have found that the mapping of virtual key codes to actual characters is not exactly right using a Mac JIS keyboard and the US layout. For instance, the @ sign is on the key next to the 'P' key. Using a non-Mac JIS keyboard and setting the US layout gives the expected result: the @ sign is on the same key as '2'
    Is there some way to tell Carbon that when I post a keyboard event (CGPostKeyboardEvent()) for the virtual key code corresponding to key '2', I want the receiver program to get a @ sign (if shift is being pressed)?

    Thanks guys for your help. Much appreciated.
    I tried your suggestion to reset the SMC, but unfortunately it didn't help.
    So I rang the Apple customer service here in Japan. To my surprise the phone call was toll-free, even from a mobile. They were very helpful and even called me back several times. I usually only complain about Apple customer service in Japan, so it's nice to be able to say something nice about them for a change.
    Anyway, my keyboard is working properly again now, and I'll write about how it got fixed so in case anybody else has this problem they can find some help here.
    So, resetting the SMC didn't work, so we tried clearing the PRAM by restarting and holding CMD-OPT-P-R. According to the Apple operator, that usually helps with this problem, but it didn't in my case.
    Next we created a new user account to see if the problem was system-wide, or just specific to my user account. The keyboard worked fine in the new account, so the problem was specific to my user account, which suggested that the problem was in one of the libraries (.plist).
    The operator consulted her techies and called me back. Unfortunately, there was no way to find the problem without going through every .plist one by one, so in the end I had to do an 'erase and install'. So I backed up with Time Machine and reinstalled.
    When I restored from Time Machine, I had to do it manually by dragging and dropping from my external hard drive. I restored everything EXCEPT the 'library' folder. The operator went through the back-up library folder with me, taking only those .plists that I really needed, such as my email settings etc.
    And that's it. Finished. Took me ages, and I'll never know what caused the problem in the first place.
    Thanks again for your help, everyone.

  • Game key codes

    Hello all
    I have a vi that gives virtual key codes to the Call Library Function Node, to control the cursor keys. The codes are: 37(left), 38(up) and 39(right), which are the ASCII (decimal) values. Using this output I want to control any kind of game running on windows. However, the program is able to move the cursor keys on applications such as MsWord and Notepad, it is not able to control cursor keys for game.
    So here is my question: Do games, like nfs all have different key codes, or do they have common key codes? Since games do not accept ASCII values, then what are the key codes that they use? Any urgent help would be appreciated.
    Regards,
    Ashutosh

    Hi ashu,
    first: 37-39 (left to right) are not ASCII values of the keys (37=%, 38=&, 39=')! These numbers seem to be scancodes of the keyboard (although mine gives different values for the cursor keys, while 37-39 corresponds to K-Ö on a German keyboard). The operating system translates scancodes to corresponding chars using the currently used keyboard setting (keyboard layout).
    second: Games often don't use OS routines for input devices. So they read the scancode with their own routines and kindly ignore OS wishes...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • HT5839 Save files under Tags without single virtual location

    Today I was wondering about the OS X Mavericks tagging system. Sometimes I try to save a file, such as an image, in the TAGS section of the finder window in Mac OS X. As soon as I do so, because it is not a location rather a search algorithm that searches for files in multiple locations, because the computer to hang. I wanted to ask if you can actually save the file as a tag,and if not then why allow it appear available in the save dialog pop-up window.it appears within the save dialog interface, and so I tried it out various times. My computer just hangs and Finder becomes unusable.my Logic says, it cannot be possible to save the file under tags, unless OS X has programmed itself to save the files and SQL data instead of as an actual file.
    This would require database settings and reprogramming into the OS X Mavericks system. I should definitely think about saving files under the tag section,if it is possible, and how one will achieve it as a programmer and developer. It would be an excellent way to file things without any necessity, for knowing where they are. So long as one saves every file with the right tags. Of course one could then save under a main tag and add more tags in the text dialogue interface which pops up when you are saving a file.
    Or one could remove it from the save dialogue interface completely, to avoid crashes and confusion.attack is not a particular location but then again neither is a folder really. Both folders and tags are just virtual binary code translated into pixels on the screen. I therefore do not really see any difference between an album, a folder, a photo stream, or attack or I could take very. To the binary system they are just different waysof presenting virtual data in a visual way so that humans can interface with it.but tags can be added to a file as more than one tag. And this allows for multiple terminologies and search filters to be used when searching for a file. It allows for cross reference searching.
    Tagging files in OSX is an art and a science, which one must learn and have a very strict regimen with oneself, in order to achieve a truly organized filing system. but, if you truly must of this ought and I strict enough with yourself to organize your tags properly, you can have an extremely powerful way of accessing your data without having to have too many folders and visual interfaces to find them with. This requires that you manually name and tag all of your files of costs which if you work with hundreds of files a day is rather tiresome.
    but that is like planting a field of flowers, you must plod along every day until you have thousands of them and it becomes enough to be called a field. Once you have planted plenty, and that means you have created lots of tags, and have the discipline to name every saved file under is relevant tags, then finally, once you have thousands of files, this will become an indispensable way of arranging and searching for your work files

    Thanks for input. The price changes occur infrequently - Norton/ Symantec software. Not a lot of sku's to make a database plus page is flowery and does not need to be searched on by the user. Links connect directly to Norton. Now I make the changes on one page and "Save as" to the others but my button links fail. It is curious CS4 would make the change from images of the link in the actual link box in html. In view it works fine but on site buttons are not visible?

Maybe you are looking for

  • I am unable to submit my RSS feed into iTunes

    Podcast RSS feed not being accepted by iTunes I have registered my main podcast RSS feed in iTunes successfully. I want to migrate this RSS feed from feedburner to PowerPress, but I want to prototype it first before I move the real feed. To that end,

  • Variables in an action to use in script

    I want to duplicate an image, then change the duplicated image name to the original image name with some extra text at the end to make it slightly different. Example. Original..    Image123 Duplicate...  Image123BW. Or Image123BG. etc. So as not to h

  • Problem with text formatting within a table in Adobe Forms

    Hi all, I have a table on a non-interactive Adobe form (which is a copy of the standard expense form PTRV_EXPENSE_FORM.  The table in ABAP has a text field with CHAR50.  On the form, the text field has a width which allows approximately 35 characters

  • What are these weird blue dashes?

    What are these weird blue dashes that got inserted into my Pages document since I closed it? They appear with each new paragraph start or break and I can't see how to get rid of them! ( I have OS 10.6.8 and Pages 4.1)

  • IPhoto Aperture Photoshop

    From your practical experience, what are the main advantages of Aperture as a product placed between iPhoto and Photoshop?