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: 

Problem in FM popup_to_confirm

Former Member
0 Kudos

Hi all,

when i am passing some value to DIAGNOSE _OBJECT import parameter and executing the FM its showing **No Long Text Found***.

can anyone let me know the solution for this...

thanks

ravi

1 ACCEPTED SOLUTION

vinod_vemuru2
Active Contributor
0 Kudos

Hi Ravi,

First u have to create this object in SE61. Then only u can use it.

Below is the extract of FM documentation.

The document passed must be created with the Documentation maintenance transaction (SE61) as a "Text in dialog" class document. No check is made that all parameters used in the text document are passed in the internal table PARAMETERS. Missing parameters are not displayed. You should use numbered texts to make the parameter values translatable.

Try with this sample code.


call function 'POPUP_TO_CONFIRM'
     exporting
            titel               = 'Title for POPUP_TO_CONFIRM'(A01)
          diagnose_object     = 'TEXT1_ZUM_POPUP_TO_CONFIRM'
           text_question       = 'Do you want to carry out this
                                   fantastic test?'(A02)
          text_button_1       = 'Yes'(A03)
          ICON_BUTTON_1       = 'ICON_OKAY'
          text_button_2       = 'Cancel'(A04)
          ICON_BUTTON_2       = 'ICON_CANCEL'
          DEFAULT_BUTTON      = '1'
          DISPLAY_CANCEL      = ''
          userdefined_f1_help = 'TEST_TEXT_ZUR_SPO1'
           START_COLUMN        = 25
           START_ROW           = 6
     importing
           answer              = answer
     exception
          TEXT_NOT_FOUND      = 1

           others              = 2.

Thanks,

Vinod.

3 REPLIES 3

Former Member
0 Kudos

This message was moderated.

vinod_vemuru2
Active Contributor
0 Kudos

Hi Ravi,

First u have to create this object in SE61. Then only u can use it.

Below is the extract of FM documentation.

The document passed must be created with the Documentation maintenance transaction (SE61) as a "Text in dialog" class document. No check is made that all parameters used in the text document are passed in the internal table PARAMETERS. Missing parameters are not displayed. You should use numbered texts to make the parameter values translatable.

Try with this sample code.


call function 'POPUP_TO_CONFIRM'
     exporting
            titel               = 'Title for POPUP_TO_CONFIRM'(A01)
          diagnose_object     = 'TEXT1_ZUM_POPUP_TO_CONFIRM'
           text_question       = 'Do you want to carry out this
                                   fantastic test?'(A02)
          text_button_1       = 'Yes'(A03)
          ICON_BUTTON_1       = 'ICON_OKAY'
          text_button_2       = 'Cancel'(A04)
          ICON_BUTTON_2       = 'ICON_CANCEL'
          DEFAULT_BUTTON      = '1'
          DISPLAY_CANCEL      = ''
          userdefined_f1_help = 'TEST_TEXT_ZUR_SPO1'
           START_COLUMN        = 25
           START_ROW           = 6
     importing
           answer              = answer
     exception
          TEXT_NOT_FOUND      = 1

           others              = 2.

Thanks,

Vinod.

Former Member
0 Kudos

helpful!!