Possible to get exchange type E & M in difference row

Hi guys,
It that any possible we get 2 Exchange rate type ( 'E' & 'M') in the report?
When we run the reports, we entered the variable which we select one of the exchange rate, (M or E)
Is that possible when we select 'M' in the variable, certain of the row will read from 'E' instead of 'M' exchange rate. Where should I write the code? 
in RSCUR,
I only can see the variable , which I define the variable, but that only to select whether it's 'M' or 'E' exchange rate, how that we want to put some of the row will read from 'E' exchange rate.
Thank you
Regards
Edi.

Hi Yasemin,
Thanks for your prompt reply, when I tried did as what you advised here I get, (The issues, I couldn't select the 'Conversion Type' as is highlighted as 'grey', cannot do selection for the conversation type)
Please do inform I've already define the Conversion Type in Column Struc as showed below:-  Can I said we can't conflict defining the conversation type in both, (Column Struc & Cell defination) we only can define one at one time. 
Does this correct as per what you advised?
Thank you
Regards
Edi.

Similar Messages

  • Is it possible to get Exchange emails downloaded to SharePoint document library using Powershell and or Custom Workflow?

    I have been asked to see if it would be possible to get  exchange emails downloaded and or sent to a document library .
    I know of the sitemail box app. but we are not running Exchange 2013.
    and setting up the lists and or document library to receive emails using the built in doesn't seem to be working...( maybe not configured correctly, i would need to see what the prior admin/developer did)
    But is there a way to get the emails downloaded to a document library using a workflow and or a powershell script that is triggered via  workflow?

    Hi,
    Since workflow can only work on items in SharePoint sites, they cannot get Exchange emails, let alone download emails to SharePoint library. However, you could manually save email to local and upload it to SharePoint list/library.
    I'd suggest you toubleshooting the incoming email settings in SharePoint. Please refer to the article below and check your configuration:
    https://technet.microsoft.com/en-us/library/cc262947.aspx
    http://blogs.technet.com/b/harmeetw/archive/2012/12/29/sharepoint-2013-configure-incoming-emails-with-exchange-server-2013.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Is it possible to get object type name  with help of key field?

    can any one tell me is it really possible to get the object type name if i have only key field,
    are there any tables which store the object type names & keyfield.  or there are any functionmodue which gives object type name by entering keyfield.

    Hello,
    If the PO has workflows associated with it, there is a table SWIWIOBJCT which stores details of the workitem, object key , object type details.
    If you input the object key to this table ( For ex: PO number in this case) , it will give you the corresponding object type for the object key for Workitem type F.
    Thanks,
    Sowmya Arni

  • Get the type of collecion elements

    Hi,
    I would like to get the type of the elements of a collection when I give the name the collection. Does anybody suggest anything about the SQL code?
    For example
    CREATE OR REPLACE TYPE CourseList AS TABLE OF VARCHAR2(64);
    CREATE TABLE department (
    name VARCHAR2(20),
    director VARCHAR2(20),
    office VARCHAR2(20),
    courses CourseList)
    NESTED TABLE courses STORE AS courses_tab;
    How it is possible to get the type of elements of CourseList (in the example it is VARCHAR2(64)) if I give the name of the nested table courses?
    Thank you

    > I would like to get the type of the elements of a collection when I give the name the collection.
    sniff sniff
    Smells like some kind of dynamic SQL or dynamic PL/SQL thing. It usually stinks.
    If the dynamic part comes into play at rendering time (like in APEX for example that executes a SQL and then needs to dynamically render the projection) - use DBMS_SQL cursors (or ref cursors when rendering in an external client). Use the describe interface to dynamically determine the structure of the SQL projection.
    Anything more than that - think carefully. Especially at it seems you want to deal with actual relational data structure dynamically. 99% of the time it is flawed and the remaining 1% of the time the person usually have no idea what he (or she) is really doing... ;-)

  • How to get Exchange rate from SO to specific Document type in PO

    Dear Experts,
    I have an Intercompany scenario in which I need to have Exchange rate used in Sales Order into a specific document type in a PO. Is it possible to achieve this?
    Thanks
    Manish

    Hi ;
    To my knowladge , you have two options.
    1- Fix exchange rate in PO
    2- You can get exchange rate in Miro based on invoiced date.
    Another ways will be development ...
    Regards.
    M.Ozgur Unal

  • Is it possible to get view in RULES

    Hi.
    Is it possible to get userView in rules.If any one come across this please post piece of code..
    Thanks in Advance
    Yash

    Try something like this:
    <br><br>
    <set name='user'>
    <rule name='checkoutUserView'>
    <argument name='accountId' value='$(accountId)' />
    </rule>
    </set>
    <br><br>
    <Rule name='checkoutUserView' authType='EndUserRule'>
    <RuleArgument name='accountId' />
    <block>
    <defvar name='viewMaster' />
    <set name='viewMaster'>
    <new class='com.waveset.session.ViewMaster'>
    <invoke name='getLighthouseContext'>
    <ref>WF_CONTEXT</ref>
    <ref>accountId</ref>
    </invoke>
    </new>
    </set>
    <invoke name='setAuthorized'>
    <ref>viewMaster</ref>
    <invoke name='getBoolean' class='java.lang.Boolean'>
    <s>true</s>
    </invoke>
    </invoke>
    <invoke name='checkoutView'>
    <ref>viewMaster</ref>
    <concat>
    <s>User:</s>
    <ref>accountId</ref>
    </concat>
    </invoke>
    </block>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' name='All'/>
    </MemberObjectGroups>
    </Rule>
    <br><br>
    In order to access the user object using dot notation you may need to call this piece of code (not sure if necessary if the variable being used is defined in the task definition):
    <br><br>
    <invoke name='setVariable'>
    <ref>WF_CONTEXT</ref>
    <s>user</s>
    <ref>user</ref>
    </invoke>

  • HT1222 Is it possible to get the SSL fix without having to install ios7 (which I tried and hated) or jailbreaking the devices?

    I have a few ipads, iphones and ipod touches of various models, and all run iOS6 of various types (whatever they were running when I last updated them before iOS 7 came along and stopped me being able to get newer versions of 6).
    I tried iOS7 for a while but hated both the appearance and some of the things that changed.
    My ipods have updated to a new version of iOS6 with the SSL fix.
    I can't seem to get this option for the ipads or iphones.
    Is it possible to get the important SSL update for iOS 6 for iPhone5, iPad3, ipad4 and ipad mini (not retina) without having to go to iOS7?
    (It seems that I can get a fix by jailbreaking but I really don't want to do that if there's another option since I have no need for it otherwise.)
    Thanks a lot.

    Thanks, that's helpful. I expected that answer, since I read a load of stuff about Apple pushing people to get iOS 7 despite it having people who disliked it, but was hopeful it was not the case
    Some of the changes, like to calendar were just frustrating.
    Not a big problem though - just means that the next phone and tablet hardware update I get won't be apple.
    Thanks a lot for the swift and helpful replies.

  • Is it possible to get the table by knowing its name only (string)

    public bool IsShowTable
    get { return _IsShowTable; }
    set { _IsShowTable = value;
    if (_IsShowTable)
    //Type type = Type.GetType(GraphSelected);
    //Object o = (Activator.CreateInstance(type));
    using (var ctx = new PD5500DBEntities())
    DataGridSrc = new ObservableCollection<object>(ctx.G2_2_6_0dot01_0dot0); //Using here the TableName in String
    NotifyPropertyChanged();
    private ObservableCollection<Object> _DataGridSrc;
    public ObservableCollection<Object> DataGridSrc
    get { return _DataGridSrc; }
    set { _DataGridSrc = value;
    NotifyPropertyChanged();
    In the code I used ctx.TableName, would it be possible to get a reference by knowing the string of the TableName only. 
    I mean
    TableName = "MyTable";//Type type = Type.GetType("TableName");
    //Object o = (Activator.CreateInstance(type));

    Thanks Magnus.
    But now I have difficulty setting it to datagrid source 
    //public ObservableCollection<Object> DataGridSrc
    // get { return _DataGridSrc; }
    // set
    // _DataGridSrc = value;
    // NotifyPropertyChanged();
    or
    private ICollectionView _DataGridSrc;
    public ICollectionView DataGridSrc
    get { return _DataGridSrc; }
    set
    _DataGridSrc = value;
    NotifyPropertyChanged();
    using (var ctx = new PD5500DBEntities())
    Type type = Type.GetType("PressureVessels.Database.G2_2_6_0dot01_0dot0");
    var entities = ctx.Set(type);
    DataGridSrc = (ICollectionView)entities.Local;
    //or
    //DataGridSrc = new ObservableCollection<object>(entities.Local);
    Before when I was using 
    DataGridSrc = new ObservableCollection<object>(ctx.G2_2_6_0dot01_0dot0);
    it worked but now it doesn't. Though now by using the namespace.name I get the type but still cannot assign it to datagridSr which is ObservableCollection or ICollectionView. 

  • Is it possible to get logs from a 3850 Cisco member switch in a stack?

    %STACKMGR-1-STACK_LINK_CHANGE: MEMBER: 4 stack-mgr:  Stack port 2 on switch 4 is down
    %STACKMGR-1-STACK_LINK_CHANGE: STANDBY:2 stack-mgr:  Stack port 1 on switch 2 is down  (OC-SWTCH)
    %STACKMGR-6-SWITCH_REMOVED: STANDBY:2 stack-mgr:  Switch 3 has been removed from the stack.
    I recieved errors on a 3850 switch 3 in my stack, it's removed from my stack and after 5 minutes it comes back up. I want to know what the switch was doing for those 5 minutes, is it possible to get the log files for only switch 3? Telneting to the switch stack or connecting a console cable directly to switch 3 only gives me the logs for master switch logs. Ideally when a switch reconnects to a stack, the master switch should ask the joining switch for it's logs, and merge them into it's own logs so it has a record of the switch did when it wasn't communitating.

    HI,
    create a internal with type of the structure and populate values into that n do wat ever u want.
    ex:
    data: itab type zstruct occurs 0 with header line. // where zstruct is a structure in a database.
    select * from .............. into table itab where ...............
    loop at itab.
    write:/10 itab-fld1,
              20    itab-fld2,
    endloop.
    if helpful reward some points.
    with regards,
    suresh aluri.

  • Is it possible to get control of the .SWF files in JSP files

    Hi All
    In my web application, I got 4 swf buttons which are created by flash and they are embedded in the jsp's. Each button perform the navigation to other page.
    this is the jsp file.
         <table width="100%" border="0">
                  <tr>
                    <td width="2%" height="26"> </td>
                    <td width="31%"> <object classid="clsid:...." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
                        <param name="BASE" value=".">
                        <param name="BGCOLOR" value="">
                        <param name="movie" value="button1.swf">
                        <param name="quality" value="high">
                        <embed src="button1.swf" width="100" height="22" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" base="." ></embed>
                      </object> <font size="-1" face="Arial, Helvetica, sans-serif"> </font></td>
                    <td width="67%" class="sitemapgy">*Add*  </td>
                  </tr>
                  <tr>
                    <td height="26"> </td>
                    <td><object classid="clsid:..." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
                        <param name="BASE" value=".">
                        <param name="BGCOLOR" value="">
                        <param name="movie" value="button2.swf">
                        <param name="quality" value="high">
                        <embed src="button2.swf" width="100" height="22" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" base="." ></embed>
                      </object> </td>
                    <td class="sitemapgy">*Edit* ;</td>
                  </tr>
                  <tr>
                    <td height="26"> </td>
                    <td><object classid="clsid:..." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
                        <param name="movie" value="button13.swf">
                        <param name="quality" value="high">
                        <param name="base" value=".">
                        <embed src="button7.swf" base="."  quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" ></embed>
                      </object></td>
                    <td class="sitemapgy">*Create*</td>
                  </tr>
                  <tr>
                    <td height="26"> </td>
                    <td><object classid="clsid:.." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22">
                        <param name="BGCOLOR" value="">
                        <param name="movie" value="main_print.swf">
                        <param name="quality" value="high">
                        <param name="base" value=".">
                        <embed src="main_print.swf" base="."  quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100" height="22" ></embed>
                      </object></td>
                    <td class="sitemapgy"><font face="Arial, Helvetica, sans-serif">*Print*</font></td>
                  </tr>
                  <tr>
                    <td height="26"> </td>
                    <td><object classid="clsid:..." codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100" height="22" >
                        <param name="BGCOLOR" value="">
                        <param name="BASE" value=".">
                        <param name="movie" value="button3.swf">
                        <param name="quality" value="high">
                        <embed src="button3.swf" width="100" height="22" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" base="." ></embed>
                      </object></td>
                    <td class="sitemapgy"><font face="Arial, Helvetica, sans-serif">*_Admin_*</font></td>
                  </tr>
                  <tr>
                    <td height="24"> </td>
                    <td> </td>
                    <td> </td>
                  </tr>
                </table>When I click the button3.swf (Admin) button....it navigates to other page...Before that I need to get control of swf button and need to perform some login checks.
    Is it possible to get control?
    Thanks

    Thanks for your responses, I tried in the same way but when ever it looking at the path "/admin/admin_main.jsp",
    its navigating to error page if the username is admin too(abcd).
    Can you please help me regarding this.
    I am sending you my code and web.xml.
                     <filter>
              <filter-name>ExampleFilter</filter-name>
              <filter-class>com.pack.db.ExampleFilter</filter-class>
         </filter>
                   <filter-mapping>
              <filter-name>ExampleFilter</filter-name>
              <url-pattern>/admin/admin_main.jsp</url-pattern>
         </filter-mapping>
    import java.io.*;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.http.*;
    public class ExampleFilter implements Filter {
         private FilterConfig filterConfig=null;
         public void init(FilterConfig config) throws ServletException {
              this.filterConfig = config;
         public void destroy() {
              filterConfig = null;
         public void doFilter(ServletRequest request, ServletResponse response,
                   FilterChain chain) throws IOException, ServletException {
              RequestDispatcher rd = null;
              String userInfo = "";
              String userName="";
              if (request instanceof HttpServletRequest) {
                   userInfo = ((HttpServletRequest) request).getUserPrincipal()
                                      .getName();
                             String[] pieces = userInfo.split("\\\\"); // Firefox sends DOMAIN\USERNAME as UserPrincipal
                                  userName = pieces[pieces.length -1]; // getting the username for which I need to perform check
                                  if(userName!="abcd"){
                                  System.out.println("userName IN ELSE PART:"+userName);
                                  System.out.println("INVALID USER NAME");
                                 rd = request.getRequestDispatcher("/admin/error.html");// i need to forward the response url to error page if the username is not equal to "abcd"
                                 rd.forward(request, response);
                             else{
                             chain.doFilter(request, response); // if username="abcd" I need to navigate to normal pages.
    Thanks

  • BAPI function module to get condition type and its values based on delivery number?

    Hi All,
    I would like to have the BAPI function module to get condition type value based on delivery number before invoice is created.please provide detail program for as a reference .please reply as soon as possible its urgent.
    Regards,
    saaikumar.

    If you haven't already, you may first need to search via the SAP transaction "BAPI" in the area this is applicable to.  Failing that I do hope you get an answer.

  • Is it possible to get item details in column wise

    Hi experts,
    Is it possible to get dynamic columns in alv report output

    Hello friend,
    This information will help u i think..take a look below.
    REPORT zcdf_dynamic_table.
    Dynamic ALV Grid with Cell Coloring.
    Build a field catalog dynamically and provide the ability to color
    the cells.
    To test, copy this code to any program name and create screen 100
    as described in the comments. After the screen is displayed, hit
    enter to exit the screen.
    Tested in 4.6C and 6.20
    DATA:
    r_dyn_table TYPE REF TO data,
    r_wa_dyn_table TYPE REF TO data,
    r_dock_ctnr TYPE REF TO cl_gui_docking_container,
    r_alv_grid TYPE REF TO cl_gui_alv_grid,
    t_fieldcat1 TYPE lvc_t_fcat, "with cell color
    t_fieldcat2 TYPE lvc_t_fcat, "without cell color
    wa_fieldcat LIKE LINE OF t_fieldcat1,
    wa_cellcolors TYPE LINE OF lvc_t_scol,
    wa_is_layout TYPE lvc_s_layo.
    FIELD-SYMBOLS:
    <t_dyn_table> TYPE STANDARD TABLE,
    <wa_dyn_table> TYPE ANY,
    <t_cellcolors> TYPE lvc_t_scol,
    <w_field> TYPE ANY.
    START-OF-SELECTION.
    Build field catalog based on your criteria.
    wa_fieldcat-fieldname = 'FIELD1'.
    wa_fieldcat-inttype = 'C'.
    wa_fieldcat-outputlen = '10'.
    wa_fieldcat-coltext = 'My Field 1'.
    wa_fieldcat-seltext = wa_fieldcat-coltext.
    APPEND wa_fieldcat TO t_fieldcat1.
    wa_fieldcat-fieldname = 'FIELD2'.
    wa_fieldcat-inttype = 'C'.
    wa_fieldcat-outputlen = '10'.
    wa_fieldcat-coltext = 'My Field 2'.
    wa_fieldcat-seltext = wa_fieldcat-coltext.
    APPEND wa_fieldcat TO t_fieldcat1.
    Before adding cell color table, save fieldcatalog to pass
    to ALV call. The ALV call needs a fieldcatalog without
    the internal table for cell coloring.
    t_fieldcat2[] = t_fieldcat1[].
    Add cell color table.
    CALENDAR_TYPE is a structure in the dictionary with a
    field called COLTAB of type LVC_T_SCOL. You can use
    any structure and field that has the type LVC_T_SCOL.
    wa_fieldcat-fieldname = 'T_CELLCOLORS'.
    wa_fieldcat-ref_field = 'COLTAB'.
    wa_fieldcat-ref_table = 'CALENDAR_TYPE'.
    APPEND wa_fieldcat TO t_fieldcat1.
    Create dynamic table including the internal table
    for cell coloring.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = t_fieldcat1
    IMPORTING
    ep_table = r_dyn_table
    EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS = 2.
    IF sy-subrc  0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Get access to new table using field symbol.
    ASSIGN r_dyn_table->* TO <t_dyn_table>.
    Create work area for new table.
    CREATE DATA r_wa_dyn_table LIKE LINE OF <t_dyn_table>.
    Get access to new work area using field symbol.
    ASSIGN r_wa_dyn_table->* TO <wa_dyn_table>.
    Get data into table from somewhere. Field names are
    known at this point because field catalog is already
    built. Read field names from the field catalog or use
    COMPONENT <number> in a DO loop to access the fields. A
    simpler hard coded approach is used here.
    ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'ABC'.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'XYZ'.
    APPEND <wa_dyn_table> TO <t_dyn_table>.
    ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'TUV'.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'DEF'.
    APPEND <wa_dyn_table> TO <t_dyn_table>.
    Color cells based on your criteria. In this example, a test on
    FIELD2 is used to decide on color.
    LOOP AT <t_dyn_table> INTO <wa_dyn_table>.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    Get access to internal table used to color cells.
    ASSIGN COMPONENT 'T_CELLCOLORS'
    OF STRUCTURE <wa_dyn_table> TO <t_cellcolors>.
    CLEAR wa_cellcolors.
    wa_cellcolors-fname = 'FIELD2'.
    IF <w_field> = 'DEF'.
    wa_cellcolors-color-col = '7'.
    ELSE.
    wa_cellcolors-color-col = '5'.
    ENDIF.
    APPEND wa_cellcolors TO <t_cellcolors>.
    MODIFY <t_dyn_table> FROM <wa_dyn_table>.
    ENDLOOP.
    Display screen. Define screen 100 as empty, with next screen
    set to 0 and flow logic of:
    PROCESS BEFORE OUTPUT.
    MODULE initialization.
    PROCESS AFTER INPUT.
    CALL SCREEN 100.
    MODULE initialization OUTPUT
    MODULE initialization OUTPUT.
    Set up for ALV display.
    IF r_dock_ctnr IS INITIAL.
    CREATE OBJECT r_dock_ctnr
    EXPORTING
    side = cl_gui_docking_container=>dock_at_left
    ratio = '90'.
    CREATE OBJECT r_alv_grid
    EXPORTING i_parent = r_dock_ctnr.
    Set ALV controls for cell coloring table.
    wa_is_layout-ctab_fname = 'T_CELLCOLORS'.
    Display.
    CALL METHOD r_alv_grid->set_table_for_first_display
    EXPORTING
    is_layout = wa_is_layout
    CHANGING
    it_outtab = <t_dyn_table>
    it_fieldcatalog = t_fieldcat2.
    ELSE. "grid already prepared
    Refresh display.
    CALL METHOD r_alv_grid->refresh_table_display
    EXPORTING
    i_soft_refresh = ' '
    EXCEPTIONS
    finished = 1
    OTHERS = 2.
    ENDIF.
    ENDMODULE. " initialization OUTPUT

  • Sending of dynpro SAPLSDH4 0200 not possible: No window system type specifi

    Hello All,
    We have a problem related search help of Preferred supplier. When the preffered supplier is selected, inturn we will get another screen with lot of other options.
    When the search help for Purchasing org ID is selected, we are getting the error as "Sending of dynpro SAPLSDH4 0200 not possible: No window system type specified".
    I have debugged, but did not get any clue. Could any one please let us know if any one have any idea.
    We are using SRM 6.0, Web dynpro ABAP.

    Hi ,
    Thanks for your inputs.I had a look of this note earlier as well.
    Bu this error is not on Solution Manager and we cann implement this note.
    We are facing this on ERP system and component mentione di not in uses actually.
    Regards
    Ajay

  • Possible to get variable name?

    Is it possible to get the name that you have used in your code of a variable?
    ie.
    procedure main_procedure
    is
       l_var varchar2(10) := 'Hello';
    begin
       dbms_output.put_line(get_var_name(l_var));
    end;
    function get_var_name(p_var in varchar2)
    return varchar2
    is
    begin
       -- insert magic here
    end;
    -- End code; Now call the procedure
    exec main_procedure;-- Needed output:
    "variable passed had name l_var and value Hello"

    Hi Sam,
    OK, this is definitely for fun only and NOT recommended for any production database!!
    With that out of the way, this has been adapted from Tom Kyte's who_called_me:
    SQL> create or replace procedure get_var_name (
      2     p_var in varchar2
      3  )
      4  as
      5     call_stack   varchar2(4096) default dbms_utility.format_call_stack;
      6     n            number;
      7     found_stack  boolean default false;
      8     l_line       varchar2(255);
      9     cnt          number := 0;
    10     l_owner      varchar2(255);
    11     l_name       varchar2(255);
    12     lineno       number;
    13     caller_t     varchar2(255);
    14     calling_line varchar2(4000);
    15     var_name     varchar2(1000);
    16  begin
    17     loop
    18        n := instr( call_stack, chr(10) );
    19        exit when ( cnt = 3 or n is null or n = 0 );
    20        l_line := substr( call_stack, 1, n-1 );
    21        call_stack := substr( call_stack, n+1 );
    22        if ( not found_stack ) then
    23           if ( l_line like '%handle%number%name%' ) then
    24              found_stack := true;
    25           end if;
    26        else
    27           cnt := cnt + 1;
    28           -- cnt = 1 is ME
    29           -- cnt = 2 is MY Caller
    30           -- cnt = 3 is Their Caller
    31           if ( cnt = 2 ) then
    32              lineno := to_number(substr( l_line, 13, 6 ));
    33              l_line   := substr( l_line, 21 );
    34              if ( l_line like 'pr%' ) then
    35                 n := length( 'procedure ' );
    36              elsif ( l_line like 'fun%' ) then
    37                 n := length( 'function ' );
    38              elsif ( l_line like 'package body%' ) then
    39                 n := length( 'package body ' );
    40              elsif ( l_line like 'pack%' ) then
    41                 n := length( 'package ' );
    42              elsif ( l_line like 'anonymous%' ) then
    43                 n := length( 'anonymous block ' );
    44              else
    45                 n := null;
    46              end if;
    47              if ( n is not null ) then
    48                 caller_t := ltrim(rtrim(upper(substr( l_line, 1, n-1 ))));
    49              else
    50                 caller_t := 'TRIGGER';
    51              end if;
    52 
    53              l_line := substr( l_line, nvl(n,1) );
    54              n := instr( l_line, '.' );
    55              l_owner := ltrim(rtrim(substr( l_line, 1, n-1 )));
    56              l_name  := ltrim(rtrim(substr( l_line, n+1 )));
    57           end if;
    58        end if;
    59     end loop;
    60     select text
    61     into calling_line
    62     from all_source
    63     where line = lineno
    64     and type = caller_t
    65     and name = l_name
    66     and owner = l_owner;
    67     var_name := trim ( substr (
    68        calling_line
    69        , instr(calling_line, '(') + 1
    70        , instr(calling_line, ')') - instr(calling_line, '(') - 1
    71     ));
    72     dbms_output.put_line('variable passed had name '||var_name||' and value '||p_var);
    73  end;
    74  /
    Procedure created.
    SQL> create or replace procedure main_procedure
      2  is
      3     l_var varchar2(10) := 'Hello';
      4  begin
      5     get_var_name(l_var);
      6  end;
      7  /
    Procedure created.
    SQL> exec main_procedure;
    variable passed had name l_var and value Hello
    PL/SQL procedure successfully completed.cheers,
    Anthony

  • Is it possible to get the pageContext in servletInclude?

    HI,
    I have many textinput on the base page ,when I click the button (type of button)on the page,It popup up a new page.and there is a servletInclude on the new page.The servletInclude's Source URL is "./servlet/ServletTest". Is it possible to get the pageContext in the ServletTest?
    Thanks & Regards,
    binghao

    Is there anyone can help me?????

Maybe you are looking for

  • Help with purchasing album twice.

    Excuse me, I was wondering if there was any way at all I could get a refund for one of the albums I purchased. I actually recently bought Doo- Wops and Hooligans by Bruno Mars from my iPad, and mindlessly assumed that I could get the album on my iPod

  • Bug in Adobe DNG Converter 7.2 RC

    Adobe DNG Converter 7.2 RC (for Windows) keeps missing files. When pointing it at a folder containing many raw image files to convert (and providing a different folder as the destination for the converted files) then it won't always find all the raw

  • User checks - create Purchase orders /Contracts

    <u>Requirement</u> Creation of the purchase orders/Contracts should be allowed or blocked based on some vendor (classification) characteristics. Purchase orders and contracts can be created for materials and services. For each line item (material/ser

  • Oracle EBS 12.1.3 with 12c DB DG

    Hello Gurus, Can you kindly what the exact note to follow, I want to implement Data Guard for DR site of EBS database 12.1.0.2 Regards;

  • UIButton tag not available in controller code

    Hi, I have UIButton defined in InterfaceBuild. I assigned Tag (integer?) to the button. It has a IBOutlet in my controller code. But my controller can not retrieve the tag value by using: int tag = mybutton.tag; It is always 0 no matter what I set in