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

POPUP WINDOW

Former Member
0 Likes
855

Hi,

iwant to know whether it is possible to pass data to a popup screen through a program and save data entered through it into a table . if it is possible please revert back points will be rewarded.

Hi,

iwant to know whether it is possible to pass data to a popup screen through a program and save data entered through it into a table . if it is possible please revert back points will be rewarded.

7 REPLIES 7
Read only

Former Member
0 Likes
821

You can call a screen in your program.

The screen should be created in the same program.

In this case the data available in your program is available in your screen as well.

Using module pool programming you can then create the screen and add logic to save data entered into a Z table.

Read only

Former Member
0 Likes
821

yes its possible to pass values from program to a pop-up window and use data back.

e.g. use function module 'POPUP_WITH_2_BUTTONS_TO_CHOOSE' this can be used where the data can be passed to and fro.. just as normal variables are passed in between form statements.

Reward appropriate points.

Regards,

Simi.

Read only

0 Likes
821

HI SIMI,

The function module is working but how to give enter the data into it and save it to ztable and i want the pop up to come in the same screen.

Read only

Former Member
0 Likes
821

Hi,

Look at this code. It will help you.

DATA: SEL_INDEX LIKE SY-TABIX.

DATA: I_COLUMNS LIKE HELP_VALUE OCCURS 10 WITH HEADER LINE.

*Set the columns for table to be displayed

I_COLUMNS-TABNAME = 'ZPFDRLOG'." YOur Table name

I_COLUMNS-FIELDNAME = 'MANDT'. APPEND I_COLUMNS. "No display

I_COLUMNS-SELECTFLAG = 'X'.

I_COLUMNS-FIELDNAME = 'ZSTART_DT'. APPEND I_COLUMNS.

I_COLUMNS-FIELDNAME = 'ZSTART_TM'. APPEND I_COLUMNS.

I_COLUMNS-FIELDNAME = 'ZPROCESS'. APPEND I_COLUMNS.

*Call function to display the selection and get the return index

CALL FUNCTION 'MD_POPUP_SHOW_INTERNAL_TABLE'

EXPORTING

TITLE = 'Window Tittle'

IMPORTING

INDEX = SEL_INDEX

TABLES

VALUES = I_DISPLAY_ZPFDRLOG

COLUMNS = I_COLUMNS

EXCEPTIONS

LEAVE = 1

OTHERS = 2.

Regards,

Satish

Read only

Former Member
0 Likes
821

you can pass data in pop up of messages

also in FM like popup_on_exit_command

thats all i know

reward if useful

regards

vivek

Read only

Former Member
0 Likes
821

Hi,

u can do dat

use dis FM

POPUP_GET_VALUES

the no of rows u append in ivals table = no of fields in popup window....

u can make it non editable,validate the user inputs etc....

the value entered by user ll be in VALUE field of ivals....

Study the FM's documentation in se37 for clarification....

Read only

Former Member
0 Likes
821

try this code

data : ivals TYPE TABLE OF sval WITH HEADER LINE.

ivals-tabname = 'MBEW'.

ivals-fieldname = 'BWTAR'.

APPEND ivals.

ivals-tabname = 'MBEW'.

ivals-fieldname = 'BWTAR'.

APPEND ivals.

CALL FUNCTION 'POPUP_GET_VALUES'

EXPORTING

popup_title = ' Enter The input'

TABLES

fields = ivals

  • EXCEPTIONS

ERROR_IN_FIELDS = 1

OTHERS = 2

.

IF sy-subrc <> 0.

ENDIF.

LOOP AT ivals.

write / ivals-value.

ENDLOOP.