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

Function code variable on a BSP page

Hi experts,

I have made use of the sy-ucomm variable in my BADI. The BADI executes on an appraisal form. When I run appraisal forms from ecc that is pahap_admin the sy-ucomm is set, but when I execute the BSP page I get the sy-ucomm variable as initial.

Please let me know how do I capture function code from a BSP page. That is when I click on save where will the function code for save be available.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 24, 2009 at 05:08 AM

    Hi

    In BSP page you can get it under event handler ->oninput processing .

    Here you can execute a code if the function code associated with Save button is activated.

    Every button displayed on a BSP page has an id.

    So this id with get displayed in the class cl_htmlb_manager=>event_id.

    SO just capture the event id.

    Thanks

    Viquar Iqbal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 24, 2009 at 06:51 AM

    Hi,

    Please refer the link below....

    [Create a Application in BSP|http://wiki.sdn.sap.com/wiki/x/agTEB ]

    [Events in BSP|http://wiki.sdn.sap.com/wiki/x/0gSXB ]

    [Sample Program|http://wiki.sdn.sap.com/wiki/x/DoD8B ]

    LayoutCode:-

    To Clear the Button

    <htmlb:button text    = "Submit"
                        id      = "submit"
                        on Click = "on InputProcessing()" />

    Event Handler-onInputProcessing

    DATA:
          w_object  TYPE REF TO object,
          w_event	TYPE REF TO	cl_htmlb_event.
    
    * To Get the Event Triggered.
    CALL METHOD cl_htmlb_manager=>get_event
      EXPORTING
        request = runtime->server->request
      RECEIVING
        event   = w_event.
    
    CASE w_event->id.
      when 'submit'.
    ............Logic..........
      endcase.

    Hope they are clear let me know if still have any concern.

    Thanks

    kalyan

    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.