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

Data definition in BSP application


Let me brief out the requirement.I am developing an form for data entry with complex condition and logic.

Each row has one checkbox and four inputfield, for e.g.

<htmlb:checkbox id = "RSM_CB_RPS_A2C_AF"

onClick = "HandleRPSA2C_AF"

text = "N/A" />

<htmlb:inputField id = "RSM_RPS_A2C_AF"

type = "STRING"

value = "0"

width = "50"

disabled = "<%= RSM_RPS_A2C_DIS_AF %>"

required = "false" />

When i click the Checkbox the four input fields should be disabled and vice i handled the disabled attribute of the inputfield in OnInputProcessing Event Handler.

IF RSM_CB_RPS_A2C_AF->checked = 'X'.











The parameters RSM_RPS_A2C_DIS_AF, RSM_RPS_A2C_DIS_AL, RSM_RPS_DD_A2C_DIS_AF, RSM_RPS_DD_A2C_DIS_AL are defined as Page attributes.

I have more than 200 input fields in my form. so i need to define 200 Page attribute for just handling disabled functionality which will be impossible to maintain.

If i define it as





in OnCreate i am not able to access it in Layout TAB.

Is there any way to handle this functionality with MVC or something else?

Is there something like Main Program in Function modules, where we can define the global definitions?

Thank you


Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 11, 2004 at 12:48 AM

    MVC works kind of like that with all the variables but you still have to define them in your Page Attributes of your view.

    Any chance of a redesign and making your form like a wizard where fill in a few then click next type of thing?

    Add a comment
    10|10000 characters needed characters exceeded

    • Model variables don't really have to defined in your Page Attributes. You can always pass the entire model class as a page attribute. From the controller side it looks something like the following:

        data: model2 type ref to zcl_bsp_m_input_help.
        data: view type ref to if_bsp_page.
      ****Get a pointer to the Model Object.
        model2 ?= get_model( 'MU' ).
      ****Call our View
        view = create_view( view_name = 'InputHelp.bsp' ).
        view->set_attribute( name = 'model'      value = model2 ).
        call_view( view ).

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2004 at 02:07 AM


    Is that possible to Include seperate programs or page fragments in Event handler. My OninputProcessing Event Handler is really long and hard to maintain.

    Is that possible to include it as seperate files into Event handler like <%@ Include file="frag1.htm" %> in Layout tab?

    Thank you


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 13, 2004 at 07:17 AM

    If I were you, I would structure this as MVC. I would then create an internal table in my model class with one row for each row on your output (one field for checkbox and two for each input field - one to bind to disabled and one to bind to the value).

    I would then setup model binding for the checkbox checked value, and the inputfield value and disabled values.

    Now in your event handler your processing you disabled logic within an internal table loop. If you wanted to get really fancy you could even dynamically generate your checkboxes and inputfields in your view off of the entries in you Model's internal table. This would simplify you View's coding as well.

    If you want a weblog that describes binding to cells in an internal table and dynamically generate view elements from them, have a look at the following:


    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.