Find item name from item id

Hi!
We have a library procedure that accepts block id as parameter.
The procedure fetches some block realted information from the database. So, it needs to refer to the block name.
Is there any way find the block name from block id?
Rgds,
SB

This is pretty crude, but it will work. Maybe someone else can suggest a better way:
Function Block_Name(B Block) return varchar2 is
  Blk_Nam varchar2(30);
Begin
  Blk_Nam := Get_Block_Property(B,NextBlock);
  If Blk_Nam is not null then
    Blk_Nam := Get_Block_Property(blk_Nam,PreviousBlock);
  Else
    Blk_Nam := Get_Block_Property(B,PreviousBlock);
    If Blk_Nam is not null then
      Blk_Nam := Get_Block_Property(Blk_Nam,NextBlock);
    Else --only one block in Form
      Blk_Nam := Get_Form_Property(:System.Current_Form ,First_Block);
    End if;
  End if;
  Return(Blk_Nam);
End;

Similar Messages

  • HT3275 How do I find/restore files from items in secure home folder? How do I find/restore files that crashed when in finder of secure (File Vault) home folder?

    How do I find/restore files from items in secure (File Vault) home folder? How do I find/restore files that crashed when in finder of secure (File Vault) home folder?  When I go into Time Machine, I see earlier dates but can't see files in my User File. I have File Vault turned on and see my home folder as a sparsebundle.  Do I neede to restore this in order to see files in my home folder.  When I click on it to restore it gives me an estimated time of over 2 hours.  Also tried to restore an Excel file I was working on when computer hung, so lost it without saving or naming it.  Does it exist anyplace and can I restore it?

    Thanks. I had pretty much figured out from other posts that I had better turn off File Vault for my home folder and use a disk utility sparse bundel for little information I wanted to secure. The information about File Vault 2 in Lion was new and useful though.

  • Find text name of item text of object eban

    How to find the text name of item text of object eban.
    Thanks,
    Sai.

    Hi
    If you want to maintain any text in Purchasing first maintain the texts in Material Master - Purchase Order Text - Click Create / Change the Text in the Space given then
    GOTO - HEADER -  >              
                            TEXT NAME
                            TEXT ID : BEST
                            TEXT OBJECT :MATERIAL
                            LANGUAGE : EN
    Regards,
    senthil.

  • Dynamically access item names from plsql block?

    hi folks - is it possible to access the block/item names inside a form, from a plsql block within the form? does that make sense, probably not, it's gone 5pm and my brains fried today.
    I want to try and control access to various items from within a back end table. Then in the form startup, I wanted to loop through the item names, fire them through to a check_access() function, and display or hide them depending on the result.
    does that sound possible, to get the item names at runtime, or do I have to hard code each item name I want to pass to the function?
    ps. forms 10g
    thanks.

    yes! check it out:
    Looping Through Items in a Data Block

  • How to find worksheet name from EUL5* tables.

    Hi
    I created workbook called employee report.
    under that 3 worksheets created.
    worksheet1 - By EMPNO
    worksheet2 - By DEPTNO
    worksheet3 - By JOB.
    how can i find the worksheet name from the EUL5* tables?

    Hi Marias,
    To find the worksheets run the below query
    select distinct qs_doc_name WBOOK_NAME,qs_doc_details WSHEET_NAME
    from eul5_qpp_stats where qs_doc_name in(select doc_name from EUL5_documents)
    Regards
    Sridhar

  • Finding RFC name from web service.

    Hi,
    I have web service URL (WSDL) but I dont have RFC name or ABAP object name from which this Webservice is created.  Since Web service is created long back..
    So is there any way out to find out Object name from Webservice ?
    Regards,

    Hi santosh,
    In the url , you will get the technical name of the webservice we can use this name to track the Fm.
    Consider this for get method : http://server.localhost/sap/opu/odata/sap/ZAPLX_FMAZ_VA_CRT_SO/zaplx_fmaz_va_crt_soCollection?$filter=i_createb_low eq '2014-03-24T10:56:39Z' .
    In the above webservice you can get the technical name ZAPLX_FMAZ_VA_CRT_SO. take this name and find the entry in activate and maintain service in /IWFND/MAINT_SERVICE tcode.
    then click on the entry and click add system alias button u will find the data model name there , use this name in se80 under data model . Double click on the technical name and click "open generator button" to get the RFC which is mapped.

  • Find column name from constraint name

    How to fetch the column name from a constraint name to which the constraint is applied?.
    I only know the name of the constraint and can get the table name from "dba_constraints". How can I know to which column in the table this constraint is applied.
    Thanks

    What about this?
    satyaki>
    satyaki>
    satyaki>desc user_cons_columns;
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    CONSTRAINT_NAME                           NOT NULL VARCHAR2(30)
    TABLE_NAME                                NOT NULL VARCHAR2(30)
    COLUMN_NAME                                        VARCHAR2(4000)
    POSITION                                           NUMBER
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • How to get the item name from a column in an interactive report?

    I created an interactive report. Then on the same page I added a tabular form region. What I want to implement is that, when I click a column link button on a specific row, the name of the row will be passed to the tabular region, so that the tabular region can list the corresponding items that belong to that specific row. But I have no idea what the name it is. Any idea? Thanks!

    Thanks! I've got it work! Now I can associate many product to a specific ProductNumber.
    Another issue comes up: I want to be able to add more products in this category. But when I press the "Add Row" button, it generates a new line but with ProductNumber null. This results me in failing to insert the new record, because the rule is that ProductNumber can't be null, and also it can't be assured that the new record is associated with this category (ProductNumber). What can I do to make it automatically come up with the same ProductNumber for new records? I guess some kind of a trigger may be needed, but I don't know how to do it.
    I made a screenshot here: http://img25.imageshack.us/img25/3051/98605982.png
    Thanks!

  • Finding user name from sessionID

    Hi,
    I have two systems working together. I am passing session ID between these
    two systems. I have an session ID. And I want to find which personalization
    server user owns this session.
    How can I find username from the session ID?
    Thanks
    Ali Rýza

    Hi again,
    I am currently using this solution . I am sending WebLogicSession to a
    servlet which returns username that I set while this session starts. But I
    need to make an http request to get the user name.
    I am trying to find a different solution which I don't need to make a http
    request.
    Thanks
    Ali Riza
    Muhtar Akbulut <[email protected]> wrote in message
    news:[email protected]..
    WebLogic puts a cookie called "WebLogicSession", which contains thesession id.
    >
    >
    >
    "Ali Rýza Soðukpýnar" wrote:
    Hi,
    I have two systems working together. I am passing session ID between
    these
    two systems. I have an session ID. And I want to find whichpersonalization
    server user owns this session.
    How can I find username from the session ID?
    Thanks
    Ali Rýza

  • Find form name from filename

    Hi,
    Is it possible to find form module name with a given file name? I ve searched the forms own built-in packages but there is no such a function that will return form name.
    Any help will be appreciated

    Andreas unfortunately my form module and fmx file doesn't have the same name. Also there are a lot of file like that.
    Michael I've tried to use that function but it didn't work. Because it returns the calling form module name. I need the called one:( I call a form with open_form as no activated from main module. Open_form built-in opens form with using filename without any trouble. After that I write the called filename to a log table. Then activate the called form via go_form built-in. Go_form doesn't take filename as a parameter. That's the main problem. I cannot show my called form.
    Besides I have used next_form in place of go_form but it doesn't work if more than one form window opened. thank you all of you but my problem didn't solve yet

  • Finding Table name from structure

    Hi,
    I need to find the trans. table name for the field ATP Quntity, It's coming from the Structure MDEZ field name MNG04. Please Help me guys??????????/
    I tried where used list, it's giving 2 tables But both are not having any data. Please guide me is there is anyother way can i achieve this?????????

    Hi Hari,
    Thanks for ur help. Can i add Program manipulated field value into Search help display. B'cos in selection criteria we can only create view for tables. How i can display manipulated value that's not in table to display in Search help result screen?
    I need to add extra display result in material field's Search help result screen like Stock on hand plant details.
    thanks,
    Subha

  • Finding table-name from a DSN name

    i need to find the total number and names of tables from a DSN setup on an access DB. can u tell me how? I couldn't find it in JDBC tutorial ..
    Thanx

    Try this
    DatabaseMetaData meta=conn.getMetaData();
         ResultSet set=meta.getTables("Database_name",null,null,null);
         System.out.println("got meta data ");
         while(set.next()){
              System.out.println(set.getString(3));
    // 3 rd column is the name of table
    The resultant resultset has following columns (as strings)
    (as per javadoc)
    TABLE_CAT String => table catalog (may be null)
    TABLE_SCHEM String => table schema (may be null)
    TABLE_NAME String => table name
    TABLE_TYPE String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
    REMARKS String => explanatory comment on the table
    TYPE_CAT String => the types catalog (may be null)
    TYPE_SCHEM String => the types schema (may be null)
    TYPE_NAME String => type name (may be null)
    SELF_REFERENCING_COL_NAME String => name of the designated "identifier" column of a typed table (may be null)
    REF_GENERATION String => specifies how values in SELF_REFERENCING_COL_NAME are created. Values are "SYSTEM", "USER", "DERIVED". (may be null)

  • Finding table name from field

    Hi,
    I have a field name. Now i want to find to which table this field belongs to.
    eg: I have field MATNR. Now in my program i want to find to which table this field belongs to.
    How can this be done?
    Points will be rewarded!!
    regards,
    Ashish Gupta

    Hi,
    Basically the same field is used in so many tables like mara,marc,mard,vbap...
    But for matnr , MARA is the master table.It means entry should be there in mara table .but no need of entry in other tables like mrac,mard,vbap..etc.
    But some times this value is picked from other tables also not only from mara to get other corresponding values like storage location or sales order number..etc.
    Program may access other tables also depending on requirement.
    so just check in the program from which database table this value is getting populated using SELECT stmt .
    you can put breakpoint at all the select stmt and debugg the program.you will get noticed from which database table its getting populated and from which table its value getting processed.
    Like suppose we use select stmt on vbap to get sales order number and then we goto MARD table to get corresponing storage location.
    so finally we will get the value from MARD table.
    just i will write simple code .
    data:it_mara like mara occurs 0 with header line.
    data:it_vbap  like vbap occurs 0 with header line.
    data:it_mard  like mard occurs 0 with header line.
    start-of-selection.
    select * from mara into table it_mara up to 100 rows.
    if not it_mara[] is initial.
    select * from mara into table it_vbap
    for all entries in it_mara
    where matnr = it_mara-matnr.
    endif.
    if not it_vbap[] is initial.
    select * from mard into table it_mard
    for all entries in it_vbap
    where matnr = it_vbap-matnr.
    endif.
    loop at it_mard.
    write: /  it_mard-matnr,it_mard-lgort.
    endloop.
    so finally we are printing matnr from mard table eventhough matnr exists in mara table also.
    Regds
    Sivaparvathi
    Please dont forget to reward points if helpful...

  • Finding spfile name from ASM

    hi,
    Here's my question:
    I have just re-created the controlfile after restoring and recovering the database.
    Opened the database with resetlogs.
    I executed the command create spfile='+DATA_GRP' from pfile='$ORACLE_HOME/dbs/init$ORACLE_SID.ora'
    No I want to find out whats the exact spfile name so that I can create a init$ORACLE_SID.ora file under $ORACLE_HOME/dbs with a "spfile='..........'" entry on the file system.
    The problem here is I am doing all the above steps in a script so need the spfile name in the script (I know if I connect to asmcmd I can find the spfile name) and my oracle owner and ASM owner are different (which makes me difficult to execute any asmcmd commands thru the script which is run by the RDBMS owner)
    Any help would be really appreciated.
    Thanks

    Hello;
    Its as simple as
    show parameter spfile;Assuming you start on this spfile. You would have to do a startup NOMOUNT on it at the very least to create a pfile form it.
    Example
    SQL> show parameter spfile;
    NAME                                 TYPE        VALUE
    spfile                               string      +DGROUP1/asm/parameterfileasm/registry.523.740659373Best Regards
    mseberg

  • User query that will populate item description from items checked in prop.

    Hi everyone I have a question about a user query that needs to be created.
    In the item master data form under the properties tab I need what ever is checked in that table to be populated in the Description field. I dont know if this is possible or not but can please someone help me with this. Thanks

    I am not sure if it can be done while in Add Mode as the values of Properties checked might not be available till the Item is added to the database.
    Through Stored procedure you can do this once you add the Item Code.
    The Code for the same is as below.  You need to Pass 3 parameters
    The SQL to call the SP from the Item Description field would be
    EXEC     [dbo\].[ITEMDESC\] $\[$5.0.0], $\[$39.0.0], $\[$114.0.0]
    CREATE PROCEDURE [dbo\].[ITEMDESC\](@ITEM NVARCHAR(20), @ITMSGRPCODE NVARCHAR(3), @FIRMCODE NVARCHAR(3))
    AS
    BEGIN
         DECLARE @GrpName AS NVARCHAR(20), @FirmName AS NVARCHAR(30)
         DECLARE @SQLString nvarchar(500), @I AS INT, @N AS NVARCHAR(2), @OUTPUT AS NVARCHAR(100), @PNAME AS NVARCHAR(100)
         DECLARE @ParmDefinition nvarchar(500)
         SET @ParmDefinition = '@ITEM NVARCHAR(20), @OUTPUT NVARCHAR(100) OUTPUT'
         SET @PNAME = ''
         SET @I = 1
         WHILE @I <= 64
         BEGIN
              SET @N = CAST(@I AS VARCHAR(2))
              SET @SQLString = 'SELECT @OUTPUT = CASE WHEN T0.QryGroup' + @N + '= ''Y'' THEN T1.ItmsGrpNam ELSE '''' END FROM [dbo\].[OITM\] T0, [dbo\].[OITG\] T1
                             WHERE T0.ITEMCODE = @ITEM AND T0.QryGroup'+@N + '= ''Y'' AND ItmsTypCod = '+@N
              EXECUTE sp_executesql @SQLString, @ParmDefinition,@ITEM, @OUTPUT OUTPUT
              SET @I = @I + 1
              IF @OUTPUT <> ''
              BEGIN
                   SET @PNAME = @PNAME + (@OUTPUT + ', ')
                   SET @OUTPUT = ''
              END
         END
         SELECT @GrpName = ItmsGrpNam FROM OITB WHERE ItmsGrpCod = @ITMSGRPCODE
        SELECT @FirmName = FirmName FROM OMRC WHERE FirmCode = @FIRMCODE
         SELECT @GrpName + ', ' + @PNAME + @FirmName
    END

Maybe you are looking for

  • We have an HP2009m and every time we turn it on it shows no DVI signal and monitor going to sleep

    HP2009m monitor goes to sleep every time you turn it on.  HELP!

  • Weird SQL server cursor issue

    Hi All. I have a stored procedure which can be seen below. The way it should work is that it should loop through a lot of all the databases on the SQL instance and pass the details onto another stored procedure. The stored procedure is called from SQ

  • Multiple Monitor Dilemma When Disconnected

    Using Media Encoder (CS4) on Mac laptop. Using multiple monitors when not traveling. When I go on the road and only use my laptop the application launches but thinks it's still on the other monitor that's not connected - which means I can't use it! I

  • One artist yields a continuous broken link from my External

    I store my music on an external hard drive, and import them into iTunes. However, one artist continues to be a pain by importing in, playing perfectly, then the next day displays broken links. I do not have the original cd, but the mp3s remain intact

  • How to link driver program

    Hi friends, I understood from SDN that following are smartforms for the topics. 1)Smart form for Delivery Note. LB_BIL_INVOICE smartform RLB_INVOICE Program 2) Smartform for Invoice LE_SHP_DELNOTE smartform RLE_DELNOTE Program i)  In real world ,What