2008 Jan 23 6:04 AM
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.
2008 Jan 23 6:09 AM
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.
2008 Jan 23 6:09 AM
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.
2008 Jan 23 6:26 AM
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.
2008 Jan 23 6:11 AM
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
2008 Jan 23 6:12 AM
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
2008 Jan 23 6:13 AM
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....
2008 Jan 23 6:15 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |