Supres selection screen.
Hi,
Can you please suggest me in which statement i am wrong ,i want to supress the second block(B1) on selection screen while i am selecting radio button 3.
REPORT ZFAGPRO no standard page heading line-size 180.
TABLES :ZFagpro,zretpro.
data : begin of itab occurs 0,
CLACN like zfagpro-CLACN,"Customer Loan Account Number
TACNO like zfagpro-TACNO,"Trust Bank Account Number
CHKNO like zfagpro-CHKNO,"Cheque Number
CHKDT(10)," like zfagpro-CHKDT,
PAYAM like zfagpro-PAYAM,
MODPY like zfagpro-MODPY,"Mode of Payment (Cheque /Cash)
CHKDD(10)," like zfagpro-CHKDD,
DPTBK like zfagpro-DPTBK,
DRWBK like zfagpro-DRWBK,
BOCLR like zfagpro-BOCLR,
CLRDT(10), "like zfagpro-CLRDT,
REORE like zfagpro-REORE,
DRCHR like zfagpro-DRCHR,
TNAME like zfagpro-TNAME,
end of itab.
data : begin of itab1 occurs 0,
clacn like zretpro-clacn,
PCUID like zretpro-PCUID,
BUKRS like zretpro-BUKRS,
CHKNO like zretpro-CHKNO,
CHKDT(10)," like zretpro-CHKDT,
PAYAM like zretpro-PAYAM,
TRAID like zretpro-TRAID,
CISBN like zretpro-CISBN,
CISBC like zretpro-CISBC,
TACNO like zretpro-TACNO,
end of itab1.
initialization.
skip 1.
skip 4.
selection-screen begin of block b2 with frame title text-002.
parameters : r1 radiobutton group g1.
parameters : r2 radiobutton group g1.
parameters : r3 radiobutton group g1." modif id jit.
selection-screen end of block b2.
selection-screen begin of block b3 with frame title text-007.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-006.
PARAMETERS: p_file(90) OBLIGATORY modif id bbb.
SELECTION-SCREEN END OF BLOCK b1.
selection-screen end of block b3.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = space
def_path = space
mask = ',.,..'
mode = space
title = space
IMPORTING
filename = p_file
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF sy-subrc <> 0 AND sy-subrc <> 3.
MESSAGE e102(yb) WITH 'Error Selecting File'(007).
ENDIF.
at selection-screen output.
if r3 = 'X'.
loop at screen.
if screen-group1 = 'BBB'.
screen-active = 0.
screen-invisible = 1.
endif.
endloop.
endif.
start-of-selection.
if r1 = 'X'.
DATA: filename TYPE string.
filename = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
DATA : A1 TYPE SY-DATUM,
A2 TYPE SY-DATUM,
A3 TYPE SY-DATUM.
loop at itab.
ZFAGPRO-CLACN = ITAB-CLACN.
ZFAGPRO-TACNO = ITAB-TACNO.
ZFAGPRO-CHKNO = ITAB-CHKNO.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = ITAB-CHKDT
IMPORTING
DATE_INTERNAL = A1
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 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.
ZFAGPRO-CHKDT = A1.
ZFAGPRO-PAYAM = ITAB-PAYAM.
ZFAGPRO-MODPY = ITAB-MODPY.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = ITAB-CHKDT
IMPORTING
DATE_INTERNAL = A2
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 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.
ZFAGPRO-CHKDD = A2.
ZFAGPRO-DPTBK = ITAB-DPTBK.
zfagpro-DRWBK = ITAB-DRWBK.
zfagpro-BOCLR = ITAB-BOCLR.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = ITAB-CHKDT
IMPORTING
DATE_INTERNAL = A3
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 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.
zfagpro-CLRDT = A3.
zfagpro-REORE = ITAB-REORE.
zfagpro-DRCHR = ITAB-DRCHR.
zfagpro-TNAME = ITAB-TNAME.
INSERT ZFAGPRO.
if sy-subrc = 0.
write :/ 'sucees fully inserted record NO',sy-tabix,itab-clacn,itab-chkno,itab-chkdt,itab-payam.
else.
write :/ 'Record all ready exist',sy-tabix,itab-clacn,itab-chkno,itab-chkdt,itab-payam.
endif.
endloop.
else.
DATA: filename1 TYPE string.
filename1 = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename1
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = itab1
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
data : b1 type sy-datum.
loop at itab1.
zretpro-clacn = itab1-clacn.
zretpro-PCUID = itab1-PCUID.
zretpro-BUKRS = itab1-BUKRS.
zretpro-CHKNO = itab1-CHKNO.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = ITAB1-CHKDT
IMPORTING
DATE_INTERNAL = b1
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 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.
zretpro-CHKDT = b1.
zretpro-PAYAM = itab1-PAYAM.
zretpro-TRAID = itab1-TRAID.
zretpro-CISBN = itab1-CISBN.
zretpro-CISBC = itab1-CISBC.
zretpro-TACNO = itab1-TACNO.
insert zretpro.
if sy-subrc = 0.
write :/ 'sucees fully inserted record NO',sy-tabix,itab1-clacn,itab1-chkno,itab1-chkdt,itab-payam.
else.
write :/ 'Record all ready exist',sy-tabix,itab1-clacn,itab1-chkno,itab1-chkdt,itab1-payam.
endif.
endloop.
hi,
suggest me, same problem.
*& Report ZFAGPRO
REPORT ZFAGPRO no standard page heading line-size 180.
TABLES :ZFagpro,zretpro.
data : begin of itab occurs 0,
CLACN like zfagpro-CLACN,"Customer Loan Account Number
TACNO like zfagpro-TACNO,"Trust Bank Account Number
CHKNO like zfagpro-CHKNO,"Cheque Number
CHKDT(10)," like zfagpro-CHKDT,
PAYAM like zfagpro-PAYAM,
MODPY like zfagpro-MODPY,"Mode of Payment (Cheque /Cash)
CHKDD(10)," like zfagpro-CHKDD,
DPTBK like zfagpro-DPTBK,
DRWBK like zfagpro-DRWBK,
BOCLR like zfagpro-BOCLR,
CLRDT(10), "like zfagpro-CLRDT,
REORE like zfagpro-REORE,
DRCHR like zfagpro-DRCHR,
TNAME like zfagpro-TNAME,
end of itab.
data : begin of itab1 occurs 0,
clacn like zretpro-clacn,
PCUID like zretpro-PCUID,
BUKRS like zretpro-BUKRS,
CHKNO like zretpro-CHKNO,
CHKDT(10)," like zretpro-CHKDT,
PAYAM like zretpro-PAYAM,
TRAID like zretpro-TRAID,
CISBN like zretpro-CISBN,
CISBC like zretpro-CISBC,
TACNO like zretpro-TACNO,
end of itab1.
initialization.
skip 1.
skip 4.
selection-screen begin of block b2 with frame title text-002.
parameters : r1 radiobutton group g1.
parameters : r2 radiobutton group g1.
parameters : r3 radiobutton group g1." modif id jit.
selection-screen end of block b2.
selection-screen begin of block b3 with frame title text-007.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-006.
PARAMETERS: p_file(90) OBLIGATORY modif id bbb.
SELECTION-SCREEN END OF BLOCK b1.
selection-screen end of block b3.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
def_filename = space
def_path = space
mask = ',.,..'
mode = space
title = space
IMPORTING
filename = p_file
EXCEPTIONS
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
OTHERS = 5.
IF sy-subrc <> 0 AND sy-subrc <> 3.
MESSAGE e102(yb) WITH 'Error Selecting File'(007).
ENDIF.
*at selection-screen output.
if r3 = 'X'.
loop at screen.
if screen-group1 = 'BBB'.
screen-active = 0.
screen-invisible = 1.
modify screen.
endif.
endloop.
AT SELECTION-SCREEN OUTPUT.
IF r3 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'BBB'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
endif.
start-of-selection.
if r1 = 'X'.
DATA: filename TYPE string.
filename = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
DATA : A1 TYPE SY-DATUM,
A2 TYPE SY-DATUM,
A3 TYPE SY-DATUM.
loop at itab.
ZFAGPRO-CLACN = ITAB-CLACN.
ZFAGPRO-TACNO = ITAB-TACNO.
ZFAGPRO-CHKNO = ITAB-CHKNO.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = ITAB-CHKDT
IMPORTING
DATE_INTERNAL = A1
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 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.
ZFAGPRO-CHKDT = A1.
ZFAGPRO-PAYAM = ITAB-PAYAM.
ZFAGPRO-MODPY = ITAB-MODPY.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = ITAB-CHKDT
IMPORTING
DATE_INTERNAL = A2
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 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.
ZFAGPRO-CHKDD = A2.
ZFAGPRO-DPTBK = ITAB-DPTBK.
zfagpro-DRWBK = ITAB-DRWBK.
zfagpro-BOCLR = ITAB-BOCLR.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = ITAB-CHKDT
IMPORTING
DATE_INTERNAL = A3
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 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.
zfagpro-CLRDT = A3.
zfagpro-REORE = ITAB-REORE.
zfagpro-DRCHR = ITAB-DRCHR.
zfagpro-TNAME = ITAB-TNAME.
INSERT ZFAGPRO.
if sy-subrc = 0.
write :/ 'sucees fully inserted record NO',sy-tabix,itab-clacn,itab-chkno,itab-chkdt,itab-payam.
else.
write :/ 'Record all ready exist',sy-tabix,itab-clacn,itab-chkno,itab-chkdt,itab-payam.
endif.
endloop.
else.
DATA: filename1 TYPE string.
filename1 = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename1
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = itab1
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
data : b1 type sy-datum.
loop at itab1.
zretpro-clacn = itab1-clacn.
zretpro-PCUID = itab1-PCUID.
zretpro-BUKRS = itab1-BUKRS.
zretpro-CHKNO = itab1-CHKNO.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = ITAB1-CHKDT
IMPORTING
DATE_INTERNAL = b1
EXCEPTIONS
DATE_EXTERNAL_IS_INVALID = 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.
zretpro-CHKDT = b1.
zretpro-PAYAM = itab1-PAYAM.
zretpro-TRAID = itab1-TRAID.
zretpro-CISBN = itab1-CISBN.
zretpro-CISBC = itab1-CISBC.
zretpro-TACNO = itab1-TACNO.
insert zretpro.
if sy-subrc = 0.
write :/ 'sucees fully inserted record NO',sy-tabix,itab1-clacn,itab1-chkno,itab1-chkdt,itab-payam.
else.
write :/ 'Record all ready exist',sy-tabix,itab1-clacn,itab1-chkno,itab1-chkdt,itab1-payam.
endif.
endloop.
endif.
Similar Messages
-
Regarding Selection Screen field making display field in ALV report
Hi All,
In ALV Report, at runtime how can i make the field as Display Field in selection screen .
Thks & Regds
Shaileshhii,
Go to se38 and give the below progra name execute.... check the source code it is very easy to understand.
1.demo_dynpro_modify_simple
2.demo_dynpro_modify_screen
if tou are using grid,u can refer to foll link
sequencing / choosing fields in report screen at runtime,
Display the Columns in the grid at run time
rgrds,
Shweta -
Help Needed in At selection screen output
Hi Experts,
I need your help in AT SELECTION SCREEN OUTPUT event. My issue is i have 4 radio button and with each radio button couple of parameters that need to be filled in selection screen of report. My requirement is that sometimes user enters details in second radio button parameters but forgot to change the radio button to second one so kindly suggest a solution so that radio button gets selected as per user input in parameter like if user clicks on certain parameter to enter value then automatically corresponding radio button gets selected.
Thanks in advance for all your help.example from a checkbox in one of my progs..but you can do same approach with radio butts
parameters p_test as checkbox default abap_on user-command test.
at selection-screen.
if sy-ucomm = 'TEST'.
perform birth_mnth_chck.
endif. -
Help needed in selection screen - Urgent
Hi Experts,
I have a selection screen. I have three radi buttons in that selection screen. Based on the selection of the radio buttons I need to activate corresponding selection screen parameters.
e.g : if radiobutton1 is selected, njo activation needed,
if radiobutton2 is selected, activate selection screen parameter p_one,
if radiobutton3 is selected, activate selection screen parameter p_two.
All three radiobuttons are attached to the same radio button group.
I have assigned the parameters p_one, p_two, p_three to MODIF ID as follows.
p_one - NULL
p_two - t01
p_three - t02.
on the selection of a radio button I want the corresponding parameter to get activated.
please help me.
Regards,
Arul jothi A.hi
jothi
AT SELECTION-SCREEN OUTPUT.
CASE SY-TCODE.
WHEN 'ZEDI6'.
LOOP AT SCREEN.
CASE SCREEN-GROUP4.
WHEN '001'. "Sales order select
SCREEN-ACTIVE = '1'. "1=Active, 0=Don't display
MODIFY SCREEN.
WHEN '002'. "Delivery select
SCREEN-ACTIVE = '0'. "1=Active, 0=Don't display
MODIFY SCREEN.
WHEN '003'. "Invoice select
SCREEN-ACTIVE = '0'. "1=Active, 0=Don't display
MODIFY SCREEN.
WHEN '004'. "PO Select
SCREEN-ACTIVE = '0'. "1=Active, 0=Don't display
MODIFY SCREEN.
regards
praveen -
Compare the input filename in the selection screen
In the selection screen input field
there is an option of selecting the directory and file name and not the extension .
This is used to download the datas
Extension can be selected by using the option button
rtf
csv.
the user has to give only the filename and not the extension.
suppose if the user input is C:\temp\file1.rtf.
Either i should take only the filename
or i should display the message give only the filename and not the extension . its already been selected!!!!
I want to compare the input string contains .doc
how to do the comparison and to get the above results mentiond
Thanks in advanceBecause the requirment is there are two option buttion for selecting the download file format
But unknowingly if the user gives the filename along with the extension. I need to handle that error
giving some error message or information message
By comparing the last 4 letters of the filename.. either.doc or rtf or csv or watever
so how to do that
then after comparing that i should give the user a msg doc type is already selected give only the filename
I hope u understand my req -
Change selection screen in LDB (KDF logical database - NOT HR)
Hi All,
Iu2019d like to use KDF logical database to keep the dynamic selections since user wants to use it but I need to change the selection screen itself. The existing variants for KDF donu2019t meet the user requirements. Some fields I need to hide some add. Like I want to u201Cremoveu201D the field u2018Posting periodu2019 (MONAT) (which is available in dynamic selection screen) and put it on the u201Cmainu201D selection screen.
Do I need to create my own logical database or there is a way around?
Could someone give me a practical advice or sample of solution?
Thanks a lot.Thanks Himanshu,
I did as you suggested but problem is that it does not allow me to hide the whole block.
I have 3 filelds actually on block KD_0 I need to hide (its from selection screen of KDF logical database.)
SELECT-OPTIONS: KD_LIFNR FOR LFA1-LIFNR MATCHCODE OBJECT KRED.
SELECT-OPTIONS: KD_BUKRS FOR LFB1-BUKRS.
SELECTION-SCREEN END OF BLOCK KD_0.
PARAMETERS KD_INDEX AS SEARCH PATTERN FOR TABLE LFA1.
What I did is below. I used sp instead of u201C=u201D since it has many screen for field KD_LIFNR(for frame, text etc).
And when I did just for KD_LIFNR it was hidden but when I did the same for KD_BUKRS it was not hidden . The field has stars u201C*********u201D in it.
Same happen with KD_INDEX. The name of the field is hidden but field not and it filled with ********. Do you have any ideas what it can be?
I debugged it to catch all screen names but no luck
loop at screen.
if screen-name cp 'KD_LIFNR' or
screen-name cp 'KD_BUKRS' or
screen-name cp 'KD_INDEX' or
screen-name = '%B000003_BLOCK_1000' or
screen-name = 'SSCRTEXTS-FRAME_TEXT' or
screen-name = 'SSCRTEXTS-MCID_TEXT' or
screen-name = 'SSCRTEXTS-STRNG_TEXT' or
screen-name = 'SSCRFIELDS-SEARCH_BTN' or
screen-name = '%B025008_BLOCK_1000' or
screen-name = '%F021010_1000' or
screen-name = 'ALCUR' or
screen-name = '%F022012_1000' or
screen-name = 'EXCDT' or
screen-name = 'SSCRFIELDS-UCOMM'.
screen-invisible = '1'.
modify screen.
endif.
endloop. -
How to define our own selection screen for logical database in abap-hr?
Hi Friends,
Can u please help me
How to define your own selection screens for logical database.
we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using customer table like t599c, t599f and how to add to my logical database?
Thanks in advance
charancheck out this online help
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
Regards
Raja -
Need to restrict selection screen entries in logical database in HR report
After creating custom HR Report Category using Logical database, I need to restrict the options available in the in the selection Screen
for example- for company code i m getting 182 entries, but after running the program, selection-options for company code, i need only first 3 entries, don't want remailing entries
how can i do this?Hi
You can retrieve the required entries into an internal table and use FM F4IF_INT_TABLE_VALUE_REQUEST to provide them under F4 help.
Regards
Raj -
Selection Screen in Report Painter
Dear Experts,
I have an issue in the report painter. While executing the report from GRR2, selection screen is not displayed but report is coming as I expected.
I want to create the selection screen for this report. I have created this report without copying from the standard report.
Thanks in Advance.
Regards,
AswimnHi,
Please refer following links.
<Link farm removed by moderator>
Regards,
Renuka S.
Edited by: Vinod Kumar on May 25, 2011 10:12 AM -
HR ABAP - PNP selection screen
Hi Friends,
I am executing the standard report with PNP logical database .
But in the selection screen when I click on further selection and select the parameter company code.
Now I entered the company code "0060", but I am getting the out put for both company code 0060 and 0020,
here I need the out put only for the person which are belongs to company code 0060, but I think the selection screen company code was not controlling the out put.
Also I checked the Infotype internal table p0001, here I am able to see both the company codes, and for that person the process is continuing and I am getting the out put for the company code 0020, bcz the current/valid record for this person is 0020.
Request to let me know any issue there?
Magesh.SHi,
You need to set "person selection period" dates, in order to list values with selected parameters.
Daniel -
Logical database : user defined selection screen
Hi Experts,
I am working with HR-ABAP. The logical databases provide a selection screen......but i want to use a selection screen of my own and not that of the LDB.
Plz help...............hi do like this....
go to attributes-->hr report catagory-->master data...here use the value _____000(5underscores and 000 )..
you wii get that..
regards,
venkat -
Logical database sdf in custom program not triggering selection screen?
I added logical Database SDF (screen 905) to a custom program - but the selection screen is not getting triggered.
Do I have to associate these somewhere?
Thanks,
VenHI,
Declare this statement after the Report Statement in the program.
TABLES : SKA1, SKB1.
You will get the selection screen now. -
Unable to save the ALV layout variant and display of selection screen on F4
Hi All,
The end user wants to directly select the layout variant (SLIS_VARI). I have used the following code to display the layout variant on selection screen. But, I am unable to save the variant on ALV. Whenever I am trying to select the layout variants (by doing F4 on selection screen) its displaying "No Layout found".
Following is the code for displaying layout variant:
PARAMETERS: p_var TYPE slis_vari.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_var.
PERFORM f4_variant CHANGING p_var.
FORM f4_variant CHANGING c_variant TYPE slis_vari.
DATA: ls_variant TYPE disvariant,
l_exit TYPE char1.
ls_variant-report = sy-repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = ls_variant
i_save = 'A'
IMPORTING
e_exit = l_exit
es_variant = ls_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
IF l_exit EQ space.
c_variant = ls_variant-variant.
ENDIF.
ENDIF.
ENDFORM. " f4_variant
and following is the code for displaying the ALV:
FORM edition_alv.
ws_variant2 = ls_variant.
* Call ALV editor in list mode
IF p_list = 'X'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = ws_extract1-report
i_callback_user_command = ws_user_command
is_layout = ws_layout
it_fieldcat = wt_fieldcat
it_sort = wt_sort
i_save = 'A'
is_variant = ws_variant2
it_events = wt_events[]
TABLES
t_outtab = wt_edition.
* Call ALV editor in grid mode
ELSE.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = ws_extract1-report
i_callback_user_command = ws_user_command
it_fieldcat = wt_fieldcat
it_sort = wt_sort
i_save = 'A'
is_variant = ws_variant2
it_events = wt_events[]
TABLES
t_outtab = wt_edition.
ENDIF.
ENDFORM.
I am not sure whats going wrong, but I am unable to save variants.
Please help.
Thanks,
Vishal.The F4 will display you the existing layouts only. So you need to save the layout first & then execute the report again & check if you are getting F4 values for that field.
The Layout needs to get stored with variant.
Regards,
Mahesh -
Unable to retreive values from selection screen built using WDR_SELEC_OPTIO
Hi All,
I have created a selection screen as below
lr_field = wd_this->m_handler->create_range_table( 'YFMTFLOW' ).
* ASSIGN lr_field->* TO <fs_range>.
* ls_date-sign = 'I'.
* ls_date-option = 'EQ'.
* ls_date-low = 'US'.
* APPEND ls_date TO <fs_range>.
* Add the select-option to the group
wd_this->m_handler->add_selection_field(
i_id = 'FLOW'
i_within_block = 'PROC'
i_no_intervals = abap_true
it_result = lr_field ).
If i enter some value and click a button to retireve the values as below
DATA
lt_sel_item TYPE if_wd_select_options=>tt_selection_screen_item.
types: ty_flow type range of yfmtflow.
FIELD-SYMBOLS:
<fs_sel_item> LIKE LINE OF lt_sel_item,
<fs_process> TYPE yfmtprocess,
<fs_flow> TYPE ty_flow.
* Get the selection-screen items
l_handler->get_selection_screen_items(
IMPORTING et_selection_screen_items = lt_sel_item ).
* Retrieve the values from the select-options items
LOOP AT lt_sel_item ASSIGNING <fs_sel_item>.
CASE <fs_sel_item>-m_id.
WHEN `PROCESS`.
ASSIGN <fs_sel_item>-m_value->* TO <fs_process>.
WHEN 'FLOW'.
ASSIGN <fs_sel_item>-mt_range_table->* TO <fs_flow>.
ENDCASE.
ENDLOOP.
<fs_flow> is empty
but after I enter value and then press enter and then click the button to retrieve the values I am able to get low value <fs_flow> not the sign and option
Is it the standard functionality ,if yes how can we overcome
Thanks
Bala DuvvuriAm giving clear coding of select options.
nOTE: S_CARR_ID IS THE DATA ELEMENT OF CARR ID FIELD,
FOR THAT I AM APPLYING SELECT OPTIONS IN BELOW CODING.
WRITE THE BELOW CODE IN WDDOINT( ) METHOD OF
REQUIRED VIEW
Data: lt_range_table type ref to data,
read_only type abap_bool.
WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS-
>WD_CPIFC_SELECT_OPTIONS( ).
WD_THIS->M_HANDLER = WD_THIS->M_WD_SELECT_OPTIONS-
>INIT_SELECT_SCREEN( ).
WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(
I_DISPLAY_BTN_CANCEL = ABAP_FALSE
I_DISPLAY_BTN_CHECK = ABAP_FALSE
I_DISPLAY_BTN_RESET = ABAP_FALSE
I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
LT_RANGE_TABLE = WD_THIS->M_HANDLER-
>CREATE_RANGE_TABLE( I_TYPENAME = 'S_CARR_ID' ).
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
I_ID = 'S_CARR_ID'
IT_RESULT = LT_RANGE_TABLE
I_READ_ONLY = READ_ONLY ).
BELOW CODE IN REQUIRED ACTION( SAY IN SOME BUTTON
ACTION WHICH WILL RETRIEVE THE DATA FROM DATABASE TABLE
USING SELECTI OPTIONS VALUES)
fIRST THE GET REFERENCE TO NODE( CTRL F7--->READ
CONTEXTB---FLIGHT NODE )
***THEN BELOW CODE
DATA: RT_CARRID TYPE REF TO DATA.
DATA:IS_FLIGHT TYPE TABLE OF SFLIGHT.
FIELD_SYMBOLS: <FS_CARRID> TYPE TABLE.
RT_CARRID = WD_THIS-> M_HANDLER-
>GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
ASSIGN RT_CARRID-> TO <FS_CARRID>.*
SELECT * INTO CORRRESPONDING FIELDS OF TABLE IS_FLIGHT
FROM SFLIGHT WHERE CARRID IN <FS_CARRID>
NODE_FLIGHT->BIND_TABLE( IS_FLIGHT ). -
Need Different Selection screen for different Queries in a Workbook
Hi,
I have created a workbook with Multiple tabs in BI 7.0. Each Tab has different Queries and each query has different Selection screens (Variable Selections).
When i open the workbook and refresh it, the selection screen is appearing only for one query. All the queries are refreshed by this single selection screen, though each query has different Variable selections. What i need is a seperate selection screen i.e seperate Variable selection appearing for each queries, when i refresh each one of them.
Is it possible to do this? If anybody has tried this, help me in solving this issue. Thanks for ur time.
Regards,
MuraliMurali,
If you un-check the 'Display Duplicate Variables Only Once' this WILL solve your problem.
When you Refresh, you should be presented with a single variable selection dialog box, but it should contain an area for each Query (DataProvider) that is embedded in the Workbook.
This is the case if the queries are all on the same tab, or on different tabs.
However, if you have multiple tabs each with a query on it, each query must have it's own DataProvider. If all queries are based on the same DataProvider, it will not work as the Workbook only 'sees' one Query for which it needs variable input.
If you REALLY want multiple variable selection dialog boxes, then maybe the best way to do this is to have the queries in separate Workbooks.
If you don't want the User to have to open 5 queries manually, you could use a Macro in each Workbook that runs on opening, to open the next Workbook in the sequence.
I hope this makes sense!
Regards
Steve
Maybe you are looking for
-
I am locked out of my iphone. In resetting my passcode I must have hit a wrong digit, because the 4 digits I thought I used Don't work (and of course not my old passcode). I have tried the instructions both for "if you have previously synced your dev
-
Problem with adobe livecycle rights management es2 extension for microsoft office
occurs several times an error message in Microsoft Office Excel that says it has experienced a problem with the complement of adobe livecycle rights management es2 extension for microsoft office if the message has appeared several times should disabl
-
The powerbook g4 17inch display
HOW DO I CONNECT A IBMTHINKPAD AS A SECOND MONITOR ONTO MY 1.67 POWERBOOK. ALSO WHAT SETTINGS DO I DO ON THE IBM AND APPLE 17INCH 1.67 POWERBOOK
-
T420 4178 XP32 downgrade HHD slowness issue
Hi everyone , i just recieved my brand new T420 and i need a few advices please. I have downgraded my 420 4178 to win xp 32 and my 500 gb 7200 rpm sata drive is slow. [hitachi hts72755] When i copy a 300mo folder from my desktop to my desktop it tak
-
How do you get a blue box?
I have posted many questions (49 posts) here with some great feedback and solutions. I have answered others only a few times though. Just wondering how you get a blue box beside your name? Thanks.