How to give f4 help to oo ALV ?
How to give f4 help to oo ALV
hello Madhukar,
If the fields that you are showing on the Output has implicit search helps, Domain values, Check tables attached to it . It will automatically appear in the Grid when you press f4 for the Fields .
Also you can create F4 during runtime . for this you have to have an f4 event handler method for the grid. then set the handler method using set handler statement
This event handler method gets parameter Fieldname imported into the method . Then you can use FM
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' to show the F4 in output.
Similar Messages
-
Hi all,
Please solve this query of mine . I am displaying an ALV report . I want to give F4 help on a field . Please tell me how to give the F4 help without using OO concept.
Kindly reply as fast as possible.
Regards,
VijayHI,
Specify the ref_tabname and ref_fieldname for that field in the field catalog. Fill in the database table name and field name for ref_tabname and ref_fieldname respectively. Then the field will inherit the properties from the ABAP dictionary. Any search help or check table defined for the field will be shown as well
Thanks
Mahesh -
How to give a page break in alv grid display after 65 lines are displayed?
hi all,
I need to give a page break in alv grid display after 65 lines are displayed on each page...Please help me with this...hai
give this command beging of the report name... u have to diclar the beging of the report ......
<b>report</b> ( name of the report) <b>standard page heading line-size 200 line-count 65.</b>
ex1.:- report name is rtpm_trl_show_flows
report <b>rtpm_trl_show_flows </b> no standard page heading line-size 200
line-count 65.
ex:2
report <b>zlpur01</b> no standard page heading line-size 200
line-count 65.
type-pools: slis.
tables: bkpf.
selection-screen begin of block sel with frame title text-001.
select-options: s_comp for bkpf-bukrs, " Company
s_valut for bkpf-budat. " Invoice Date
S_MTART FOR MARA-MTART. " Material Type
selection-screen end of block sel.
parameters: p_vari like disvariant-variant. " ALV Variant
constants: formname_top_of_page type slis_formname value 'TOP_OF_PAGE'.
data: i_bseg type bseg occurs 0 with header line.
data: vatval type p decimals 2 value '0.15'.
data: xhkont type string value '154000'.
data COM type c.
data: begin of invt occurs 100,
budat like bkpf-budat, " Inv Dat
bukrs like bkpf-bukrs, " Material
STCEG like bsak-STCEG, "name of the companycode
belnr like bkpf-belnr,
xblnr like bkpf-xblnr, " Inv Reference
ebeln like rseg-ebeln, " PO number
lifnr like bseg-lifnr, " Vendor No
name1 like lfa1-name1, " Supplier Name
matnr like bseg-matnr,
maktx like makt-maktx,
stcd1 like lfa1-stcd1, " Supplier VAT REG NO
xamt like bseg-dmbtr, " TAX amt
yamt like bseg-wrbtr,
wrbtr like bseg-wrbtr, " Base amount
mwskz like bseg-mwskz,
dmbtr like bseg-dmbtr, " TAX amt
gjahr like bkpf-gjahr,
hkont like bseg-hkont,
zamt like bseg-dmbtr, " TAX amt
wamt like bseg-dmbtr,
shkzg like bseg-shkzg,
shkzg1 like bseg-shkzg,
end of invt.
regard
nawa -
How to include F4 help to a alv output field?
Hi All,
I have a sel screen with 2 inputs say x1 and x2. Based on my inputs we have a alv(using OOPS) output where a field say tabname is editable and the values in it are hardcoded.
I have to get a F4 help in this editable field tabname with those hardcoded values from the program say T1 and T2.
If we pres F4 of tabname value, we must get only T1 and T2 from the program.
Please let me know how to do this.
Thanks in advance.Hi Aiswary,
Check the Following program
BCALV_EDIT_08 -
> Integrate Non-Standard F4 Help
BCALV_F4 -
> Possible entries
BCALV_GRID_EDIT_DELTA -
> Example Report for F4 Help of the ALV Grid
BCALV_GRID_F4_HELP_APPLICATION
BCALV_GRID_F4_HELPM01
BCALV_TEST_GRID_EDIT -
> F4 Help
BCALV_TEST_GRID_F4_HELP -
> Example Report for F4 Help of the ALV Grid
Cheers
Ram
Edited by: Ramchander Krishnamraju on Oct 23, 2009 2:20 PM -
How to give F4 Help for out put screen
Hi ,
I have out put grid display which is editable , in that i want to give F4 help for one of the eidtable field. if any body know about this please me .
My problem is i need to add F4 for my out put screen.
Thanks ,
saleem.Check the following code it may hel u.
REPORT ABC.
DATA : BEGIN OF ITAB OCCURS 0,
UNAME LIKE USR01-BNAME,
END OF ITAB.
data : RETURN_TAB LIKE DDSHRETVAL occurs 0 .
data : RETURN_wa LIKE DDSHRETVAL .
PARAMETERS : A(12) TYPE C.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR A.
ITAB-UNAME = 'U01'. APPEND ITAB.
ITAB-UNAME = 'U02'. APPEND ITAB.
ITAB-UNAME = 'U03'. APPEND ITAB.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'ITAB-UNAME'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'A'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = ITAB
FIELD_TAB = FTAB
RETURN_TAB = return_tab
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
Regards -
Hi All.
I have a ALV grid done using the normal FM REUSE_ALV_GRID_DISPLAY.
So I cannot use any methods of the class directly.
Our ALV is quite interactive in the sense there are a number of buttons (custom) which user can press to achieve something.
I have 2 queries:
- We want to give a button to user which shall give help like the normal help u get on pressing of any field on the screen. How can we call this help?
2 - I don't see any option in the layout setting to NOT make the ALV single row selectable. By default as soon as I give BOX_FIELDNAME, it allows multiple selection. I saw in the class CL_GUI_ALV_GRID, there is a parameter to set selection mode also. How can i do the same in the FM?
Thanks in adv.Hello Aishi
I cannot give you a direct answer since I have banned using these old-fashioned function modules for many years.
However, you can easily switch to <b>REUSE_ALV_GRID_DISPLAY_LVC</b> whose interface is very similar to the one of method SET_TABLE_FOR_FIRST_DISPLAY (cl_gui_alv_grid).
Regards,
Uwe -
I need to know, how to use AT SELECTION-SCREEN ON HELP-REQUEST FOR <Check_box>.
I need to display atext information for a check box.
After using the above event.
where do I write the documentation I want to display ???
Is ther any FM ?
Thanks in advance.Hi,
Use this..
AT SELECTION-SCREEN ON HELP-REQUEST FOR s_prps.
CALL FUNCTION 'DSYS_SHOW_FOR_F1HELP'
EXPORTING
dokclass = 'TX'
doklangu = sy-langu
dokname = 'Y_S_PRPS'
EXCEPTIONS
class_unknown = 1
object_not_found = 2
OTHERS = 3.
Create the documentation in SE61...
Edited by: Sukriti Saha on Nov 7, 2008 4:03 PM -
How to give no of lines per page in alv report
hi
could anybody tell me
how to give no of lines per page in alv report
i need bottom of page too
if possible plz send the code too
it ll be very helpful to me
thanx
kals.Hi,
This is possible, using some of the events in the ALV.
You could use AFTER_LINE_OUTPUT event and call you form after say, a certain line count is reached on the list output.
MOVE 'AFTER_LINE_OUTPUT' TO gw_event-name.
MOVE 'AFTER_LINE_OUTPUT' TO gw_event-form.
APPEND gw_event TO gt_events.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_events = gt_events[]
and define the form for each event as follows - this would be a dynamic call by the ALV.
*& Form after_line_output
* Form for the After Line Output Event in the internal table
* --> rs_lineinfo
FORM after_line_output USING rs_lineinfo TYPE slis_lineinfo.
IF sy-linno eq v_linno. "Defaulted value for line count
perform write_footer.
NEW-PAGE.
ENDIF.
ENDFORM. " after_line_output
For lines per page:
rs_lineinfo-tabindex would give you the index of the current line in the list, which you could use to read the t_outtab table, and reduce the line count of items displayed on the earlier page.
There are a few other events too, like BEFORE_LINE_OUTPUT and END_OF_LIST which you can use as required and print the data.
Regards,
Anil. -
How to give colors to the top-of-page in ALV Grid
How to give colors to the top-of-page in ALV Grid
in table GT_LIST_TOP_OF_PAGE i am filling 3 rows ,i need 3 different colors to be displyed on top-of-page(one color to one row)
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
I_LOGO = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
please help meeHI Kranthi,
Check out teh foll. link,
http://www.sapfans.com/forums/viewtopic.php?t=52107
Hope this helps. -
How to give the no of lines per a page in alv report
hi
could u plz inform me
how to give the no of lines per page in alv report
in ordinary report we can give line-count na
how can we give in alvs.
thanx
kals.Hi Kalyan,
There is another Forum(Abap Development) where u can post abap related stuffs and u can also get quick answers there..
Cheers...
Santosh -
How to get f4 help in alv grid in container-urgent
hi,
how to get f4 help in alv grid in container using abap objects
ganeshHi Ganesh,
Did you have a look at sample report BCALV_TEST_GRID_F4_HELP ?
Here is part of the header documentation:
*& Report BCALV_GRID_F4_HELP *
Purpose:
~~~~~~~~
This report illustrates the use of f4-Help in an alv grid control.
Background:
~~~~~~~~~~~
There a two possibilities to implement an f4-Help in the alv grid
control: one can either use standard f4-help or write one by Hand.
For the former there is nothing to do at all. This report shows how
to implement user-defined f4-help.
I am sure you will find within this report the solution you are looking for.
Reward points if this Helps.
Manish -
Dear Freinds,
I would like to know can we give F4 help to employee no , similar to the one which has
the F4 help when we have user logical database PNP . I mean to say can i give the F4 help to the field emp_no( Employee no) like the same functional which we get for the field Personnel no ( pernr-pernr) when we are using the logical database PNP.
In my report iam not using the logical databse (PNP)in this requirement. If i can provide the F4 help on my field emp_no , please help me in this regard.
Thanks & regards
Divya.Creating a basic search help which allows you to provide the user with a selection help to select specific fields from
a table or view is very straight forward. Simply create a search help with the desired table as the selection method
and add the fields you want them to see/select into the search help parameters section. See below for details of how
to create a search help for table TRDIR
Step1: Execute transaction SE11
Step2: Create new search help called 'ZSH' (must be less than 5 chars long to be used as matchcode)
Step3: Enter the following details:
Step4: Save and activate
Step5: Add following line into your program: PARAMETER p_prog LIKE trdir-name MATCHCODE
OBJECT zsh.
Or see other methods of adding a search help. -
How clear own f4 help in ALV GRID OO
Hi experts,
I have to create OWN F4 Help for 4 different cells in a ALV Grid list. I create one and it works.
But how can I create the another ones without copy all the abapcode? (dynpro, classes, methods, etc.)
To create one I use de BCALV_EDIT_08 standard report by example.
Please help me.
Thanks in advance.
Oscar.Hi Ganesh,
Did you have a look at sample report BCALV_TEST_GRID_F4_HELP ?
Here is part of the header documentation:
*& Report BCALV_GRID_F4_HELP *
Purpose:
~~~~~~~~
This report illustrates the use of f4-Help in an alv grid control.
Background:
~~~~~~~~~~~
There a two possibilities to implement an f4-Help in the alv grid
control: one can either use standard f4-help or write one by Hand.
For the former there is nothing to do at all. This report shows how
to implement user-defined f4-help.
I am sure you will find within this report the solution you are looking for.
Reward points if this Helps.
Manish -
Hi All,
Can anybody suggest me how to give help of Screen Painter form. Like Context help F1 in Help menu.
Means suppose i open Sales order system form of SAP and then i go to in Context help then i get the help of that form.
Like this i also want to give help in context help of User define form of Screen Painter.
Thanks,Thats fine, now what we have to do is limit the code only to ur user form. Just paste the following.
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
If pVal.MenuUID = "275" And pVal.BeforeAction = True Then
If SBO_Appln.Forms.ActiveForm.TypeEx = "UserFormType" Then 'this is the form type of ur user form
Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = "C:\Documents and Settings\Harish Patil\Desktop\Checkbox and Option button\ChkOpt\ChkOpt\New_HTML_Help.chm"
Process.Start(psi)
BubbleEvent = False
End If
End If
Hope with this we'r done.. If so award the points and close the thread.
Regards,
Vasu Natari.
Edited by: vasu natari on Aug 12, 2008 11:59 AM
Edited by: vasu natari on Aug 12, 2008 12:02 PM -
How to assign search help using ovs for select options for ALV in web dynpr
how to assign search help using ovs for select options for ALV in web dynpro
Hi,
refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
Thanks,
Chandra
Maybe you are looking for
-
Macbook pro mid 2010 13.3 inch - battery charging
I have a Macbook Pro mid 2010, 13.3 inches. The battery stopped charging, I see the problem was the dc MagSafe. Replaced it, now only connects the laptop (I've tried with another battery and the problem persists, my battery works and usually carries
-
how do I transfer content of my itunes library from one account to another on the same computer?
-
Problem with comparable generics
Hi all, I just started using generics and I cannot solve the following issue: Here's the code snippet that gives me all the trouble: public class BinaryLogicalExpression{ private Comparable leftOperand; private Comparable rightOperand; public B
-
at work we've had 2 20" acd's at each workstation for about 2-3 years now. we just got new 30" acd's, so each workstation will have a big one and a small one. i've set up one workstation and there is a noted difference in the monitors. the 20" that w
-
Dear Guru's, Can I know the step wise process for depot to depot transfer and what are the accounting documents that will be genarated? I am also getting error while creating G.R, Maintain vendor for excise invoice, for this I have given vendor code