cancel
Showing results for 
Search instead for 
Did you mean: 

INITIALIZE CREATE MESSAGE WITH A TEXT O QUIZ.

Former Member
0 Kudos

Within my company we did a little quiz, I want to show it when the end user "CREATE A NEW MESSAGE", I found that FUNCTION BCOS_PREPARE_MSG, also METHOD PREPARE_FEEDBACK_BO belonging interface class CL_EX_SBCOS001, both fill GT_TEXT_B table with my quiz, and then show to end user. So far so good.


  if twb_call eq cs_x.
    call function 'BCOS_PREPARE_MSG'
      TABLES
        txt_before_outp = gt_text_bo
        txt_after_inpt  = gt_text_ai
      CHANGING
        c_compon        = g_compon
        c_sh_txt        = g_k_txt
        c_prio          = g_prio
      EXCEPTIONS
        others          = 1.
  else.
    call method cl_exithandler=>get_instance
      CHANGING
        instance = exit.
    CALL METHOD exit->PREPARE_FEEDBACK_BO
      IMPORTING
        PBO_TEXT  = gt_text_bo
        PAI_TEXT  = gt_text_ai
      CHANGING
        CV_COMPON = g_compon
        CV_SH_TXT = g_k_txt
        CV_PRIO   = g_prio.

*    call customer-function '001'
*         tables pbo_text = gt_text_bo
*                pai_text = gt_text_ai
*         exceptions
*                others = 1.
  endif.
  if sy-subrc eq 0.
    l_text[] = gt_text_bo[].
  endif.

I guess this can be configured (I prefer custom than development), please in where place SPRO I can do it?

Thanks in advance.

Edited by: Aguirre Eguiluz Jose Luis on Sep 21, 2010 10:22 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

i do not think there is customizing available for this. You will have to implement BADI SBCOS001, which you already described in your post.

Regards,

Christoph

Former Member
0 Kudos

Hi Christoph, thank you for your suggestion.

Finally, I implement Enhacement into functions:

BCOS_CREATE_MSG (to mark 'X' into twb_call field)

BCOS_PREPARE_MSG (to append all the rows of my quiz into TXT_BEFORE_OUTP table)

Regards

José Luis

Answers (0)