Skip to Content
author's profile photo Former Member
Former Member

visibilty check for web dynpor ALV

hi,

how can we do visibilty check for web dynpor ALV

srinivas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2012 at 06:09 AM

    Hi,

    Create one context node named VIS_OPTN and map it with visible property of ALV in layout.

    then in your method declare following variables:

    DATA : lo_el_context TYPE REF TO if_wd_context_element.

    DATA : val TYPE string.

    lo_el_context = wd_context->get_element( ).

    lo_el_context->set_attribute ( EXPORTING

    name = `vis_optn`

    value = VAL ).

    IF VAL EQ 'x'

    "Web Dynpro ALV is visible....'

    ENDIF.

    Regards,

    Aaradhana

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2012 at 06:29 AM

    Hi Srinivsa,

    can you move the discussion to ABAP webdynpro so that you will get the more answer for your question.

    Hope you understand.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2012 at 08:52 AM

    Hi ,

    create on attribute in context....

    then follow below screen.

    then follow bellow sample code.

    * DATA lo_el_context TYPE REF TO if_wd_context_element.

    * DATA ls_context TYPE wd_this->element_context.

    DATA lv_resub TYPE wd_this->element_context-resub.

    * get element via lead selection

    lo_el_context = wd_context->get_element( ).

    * @TODO handle not set lead selection

    IF lo_el_context IS INITIAL.

    ENDIF.

    * get single attribute

    lo_el_context->get_attribute(

    EXPORTING

    name = `RESUB`

    IMPORTING

    value = lv_resub ).

    Regards,

    Venkat.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.