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: 

Pop up require in ZBADI.

Former Member
0 Kudos

Hi All,

For Tcode: O4NM , In the header level there is an field Actual Date.

If i edit that field and save a POP UP should come with the message " Event dates at item level have different Values ,Proceeding will overwrite the ITEM EVENTS"

and insite the POP UP HEADER DETAILS: XX XX1 XX2 01.01.2008

ITEM DETAILS : 10 XX1 XX2 03.03.2008

20 XX1 XX2 04.05.2008

should come asking for CONFIRM & CANCEL buttons.

The above logic is to be enhanced in the existing BADI.

Can you Please tell me how to do this ...

Any FM is there to popup the internal table items in the POP UP SCREEN.

Thanks,

Lee

3 REPLIES 3

Former Member
0 Kudos

Hi....

fallow this it is some helpful for u

>If <condition is met>

>

>call function POPUP_TO_CONFIRM

> exporting

> TITLEBAR = pop_up' (for pop-up header)

> TEXT_QUESTION = 'data u r going to save is already save!! Are you sure want to save it again?'

> TEXT_BUTTON_1 = 'Yes'

> ICON_BUTTON_1 = ' '

> TEXT_BUTTON_2 = 'No'

> ICON_BUTTON_2 = ' '

> DEFAULT_BUTTON = '1'

> DISPLAY_CANCEL_BUTTON = 'X'

> USERDEFINED_F1_HELP = ' '

> START_COLUMN = 25

> START_ROW = 6

> POPUP_TYPE = ' '

> IV_QUICKINFO_BUTTON_1 = ' '

> IV_QUICKINFO_BUTTON_2 = ' '

> importing

> ANSWER = ANS

So it wil come with three button YES, NO, CANCEL..

And after that write functionalityies to that buttons...

> case ANS.

> when '1'.

> message 'you are succes fully saved data' type 'S'

> when '2'.

> set screen N.

> when '3'.

> leave to screen M.

> endcase .

Thanks & Regards,

Naresh

0 Kudos

Thanks Naresh.

I need one Internal table showing the header and items in the same popup with this.

Can you help me..

Regards,

Lee

Former Member
0 Kudos

Hi,

  • Function module to call popup-to-cinfirm

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

titlebar = (Pop up title)

text_question = (pop up text)

text_button_1 = Confirm

text_button_2 = cancel

display_cancel_button = c_check

IMPORTING

answer = pw_flg.

Thanks,

Sree.