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: 

proble in Function module

Former Member
0 Kudos

hi,

i am using the follwing FM,

CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'

EXPORTING

DEFAULTOPTION = 'Y'

TEXTLINE1 = 'Are you sure you want to delete'

TITEL = 'confirmation'

CANCEL_DISPLAY = ''

IMPORTING

ANSWER = LV_DELETE.

****************************************

'Are you sure you want to delete'

This part i hve to pick up dynamically how to do it.

3 REPLIES 3

Former Member
0 Kudos

just give a parameter in selection-screen and take input

<b>parameters : p_text(50).</b>

CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'

EXPORTING

DEFAULTOPTION = 'Y'

TEXTLINE1 = <b>p_text</b>

TITEL = 'confirmation'

CANCEL_DISPLAY = ''

IMPORTING

ANSWER = LV_DELETE.

Former Member
0 Kudos

I didnt get your question correctly . can you please explain more about requirement .

You try with the FM "<b>POPUP_TO_CONFIRM</b>"..

If it solves your prob then give points . .

Thanks & Regards,

Gaurang

Former Member
0 Kudos
data: answer    TYPE c.

  CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
       EXPORTING
            defaultoption = 'N'
            textline1     = "Your question"
            textline2     = "continue the question"
            titel         = ' '
            start_column  = 35
            start_row     = 6
       IMPORTING
            answer        = answer.
  IF answer EQ 'J' OR answer EQ 'Y'.
    l_inact = ' '.
  ELSEIF answer EQ 'N'.
    l_inact = 'X'.
  ELSEIF answer EQ 'A'.
    EXIT.
  ENDIF.

REPORT ZPOPUPCONFIRM.

DATA: X_ANS(1) TYPE C.

call function 'POPUP_TO_CONFIRM_STEP'
exporting
* DEFAULTOPTION = 'Y'
textline1 = 'Do you want to continue'
* TEXTLINE2 = ' '
titel = 'Please Confirm'
* START_COLUMN = 25
* START_ROW = 6
* CANCEL_DISPLAY = 'X'
IMPORTING
ANSWER = X_ANS.

WRITE: / X_ANS.