2007 Dec 17 11:29 AM
The entire Customer ids 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.
2007 Dec 17 11:35 AM
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
2007 Dec 17 11:32 AM
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.
2007 Dec 17 11:35 AM
Hi ramya,
check this program.. you may get some idea...
BALV_POPUP_TO_SELECT
2007 Dec 17 11:42 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |