Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Text Edit-BSP

Hi Experts,

I am doing Textedit using BSP.

i want to edit any text in textedit then click save to SAP Database!!

How is the performed it?

Regards,

S.Suresh.

Former Member
Former Member replied

in this case you don't need much coding also..

this is the code in the event oninputprocessing

DATA: str TYPE string.
IF event_id = 'htmlb'.

  str = request->get_form_field( name = 'te' ).
 "here you can update the DB>...
  CALL METHOD page->set_attribute
    EXPORTING
      name  = 'TEXT'
      value = str.

ENDIF.

layout

have a page attribute name tex

< % @ p a ge lang uage ="abap" % >
< % @ extension name="htmlb" prefix="htmlb" % >
< h t m l b :co ntent de sign= "design2003"   >
  < h tm l b :page title=" " >
    < h t ml b :form>
      < h t m l b:textEdit cols     = "40"
                      disabled = "FALSE"
                      id       = "te"
                      rows     = "5"
                      text     = "<%= text %>"
                      width    = "100%" />

      <  h t m l b :button text    = "Press Me"
                    on Cl i ck = "myClickHandler"   />
    < /  h  tm lb :for m >
  < / h t ml b:pa ge >
< / h t mlb :co n ten t>

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question