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

Suggestion dialog Box

dear all,

I want to create a dialog box in our screen for inserting suggestions by observer in any unsafe things found while working or any thing. when observer entered his suggestion then this will automatically go to the head of department through e-mail.

is there any procedure to achieve this. pls suggest how can I do.

regards,

Samiksha.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2014 at 03:37 AM

    Hi,

    Refer examples provided by SAP.

    BCS_EXAMPLE_1 to BCS_EXAMPLE_8.

    In BCS_EXAMPLE_1.

    APPEND 'Hello world!' TO text. This line is for mail body.

    You can loop and append your content(from text editor) line by line to internal table 'text'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 21, 2014 at 11:39 AM

    pls advice for above problem

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Place a button on screen, on clicking button call a text editor, eg: FM : TERM_CONTROL_EDIT.

      A popup text editor will appear, your can enter the text and on submission send this through mail.

  • Posted on Jul 22, 2014 at 03:57 AM

    Hi Samiksha,

    The solution to your requirement is mentioned below, please refer to that,

    • Create a screen with a text field and length as per your requirement and a button to record the user action
      • Two buttons are required
        • Send
          • When user clicks on send button the code attached below will be triggered and the LT_MAILTXT Internal table is to be filled with the text in the field on the screen.
          • You may have to truncate the content in the text field, i.e. it will be in xstring format, you need to truncate that in to lines of 255 characters, please use RKD_WORD_WRAP.
            • CALL FUNCTION 'RKD_WORD_WRAP'

            • EXPORTING

            • textline = input_string

            • delimiter = ' '

            • outputlen = 100

            • TABLES

            • out_lines = output_itab

            • EXCEPTIONS

            • outputlen_too_large = 1

            • OTHERS = 2.

        • Reset
          • When user clicks on the button it will clear the contents of the field and will be reset to blank, this is required at times.
    • You can use both Report and Module Pool methodology in fulfilling your requirement.
      • When using Module Pool
        • The usage of PAO and PAI is required, as in when user clicks on button i.e. send/ reset the code for the action must be written in PAI.
      • When using Report
        • The usage of End of Selection and At Selection screen, Start of Selection will do, i.e. when user clicks on any button depending upon scenario you can use the events as you code triggering point.

    Hopefully, this helps in achieving you requirement, let me know in case any further inputs are required from my end.

    BR/Thanks

    Pranav Agrawal


    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.