07-17-2008 7:46 AM
Hi Experts,
Is there any function module where the user will get a pop-up with text area to enter one para of data which can be stored in a structure??
Pls suggest.
Regards,
Mansi.
07-17-2008 7:56 AM
Hello SAPUSER,
you can use these FM,
TRM_POPUP_FOR_TEXT_INPUT
TRM_POPUP_TEXT_INPUT
UR_CF_POPUP_TEXT_INPUT
HR_PBS00MD_POPUP_TEXT.
P.S.: Some of these FM are available only in ECC 6.0. and not in 4.7 Please check.
Hope it helps you
Regards
Indu.
07-17-2008 7:47 AM
07-17-2008 7:50 AM
Use FM POPUP_GET_VALUES
Pl. check this code:
REPORT ZEXAMPLE.
TABLES USR02.
DATA: RC TYPE C,
V_BNAME LIKE USR02-BNAME,
V_TRDAT LIKE USR02-TRDAT,
ITAB LIKE SVAL OCCURS 0 WITH HEADER LINE.
ITAB-TABNAME = 'USR02'.
ITAB-FIELDNAME = 'BNAME'.
ITAB-VALUE = USR02-BNAME.
ITAB-FIELDTEXT = 'LOGON ID'.
ITAB-NOVALUEHLP = 'X'.
APPEND ITAB.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
POPUP_TITLE = 'USERS LOGGED IN ON A DATE'
IMPORTING
RETURNCODE = RC
TABLES
FIELDS = ITAB.
IF RC NE 'A'. "USER CLICKED OK BUTTON
READ TABLE ITAB INDEX 1. "BNAME
V_BNAME = ITAB-VALUE.
READ TABLE ITAB INDEX 2. "TRDAT
V_TRDAT = ITAB-VALUE.
SELECT SINGLE * FROM USR02 WHERE BNAME EQ V_BNAME AND
TRDAT EQ V_TRDAT.
IF SY-SUBRC NE 0.
WRITE:/ V_BNAME, 'DID NOT LOG IN ON THE', V_TRDAT.
ELSE.
WRITE:/ V_BNAME, 'DID LOG IN ON THE', V_TRDAT.
ENDIF.
ENDIF.
regards,
Joy.
07-17-2008 7:50 AM
hi...
you can use POPUP_TO_GET_VALUE or POPUP_TO_GET_ONE_VALUE.in this fuction module you can nter a value in the pop up screen and store it in strcuture
07-17-2008 7:56 AM
Hi,
Check this FM,
POPUP_GET_VALUES
POPUP_TO_DISPLAY_TEXT
Regards
Adil
07-17-2008 7:56 AM
Hello SAPUSER,
you can use these FM,
TRM_POPUP_FOR_TEXT_INPUT
TRM_POPUP_TEXT_INPUT
UR_CF_POPUP_TEXT_INPUT
HR_PBS00MD_POPUP_TEXT.
P.S.: Some of these FM are available only in ECC 6.0. and not in 4.7 Please check.
Hope it helps you
Regards
Indu.
07-17-2008 7:58 AM
I'm not being funny here and don't wish to flame anybody, but surely you could at least type 'POPUP*' in a function module search. I would have thought that before posting you would have at least made an attempt to find the answer yourself, but have simply not bothered.
Jeez, I'm going back to SAPFANS if this is the kind of mentality that this forum deals with. Why has nobody mentioned this to the lazy poster, instead on blindly answering a question, like sheep, especially when this question has been posted and answered countless times.
Rant over.
Gary