Problem with function ENQUEUE_READ

Hi friends,
I've created a report that use BDC to call transaction MM02 for changing some materials.
Before call transaction mm02, I use function module ENQUEUE_READ to check lock status of material.
Problem: I tested this report by a developer user, that's great. But with another user have right to use MM02 and not have permissions on se37, se38....This function module ENQUEUE_READ isn't working.
Anyone can tell me why? or tell me another method to check lock status of material.
Thanks,
Gy

Dear Friend,
I also facing similar problem. As you come acros about this, Hope you know the solution. Please helo me how you resolved this thread.
How could I know if this change pointer is an iinsert,update or delete pointer?? The field CDCHGID of table CHANGE_POINTERS is always comming as U.
Every operation (insert/change/delete) iam getting change indicator as 'U' only for change pointers in BDCP table and also in IDOC.

Similar Messages

  • I'M HAVING PROBLEM WITH FUNCTION KEY, I'M HAVING PROBLEM WITH FUNCTION KEY

    Hello everybody
    Recently i'm having problem with function key of iphone4, now its working assistive touch key board , between these days i had restored and update then it work for next 12 hour after that it again stoped..
    pls help me from this isssue,
    thanking you.

    There are no function keys on the iPhone.
    Please clearly state the issue that is occurring.

  • Problem with function arguments

    I am having a problem with arguments to a function not
    working. In the attached example, the values passed to the function
    are never reflected within the function.
    Can any one tell me what I am doing wrong?
    Thanks,
    David

    hey drzeller,
    i just copied and pasted the original code you attached to
    this thread into flash and kglad is right. there is no problem with
    any of it. i didn't check your values before i altered your code
    originally, i just assumed they were outputting the values you
    posted. if you will copy and paste your original code back into
    flash and check the output window you will see what kglad is
    talking about.
    just so you know, all the advice i've ever seen in this forum
    from kglad has been spot on. definitely use his advice.

  • Problem with function, need to return a very large number

    I have a function that is used to derive a number by using a defined algorithm. We have tested it many times in our 'development' region and it works. We moved it to our 'UAT' region and now the function is giving an error. The data is the same in both oracle instances. So.... dba's are telling me it is the function. At this point, I don't know what to do.
    Can I declare "RESULT" in a function so that it can return a number this big: 2.00023880306E24?
    Oracle returns -6502 error in the deriveNewNum function.
    Here is the error:
    *** ERROR in deriveNewNum.fnc
    SQLCODE: -6502
    ORA-06502: PL/SQL: numeric or value error: number precision too large
    BEGIN TF1ID; END;
    ERROR at line 1:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at DERIVENEWNUM", line 93
    ORA-06512: at line 1

    Hi,
    Did you look up that error in the error messages manual?
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28278/e4100.htm#sthref1889
    Is there something there that you didn't understand?
    <h3>ORA-06502: PL/SQL: numeric or value errorstring </h3>
    Cause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
    Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
    If you declare variables like this:
    x     NUMBER;
    y     NUMBER (20, 10);there woul be no problem assigning a value like 2E24 to x, but there would be if you tried it with y.
    How are your varaibles declared.
    Whenever you have a problem with your code, post your code.
    Always say what version of Oracle you're using.

  • Problem with function 'GUI_DOWNLOAD'

    Hi to everybody!!
    I've a problem with the function GUI_DOWNLOAD, when I execute the program this make a dump and the problem is in this function.
    I've read the log and this said that :
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was
      not caught in
    procedure "CREAR_FICHERO" "(FORM)", nor was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Function module "GUI_DOWNLOAD" was called
    with the parameter "ACCESS_DENIED".
    This parameter is not defined.
    Can anybody tell me what's the meaning of this?
    Thanks very much,
    Regards,
    Rebeca

    Hi,
    You must have the write access to the file in OS level to which you are trying to download the table content using the function module 'GUI_DOWNLOAD'.The error occurs because the system is trying to write in a file to which, the write permission is not permitted for the user.If you are catching the exceptions properly.It will give the proper message instead of dump.
    Regards,
    Ajith

  • Problem with function "DBConnect" in LabWindows/TestStand

    Hello, good day.
    I'm having some problems with the function DBConnect.
    I have made a function called GetSensor which I know it works because I have used it and tested it in the LabWindows enviroment.
    His function is return the value of some element in my database according of his input parameter, just that.
    My problem is that when I tried to use that same function in TestStand, it seems that the DBConnect cannot work as in the same way of when it is used from LabWindows because always show a warning message, which is display only when the values of iHdbc are iHdbc==-11 or  iHdbc==-10.
    The softwares that I'm using are:
    Thanks in advance. Any help you could give will be welcomed.
     

    The solution to my problem with the function DBConnect was to use NI TestStand 2014 (32-bit) instead of the NI TestStand 2014 (64-bit) version I was using. Just that.
     

  • Problems with function

    Hi
    I have a problem with the FM ' <b>HRVE_CONVERT_CURR_NAT_PAY_TABS</b>'
    i need convert the currency in the table PS_EVAL , but i have a dump for conflit type with the declarations of my table.
    Which type of declarations can i use for my table?
    How can i use this FM for convert currency in table PS_EVAL?
    Thanks for your help
    Regards
    Gregory

    Hi
    <b>part of my dump</b>
    The call to the function module "HRVE_CONVERT_CURR_NAT_PAY_TABS" is incorrect:
    The function module interface allows you to specify only fields
    of a particular type under "CT_PS_EVAL". The field "WA_PS_EVAL" specified here has a different field type.
    <b>My Code :</b>
                  LOOP AT ps_eval.
                    linea = sy-tabix.
                    MOVE-CORRESPONDING ps_eval TO wa_ps_eval.
                    call function 'HRVE_CONVERT_CURR_NAT_PAY_TABS'
                         exporting
                              iv_target_currency    = moneda_endda
                              iv_currency_rate_date = pn-endda
                              iv_pernr              = pernr_aux
                              iv_seqnr              = evpdir-seqnr
                         changing
                              ct_ps_eval            = wa_ps_eval
                         exceptions
                              error                 = 1
                              others                = 2.
                  ENDLOOP.
    Regards
    Gregory

  • Problem with function "DBConnect" in TestStand/LabWindows

    Hello, good day.
    I'm having some problems with the function DBConnect that I'm using in a personal function inside a DLL.
    I have made a function called GetSensor which I know it works because I have used it and tested it in the LabWindows enviroment.
    His function is return the value of some element in my database according of his input parameter, just that.
    My problem comes out when I tried to use that same function in TestStand, it seems that the DBConnect cannot work as in the same way of when it is used from LabWindows because always show a warning message, which is display only when the values of iHdbc are iHdbc==-11 or  iHdbc==-10.
    The softwares that I'm using are:
    I know TestStand is opening the function from my DLL becasuse it always get in, but did not pass the part when try to connect to the database.
    I think this could be a compatibility issue between LabWindows and TestStand, but I do not find where can I modify some options to fix this problem.
    Thanks in advance. Any help you could give will be welcomed.

    Hi,
    Looking at the code i dont see any issue wrt Teststand interface.
    The variable passed from TestStand to CVI code is not used to connect to DB.
    When you say it works fine with CVI only - did you try to build a  CVI application on the same machine with the same code and try?
    If the CVI application also gives the same error then you need to install a CVI addon SQL toolkit for DB to work.
    Hope this helps.
    Ravi
     

  • Problem with function XMLIsValid()

    Hi,
    I have insered an invalid XML document into an XMLType table with constraint XMLIsValid(..)
    My question is: Does my XML Schema not work or is there a problem with validation against xsd:key, xsd:keyef definitions?
    I have checked my XML Schema and my XML Doxument instance with XMLSpy (V4.x) and with Xerces. Both parsers detect the error.
    If you have any clue, please send me a note ([email protected]) or post a reply.
    Thank you.
    Please have a look on my tests. My setup of the test scenario is like Chapter 3 in 'XML Database Developer's Guide - Oracle XML DB':
    1.)
    begin
    dbms_xmlschema.registerSchema(
    'http://www.trivadis.com/xsd/orderlist.xsd',
    getDocument('orderlist.xsd'),
    TRUE, TRUE, FALSE, FALSE
    end;
    File 'orderlist.xsd':
    <?xml version='1.0'?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
    <xsd:element name="Product">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ProdName" type="xsd:string" maxOccurs="3"/>
    <xsd:element name="USPrice" type="xsd:decimal"/>
    <xsd:element name="ReleaseDate" type="xsd:date" minOccurs="0"/>
    </xsd:sequence>
    <xsd:attribute name="prodID" type="PartNumType" use="required"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:simpleType name="PartNumType">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="[0-9]{3}-[A-Z]{2}"/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:element name="OrderList">
    <xsd:complexType >
    <xsd:sequence>
    <xsd:element name="OrderItem" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Customer" type="xsd:nonNegativeInteger"/>
    <xsd:element name="Quantity" type="xsd:nonNegativeInteger"/>
    <xsd:element name="ProductRef" type="PartNumType"/>
    </xsd:sequence>
    <xsd:attribute name="orderID" type="xsd:integer" use="required"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element ref="Product" minOccurs="1" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="ProductPK">
    <xsd:selector xpath="Product" />
    <xsd:field xpath="@prodID" />
    </xsd:key>
    <xsd:keyref name="ProductFK" refer="ProductPK">
    <xsd:selector xpath="OrderItem" />
    <xsd:field xpath="ProductRef"/>
    </xsd:keyref>
    </xsd:element>
    </xsd:schema>
    2.)
    CREATE TABLE XML_ORDERLIST of XMLType
    XMLSCHEMA "http://www.trivadis.com/xsd/orderlist.xsd"
    ELEMENT "OrderList";
    3.)
    ALTER TABLE XML_ORDERLIST
    add constraint VALID_ORDERLIST
    check (XMLIsValid(sys_nc_rowinfo$)=1);
    btw: What is 'sys_nc_rowinfo$'?
    4.) ERROR:
    SQL> INSERT INTO XML_ORDERLIST values (xmltype(getDocument('orderlist2err.xml')));
    1 row created.
    File:
    <?xml version='1.0' ?>
    <OrderList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.trivadis.com/xsd/orderlist.xsd">
    <OrderItem orderID="2">
    <Customer>7934</Customer>
    <Quantity>12</Quantity>
    <ProductRef>125-AS</ProductRef>
    </OrderItem>
    <Product prodID="124-AS">
    <ProdName>Playstation</ProdName>
    <USPrice>56.78</USPrice>
    <ReleaseDate>2001-12-24</ReleaseDate>
    </Product>
    </OrderList>
    Comment:
    This document is not valid because element <ProductRef> references an PK wich does not exist, but the document has been inserted!
    The XML Schema defines an PK-FK restriction on elements: <Product prodID="124-AS"> and <ProductRef>125-AS</ProductRef>

    I tried something similar. It looks like Oracle does not use the xsd:key* info. If you enter the corersponding information (I used XMLSpy; if you do it by hand you'll want to look at http://www.grandpoohbah.net/Sandeepan/IOUG2001XDB.htm or similar helpful pages) as xdb:columnProps it seems to work as expected.

  • Problem with function utl_smtp.mail

    utl_smtp.mail(connection,sender,parameters)
    Problem with parameters.
    How to define additional parameters.
    null

    Additional parameters to the SMTP MAIL command is defined in RFC 1869 (SMTP Service Extension). To use additional parameters in the MAIL command following the extension protocol, make sure that you handshake with the SMTP server with the EHLO command instead of HELO command. The format of the parameters is list of space-delimited name-vlaue pairs, <name>=<value> [<name>=<value> ...]. For example, utl_smtp.mail(conn, sender, 'BODY=8BITMIME').

  • Problem with Function Key in multiple JTextArea's

    Hi all,
    I have an unusual problem that I'm hoping someone has run into before. I'm working on a chatroom with multiple JTextArea's. I'm filter incoming keystrokes to run the appropriate method. I want to use function keys to perform various functions. I know it will, theoretically work because my test program worked fine in my test apllet with 1 JTextArea. All the other keyevent's work fine but the eventlistener acts like it doesn't detect any (function) event at all. I'm hoping that someone has run into this before.
    Thanks.
    Chris

    Here's a code snipet:
    String dummy;
    int keyVal = e.getKeyCode();
    switch (keyVal) {
    case KeyEvent.VK_F1:
    But what concerns me is that my debugger doesn't respond to any function key. I can't even debug because the debuger can't see what I'm doing. I've tried listening for function keys in the parent panel but with the same result. This is going to be a bear to solve.
    Thanks.
    Chris

  • Problem with function call from sql when using distinct

    I have the following problem.
    SELECT DISTINCT colA from tabA where my_function(colB) = 'TRUE'
    This statement will return a handfull of results from a table with 70k + records. The function takes about 0.5 secs to execute.
    How do i force the optimizer to do the select distinct first then execute the function on the results rather than execute the function for every single line first?
    Thanks in advance
    Keith

    Let's compare some of those methods:
    michaels>  CREATE OR REPLACE FUNCTION my_function (tr VARCHAR2)
       RETURN VARCHAR2
    AS
    BEGIN
       DBMS_APPLICATION_INFO.set_client_info (SYS_CONTEXT ('userenv','client_info') + 1);
       IF LOWER (tr) LIKE '%name%'
       THEN
          RETURN 'TRUE';
       ELSE
          RETURN 'FALSE';
       END IF;
    END my_function;
    Function created.
    michaels>  CREATE TABLE taba AS SELECT object_id cola ,object_name colb FROM all_arguments
    Table created.
    michaels>  SELECT COUNT(*) FROM taba
      COUNT(*)
         78786
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT colA from tabA where my_function(colB) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    78786
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT cola FROM (SELECT ROWNUM r, t.* FROM (SELECT DISTINCT cola, colb FROM taba) t)
              WHERE my_function (colb) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    14225
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT cola FROM taba WHERE (SELECT my_function (colb) FROM DUAL) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    14281
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  SELECT DISTINCT cola FROM taba WHERE EXISTS (SELECT ROWNUM FROM dual WHERE my_function (colb) = 'TRUE')
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    13913
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  WITH temp AS
      (SELECT DISTINCT colA, colB FROM tabA)
    SELECT DISTINCT colA FROM temp WHERE  my_function(colB) = 'TRUE'
    167 rows selected.
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    78786
    michaels>  EXEC dbms_application_info.set_client_info(0)
    michaels>  WITH temp AS
      (SELECT colB, my_function(colB) func FROM (SELECT DISTINCT colB FROM   tabA))
    SELECT DISTINCT colA FROM tabA a, temp t WHERE  a.colB = t.colB AND t.func = 'TRUE'
    michaels>  SELECT SYS_CONTEXT ('userenv','client_info') ci FROM dual
    CI   
    78786 The combination with exists, rownum and dual gives the least calls to the function.

  • Problem with function keys

    Only the F11 and F12 keys on my PB G4 seem to do anything at present (Expose and Dashboard). Looking on this forum and others, I have tried to fix this by going to the Keyboard/Mouse section of System Prefs and turning on AND off the "use F1-F12 keys to control software prefs". Have tried using all buttons while holding down the fn key, with the software pref thing on and off, all to no avail. the Num lock key only works if i hold down fn, F6, and the letter key all at the same time. cannot find a way to turn Num lock on indefinitely.
    My main problem is that I actually liked being able to adjust the brightness of my screen and my volume with the function keys. I honestly am not sure when this functionality was lost, I had mac laptops through work and personally, so I can't quite recall if my personal laptop was ever "right".
    Could one of the software updates have messed up this functionality? I am living in a small town with no mac store nearby, so please help!
    thanks!

    You know, I thought I was the only one with this problem. A few weeks ago, I noticed that my brightness keys on the keyboard "didn't work." I thought maybe it had to do with getting my LCD screen replaced at the Apple Store since they had to take out the keyboard and disassemble/reassemble the unit to do so.
    But I think it is one of those new quirks with the 10.4.9 update.
    For instance, you used to be able to eject CDs or DVDs on a whim just by pressing the eject key. Now, you have to hold it down for a few seconds before it will do so. This was--according to someone--done to prevent accidental ejection of discs. A delay of some sort.
    Same with shutting down your computer via that similar key combo. You used to be able to do that in an instant, but now there is a delay.
    Sure enough, at least on MY PowerBook, in order to adjust the brightness and/or volume, I have to hold down the keys on the keyboard for a few seconds before it will respond.
    Before the 10.4.9 update, all you did was lightly tap on the keys and they would respond. I believe this is similar to the intentional delay Apple made (why? I don't know) in making CDs and DVDs not eject right away.
    Try it. Hold down your brightness keys and it will work. But not if you merely tap on them like before. I think that is a good idea though. It was so easy to accidentally dim your screen all the way to black, before that.
    If it doesn't work, then you may have a different problem. =(

  • Problem with function keys while using Terminal to connect to UNIX host

    We are trying to use macs at my office, but we've hit a big roadblock. Our company software runs on a UNIX server, and until now everyone in the company uses either dedicated UNIX terminals, or terminal emulation software in windows. I was thrilled to learn that we could use the terminal in OSX to connect to the server, and it did not take long to get it to work.
    The problem is the function keys. Almost all of the menu options in our company software require the use of the function keys, F1-F10. I was able to access F9 and up by pressing command-F9, etc. but we're now having issues with F3 and F4.
    The computer in question is an intel macbook, and we have been using the fn key of course. The specific problem they showed me was with F3. In the software, it is supposed to lauch an extra menu, but pressing fn-F3 on the macbook results in an error ("number required", which is the message it would normally return if we tried to press return).

    Your problem is two-sided, I think. The first is that you need to set Terminal to send the right escape sequence. This is done with the Inspector (CMD-I) and selecting Keyboard. Get the correct key mapping in there. The other side is to make sure the system isn't intercepting your intended keystroke, so go into System Preferences->Keyboard & Mouse->Kwyboard shortcuts and make sure that the bindings you're using aren't enabled.

  • Problem with function module RS_VARIANT_CONTENTS

    Hi all,
    i´ve a problem by calling the FM RS_VARIANT_CONTENTS. Everytime I try to get the content of a variant the module crashes with the following dump:
    Call (PERFORM) to a non-existent routine.
    025730     INSERT SCREEN_PROGS INDEX L_TABIX.
    025740
    025750     read table f3progs_old with key
    025760          table_line = p_prog
    025770          binary search
    025780          transporting no fields.
    025790     l_tabix = sy-tabix.
    025800     if sy-subrc ne 0.
    025810       PERFORM %_INIT-MOVE IN PROGRAM (P_PROG).   " ????
    025820     endif.
    >     IF P_NEW_CALL EQ 'S' or flag_query_active eq 'A'.
    025840       PERFORM INIT IN PROGRAM (SY-LDBPG) IF FOUND.
    025850     ENDIF.
    025860
    025870   ENDFORM.                                   " INIT_1_PROG
    Thats the coding how I create the variant:
    i_jvari_desc-report = sy-repid.
    i_jvari_desc-variant = 'TESTING4'.
    i_jvari_desc-ename = sy-uname.
    i_jvari_desc-environmnt = 'A'.
    i_jvari_desc-mlangu = 'N'.
    ls_jvt-mandt = sy-mandt.
    ls_jvt-report = sy-repid.
    ls_jvt-variant = 'TESTING4'.
    ls_jvt-langu = sy-langu.
    ls_jvt-vtext = 'FUNCTION EXAMPLES'.
    APPEND ls_jvt TO i_jvt.
    ls_selpa-sign = ''.
    ls_selpa-option = ''.
    ls_selpa-kind = 'P'.
    ls_selpa-selname = 'BRAND'.
    ls_selpa-low = 'SL'.
    APPEND ls_selpa TO i_selpa.
    CALL FUNCTION 'RS_CREATE_VARIANT'
    EXPORTING
    curr_report   = i_jvari_desc-report
    curr_variant  = 'TESTING4'
    vari_desc     = i_jvari_desc
    TABLES
    vari_contents = i_selpa
    vari_text     = i_jvt.
    IF sy-subrc EQ 0.
    ENDIF.
    Could it be a problem that the dynpro is not a generated selection screen instead it is a normal dynrpo created with the screen painter. The parameter BRAND isn´t the only parameter on this screen. Do I´ve to pass all Paramters on the screen while creating a new variant? SY-REPID includes the name of a Function Pool!
    Did anybody had the same or similar problem and can give me some hints how to solve it?
    Thanks in advance,
    Andy

    Hi,
    thanks for your reply.
    I´ve tried your suggestion, unfortunately without success.
    I think the problem is, that the dynpro is not a generated selection screen instead it belongs to a function group.
    It seams to me, that the FM unsuccessfully tries to check the dynpro fields....?
    Nevertheless I´ve implemented my own variant maintenance environment.
    Regards,
    Andy

Maybe you are looking for