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

POP UP FUNCTION MODULES

Former Member
0 Likes
800

Hi i am doing an enhancement in which(transaction va01) when the user changes the pricing conditions in the condtions tab then the user needs to be prompted to select a reason for the change. this reason codes are already there in the ztable that i have created!! so this popup should come that displays my Ztable to the user so that he can select any one reason for the change.

can u tell me what function module i have to use to do this!

moreover the value selected from the popup should go nad get saved in the vbak table.

plss help me.

points promised.

6 REPLIES 6
Read only

santhosh_patil
Contributor
0 Likes
722

Hi,

use FM <b>POPUP_WITH_TABLE_DISPLAY</b>

---Patil

Read only

Former Member
0 Likes
722

Hi,

You will be required to create your own Z Function module to cater this requirement.

Take the guideline from standard SAP FM while creating your FM.

Regards,

Atish

Read only

santhosh_patil
Contributor
0 Likes
722

Hi,

Example

CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'

EXPORTING

endpos_col = 110

endpos_row = 16

startpos_col = 90

startpos_row = 1

titletext = text-001 <b> "test of the pop up window</b> IMPORTING

choise = g_v_tabix " index of the record selected by usser

TABLES

valuetab = l_t_valuetab " the Ztable to be displayed in the popup window

EXCEPTIONS

break_off = 1

OTHERS = 2.

Then u can use

READ TABLE l_t_valuetab INDEX g_v_tabix.

to get the selected record

---patil

Read only

former_member196280
Active Contributor
0 Likes
722

Hi,

USE FM "POPUP_TO_DISPLAY_TEXT_LO"

Don't forget to reward points.

Regards,

SAiRam

Read only

Former Member
0 Likes
722

You Should write the code under the form <b>USEREXIT_SAVE_DOCUMENT</b>

in the include MV45AFZZ.check the changes and then call the popup which ever is suitable for you in the above mentioned posts. and populate the corresponding vbak structure field. that solves your problem

Regards

Vijay

Read only

Former Member
0 Likes
722

Hi,

Check the following FM:

Popup Related Function Modules:

POPUP_TO_DISPLAY_TEXT – display 2 line text.

POPUP_TO_CONFIRM_STEP

POPUP_TO_CONFIRM_WITH_VALUE (with Back and Exit)

POPUP_TO_CONFIRM_LOSS_OF_DATA (with Cancel).

POPUP_TO_CONFIRM_WITH_MESSAGE

POPUP_TO_DECIDE

POPUP_TO_DECIDE_WITH_MESSAGE

Hope this helps.

Reward if helpful.

Regards,

Sipra