09-20-2008 8:35 AM
Hi ,
I have designed a screen in which it gives a popup screen on runtime . I want to assign my own search help on that pop-up screen can anybody guide me how to do that along with the code .
Thanks in advnace
Regards
Shankar
09-20-2008 12:47 PM
Thanks to all
My requirement was this ... which i had solved through this i am copying the code so that further if some body requires can refer to the same
FORM SEQ_HELP
USING TABNAME
FIELDNAME
DISPLAY
CHANGING
RETURNCODE
VALUE.
DATA : RET_TAB TYPE TABLE OF DDSHRETVAL,
RET_WA TYPE DDSHRETVAL.
SELECT * FROM AFVV AS A
INNER JOIN AFVC AS B
ON BAUFPL EQ AAUFPL
AND BAPLZL EQ AAPLZL
INNER JOIN CRHD AS C
ON COBJID EQ BARBID
INTO CORRESPONDING FIELDS OF TABLE I_ARP
WHERE A~AUFPL EQ AFKO-AUFPL
AND VORNR EQ NXTOPRNO.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'APLFL'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'I_ARP-APLFL'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = I_ARP
RETURN_TAB = RET_TAB.
READ TABLE RET_TAB INTO RET_WA INDEX 1.
IF SY-SUBRC = 0.
VALUE = RET_WA-FIELDVAL.
ENDIF.
09-20-2008 8:40 AM
Hi,
Create a zsearch help.
and assign the same to the pop up screen field.
Assigning search help to screen field.
screen painter-> screeen number->change->referances->give the search help name againest screen field.
Regards,
09-20-2008 8:47 AM
I have used a pop up function module in my program ... in the same i want to assign the search help.
The below given is the example for the code of pop screen which i have used in my program .
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING
NO_VALUE_CHECK = ' '
POPUP_TITLE = TEXT "Enter Sequence No :'
START_COLUMN = '5'
START_ROW = '5'
IMPORTING
RETURNCODE = RETURNCODE
TABLES
FIELDS = FIELDS
EXCEPTIONS
ERROR_IN_FIELDS = 1
OTHERS = 2.
on when this function is fired it gives me a popup screen and in that popup screen i have to select a value for the same throuch search help in the same.
Regards
Shankar
Shankar
09-20-2008 8:50 AM
Hi shankar,
What field (technical name) you are passing in the Fields table? Does it have a default search help?
Regards
Karthik D
09-20-2008 8:55 AM
Hi ,
I am using the field name AFRU-APLFL which is meant for the Sequence number i have searched for the same it does not have a default search help of its own . so i want to apply my own search help at the runtime .
Regards
Shankar
09-20-2008 10:25 AM
Hi shankar,
For that first you have to create a new Search help for the field APLFL(say ZSHLP_APLFL), then create a Ztable(say ZAFRU ) with fields MANDT and APLFL. and assign the search help to the APLFL field of the ztable.
Now in the Fields of the function call give as Table name : ZAFRU and fieldname : APLFL Field Text : Enter Sequence number.
I tried this in my system and it is working fine for me...
Revert if u need more help.
Regards
Karthik D
09-20-2008 8:48 AM
Hi shankar,
Can you explain the purpose of the popup and for what field you want to assign the search help?
Regards
Karthik D
09-20-2008 11:47 AM
hi,
create search help for that pop up field and here is the procedure:
you can use function module F4IF_INT_TABLE_VALUE_REQUEST
or can follow these simple steps for search help:
go to se11==> put some name after ticking search help radiobutton==> create==>
then tick " elementery search help " and press enter ===>then put description and table name in selection method ===>then put the field on which u want search help
in search help parameter==> tick IMP EXP ==> write 1 in lpos and spos===>save and activate===> double click on table name ===> select that field and press search help tab above===> then copy
i hope it will help u a lot
thaks and regards
rahul sharma
09-20-2008 12:47 PM
Thanks to all
My requirement was this ... which i had solved through this i am copying the code so that further if some body requires can refer to the same
FORM SEQ_HELP
USING TABNAME
FIELDNAME
DISPLAY
CHANGING
RETURNCODE
VALUE.
DATA : RET_TAB TYPE TABLE OF DDSHRETVAL,
RET_WA TYPE DDSHRETVAL.
SELECT * FROM AFVV AS A
INNER JOIN AFVC AS B
ON BAUFPL EQ AAUFPL
AND BAPLZL EQ AAPLZL
INNER JOIN CRHD AS C
ON COBJID EQ BARBID
INTO CORRESPONDING FIELDS OF TABLE I_ARP
WHERE A~AUFPL EQ AFKO-AUFPL
AND VORNR EQ NXTOPRNO.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'APLFL'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'I_ARP-APLFL'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = I_ARP
RETURN_TAB = RET_TAB.
READ TABLE RET_TAB INTO RET_WA INDEX 1.
IF SY-SUBRC = 0.
VALUE = RET_WA-FIELDVAL.
ENDIF.
09-20-2008 12:54 PM
Hi shankar,
If your problem is solved mark your question as answered.
Regards
Karthik D