Application Development and Automation 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: 
Read only

PO Issue

Former Member
0 Likes
475

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

2 REPLIES 2
Read only

former_member201275
Active Contributor
0 Likes
444

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

Read only

0 Likes
444

Outputting the value via ALV.