Using WIN_API_ENVIRONMENT functions in forms 6i

I converted my forms from Developper 2.1 to Developper 6i. I was able to read the registry variables using WIN_API_ENVIRONMENT functions to open the explorer or Acrobat reader. With Forms 6i, I am getting the following error : "Internal error : PL/SQL error occured".
Any help is greatly appreciated.
Thanks

Hi,
D2KWUTIL utility is available with Forms 5.0 also. The detailed information about all the functions are available in online help. There is a demo file also, which demonstartes all the D2KUTIL functions.
You can also download the D2KWUTIL from the following FTP site,
ftp://oracle-ftp.oracle.com/dev_tools/patchsets/dev2k/Win95NT/d2kwutil/
Best Regards,
[email protected]

Similar Messages

  • How can I use MESSAGE function in forms 6i

    Hello
    I have an err_msg table that store collections of application message on utf8 database in one language not in english
    I have selected data from the err_msg table and put on variable .I want to display the message on the variable using MESSAGE function(MESSAGE(variable)).Unfortunately what i have seen on message dialog box is replaced characters like rectangles .
    What should I do please?

    Hi,
    We have the same problem in our project . In this case we are upgrading from an older version of forms (3.0) to 6i. The UE worked fine in the older version, but now we get a NON ORACLE ERROR. Our DLL is written in MS-VC++ project.
    We'd like to know whether , besides the common version and platform, you have also written the DLL using MS-VC++ ; otherwise please tell us .
    Regards,

  • Can't use Export Functionality from form?

    Hi experts,
    I got a problem now, can anyone help me??
    This's my system information:
    APPLICATION: 11.5.10.2
    DATABASE: 9.2.0.6.0
    And the problem is:
    - Open 1 Form
    - File > Export
    - The progress bar update to 100%
    - The browser is opened
    And it suddenly disappear.
    I've checked metalink and see this note: 423261.1 How to Troubleshoot Forms Hanging Using Export Functionality
    I think it's fail in phase 4:
    4) Finally generate the URL, and display the file in the browser window by calling the Forms built-in web.show_document
    But i don't know how to solve this problem. Can anyone show me?
    Thank you so much

    Hi everybody,
    I solved my problem. In my case, it's because tablespace CTXD was not have enough free extent. You can check this note
    Information You Should Upload When Creating an SR for File Export and Attachments      Doc ID:      Note:427964.1
    Hope that helps,

  • How to use COALESCE function in Forms 6i?

    Hi folks,
    Please help me out in using function COALESCE in the forms 6i (front-end code).
    My front-end application has got Oracle9i as back-end. At the database server side, in SQl * Plus, the function is executing perfectly but not in Forms6i.
    Please help me out with you suggestions.
    Your favour will be deeply appreciated.
    Cheers, PCZ.

    This is a PL/SQL equivalent to the COALESCE function:
    CREATE OR REPLACE function F_Coalesce
        PC$List  IN VARCHAR2,
        PC$Sep   IN VARCHAR2 DEFAULT ','
      ) Return Varchar2
    Is
    -- PL/SQL function that return the first non-null value
    -- (equivalent to COALESCE SQL function)
    LC$String VARCHAR2(32767) := PC$Sep || PC$List ;
    LI$i      PLS_INTEGER ;
    LI$i2     PLS_INTEGER ;
    LC$Value  VARCHAR2(4000) ;
    LN$Pos    PLS_INTEGER := 1 ;
    BEGIN
    LI$i := INSTR( LC$String, PC$Sep, 1, LN$Pos ) ;
    While LI$i > 0 Loop
        LI$i2 := INSTR( LC$String, PC$Sep, 1, LN$Pos + 1) ;
        IF LI$i2 = 0 Then LI$i2 := LENGTH( LC$String ) + 1 ; END IF ;
        LC$Value := SUBSTR( LC$String, LI$i+1, LI$i2 - LI$i-1 ) ;
         If LC$Value IS NOT NULL Then
             Return LC$Value ; -- return the first non-null value
         End if ;
         LN$Pos := LN$Pos + 1 ;
         LI$i := INSTR( LC$String, PC$Sep, 1, LN$Pos ) ;
    End loop ;
    Return Null ;
    End ;
    /And the test call:
    SQL> set serveroutput on
    SQL>
    SQL> Declare
      2    t varchar2(1) := null ;
      3    v1 varchar2(100) := t || ',' || t || ',A,' || t || ',B' ;
      4    v2 varchar2(100) := t || ',' || t ;
      5    v3 varchar2(100) := 'A,' || t ;   
      6    a varchar2(100) ;
      7  Begin
      8    a := F_coalesce(v1) ;
      9    dbms_output.put_line('result v1 =(' || a || ')');
    10    a := F_coalesce(v2) ; 
    11    dbms_output.put_line('result v2 =(' || a || ')');
    12    a := F_coalesce(v3) ; 
    13    dbms_output.put_line('result v3 =(' || a || ')');   
    14  End;
    15   
    16  /
    result v1 =(A)
    result v2 =()
    result v3 =(A)
    PL/SQL procedure successfully completed.Hope this helps you,
    Francois

  • Using API Functions on Forms 6

    Does anyone know how to change the mouse cursor to a handpoint?
    I can't use set_application_property because
    it only supports BUSY, CROSSHAIR, DEFAULT, HELP, and INSERTION.
    I am trying to use win_api_session.change_cursor, but get an internal PL/SQL error when the trigger fires.
    Help?
    Marie

    if you are using 6i, make sure you attached the d2kwutil.pll and also make sure the d2kwut60.dll is in the same directory of the d2kwutil.pll directory. Although, some developer say that this dll can put in the windows/system dir, but it seem not working for my case.
    BTW, u can add an entry as D2KWUTIL_PATH to the registry to specify the location of the pll and dll.
    good luck.

  • Forms Personalization using DB function

    Hi,
    In Shipping transaction form If the shipping quantity is more than ATR quantity then I have to show a message box.
    I created a DB function using inv_quantity_tree_pub.query_quantities API to get ATR quantity. for this function item number and organization code is the two in parameters and it returns ATR quantity.
    I used this function in forms personalization.
    Trigger Event - WHEN-VALIDATE-RECORD
    Trigger Object - DVLB
    Condition - :DLVB.SHIPPED_QUANTITY<= ATR_QTY(:DLVB.ITEM_NAME,:DLVB.ORGANIZATION_CODE)
    Processing Mode - Both
    Level - Responsibility
    Message - Shipping quantity is more than ATR quantity.
    I created the above but it is not showing any message or error. I don't know what I missed.
    Thanks in advace for your help.

    922627 wrote:
    Hi,
    In Shipping transaction form If the shipping quantity is more than ATR quantity then I have to show a message box.
    I created a DB function using inv_quantity_tree_pub.query_quantities API to get ATR quantity. for this function item number and organization code is the two in parameters and it returns ATR quantity.
    I used this function in forms personalization.
    Trigger Event - WHEN-VALIDATE-RECORD
    Trigger Object - DVLB
    Condition - :DLVB.SHIPPED_QUANTITY<= ATR_QTY(:DLVB.ITEM_NAME,:DLVB.ORGANIZATION_CODE)
    Processing Mode - Both
    Level - Responsibility
    Message - Shipping quantity is more than ATR quantity.
    I created the above but it is not showing any message or error. I don't know what I missed.
    Thanks in advace for your help.Please see if these docs help.
    How To Use Custom PL/SQL API In Forms Personalization? [ID 456407.1]
    OM: Sample Codes For Form Personalization In Order Management [ID 1266606.1]
    Thanks,
    Hussein

  • How to use a function PIPELINED in Forms 10g?

    Hi guys,
    When I tried to use a function PIPELINED in Forms, I received the message:
    - PL/SQL function called from SQL must return value of legal SQL Type
    FOR rec_dev IN (SELECT *
    FROM TABLE(p1196.f_executa('01-aug-2010', -- pdDataInicial
    '30-aug-2010', -- pdDataFinal
    5, -- pnCodAdm
    NULL, -- pnCdsCod
    NULL, -- pnAdmsSrvCod
    NULL, -- pnAcao
    NULL)))
    LOOP
    vnQtdeEstornos := vnQtdeEstornos + rec_dev.qtde_estornos;
    vnVlrTotalCredito := vnVlrTotalCredito + rec_dev.valor_credito;
    END LOOP;
    Can anyone help me?
    Cris

    You can't. One option would be to wrap your pipelined function in a view, or you could write a stored procedure which returns a strong ref cursor instead.
    cheers

  • Using SYS_EXTRACT_UTC function in Oracle forms version 9

    Hi,
    I would like to use the function SYS_EXTRACT_UTC in forms but I get an error 201:
    identifier 'SYS_EXTRACT_UTC' must be declared.
    How can I use this function? do I need any library or something?
    Thanks

    You can try creating a wrapper database procedure for this and call the procedure
    from forms. It should work
    Rajesh

  • To format an Excel worksheet invoked by oracle form using DDE functions

    I'm exporting data from oracle form6 into excel sheet using DDE functions.
    Is there any DDE functions to format the excel sheet.

    Maybe you can use format commands through DDE (if the DDE server suports them) but I personally don't know.
    My approach is to record an excel macro which formats your sheet and then invoke the macro through DDE. You can fill cells with control numbers (like number of rows, number of cells) so you can make your macro even smarter by reading these numbers.

  • Convert smartform output in to PDF using CONVERT_OTF function  how to do it

    Hi Anil , and  Hi All
             I am trying to display smartforms output in java webdynpro
             for that i have got the following code in sdn.
               can anybody please clarify these doubts in the  below code
               1) What are the mandatory input and output parameters
                   I have to pass here in this code to my application
               2) please check my previous post also in this regards please
       . Please reply at the very earliest. Check the below code
    Convert smartform output in to PDF using CONVERT_OTF function module and you can write pdf using parameter 'binfile' of this function in WebDynpro using the following code:
    It is copied from my prg. I hope you understand it.
    public void onActionGetQuote(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionGetQuote(ServerEvent)
    wdThis.wdGetOppt_QwriterCustController().executeZquote_Writer_Input();
    String fileName = wdContext.currentZquote_Writer_InputElement().getOrder().toString().trim() + System.currentTimeMillis() + ".pdf";
    String pdfOutput = new String(wdContext.currentOutputElement().getBinfile());
    if (pdfOutput != null)
    try
    String pdfResoucePath = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), fileName);
    FileOutputStream fileOutputStream = new FileOutputStream(new File(pdfResoucePath));
    PrintStream ps = new PrintStream(fileOutputStream);
    ps.print(pdfOutput);
    ps.close();
    //Display the PDF to the browser
    String fileURL = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(), fileName);
    IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(fileURL, "Pdf Browser", false);
    window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    window.removeWindowFeature(WDWindowFeature.MENU_BAR);
    window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    window.open();
    // To collect all the file created in the server by user
    quoteFiles.add(quoteFiles.size(), pdfResoucePath);
    } catch (Exception e)
    throw new WDRuntimeException(e);
    //@@end

    Hi
        ABAPers prepared a BAPI function module which calls Smart form , how can i execute it from java Webdynpro, so that I can display the smart form in Webdynpro. Pleas reply at the very earliest.  Every answer will be rewarded.
    regards
    jalandhar

  • How can i use reuse_alv_fieldcatalog_merge function module

    I am using below steps for populating the final internal table.How can I use reuse_alv_fieldcatalog_merge function module in the place of declaring all these fields.How canI put title of the report in reuse_alv_fieldcatalog_merge function module.
    FORM BUILD_FIELDCATALOG .
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'KUNNR'.
      FIELDCAT-SELTEXT_M = 'Customer Name'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VBELN'.
      FIELDCAT-SELTEXT_M = 'Invoice Reference'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKBUR'.
      FIELDCAT-SELTEXT_M = 'Sales Office'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'VKGRP'.
      FIELDCAT-SELTEXT_M = 'Sales Person'.
      FIELDCAT-JUST      = 'L'.
    FIELDCAT-KEY       = 'X'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FINAL'.
      FIELDCAT-FIELDNAME = 'POSNR'.
      FIELDCAT-SELTEXT_M = 'Item No'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-KEY       = 'X'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.
      FIELDCAT-TABNAME   = 'IT_FIANL'.
      FIELDCAT-FIELDNAME = 'ARKTX'.
      FIELDCAT-SELTEXT_M = 'Item Description'.
      FIELDCAT-JUST      = 'L'.
      FIELDCAT-DATATYPE  = 'C'.
      APPEND FIELDCAT TO I_FIELDCAT.
      CLEAR FIELDCAT.

    Hello,
    It is very easy to use reuse_alv_fieldcatalog_merge.
    You try this it will work.
    example
    data:
    DATA : gv_repid        TYPE syrepid VALUE sy-repid .  " Report id
      PERFORM set_field_catalog USING gst_struct CHANGING lst_fieldcat.
    FORM set_field_catalog  USING uv_tab TYPE slis_tabname
                         CHANGING  xt_fieldcatalog TYPE slis_t_fieldcat_alv.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = gv_repid
          i_internal_tabname     = uv_tab
          i_inclname             = gv_repid
        CHANGING
          ct_fieldcat            = xt_fieldcatalog
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " set_field_catalog_spec

  • How to EDIT a particular Row in ALV using normal function module Reuse_alv_grid_display

    Hi experts..
    i got one requirement like i need to edit some rows particularly in alv....
    Edit in alv output....is it possible to get  that .....using normal function module with out using oops concept...
    could any one pls help me...

    Hi Pendurti ,
    If you want a particular field to be editable , simply define the fieldcatalog as
    wa_fieldcatalog-edit          = 'X'.
    wa_fieldcatalog-input         = 'X'.
    for that field.
    and
    Now when you use FM ' Reuse alv grid display '
    define USER_COMMAND
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = v_repid
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          it_fieldcat              = int_fieldcatalog
          is_layout                = wa_layout
        TABLES
          t_outtab                 = t_disp.
    and now in form USER_COMMAND ; code as per following
    FORM user_command  USING r_ucomm LIKE sy-ucomm
                                rs_selfield TYPE slis_selfield.
         DATA ref1 TYPE REF TO cl_gui_alv_grid.
         CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
           IMPORTING
             e_grid = ref1.
         CALL METHOD ref1->check_changed_data.
    endform.
    Regards,
    Yogendra Bhaskar

  • Using a Function to Set Context

    I have a report which contains 5 concatenated SQL queries.
    The first query calls a function and sets a context ie. SELECT set_ctx('ORG_ID',500) from DUAL
    The following SQL sets use views which have predicates based on the context.
    1) Within a single report are the SQL statements executed using separate connections to the database? I am not seeing my Context so I'm assuming XMLP splits and calls each within its own Prepared Statement and seperate connection out of the Pool.
    2) If they are, is the only way to set a context safely by use of a <dataTrigger> within a Data Template? and would it need setting For Each piece of SQL that fires within the Template? Or can it be defined just once at the start?
    Thanks in advance for your answers.
    Matt

    Stuart,
    did you try using...
    document.form.<dropdown name>.options[document.form.<dropdown name>.selectedIndex].value ?
    This should ideally fetch you the value of the selected value of the dropdown - only thing is that the dropdown in an autorefresh dropdown by default - this you would have to figure out as to how it can be overridden. Maybe an Onchange event can be written locally on the template overriding the onchange event from SAP...
    Arun

  • Error while using the function module..pack_handling_unit_dlvry

    Hi all...
    while using the function module pack_handling_unit_dlvry,
    we need to pass the handling unit number as per the functionality we require.
    but the mandatory field for the function module is the handling unit number in the form of bar code..
    so how to use this function module..
    All the useful answers will be regarded..
    Regards,
    Saroja.

    Have you tried using BAPI BAPI_HU_CREATE. Also view Function Module Documentation on its usage.

  • Using max function in PL/SQL

    VERY URGENT...
    Am new to oracle...
    I've written a package that display gif images in form of histogram/bar chart. using html,
    I need to use max function to display values proportionately.
    please help. i need to complete this assignment by 2/9/00 by 10.00 am at the latest. I've half written a function but I don't know if there's a simpler way fo doing this. html enabled

    First of all Thanks to all gentlemen who replied ..many thanks ...
    Tried the ROW_NUMBER() option but still it is taking time...have given output for the query and tkprof results as well. Even when it doesn't fetch any record ( this is a valid cased because the input header id doesn't have any workflow request submitted & hence no entry in the wf_items table)..then also see the time it has taken.
    Looked at the RANK & DENSE_RANK options which were suggested..but it is still taking time..
    Any further suggestions or ideas as to how this could be resolved..
    SELECT 'Y', 'Y', ITEM_KEY
    FROM
    ( SELECT ITEM_KEY, ROW_NUMBER() OVER(ORDER BY BEGIN_DATE DESC) RN FROM
    WF_ITEMS WHERE ITEM_TYPE = 'xxxxzzzz' AND ROOT_ACTIVITY = 'START_REQUESTS'
    AND SUBSTR(ITEM_KEY,1,INSTR(ITEM_KEY,'-') - 1) = :B1
    ) T WHERE RN <= 1
    call count cpu elapsed disk query current rows
    Parse 0 0.00 0.00 0 0 0 0
    Execute 1 0.00 1.57 0 0 0 0
    Fetch 1 8700.00 544968.73 8180 8185 0 0
    total 2 8700.00 544970.30 8180 8185 0 0
    many thanks

Maybe you are looking for

  • XSLT mapping code to replace ns1: tag as plm: in XML file in PI mapping

    Hi I am sending XML file to HTTP server as below format <?xml version="1.0" encoding="UTF-8" ?>    - <ns1:Responses xmlns:ns1="http://"> -    <ns1:Response Application="SAP">     <ns1:field1>12345</ns1:field1>     <ns1:field2>abc</ns1:field2>    - <n

  • How To Do I Install Numbers (Download) On a 2nd Mac?

    I bought the 19.99 version from the App store, which installed fine on my Mac Pro. It is my understanding that it is OK to install this on multiple computers now in your home. I dragged a copy of it using Dropbox, then went downstairs and pulled it o

  • Play video on phone

    Hi All I'v got a problem about playing video on phone I create two buffer let the video to fill and then create two player when 1st player is playing the 2nd player is ready to play until 1st player end_of_media then 2nd player play now the problem i

  • Support Package Stack

    Hi I want to use interactive forms in my web dynpro application and I see that one of the prerequisites is that I have support package stack 11. How do I check what stack I have? If I don't have the right level, how do I get the SP stack? thanks Anto

  • After upgrading to IOS8.1 my microphone stopped working. cannot make a call, cannot record a voice memo, but Siri works !!!

    after upgrading to IOS8.1 my microphone stopped working. cannot make a call, cannot record a voice memo, but Siri works !!! Surely this must be software since I presume there are not two microphones, one for Siri and one for everything else. Tried re