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

hi

Former Member
0 Likes
444

• The entire Customer id’s on primary list with a hotspot. On clicking it should throw a pop-up asking for fields to be displayed on secondary list. The fields selected in the pop up should be shown on the secondary list.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
421

Hi ramya,

check this program.. you may get some idea...

BALV_POPUP_TO_SELECT

Hi ramya,

check this program.. you may get some idea...

BALV_POPUP_TO_SELECT

3 REPLIES 3
Read only

Former Member
0 Likes
421

hi ramya,

for this requirement use function module called ' popup

toconfirm'.

sample code below for this FM,

WHEN 'BACK'.

DATA: l_ans.

CALL FUNCTION 'POPUP_TO_CONFIRM'

EXPORTING

titlebar = 'BACK'

text_question = text-002

text_button_1 = 'YES'

text_button_2 = 'NO'

display_cancel_button = 'X'

IMPORTING

answer = l_ans

EXCEPTIONS

text_not_found = 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.

IF l_ans = '1'.

LEAVE PROGRAM.

ELSE.

EXIT.

ENDIF.

reward points if helpful.

Read only

Former Member
0 Likes
422

Hi ramya,

check this program.. you may get some idea...

BALV_POPUP_TO_SELECT

Read only

Former Member
0 Likes
421

Hi Ramya,

Check this code which will display first primary list., then one pup-up window then last secondary list.

START-OF-SELECTION.

SET PF-STATUS 'BASIC'.

WRITE 'Select line for a demonstration of windows'.

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'SELE'.

IF sy-lsind = 1.

SET PF-STATUS 'DIALOG'.

SET TITLEBAR 'WI1'.

WINDOW STARTING AT 5 3 ENDING AT 40 10.

WRITE 'Select line for a second window'.

ELSEIF sy-lsind = 2.

SET PF-STATUS 'DIALOG' EXCLUDING 'SELE'.

SET TITLEBAR 'WI2'.

WRITE 'Last window'.

ENDIF.

ENDCASE.

I have not tried earlier as ur requirement but i am giving my idea may be it will help ful.

You can will display primary list with hotspot. Where after clicking you will get one pop-up window in that pop-up window display the fieldnames As checkbox so that in that window all the field names will be shown as check box and select the required fields and click ok in next list it should display only the selected items.

Above code gives you basic idea how to display pop-up window.

Or else check this program name in SE38 -> <b>demo_list_window </b> you will get the clear idea.

Hope this will help you .....

<b>please reward if helpful</b>

regards,

sunil kairam.