Making a field in areport clickable

Hi Guys,
May I know how can I make a field in a report clickable?
Once clicked, it will generate another report...
This is however not an ALV, its just a simple report.
Thanks for all your inputs...
Regards,
Mark

at line selection.
AT LINE-SELECTION
Syntax
AT LINE-SELECTION.
Effect
This statement defines an event block whose event is triggered by the ABAP runtime environment during the display of a screen list - provided the scren cursor is on a list line and you select a function using the function code PICK. Through the definition of this event block, the standard list status is automatically enhanced in such a way that the function code F2 and, with it, the double-click mouse function is linked up to the function code PICK.
Note
If the function key F2 is linked with a function code different than PICK, each double click will trigger its even, usually AT USER-COMMAND, and not AT LINE-SELECTION.
Example
This program works with the standard list status. A line selection with the left mouse key causes the event AT LINE-SELECTION and creates details lists.
REPORT demo_at_line_selection.
START-OF-SELECTION.
  WRITE 'Click me!' COLOR = 5 HOTSPOT.
AT LINE-SELECTION.
  WRITE: / 'You clicked list', sy-listi,
         / 'You are on list',  sy-lsind.
  IF sy-lsind < 20.
    SKIP.
    WRITE: 'More ...' COLOR = 5 HOTSPOT.
  ENDIF.

Similar Messages

  • Short Dump while making a fields as required in BDT object screens

    Hi,
    I'm making a field as "required" by checking the required button on that field in the BDT screen.
    But am getting a short dump when I'm trying to use that screen.
    It seems like some data is getting converted to bad format due to this (am not fully sure about it.)
    Any idea on this.
    Thanks & Regards,
    Vipul.

    Hi Pinaki,
    The entire functionality is working absolutely perfect if I dont check that field as "Required" .
    I'm not sure if I'm missing some customising or is it a problem with BDT.
    Thanks & Regards,
    Vipul.

  • PDF Form javascript for making readonly field by using button

    Please let me know the PDF Form JavaScript for making selected fields(Text field,Drop down list,..) as read-only by using Button.

    Do you want your button to be made read only?
    One starts with Acrobat JS Reference.
    // make all fields in a form read only;
    var oField; // variable for field being processed;
    // loop through the form fields;
    for (var i = 0; i < this.numFields; i++) {
    // process each field name;
    oField = this.getField(this.getNthFieldName(i)).readonly = true;

  • Making selective fields editable in adobe form [using web dynpro]

    Hi,
    I have displayed an adobe form using web dynpro application. But I have to make certain fields (not all fields) on this adobe form editable. I dont want to make this adobe form interactive because I dont have to save any data in database. The data entered in the editable fields will be saved as a pdf.
    What I did so far:
    1) The fields which I want as editable,  I have given there type as "User entered/ optional" & for rest of the fields I have given type as "Read only".
    2) In web dynpro, I have enabled the adobe
    3) This is not making the fields editable.
    4) If I write the following code in my webdynpro method WDDOMODIFYVIEW, then my data coming from adobe is not getting displayed even though the fields get selectively editable.
    *data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    *LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    *check first_time = abap_true.
    *LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
    *LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    *LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    Any inputs regarding this??
    Thanks & Regards.

    Hi,
    Like I had mentioned using the following code in my webdynpro method WDDOMODIFYVIEW, my data coming from adobe form was not getting displayed even though the fields get selectively editable.
    *data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
    *LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    *check first_time = abap_true.
    *LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT('adobe').
    *LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
    *LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    So I kept this code & I also kept the Interface type "ABAP Dictionary based".
    Additionally in Webdynpro, I used adobe form generated FM to get the adobe content & passed it to the "content" parameter of my adobe component in webdynpro.
    Thanks & Regards.

  • How to make the fields of table clickable?

    Hi Experts,
    I have created one RFC based WD program. We are displaying data in a table. Now I have to make some of the fields of table clickable.
    When the user will click on some of the fields, another RFC should be called.
    How I can do so?
    Regards,
    Gary

    hi
    when you try to select the attributes of the table that has to be  populated
    you may have  to right click on the rootuicontainer and select apply template and select table
    and select the attributes from the node that has to be populated in the table and click next
      and you can find the attributes name and textview which is by default that would be shown inthe table
      instead you can  change the textview and select from the dropdown select the linktoaction and linktourl
      and or you can go other way as add a new column to the table and select buttons to the table .
      and for each each row and on click of the button you can call the RFC .
    Thanks

  • What else must I do to force data entry other than making the field required in LC 9 Forms Designer?

    I am trying to make sure that fields are populated with data prior to moving to the next field, but it seems that simply making the field required is not sufficient.  What else must I do to enforce data entry within required fileds?
    Thank you,

    There are a variety of scripting techniques that can be used based upon the form requirements, UI aesthetics, designer preference,... The script below forces data entry into a text field object called 'tf1' but it is a dangerous practice and should be used carefully. You may find yourself in a infinite loop based upon the tab order. A safer pattern includes global field validation upon submit.
    // form1.page1.subform1.tf1::exit - (JavaScript, client)
    if (this.isNull) {
      xfa.host.messageBox("tf1 is a mandatory field.","Text Field 1 Error",0);
      xfa.host.setFocus("form1.page1.subform1.tf1");
    Steve

  • Making screen field mandatory

    hi can any one help in making the field email as a mandatory in su01 t-code and kindly help with process where to go and what are the steps do i take to make the field mandatory

    Go to SHD0,
    give the transaction as SU01 and give the name of transaction variant for example 'USR1'. click create. Since your requirement is only for email give some dummy name and click on create. In the next screen give some dummy name and enter and continue till you reach the screen with this title "Screen values 0900 Program SAPLSZA5" . In this screen for the field 'Email' check the box under 'required' column. now click exit&save. give some short text in the next screen and save it under appropriate package, Transport requests.
    Note : you can default your transaction variant as the standard variant. (SHD0 - standard variants tab-> Activate/Deactivate as standard variant)
    Now go to se93 and click on create , give transaction code as for example 'SU01N' (this will be your new transaction for creating user with email as mandatory field) and choose start object as 'Transaction with variant'
    In the resultant screen, give the transaction code as SU01 and transaction variant as 'USR1' (the one we created earlier), check on all gui support box's accordingly, and save it under appropriate package and Transport request.
    From here on you can use SU01N as the transaction for creating users with email as a mandatory field.

  • User Exit for making the field Bill of Lading Mandatory in Delivery

    Please suggest an User Exit for making the field Bill of Lading Mandatory in the Delivery document when we create an inbound delivery.

    Hi,
    I'm not sure, pls check these
    USEREXIT_SAVE_DOCUMENT_PREPARE
    EXIT_SAPLV46H_001
    NOTIF_EVENT_SAVE
    thanks
    Mohanprabu C

  • Does making final field static improve performance or save memory?

    Are final fields given value at compile time by the compiler?
    private final String FINAL_FIELD = "31";
    Does making final field static improve performance or save memory?

    Actually it's final static fields with primitive or String type that are treated specially. For other final fields only extra compile time checking is produced, they are the same at run time.
    final static primitives are treated as compiler constants, and a literal value is substituted. No actual field is created.
    Myself I consider an awareness of Java internals valuable. For example, if you were unaware of the above the occasional misbehaviour of final static primitives referenced in other classes would be baffling. If your code references a final static primitive from another class it's compiled as a literal, not a reference, so if their value changes in the other class, the referring class will retain the old value if not re-compiled.

  • Making batch field dispaly in mb1b while doing 541 against PO

    Dear Friends,
    How can I make batch field dispaly in mb1b while doing 541 against a subcontracting PO so that no one can change the batch number in MB1B.It should flow from the PO.
    Regards
    Rutabhadra Panda

    Hi Friends,
    Thanks for your kind reply.
    But there is no option to of making it display.
    Only required, optional & suppress are there.
    Please answar.
    Regards
    Rutabhadra Panda

  • Making CCV field in checkout mandatory for on site credit cards, but not for getting to Pay Pal site

    Hi.  I posted this on December 1st and am still waiting for a response after a failed attept with chat.
    When my clients are making an order, the CCV field, even though it is marked as required, they can actually place an order without entering the CCV.  I’d like the CCV to be required.  A chat rep said Pay Pal and BC don’t require a CCV, but I would like it to be there for extra security.
    I’ve put the correct webform under Module tempaltes > online layouts > registration buy using both html and module insert methods to test it.  Neither worked.
    The rep gave me this code to put at the bottom of my web form (note this is just the bottom of the web form field code as the top and middle have nothing to do with CCV).  The bold text is the extra text that is supposed to make the CCV required. 
    It works. This code does render a CCV requirement for direct credit card transactions on site.  Problem is, if a client selects Pay Pal in my checkout as their choice and clicks "Place Order" a Pop up window appears telling them they must enter their CCV. So its being required for direct CC on site and offsite for Pay Pal.  Of course a CCV shouldn’t needed on that screen if a client wants to pay by going to the Pay Pal website. 
    So I was wondering if you could help me modify the code so that the CCV code IS required for direct credit card purchases on my site, but when a client wants to use Pay Pal, that the CCV required field pop up does NOT appear and the client can be taken to Pay Pal to compete their order.  Many thanks!  My website is trueafricanart.com and I am using the latest BC version and normally Firefox, though I have tested in Safari and IE 9 and 10.
    <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
        <script type="text/javascript">
    //<![CDATA[
    var submitcount44260 = 0;function checkWholeForm44260(theForm){var why = "";if (theForm.PaymentMethodType) why += checkSelected(theForm.PaymentMethodType, "Payment Method");if (!theForm.PaymentMethodType || getRadioSelected(theForm.PaymentMethodType) == 1) { if (theForm.CardName) why += isEmpty(theForm.CardName.value, "Name on Card"); if (theForm.CardNumber) why += isNumeric(theForm.CardNumber.value, "Card Number"); if (theForm.Amount) why += isCurrency(theForm.Amount.value, "Amount"); } if (theForm.WorkPhone) why += isEmpty(theForm.WorkPhone.value, "Work Phone Number"); if (theForm.BillingAddress) why += isEmpty(theForm.BillingAddress.value, "Billing Address"); if (theForm.BillingCity) why += isEmpty(theForm.BillingCity.value, "Billing City"); if (theForm.BillingState) why += isEmpty(theForm.BillingState.value, "Billing State"); if (theForm.BillingZip) why += isEmpty(theForm.BillingZip.value, ""); if (theForm.BillingCountry) why += checkDropdown(theForm.BillingCountry.value, "Billing Country");if (theForm.CardCCV) why += isNumeric(theForm.CardCCV.value, "CCV Number");if (theForm.CardCCV) why += isEmpty(theForm.CardCCV.value, "CCV Number"); if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value); if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name"); if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); if (theForm.CAT_Custom_511186) why += checkSelected(theForm.CAT_Custom_511186, "Billing Address same as shipping address?");if(why != ""){alert(why);return false;}if(submitcount44260 == 0){submitcount44260++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
    //]]>
    </script>
    </form>

    I thought I had and a few others in that with the answer. Because it was a javascript issue.
    As I said in that other post, The code you get from the registration form has a condition on the radio options, none of the fields for credit card become required if you choose paypal.
    EG:
    if (!theForm.PaymentMethodType || getRadioSelected(theForm.PaymentMethodType) == 1)
                        if (theForm.CardName) why += isEmpty(theForm.CardName.value, "Name on Card<br>");
                        if (theForm.CardNumber) why += isNumeric(theForm.CardNumber.value, "Card Number<br>");
                        if (theForm.Amount) why += isCurrency(theForm.Amount.value, "Amount<br>");
    And in there and when that case is met you put in the CCV script.

  • Making department field as required field

    Dear gurus
    i have a requirement
    while making a PR there is a field known as department
    i want this field to be a required entry
    how to do this
    Regards
    Saad Nisar.

    Hi Saad Nisar,
    Please carfully review the documentation in SPRO attached to OLME ->   
    Purchase Requisition -> Define Screen Layout at Document Level                                                                               
    This states that not just one but different Field Selections are       
    chosen so maybe another one is cancelling out your custom one, maybe   
    the one you are changing is not being called at all.                                                                               
    Please follow the instruction in note 30316.                           
    30316 Problems with fields that are not ready for input in purch                                                                               
    Here you will be asked to set a breakpoint in FM MEX_FELDAUSWAHL, then 
    access the transaction and by following the steps you can see which    
    field selections are being chosen, then compare to your settings in    
    OLME.
    For example, I lad had to do with with a field in ME21N and when in this FM I got following results.
    I_AUSWAHL0      ME21N
    I_AUSWAHL1      AKTA 
    I_AUSWAHL2      NBF  
    I_AUSWAHL3      PT9F
    I then went to OLME and made the correct changes and the field went the way I wanted.
    Hope this helps,
    Kind Regards,
    Matthew

  • Making Total field blank

    I have a PDF that has an order form on page 3.  Recently we added a fixed shipping/handling charge of $3.00 and that has created some problems.  The big issue is that some customers like to print out the order form and enter their order items at our Picture Day events instead of filling out that section before printing, and now they get a $3.00 in the Total field, making it hard to write in their total by hand.
    The Total field calculates Sum(Cost1,Cost2,Cost3,Cost4,Cost5,Fees,MAW,3) where the 3 is the fixed S/H charge.  I'd like it to display nothing at all if that sum equals 3 and display the total if the sum is greater than 3.  I'm very much a novice to this but have some programming sense.  I've tried an if/then combo as part of the calculate step.  I've tried a different if/then as part of the validate step.
    Can someone help me structure the coding for my Total field?
    If you want to see the PDF click here and go to page 3.  If you have any other suggestions, I'm "all ears."
    THANKS!
    P.S. I forgot to mention that this is being designed/edited using Acrobat Pro 8 and the LiveCycle Designer 8 that is part of this.  I couldn't find a home for this in the Acrobat forum and I don't *think* that 8.0 is the same as LiveCycle ES.  Hopefully the question is still answerable where I've put it.  Thanks!

    That's a good suggestion but I don't want to give the customer a chance to essentially make the charge "optional" by allowing them to uncheck it.
    I actually kept tinkering with it and found the answer myself....
    if (Sum(Cost1,Cost2,Cost3,Cost4,Cost5,Fees,MAW,3)==3) then
    else
    Sum(Cost1,Cost2,Cost3,Cost4,Cost5,Fees,MAW,3)
    endif

  • Making a field mandatory in additional data tab in sales area data in XD01/XD02

    Hi,
    Making fields in additional data tab in sales area data in XD01/XD02 as mandatory is not achievable through configuration. Also, user exit SAPMF02D was not helpful in achieving this. Kindly help me on this.

    Is this a new field you are creating or an existing field you want to mark as mandatory? My impression from your original post was that it was the second. If so then you don't need to create an implementation of CUSTOMER_ADD_DATA as there must already be one, instead you should be looking for the implementation that manages data for the screen you are interested in. This might be why you don't see your BADI get activated  when you go to  "area data -> extras -> additional data" as it isn't the right implementation.
    If you just want the field to be mandatory when the user goes into the additional data tab I would code this in the screen of the customer exit. If you want this field to be mandatory whether or not they enter other additional data then you should try the method of the badi Nabheet suggested but not in your own implementation.

  • Making the field "company code" mandatory

    Hi SAP experts,
    is it possible to make the field : company code, a mandatory one in the initial screen of XD01 transaction (create customer)? How?
    Best regards,
    Bahia.

    Hi Bahia
    How are you? Why no posts for a long time?
    Making COMPANY CODE as a mandatory entry i think it is not possible with customization
    This means you cant achieve this thro OBD2 or OB20 or OVT0
    It is because SAP has given the provision of creating CMR only with general data and sales area data
    With these two levels SD people can do most of their processes  (t codeVD01)
    Similarly SAP has given the provision of creating CMR only with general data and company code data
    With these two levels FI people can do most of their processes( like that FI people also has t code to create CMR only with general data and company code)
    These provisions where it  is applied practically,, i dont know?
    But thro development i think you can make each and any CMR you prepare it should be only with XD01 and that too in that Company code has to be made mandatory
    Check with your technical team
    Regards
    Raja

Maybe you are looking for