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

Function module for input text box

Former Member
0 Likes
3,438

Hello Friends,

I am looking for a function module which pops up a input box to user where user can log his/her comments and pass it on as output parameter. I need to use that comment in workflow later.

I would appreciate your time.

Regards,

Arpit

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
1,677

Hi,

Please check this FM.

POPUP_TO_GET_ONE_VALUE

POPUP_GET_VALUES

Check this sample code.


data: ival type table of sval with header line.
 
parameters: p_check type c.
 
load-of-program.
 
ival-tabname = 'MARA'.
ival-fieldname = 'MAGRV'.
ival-field_obl = 'X'. " Required Field
append ival.
 
call function 'POPUP_GET_VALUES'
exporting
popup_title = 'Number of Records:'
tables
fields = ival.
 
start-of-selection.
 
read table ival index 1.
 
write:/ ival-value.

Regards,

Ferry Lianto

7 REPLIES 7
Read only

Former Member
0 Likes
1,677

Hi,

Check the function module POPUP_TO_GET_ONE_VALUE

POPUP_TO_GET_VALUE

Thanks,

Naren

Read only

ferry_lianto
Active Contributor
0 Likes
1,678

Hi,

Please check this FM.

POPUP_TO_GET_ONE_VALUE

POPUP_GET_VALUES

Check this sample code.


data: ival type table of sval with header line.
 
parameters: p_check type c.
 
load-of-program.
 
ival-tabname = 'MARA'.
ival-fieldname = 'MAGRV'.
ival-field_obl = 'X'. " Required Field
append ival.
 
call function 'POPUP_GET_VALUES'
exporting
popup_title = 'Number of Records:'
tables
fields = ival.
 
start-of-selection.
 
read table ival index 1.
 
write:/ ival-value.

Regards,

Ferry Lianto

Read only

0 Likes
1,677

Thanks Naren and Ferry.

But this func mod req to provide some table and field to ask for value. What I have is a long text comment from user. Even If I use some char250 field from any table, it will show the field name which I dont want.

Isnt there any FM or even class which popup just a black input box to log long text?

Regards

Arpit

Read only

0 Likes
1,677

Although its not appropriate solution, try this:

Parameters: input(255) type c.

You can goto Text elements and make selection text as blank.

Thanks,

Santosh

null

Read only

0 Likes
1,677

Use Function CATSXT_SIMPLE_TEXT_EDITOR

This will allow to enter long text.

Thanks. Reward if helpful.

Shrikant

Read only

Former Member
0 Likes
1,677

HI Arpit,

Check this FM..

<b>SOTR_COMMENT_POPUP_EDIT</b>

Regards

SAB

Read only

Former Member
0 Likes
1,677

Hi,

try this FM might 'POPUP_TO_DISPLAY_TEXT_LO' might useful .

thanks

sarathbabu