Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Parameters passing for alternate FM POPUP_TO_DECIDE in upgrade

Former Member
0 Kudos

Hi Everyone,

I am working on upgrade from 4.6c to ECC6.0.

I came across one function module POPUP_TO_DECIDE

call function 'POPUP_TO_DECIDE'
             exporting
                  defaultoption = '1'
                  textline1     = 'Wollen Sie die Verarbeitung für'(701)
                  textline2     = 'alle noch nicht bearbeiteten'(702)
                  textline3     = 'selektierten Objekte abbrechen?'(703)
                  text_option1  = 'Nein  '(705)
                  text_option2  = 'Ja    '(706)
                  titel         = 'Abbrechen in Listverarbeitung '(704)
             importing
                  answer        = answer.
        if answer = '2'.
          return_code = 12. exit.
        else.
          clear return_code.
        endif.

The alternate FM is POPUP_TO_CONFIRM.

I am facing difficult in passing the parameters to the FM POPUP_TO_CONFIRM against the FM POPUP_TO_DECIDE which is stated above.

Regards

Jai

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

Just concatenate the three text lines into a single field and use it


data: str1 type string,
      str2 type string,
      str3 type string.

str1 = 'Wollen Sie die Verarbeitung für'.
str2 = 'alle noch nicht bearbeiteten'.
str3 = 'selektierten Objekte abbrechen?'.

concatenate str1 str2 str3 into str1.

CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
   TITLEBAR                    = 'Abbrechen in Listverarbeitung '
*   DIAGNOSE_OBJECT             = ' '
    text_question               = str1
   TEXT_BUTTON_1               = 'Ja'
*   ICON_BUTTON_1               = ' '
   TEXT_BUTTON_2               = 'Nein'
*   ICON_BUTTON_2               = ' '
*   DEFAULT_BUTTON              = '1'
   DISPLAY_CANCEL_BUTTON       = ''
*   USERDEFINED_F1_HELP         = ' '
*   START_COLUMN                = 25
*   START_ROW                   = 6
*   POPUP_TYPE                  =
* IMPORTING
  ANSWER                      = answer
* TABLES
*   PARAMETER                   =
* EXCEPTIONS
*   TEXT_NOT_FOUND              = 1
*   OTHERS                      = 2
          .
 if answer = '2'.
          return_code = 12. exit.
        else.
          clear return_code.
        endif.

Vikranth

3 REPLIES 3

Former Member
0 Kudos

Hello,

Just concatenate the three text lines into a single field and use it


data: str1 type string,
      str2 type string,
      str3 type string.

str1 = 'Wollen Sie die Verarbeitung für'.
str2 = 'alle noch nicht bearbeiteten'.
str3 = 'selektierten Objekte abbrechen?'.

concatenate str1 str2 str3 into str1.

CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
   TITLEBAR                    = 'Abbrechen in Listverarbeitung '
*   DIAGNOSE_OBJECT             = ' '
    text_question               = str1
   TEXT_BUTTON_1               = 'Ja'
*   ICON_BUTTON_1               = ' '
   TEXT_BUTTON_2               = 'Nein'
*   ICON_BUTTON_2               = ' '
*   DEFAULT_BUTTON              = '1'
   DISPLAY_CANCEL_BUTTON       = ''
*   USERDEFINED_F1_HELP         = ' '
*   START_COLUMN                = 25
*   START_ROW                   = 6
*   POPUP_TYPE                  =
* IMPORTING
  ANSWER                      = answer
* TABLES
*   PARAMETER                   =
* EXCEPTIONS
*   TEXT_NOT_FOUND              = 1
*   OTHERS                      = 2
          .
 if answer = '2'.
          return_code = 12. exit.
        else.
          clear return_code.
        endif.

Vikranth

kesavadas_thekkillath
Active Contributor
0 Kudos

JUst look at the shortext of the function module in attributes tab

Former Member
0 Kudos

Answered