Skip to Content
avatar image
Former Member

OVS IN WEBDYNPRO ABAP

Hi Expert,

I am working on webdynpro abap ovs,i need some information regarding ovs.

I have three field on ovs  example EMPID, EMPNAME AND COMPANY

Now in my requirement i need COMPANY as READONLY on OVS..

And one more i need to write some code on RESET ACTION on OVS .

Please provide required information.

Waiting for Reply. 

Thanks & Regards,

Krishna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Sep 17, 2013 at 04:38 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Sep 17, 2013 at 05:33 PM

    Hi Krishna,

    I'm not aware of a way to have an OVS field read-only. An alternative approach would be not to include the COMPANY field in the OVS display but use its value behind the scenes in the ON_OVS event handler method. You could also leave the COMPANY field on the OVS display but give the user an error message if they change the value-- see OVS callback object method SET_MESSAGES.

    The following document shows a walk-through of a simple OVS if it is helpful.

    Component Usages in Web Dynpro ABAP Part II: Object Value Selector (OVS)

    Cheers,

    Amy

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 19, 2013 at 12:15 AM

    Amy is correct.

    In the structure for the input (lty_stru_input), just put EMPID and EMPNAME, and in the structure for the list (lty_stru_list), add the field for company.

    You can read this tutorial to help you.

    http://saptechnical.com/Tutorials/WebDynproABAP/OVS/page1.htm

    Regards,

    Christian 😊

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 19, 2013 at 09:47 AM

    Hi Krishna,

    Documents attached above are really very usefull.

    There are mainly four phases

    phase_0 - configuration phase, may be omitted

    phase_1 - set search structure and defaults

    phase_2 - fetch data from database

    phase_3 - set selected data in screen

    in Phase_1 you can set default values in OVS as you mentioned Company  name.

    Regards,

    Mukesh

    Add comment
    10|10000 characters needed characters exceeded