2014 Nov 11 11:33 AM
Hi,
I have a requirement where When a user changes PO# on main screen, add a confirmation dialog box “Do you want to change the co.code and vendor details from the new PO#?”. Only change on yes.
I have updated the code like this.
IF po_headers-po_number <> g_head-ebeln.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'Confirma warning Message '
* DIAGNOSE_OBJECT = ' '
TEXT_QUESTION = 'Do you want to change the co.code and vendor details from the new PO#?'
TEXT_BUTTON_1 = 'Yes'
* ICON_BUTTON_1 = ' '
TEXT_BUTTON_2 = 'No'
START_COLUMN = 25
START_ROW = 6
POPUP_TYPE = 'ICON_SYSTEM_SAVE'
IMPORTING
ANSWER = l_ans.
CASE l_ans.
WHEN '1'.
++++++++++++++++++ (I will take care of this).
What issue i am getting is, when I add the PO number in main screen, the popup is displaying. It should not suppose to happen. It should work only when the user enter the PO number and some other required fields and again if the user wants to change the PO number, then the POPup need to display..
How to achieve this?
Regards,
Ethan
2014 Nov 11 11:41 AM
How are you outputting your data, via alv or write statement?
Have you had a look at the HIDE command in ABAP, because perhaps you could do something along these lines i.e. with HIDE and then AT USER-COMMAND, check this link out: http://help.sap.com/abapdocu_731/en/abenlist_hide_abexa.htm
2014 Nov 11 11:45 AM