GET_P Method for Link in table - only in display mode

Hello,
i created an assignmentblock to display a ztable (Simple Object).
One column in the table is homepage.
For this attribute i added some coding to the GET_P_Method to have a link.
The link works fine - but i have this link now not only in display mode but also in edit mode for the table.
As a sideeffect this column is now longer editable.
How should i change my GET_P coding so that the link is only there in display mode. In edit mode the field should be editable (no link).
Thank you
Best regards
Manfred

Hello Manfred,
I do not know about your system... but the usual GET_P-methods do have an importing parameter IV_DISPLAY_MODE. This tells you if you are in display or edit mode.
Check method CL_BT115QH__DETAILS_CN00->GET_P_ORDER_REASON.
Or even more general: GETP_XYZ in your context node class.
The part with the IF statement should be trivial.
cheers Carsten

Similar Messages

  • Table control in display mode

    Hello All,
    Please tell me how to show table control in display mode,
    My requirement is , whenever ill put T-code for table maintainace it should be appear in display mode.
    Thanks,
    Gaurav

    table control or table maintenance?
    Ok, let me assume that you have table mainteance view done for ZTEST table with Z_V_TABLE (maintenance view generated)
    create a tcode now
    1) transaction with parameters - se93 - tcode Z_TABLE
    2) Transaction SM30
    3) skip initial screen checked
    4) maintain below values in default values in se93
    VIEWNAME     Z_V_TABLE
    SHOW     X
    now when we run with Z_TABLE table it will always show in display mode.
    Hope - I understood your question correctly

  • SICF- only in display mode

    Hi all,
    I want the tcode SICF to be in display mode alone.
    Under which authorization object it comes?
    Can I make only in display mode.
    Regards,
    R.Suganya

    Hi Alex,
    already full authorization was given.
    now i changed to only display. now it is working fine.
    thanks.

  • Query for Linking Two Tables without Reference

    Hi Folks,
    Good Day!
    I have this dilemma on how to link two tables without a reference. In the Business Partner Master Data, there is a field for the Territory which is from the table OTER. This OTER focuses on its description. Once you have added the particular Territory for that Business Partner, it is being stored in the Territory field of the BP right? Our client wants to have an automated way of searching for the Business Partner's Profit Center in creating a Sales Order wherein it is the same as the Business Partner's Territory. The Profit Center is from the table OPRC.
    When I create a Sales Order, after I have entered the Business Partner/Customer Code, the Profit Center should have the value of the Profit Center Code wherein it is the Business Partner's Territory. My query will go like this:
    Enter the BP/Customer Code automatically the Profit Center code where Profit Name = BP's Territory.
    OTER and OCRD don't have connections. How can it be?
    I'm thinking of retrieving the Territory first before the Profit Center but can you suggest of any other way?
    Thank you much!
    Regards,
    Fringe

    Hi Fringe,
    Okay, I already understood your case here. I presume your configuration as follows:
    OTER (Territory)
    territryID - descript
    1 - Philippine
    2 - Indonesia
    3 - Germany
    OPRC (Cost Centre)
    PrcCode - PrcName
    25 - Philippine
    33 - Indonesia
    47 - Germany
    Was above illustration correct? Then, you could use this formatted search in Cost Centre / Dimension field in Sales Order rows
    SELECT PrcCode FROM OPRC WHERE PrcName=(
    SELECT TOP 1 descript FROM OTER T0
    INNER JOIN OCRD T1 ON T0.territryID=T1.Territory
    WHERE T1.CardCode=$[OCRD.CardCode.0])
    However, I suggest you use a little bit different approach here. Since you can't define Territory Code / Territory ID (you could only type the Territory name, Philippine etc.), why don't you standardize Territory name with Cost Centre code? Let say, you define Philippine as PHI, Indonesia as INA, Germany as DEU and so on. Therefore, user can read the Cost Centre or more precisely Distribution Rules in Sales Order form in more familiar way.
    OTER (Territory)
    territryID - descript
    1 - PHI
    2 - INA
    3 - DEU
    OPRC (Cost Centre)
    PrcCode - PrcName
    PHI - Philippine
    INA - Indonesia
    DEU - Germany
    When FMS worked in Sales Order document, your user will read PHI instead of 25, should be more familiar to them. With that being said, you could use simpler FMS
    SELECT descript FROM OTER T0
    INNER JOIN OCRD T1 ON T0.territryID=T1.Territory
    WHERE T1.CardCode=$[OCRD.CardCode.0]
    You only need to maintain consistency between Territory Name and Cost Centre code. Just my two cents. Hope this help.
    Best Regards,
    Hendry Wijaya

  • How to change the score method for ses crawler table result?

    Hi,all
    There is a customer urgent requirement,they want customize methods to score the result which come from database same table different column source for relevancy boosting.For example.there is a table t_table which have 3 column:name,short description,long description.Now i create 3 source for this table,every source has different content column.source 1's content column is name,source 2's content column is short description,source 3's content column is long description,is it possible for me to define the priority for those 3 source.For example,source 1 's priority is 50%,source 2 's priority is 30%,source 3 's priority is 20%.
    By the way,i wonder that exists a API to fetch the result set score attribute and primary key value?
    any advice is appreciate.

    Kevin, have replied via internal mailing list on this. There is an undocumented method for boosting relevance by section. It is considered experimental at the moment and the exact details may change before we include it as a standard feature.

  • Universal Entity EJB find/select method for single db table

    Hi there.
    I'm quite new in bea spheres and my question reflects my small knowledge:
    Is there any way to perform "universal" sql query on single database table via find/select methods? This means, that I would like to pass whole WHERE clause to these methods, not just some fields values.
    What do I mean?
    Normally we define find/select method that looks like this one:
    SELECT OBJECT(o) FROM Cities AS o WHERE population>=?1 AND state=?2
    We call this a method this way:
    finder1 (1000000, 'France')
    Method returns collection with objects holding data about cities in France with more than 1000000 inhabitans..
    But, I want to define method, that could be called this way:
    finder1 ("o.population>=1000000 AND o.state='France'")
    This method should be able to perform any query on 'Cities' database table.
    I tried with defining find method for following query:
    SELECT OBJECT(o) FROM Cities AS o WHERE ?1
    but it does not work, of course.
    Is there possibility to define method that could be called this way?
    I use Bea Weblogic Workshop 8.1 SP3
    Message was edited by akla at Oct 23, 2004 5:21 PM

    Hi,
    The 'Dynamic Query' feature of WebLogic 8.1's EJB container can help you here. This feature enables you to execute complete EJB QL queries that are constructed on the fly. Check the WebLogic 8.1 documentation for more details.
    -thorick

  • Updating Custom Table Only in Debug Mode

    Hi All!
    I have been encountering issues in updating a custom table. It would work successfully only in debug mode otherwise it won't update an entry in the table.
    This is the piece of code that would update an entry in the table specifically used in a user exit. The functionality of this code is to automatically remove a transportation block:
    SELECT SINGLE *
    INTO wa_zblock
    FROM zblock
    WHERE zzblknum EQ c_tr01
    AND vbeln EQ p_lvbeln
    AND zzprocessed EQ space.
    IF sy-subrc EQ 0.
    DO.
    CALL FUNCTION 'ENQUEUE_E_TABLES'
    EXPORTING
    MODE_RSTABLE = 'S'
    TABNAME = c_lzblock
    EXCEPTIONS
    FOREIGN_LOCK = 1
    SYSTEM_FAILURE = 2
    OTHERS = 3.
    IF sy-subrc EQ 0.
    wa_zblock-zzprocessed = c_x.
    wa_zblock-zzapproveby = sy-uname.
    wa_zblock-zzapproveon = sy-datum.
    MODIFY zblock FROM wa_zblock.
    if sy-subrc EQ 0.
    COMMIT WORK AND WAIT.
    endif.
    EXIT.
    ENDIF.
    ENDDO.
    CALL FUNCTION 'DEQUEUE_E_TABLES'
    EXPORTING
    MODE_RSTABLE = 'S'
    TABNAME = c_lzblock.
    ENDIF.
    How can I make this update the custom table successful in undebugged mode? Please let me know your thoughts on this.
    Thanks!

    I also suggest you to lock only the entry that will be updated (and not the whole table!) : you will have then far less problems of conflict with updating this table.
    For that, you have to create a lock object on your table (via SE11 - for example EZ_MY_TABLE). This will create 2 function modules named ENQUEUE_E<name of your lock object> (in my example ENQUEUE_EZ_MY_TABLE) and DEQUEUE_E<...>.
    You can then call those FM like this :
    CALL FUNCTION 'ENQUEUE_EZ_MY_TABLE'
      EXPORTING
        MODE_RSTABLE = 'S'
        KEYFIELD1 = ld_keyfield1  " Here are the key values for the entry that you have to update
        KEYFIELD2 = ld_keyfield2
      EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
        OTHERS = 3.
    Best regards,
    Samuel

  • How to enable the 'Ship-To Address' field only in 'display ' mode in the SC

    Hello,
    We would like the 'Ship-To Address' field to be locked for change mode in the SC.
    Regards,
    Lina

    Hi ,
    If you wish to hide or show fields, proceed as follows(through screen variants):
    1. Determine the screen variant, for example, BBP_SC(For shopping cart), using the list in documentation of BADI BBP_SCREENVARIANT.
    2. Copy this screen variant, for example, in Zbbp_SC, in Transaction SHD0.
    3. Change the new screen variant as required. Note that you can only change the display properties for fields of table controls. You can switch the display on and off.
    4. Implement the appropriate method (see the list above). Fill the export parameter EV_SCVARIANT with the new screen variant.
    You can create multiple screen variants for a screen and then select these in the BAdI depending on the user or on other criteria.
    here is sample code in BADI BBP_SCREENVARIANT implementation after creating Z screen variant.
    Method IF_EX_BBP_SCREENVARIANT~GET_SCREENVARIANT_SC.
    IF iv_progname EQ 'SAPLBBP_SC_UI_ITS'
    AND iv_dynnr EQ '0120'
    AND flt_val EQ c_fltval.
    IF iv_scvariant EQ 'BBP_SC'.
    ev_scvariant = 'Zvariant'.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Please reward points if helpful..
    Thanks
    Venkatesh

  • Video iChat for Full Screen presentation in dual-display mode

    I plan on giving a presentation and want to use video iChat with a special effects background projected using dual display mode. I find that if I use video preview in iChat, that I can't enter full screen mode (this would look best when projected). It seems you can only enter full screen if connected to a buddy in iChat, which I don't want for the presentation.
    Any thoughts on how to accomplish this, or maximize the appearance?
    Thanks.

    Hi,
    You want the Flipped pic that iChat gives you but using the Preview only as you do not require an actual chat to make a Presentation.
    Ideally you would like that to be Full Screen but the Preview only does not do full screen.
    Adding a second Screen in the form a Projector and mirroring is possible.
    This of course would allow you present a "Live Feed" as it were.
    Do you gave Quicktime Pro ?
    This allows you to set a window to Full Screen even if not actually recording, but shows what the camera sees. (albeit not Flipped like iChat although iGasses can fix that.
    I would also look at some of the options on this page
    http://www.ralphjohns.co.uk/EZJim/EZJimpage7.html
    5:50 PM Sunday; May 10, 2009
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Columns in table control in display mode in display transaction

    Hi all,
    I have a table control in a custom screen .Now i have few columns in the table control which need to be input enbaled but should be dislay only when thetransaction mode is "display" e.g VL33N.
    I have written the follwoing lines of code:
    IF sy-tcode = 'VL33N'.
        IF g_trtyp = 'A'.
          LOOP AT tc01-cols INTO wa_tc01.
            IF wa_tc01-screen-group1 = 'G2'.
              wa_tc01-screen-input = 0.
              MODIFY tc01-cols FROM wa_tc01.
            ENDIF.
          ENDLOOP.
    ENDIF.
    ENDIF.
    However the specific olumns in table control are not displayed in display mode when in display transaction!
    Can anyone suggest what am i doing wrong?
    thanks.

    I would have answered if you followed forum rules (as I can see in your previous posts, missing feedback, closed without any info)

  • Giving grant for creating temporary table only

    hi...
    i want to give grant for creating only temporary tables to a schema.
    no other grants should not be there strictly...
    I have created the following user widout any grants...plss suggest me how can i give the grants for creating only temporary tables..
    create user user_name
    identified by password
    default tablespace table_space
    temporary tablespace TEMP
    profile DEFAULT
    quota unlimited on table_space;
    grant select on V_$SESSION to user_name;
    thanks...
    Edited by: user12780416 on Mar 25, 2011 8:32 AM

    As has been pointed out, it would be **extremely** unusual to want to have a user that could create global temporary tables but not permanent tables. I'm very hard-pressed to imagine a scenario where that would make sense.
    However, if you grant the user the CREATE TABLE privilege but do not grant the user quota on any permanent tablespace, they would be unable to create permanent tables but should be able to create global temporary tables. You'll have to make sure that you don't grant the user UNLIMITED TABLESPACE which would give them unlimited quota on all tablespaces. If you are using 11g and you have enabled deferred segment creation, the users would actually be able to create tables in tablespaces they have no quota on though they would not be able to insert any data in those tables.
    Justin

  • Best method for archiving a table?

    I want to archive data in a table, based on a date selection.
    My initial thought was:
    -- Force creation of blank table, if it does not already exist
    create table ifsapp.customer_order_kmarchive as select * from ifsapp.customer_order where 1=2
    -- Update table with latest data to purge
    insert into ifsapp.customer_order_kmarchive as select * from ifsapp.customer_order where order_date < sysdate - 360
    -- Remove data
    delete from ifsapp.customer_order where order_date < sysdate - 360
    But of course you have to specify values on the insert. Is there a simple way round, without explicitly naming each column?
    Is there any check I can do so that if the copy fails, the delete won't happen?
    Thanks

    Oscar
    If proper date format (or trunc function) is not used, I bet, your archival process will be messed up at some stage.
    Consider for example the below scenario and run a test in your database:
    SQL> create table original_table(id Number, order_date date);
    SQL> Begin
    For i in 1..100
    Loop
    insert into original_table values (i, (sysdate-360)+ i/3600);
    End Loop;
    Commit;
    End;
    Now run the following select statement (it's like inserting into archive table) .
    Keep running it few times and you will see how the TIME part in the date field affects your whole process.
    SQL> select count(*) from original_table where order_date < sysdate-360;
    You will see that the result returned will change as your clock moves even though the date is same.
    As a result, your INSERT into ARHIVE_TABLE might start at 9 am and select all rows less than a year and 9 am on that day and archive them. Your DELETE statement might begin at 9.30 am and will delete all rows from original_table with order_date less than a year and 9.30 am. Now, understand why you need a TO_DATE function or a TRUNC function to get consistent results.
    You can use function based index to index TRUNC(ORDER_DATE) and your queries will be still performing great!

  • Code for Links from table

    i have attached the code with table having a field of Empid.
    how to give a link from Empid field to generate Empname,Depname
    in a table format.
    <html>
    <head>
    <title>Masterreport.jsp</title>
    </head>
    <body>
    <%
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException excep)
    System.out.println("exception caught"+excep.getMessage());
    java.sql.Connection con=java.sql.DriverManager.getConnection("jdbc:odbc:Visualcaccess");
    java.sql.Statement st=con.createStatement();
    java.sql.ResultSet rs=null;
    try
    String string="select Empno from Employe" ;
    rs=st.executeQuery(string);
    }catch(Exception e)
    out.write("Exception caught"+e.getMessage());
    %>
    <TABLE border="1" cellpadding="5">
         <TBODY>
              <TR>
                   <TH colspan="1"><U>Updated List ofEmployees</U></TH>
              </TR>
              <TR>
                   <TH>Emp Name</TH>
              </TR>
              <% while(rs.next()){ %>
              <TR>
                   <TD><%=rs.getInt(1)%></TD></A>
              </TR>
         <%}
    rs.close();
    st.close();
    con.close();
    %>
    </TBODY>
    </TABLE>
    </form>
    </body>
    </html>

    Example from jsp document. Modify this to suit your needs. hope this helps.
    <%
    while (RS.next()){
    id = RS.getInt("id");%>
    <a href="cp5.jsp?id=<%=id%>">voting</a>
    <%
    %>
    then
    int id = Integer.parseInt(request.getParameter("id"));
    String empname = "";
    String depname = "";
    SELECT * FROM TABLE WHERE id=id;
    <%
    if (RS.next()){
    empname = RS.getString("empname");
    depname = RS.getString("depname");
    %>
    <tr>
    <td>
    <%=empname%><%=depname%>
    </td>
    </tr>
    <%
    %>

  • Address Book Notes for New Contacts Appear Only In Edit Mode

    When I create a new contact in +Address Book+, exit Edit mode, and then add a Note to that new contact, the note is visible only when the contact is switched to Edit mode. This does not effect existing contacts. This problem first appeared yesterday. I didn't do anything unusual with +Address Book+ before the emergence of the problem.
    I followed these instructions to rebuild the +Address Book+ database but it had no effect on this problem: "Quit Address Book and drag ~/Library/Application Support/AddressBook/AddressBook-v22.abcddb to the desktop. It will be rebuilt from the details in Metadata when you restart AB."
    Thank you in advance for any ideas you have!
    Steven

    I exported the contact list and deleted Library/Application support/Address book and then re-imported.  Everything is fine now.

  • Exit for CJO2, Some fields should me only in display mode

    Hi Experts,
    I have to do certain field of CJ02 IN non EDITABLE MODE( Only Display) .
    Please suggest me which user exit can be used ?
    Rgds
    Mohit

    Done, Using Enhancment Points

Maybe you are looking for

  • How can I delete multiple contacts at a time.

    I need to clean up my contacts, I was wondering how to do multiple contacts instead of one by one. 

  • Goods Recipts for Limit item SC

    Hi, When we create shopping cart with limit item and choose the "confirmation and invoice option" during the Limit SC creation the backend PO is created with item category 'D'. The service PO is created, but there is no data updated in service tab at

  • Oracle 8i Lite and Palm, Windows CE and EPOC

    This may be a simple question to developers (which I am not), but we have a client who is seeking advice regarding the use of Palm Pilots, Psion or similar devices for field recording of data. Their database is Oracle 7.3.4 (soon to be upgraded to 8)

  • Validate two sums and display total

    I have a form which sums numeric data (amounts) in both columns and rows. I need to verify that the sum of the row of totals and the sum of the column of weekly totals are identical and dsiplay the total in a single grand total field. Because the for

  • HP 1050A J410g wont print black and white only colour

    Hello, My HP1050A J410g - 14 months old hardly ever used stopped printing black and white. Colour will print. No error message Test page prints blank Cartridges are new and not empty. Paper feeds through but prints blank. Please help. Thanks