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: 

Function Module for pop-up to user to enter text.

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

6 REPLIES 6

bpawanchand
Active Contributor
0 Kudos

Hi

FM

HR_PBS00MD_POPUP_TEXT

Regards

Pavan

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

former_member705122
Active Contributor
0 Kudos

Hi,

Check this FM,

POPUP_GET_VALUES

POPUP_TO_DISPLAY_TEXT

Regards

Adil

Former Member
0 Kudos

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.

Former Member
0 Kudos

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