11-16-2010 2:37 AM
Hello,
does anybody know if it's possible to edit the text when the pop is shown and before i accept?
example:
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Confimar Aprovadores das Despesas?'
DIAGNOSE_OBJECT = ' '
text_question = bseg-zrespkostl
TEXT_BUTTON_1 = 'OK'
ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'Não'
ICON_BUTTON_2 = ' '
DEFAULT_BUTTON = '1'
DISPLAY_CANCEL_BUTTON = 'X'
i need the function (this one or a Z) to allow me to edit the text that will appear in the pop-up "bseg-zrespkostl", before i press "OK".
i'm sorry but i'm a financial consultant....i have no clue what so ever if this is a stupid question.
Best Regards,
11-16-2010 4:37 AM
Hi,
you can make that editable by ur own Z FM, but this popup is used to take a confirmation from the user i.e if we want to delete a selected entry from DB then after pressing the delete button b4 the entry gets deleted this popup will appear which will ask the question that Do you want to delete the entry ?, so why do you want the user to edit the question ?
And if you want different question based on condition then pass the question based on the condition.
Regards,
Madhukar Shetty
11-16-2010 4:30 AM
11-16-2010 4:37 AM
Hi,
you can make that editable by ur own Z FM, but this popup is used to take a confirmation from the user i.e if we want to delete a selected entry from DB then after pressing the delete button b4 the entry gets deleted this popup will appear which will ask the question that Do you want to delete the entry ?, so why do you want the user to edit the question ?
And if you want different question based on condition then pass the question based on the condition.
Regards,
Madhukar Shetty
11-16-2010 11:26 AM
Hello Madhukar,
i do not want to delect. We use a substitution to fill a new field in BSEG. At the end of the document, at saving moment, the system should show the result of the substitution and this result show be editable. I will not deleted no information from DB. I only want the OK button but the text...should be editable.
You were saying this is possible using a Z function? Do you know what parameter i should change?
Thank you for your answer.
11-16-2010 11:39 AM
Nuno, you mean when the popup is shown, change the text in popup ? Well, there are some FM that do this, that particular one doesn't. It will imply creating a screen with an input field where you can change it's value. Take a look at FM ISU_POPUP_TEXT_EDIT for example.
11-16-2010 12:33 PM
I've got an erro in that FM. But...i'll search for more with the key POPEDITTEXT
Thank you...you asnwered my question
11-16-2010 5:45 AM
Hello Nuno,
If the scenarios are pre-defined, you can make the code work to show different pop-ups each time(call that FM multiple times, each time with a different text). And for each pop-up, the logic can be written different.
Even if user is able to edit the pop-up question, how can the program respond differently to each random question, just by a single Ok button ?
If it serves your purpose, you may opt to make selection screen buttons. User can click on that and program can behave different, based on the button clicked.
Please explain your requirement, so that you will get the best design possible...
Regards,
Nisha Vengal.