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

input dialog box

Former Member
0 Likes
3,059

hi all,

i want to have the input dialog box when i click on the pushbuttons. i am doing module pool programming. please help if you have any such FM.

Thanx in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,731

Try to USe this FM....

POPUP_TO_GET_ONE_VALUE

9 REPLIES 9
Read only

Former Member
0 Likes
1,732

Try to USe this FM....

POPUP_TO_GET_ONE_VALUE

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,731

If you are saying that you want to make a input field appear only when the user presses a pushbutton then....

Create the input field via screen painter, set the attribute for "invisible".

When the user presses the fcode, you should set a flag that you can use in the PBO. In the PBO of the screen,

LOOP AT SCREEN.
IF screen-name = 'YOUR_INPUT_FIELD_NAME'.
screen-invisible = '0'.
screen-active = '1'.
modify screen.
endif.
endloop.

Regards,

Rich Heilman

Read only

0 Likes
1,731

If you want to throw a dialog box with values in it, try this. You will just fire this function module in your PAI.




data: fields type table of  SVAL with header line.


fields-TABNAME = 'MARA'.
fields-FIELDNAME = 'MATNR'.
append fields.

fields-TABNAME = 'MARA'.
fields-FIELDNAME = 'MATKL'.
append fields.

call function 'POPUP_GET_VALUES'
  exporting
*   NO_VALUE_CHECK        = ' '
    popup_title           = 'Test'
*   START_COLUMN          = '5'
*   START_ROW             = '5'
* IMPORTING
*   RETURNCODE            =
  tables
    fields                = fields
* EXCEPTIONS
*   ERROR_IN_FIELDS       = 1
*   OTHERS                = 2
          .
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,731

See if FM POPUP_TO_GET_VALUE can be used...

Thanks,

Renjith

Read only

Former Member
0 Likes
1,731

Try to see this also...

POPUP_TO_GET_VALUE

Read only

Former Member
0 Likes
1,731

use :

data: fields type table of sval with header line.

fields-tabname = 'VBAK'.

fields-fieldname = 'VBELN'.

append fields.

fields-tabname = 'VBAP'.

fields-fieldname = 'POSNR'.

append fields.

call function 'POPUP_GET_VALUES'

exporting

  • NO_VALUE_CHECK = ' '

popup_title = 'Popup'

  • START_COLUMN = '5'

  • START_ROW = '5'

  • IMPORTING

  • RETURNCODE =

tables

fields = fields

  • EXCEPTIONS

  • ERROR_IN_FIELDS = 1

  • OTHERS = 2

.

if sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

this will give you a pop .

Read only

Former Member
0 Likes
1,731

Hi

You can use one of these fm:

POPUP_GET_VALUES:

Dialog box for the display and request of values, without check

POPUP_GET_VALUES_DB_CHECKED:

Dialog box for requesting values, check against the DB table/view

POPUP_GET_VALUES_SET_MAX_FIELD:

Dialog box for setting the maximum no. of fields per dialog box

POPUP_GET_VALUES_USER_BUTTONS:

Dialog box for requesting values and offering user pushbuttons

POPUP_GET_VALUES_USER_CHECKED:

Dialog box for requesting values, check by user exit

POPUP_GET_VALUES_USER_HELP:

Dialog box for requesting values, call of user exits and help

Max

Read only

0 Likes
1,731

Thanks for one and all for ur co-operation and giving ur suggestions in different manners.

surely reward the points.

Read only

Former Member
0 Likes
1,731

hi ,

in the event

At selection on value request for the field ...

initially use POPUP_TO_GET_ONE_VALUE FM to get the table name ..

select the fields required from given table name ...

append the fields to the internal table which u using in F4 function module ,,,

hope it helps ...