Hide Push Button
I have a scenario where the ITS Template OK CODE is working in ECC 6.0 so we have had decided to Hide Push Button.Plz can any one give the solution for this
Check for the authorization using AUTHORITY CHECK and accordingly fill the itab for excluding the buttons.
SET PF-STATUS 'MENU' EXCLUDING ITAB.
ITAB will have the lis to the function codes that you don't want the user to acess.
Regards,
Ravi
Note - Please mark all the helpful answers
Similar Messages
-
LM00 - Hide push button and Command box
Hi all,
We are in the process of implementing ITS mobile for WM transactions (for example : LM00)
In the browser, I could see pushbuttons F2, F4 and command box. I dont need these push buttons and the command box. Can I hide them in the browser? In fact I want to hide the whole line.
Note : The above mentioned push buttons are not the ones coded inside the application.
Thankyou in advance.
Regards,
VicHello Edgar,
Thankyou. That helped.
I have 2 more please
1. The pop-message (in one of the custom developed RF transaction) that appears on MC9090 through SAP Console doesnt appear when I use ITSMobile with browser on Windows Mobile 5.0 on the same handheld. Any idea, why I will not get this message? Could this be because of missing template for pop-up message box?
I am trying to use LM00 (+ other tranx) through ITS mobile
2. I recieve a small screen prompt to enter User ID/Password on the IE 6.0 in the laptop on typing URL. However, in MC9090 handheld device with Windows Mobile 5.0+IE, I do not get this small screen to enter User ID/Password. Therefore a blank screen with no text is displayed. Do I have create template for this small screen too? If so what will be screen number (pgm rlogon?), please. Can you please throw some light on this please?
Thanks a ton in advance.
Best regards,
Vic -
ADD push button in selection-screen
Hi Guys,
I have a requirement.
In the selection screen on the report, I need a push button "Click".
When i "Click" First Time this it should display all the selection screen Blocks B1,B2,B3 from my selection screen.
For second "Click" it should Hide the Blocks B1,B2,B3.
I am doing the following code in my report:
But for first Click it is displaying the Blocks.And for the Second click it is not Hiding.
Please suggest on this.....
initialization.
if screen-group1 = 'A1' .
screen-active = 0.
modify screen.
endif.
endloop.
loop at screen.
if screen-group1 = 'A2' .
screen-active = 0.
modify screen.
endif.
endloop.
loop at screen.
if screen-group1 = 'A3' .
screen-active = 0.
modify screen.
endif.
endloop.
I am using " At selection screen:
at selection-screen.
if gv_flag = space.
loop at screen.
if screen-group1 = 'A1' .
screen-active = 1.
modify screen.
endif.
endloop.
loop at screen.
if screen-group1 = 'A2' .
screen-active = 1.
modify screen.
endif.
endloop.
loop at screen.
if screen-group1 = 'A3' .
screen-active = 1.
modify screen.
endif.
endloop.
gv_flag = 'X'.
elseif gv_flag = 'X'.
loop at screen.
if screen-group1 = 'A1' .
screen-active = 0.
modify screen.
endif.
endloop.
loop at screen.
if screen-group1 = 'A2' .
screen-active = 0.
modify screen.
endif.
endloop.
loop at screen.
if screen-group1 = 'A3' .
screen-active = 0.
modify screen.
endif.
endloop.
gv_flag = space.
endif.You are hiding it in INITIALIZATION block which means it hides only once before PBO. If you want to show/hide it in turn simply place all your code in PAI, not just part of it.
Regards
Marcin
Sorry didn't notice part of the code in the bottom
The logic should go like
at selection-screen.
if gv_flag = space.
loop at screen.
case screen-group1.
when 'A1' or 'A2' or 'A3'
screen-active = 1.
modify screen.
when others.
endcase.
endloop.
gv_flag = 'X'.
elseif gv_flag = 'X'.
loop at screen.
case screen-group1.
when 'A1' or 'A2' or 'A3'.
screen-active = 0.
modify screen.
when others.
endcase.
endloop.
gv_flag = space.
endif.
Regards
Marcin
Edited by: Marcin Pciak on Apr 1, 2011 12:33 PM -
Sort up and sort Down push buttons in module pool with table control wizard
hi,
i have created 2 buttons for Sort up and sort Down push buttons in module pool with table control wizard
please any one can help me.
regardsHi
Following code is to enable and disable the tbl control using two buttons. Just alter the code and for each button write the sort code.
REPORT YJAN27_SCREEN .
TABLES: SFLIGHT, YFLIGHT_28.
TYPES: BEGIN OF struct1,
carrid like sflight-carrid,
connid like sflight-connid,
fldate like sflight-fldate,
END OF struct1.
CONTROLS TBL1 TYPE TABLEVIEW USING SCREEN 2700.
DATA: OK_CODE LIKE SY-UCOMM,
CARRID LIKE SFLIGHT-CARRID, "cols in tbl ctrl
CONNID LIKE SFLIGHT-CONNID,
FLDATE LIKE SFLIGHT-FLDATE,
itab TYPE TABLE OF STRUCT1 WITH HEADER LINE,
cols like line of TBL1-COLS,
FLAG TYPE I.
FLAG = 1.
CALL SCREEN 2700.
*& Module STATUS_2700 OUTPUT
* text
MODULE STATUS_2700 OUTPUT.
SET PF-STATUS 'BACK'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_2700 OUTPUT
*& Module USER_COMMAND_2700 INPUT
* text
MODULE USER_COMMAND_2700 INPUT.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'DIS'. "write code for sort up
loop AT TBL1-COLS INTO COLS.
COLS-SCREEN-INPUT = 0.
MODIFY TBL1-COLS FROM COLS.
ENDLOOP.
FLAG = 2.
WHEN 'ENA'. "write code for sort down
loop AT TBL1-COLS INTO COLS.
COLS-SCREEN-INPUT = 1.
MODIFY TBL1-COLS FROM COLS.
ENDLOOP.
FLAG = 1.
ENDCASE.
ENDMODULE. " USER_COMMAND_2700 INPUT
*& Module GET_DATA OUTPUT
* text
MODULE GET_DATA OUTPUT.
select carrid connid fldate from SFLIGHT into table itab.
ENDMODULE. " GET_DATA OUTPUT
*& Module POPULATE_TBL OUTPUT
* text
MODULE POPULATE_TBL OUTPUT.
MOVE-CORRESPONDING ITAB TO SFLIGHT.
ENDMODULE. " POPULATE_TBL OUTPUT
*& Module CHANGE_SCREEN OUTPUT
* text
MODULE CHANGE_SCREEN OUTPUT. " use this module if you want to hide the other button
CASE FLAG.
WHEN 1.
LOOP AT SCREEN.
IF SCREEN-NAME = 'B_ENA'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
LOOP AT SCREEN.
IF SCREEN-NAME = 'B_DIS'.
SCREEN-INVISIBLE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
WHEN 2.
LOOP AT SCREEN.
IF SCREEN-NAME = 'B_DIS'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
LOOP AT SCREEN.
IF SCREEN-NAME = 'B_ENA'.
SCREEN-INVISIBLE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDCASE.
ENDMODULE. " CHANGE_SCREEN OUTPUT
PROCESS BEFORE OUTPUT.
MODULE STATUS_2700.
MODULE CHANGE_SCREEN. " use this if you want to display one button at a time
MODULE GET_DATA.
loop at itab WITH control TBL1.
MODULE POPULATE_TBL. " populate tbl ctrl
endloop.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_2700. " do the sort operations
loop at itab.
endloop.
Hope this helps
Regards,
Jayanthi.K -
Purchase Order Personal settings push button disable for particular user
Hi
I want to disable the acess to personal settings push button in purshase order creation (ME21N )..for selected user is it possible
could any one help me in this issue
Regards
GSHi
I think transaction variant will help you check with abaper
f you want to hide unwanted screens and fields in any standard SAP program without changing it, the use of the Transaction Variant is the best solution.
check following link you may get some idea
[http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
[http://www.****************/Tutorials/ABAP/TransactionVariant/Create.htm]
Regards
Kailas Ugale -
Regarding : Push button collective Billing document
Hi Gurus,
In transaction VF04, there is a push button called collective billing document, the requirement is to hide or make the push botton inactive, is it possible through any developments or any std configuration available to disable that, or any other methods pls help me at the earliest.
Thanks in advance
Regards
RajeshHi,
VF04 t.code
menu System----> Status
U found popup window in that u found Progam name RXXXXX like this .
Double click on this....
It will goes to SE38 editor copy this Program to zprogram
then find out Set PF status in that Program
Delete that button...
AND use Zprogram -
Missing Push Buttons in Pie Chart
The above pie chart is in the development mode, where there is no push buttons in the canvas...like 2014,2013,2012,2011,2010
Here when the same pie chart is taken in preview mode, there appears push buttons to select the year and find the respective cast numer in respective year, i could not find any option in the properties of pie chart.....Would be thankful if someone can plz clarify me..
Thanks and Regards
RanendraYou can not see it in the canvas because it is checked as hidden in the object browser. If you want to display this in design time, uncheck the hide option.
-
How to hide some buttons like CREATE PURCHASE ORDER, COPY, EDIT from POWL?
In SRM 7 ECS we need to hide some buttons like CREATE PURCHASE ORDER, COPY, EDIT from POWL"s. We can do some manipulation via security but we need to make a few buttons invisible without security. Appreciate any advice. Thanks.
Hi Ashwanin
To make read only
Below are the steps to Hide the buttons in POWL table
1. if you want to Gray out the Buttons
IMG > SRM SERVER> Cross Application Basic Settings --> Extensions and Field Control. There you will find a node to control Actions. based on the object type choose your option and make it as read only
To Make invisible
1.If you want to make invisible the button .
IMG > SRM SERVER> Cross Application Basic Settings --> Powl and Advance Search - > Adjust powl layout ,search criteria and push button (OR) t-code : /SAPSRM/POWL_CUST
2.choose the POWL type for the POWl table
3.click on Action node , you will find all the acction assigned for the POWL table ,delete the entry which you want to make invsible and save it
4 .Now run the report POWL_D01 and provide powl type in the selection criteria and deleate the catche quries
Regards
chinnaiya P
Edited by: chinnaiya pandiyan on Jun 27, 2011 3:12 PM -
How do I use a push button digital trigger with my 6034E DAQ board?
I am only a Lab View toddler.
I am currently using a push button, wired to PFIO/TRIG1 and DGND, with a anolog trigger. However noise is causing my program to be triggered. I was told that a digital trigger would help to reduce the random triggering. How do I create a push button digital trigger?
Thanksimplement a schmitt trigger.
Struggling with Labview wrote in message
<[email protected]>...
>I am only a Lab View toddler.
>I am currently using a push button, wired to PFIO/TRIG1 and DGND, with
>a anolog trigger. However noise is causing my program to be triggered.
>I was told that a digital trigger would help to reduce the random
>triggering. How do I create a push button digital trigger?
>Thanks -
Push button query!!!!!!! help needed
hello all,
I HAVE USED THIS LOGIC FOR MAKING THE DATA ASCENDING AND
DESECENDING,AND TRIED ALL THE
SOLUTIONS THAT WERE SUPPLIED BY MY FRIENDS IN THIS GROUP,BUT COULD NOT
CHANGE THE
VISUAL ATTRIBUTE OF THE BUTTON.I AM REPEATING MY QUERY.I WANT TO HAVE
THE
PUSH BUTTON TO SIGNIFY VISUALLY THE ASCENDING AND DESCENDING DATA I.E
WHEN THE
DATA COMES IN THE ASCENDING WAY,THE PUSH BUTTON
SHOULD HAVE A "inverted v"ACC CODE"" ALONG WITH NAME "ACC CODE" I.E IT SHOULD
LOOK LIKE "ACC CODE "ACC CODE inverted v "
AND WHEN THE DATA COMES IN THE DESCENDING WAY,THE PUSH BUTTON
SHOULD HAVE A " v".I.E IT SHOULD
LOOK LIKE "ACC CODE "ACC CODE' v' ".SO PLZ HELP me TO GET THIS .
Any changes should be made to nls_lang parameter in registry???????????
PLZ LET ME KNOW WHAT IS FONT THAT I SHOULD USE.U CAN CHANGE THE CODING
THAT I HAVE WRITTEN
IN THE "WHEN BUTTON PRESSED" TRIGGER OF ACC_CODE.
BEGIN
go_block('age_tran');
BEGIN
IF
get_item_property('PB_ACC_ORDER',LABEL)='&Acc Code' THEN
set_block_property('age_tran',order_by,'acc_code ASC');
execute_query(no_validate);
SET_ITEM_PROPERTY('PB_ACC_ORDER',LABEL,'&Acc Code'||'
'||upper(chr(94)));
ElSIF
get_item_property('pb_acc_order',LABEL)='&Acc Code'||'
'||upper(chr(94)) THEN
Set_block_property('age_tran',order_by,' acc_code DESC');
execute_query(no_validate);
SET_ITEM_PROPERTY('pb_acc_order',LABEL,'&Acc Code'||' '||'v');
ELSE
Set_block_property('age_tran',order_by,'BALANCE DESC');
execute_query(no_validate);
SET_ITEM_PROPERTY('pb_acc_order',LABEL,'&Acc Code');
END IF;
END;
END;
THANKING UHi Shiju,
U can use the combination of fornt slash(/) and back slash(\) to fulfil ur requirement.
For ascending u can use /\ and for descending u can use \/. Does this solve the purpose?
I think it will.
Suprabhat. -
How can I open a .pdf file in a browser on a click on a push button
I am using oracle 10g developer suit for form designing.
There is a .pdf file in the application server.
I want it to open it in a browser when a push button is clicked.
Could you please tell me how can I do that?
Regardshi
u can use web.show_document() for that.
but if you want to open pdf file only then use
client_host()
sarah -
How to get GUI Status(Push Buttons) in ALV Report
Hi Friends
I have a requirement in a way that:
Once selection-screen was processed,an ALV report has to come and above the ALV List,I need a custom GUI Status(4 Push Button) with Push Buttons Logic.
Once I had clicks on thesse push button,I need to display one more ALV List and above this List,again I need a custom GUI Status(2 Push Buttons) with Push Buttons Logic.
Can anyone throw some light how we can achieve this.
Thanks for your cooperation!
Regards,
Madisettydata: rt_extab type slis_t_extab,
g_ucomm like sy-ucomm ,
g_selfield type slis_selfield.
form alv_display .
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = g_repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMM'
it_fieldcat = it_fldcat
tables
t_outtab = it_final1
perform pf_status using rt_extab.
perform user_comm using g_ucomm g_selfield .
endform.
form pf_status using p_rt_extab.
set pf-status 'PF_STATUS' excluding p_rt_extab.
endform.
form user_comm using p_ucomm like sy-ucomm
p_selfield type slis_selfield.
data: l_row type i.
case p_ucomm.
when 'DISPLAY_PO'.
loop at it_final1 into wa_final1.
if wa_final1-sel eq 'X' .
l_row = l_row + 1.
endif.
if l_row gt 1.
message e004.
endif.
clear wa_final1.
endloop.
p_selfield-fieldname = 'SEL'.
read table it_final1 into wa_final1 index p_selfield-tabindex .
set parameter id 'BES' field wa_final1-ebeln.
call transaction 'ME23N'.
endcase.
endform.
*create user interface for gui status by double clicking on 'PF_STATUS'.
*Check the above sample code . -
Dear Experts,
How to add pushbutton in alv report.....
*& Report ZTT_TEST_ALV
REPORT ZTT_TEST_ALV.
*data declarations
type-pools : SLIS.
* data : BEGIN OF wa_kna1,
* kunnr type kunnr,
* name1 type name1,
* end of wa_kna1,
* it_kna1 like tABLE OF wa_kna1.
data : begin of wa_mara,
matnr type matnr,
end of wa_mara,
it_mara like table of wa_mara.
data : it_fcat type slis_t_fieldcat_alv,
wa_fcat like line of it_fcat.
*selection screen
SELECTION-SCREEN begin of block k with frame title text-001.
* select-OPTIONS : s_kunnr for wa_kna1-kunnr.
select-OPTIONS : s_matnr for wa_mara-matnr.
SELECTION-SCREEN end of block k.
*select auery
*SELECT kunnr name1 INTO table it_kna1 from kna1 where kunnr in s_kunnr.
select matnr into table it_mara from mara where matnr in s_matnr.
*for displaying fieldcatalog
PERFORM fcat using '1' 'MATNR' 'material Number' 'C410' '20'.
* PERFORM fcat using '2' 'NAME1' 'Customer Name' 'C410' '36'.
*for displaying output
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
* I_CALLBACK_PROGRAM = ' '
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
* I_CALLBACK_USER_COMMAND = ' '
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
I_GRID_TITLE = 'Report for Customer Details'
* I_GRID_SETTINGS =
* IS_LAYOUT =
IT_FIELDCAT = it_fcat[]
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* I_HTML_HEIGHT_TOP = 0
* I_HTML_HEIGHT_END = 0
* IT_ALV_GRAPHICS =
* IT_HYPERLINK =
* IT_ADD_FIELDCAT =
* IT_EXCEPT_QINFO =
* IR_SALV_FULLSCREEN_ADAPTER =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_mara.
* EXCEPTIONS
* PROGRAM_ERROR = 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.
*CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
* EXPORTING
**** I_INTERFACE_CHECK = ' '
**** I_CALLBACK_PROGRAM =
**** I_CALLBACK_PF_STATUS_SET = ' '
**** I_CALLBACK_USER_COMMAND = ' '
**** IS_LAYOUT =
* IT_FIELDCAT = it_fcat
**** IT_EXCLUDING =
**** IT_SPECIAL_GROUPS =
**** IT_SORT =
**** IT_FILTER =
**** IS_SEL_HIDE =
**** I_SCREEN_START_COLUMN = 0
**** I_SCREEN_START_LINE = 0
**** I_SCREEN_END_COLUMN = 0
**** I_SCREEN_END_LINE = 0
**** I_DEFAULT = 'X'
**** I_SAVE = ' '
**** IS_VARIANT =
**** IT_EVENTS =
**** IT_EVENT_EXIT =
*** i_tabname_header =
*** i_tabname_item =
**** I_STRUCTURE_NAME_HEADER =
**** I_STRUCTURE_NAME_ITEM =
*** is_keyinfo =
**** IS_PRINT =
**** IS_REPREP_ID =
**** I_BYPASSING_BUFFER =
**** I_BUFFER_ACTIVE =
**** IR_SALV_HIERSEQ_ADAPTER =
**** IT_EXCEPT_QINFO =
**** I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
**** IMPORTING
**** E_EXIT_CAUSED_BY_CALLER =
**** ES_EXIT_CAUSED_BY_USER =
* tables
** t_outtab_header = it_
* t_outtab_item = it_kna1.
**** EXCEPTIONS
**** PROGRAM_ERROR = 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.
*& Form FCAT
* text
* -->P_0052 text
* -->P_0053 text
* -->P_0054 text
form FCAT using fp_col_pos
fp_fieldname
fp_seltext_m
fp_emphasize
fp_outputlen..
wa_fcat-col_pos = fp_col_pos.
wa_fcat-fieldname = fp_fieldname.
wa_fcat-seltext_m = fp_seltext_m.
wa_fcat-emphasize = fp_emphasize.
wa_fcat-outputlen = fp_outputlen.
append wa_fcat to it_fcat.
clear : wa_fcat.
endform. " FCAT
FORM SET_PF_STATUS .
SET PF-STATUS 'ZNEWSTATUS' .
"Copy of 'STANDARD' pf_status from fgroup SALV
endform.
i need one push button in alv output display.
Thanks and Regards,
Thirukumaran. RHI THIRU TRY FOLLOWING CODES:
*& Report ZSAMPLE
REPORT ZSAMPLE.
TABLES:MARA.
TYPE-POOLS: SLIS.
TYPES:BEGIN OF TY_ITAB,
MATNR LIKE MARA-MATNR,
ERSDA LIKE MARA-ERSDA,
END OF TY_ITAB.
DATA:ITAB TYPE STANDARD TABLE OF TY_ITAB WITH HEADER LINE.
DATA:FCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FCAT TYPE SLIS_FIELDCAT_ALV,
LAYOUT TYPE SLIS_LAYOUT_ALV,
WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS:P_MATNR TYPE MARA-MATNR.
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
PERFORM FIELDCAT.
LAYOUT-ZEBRA = 'X'.
PERFORM OUTPUT.
*& Form PF_STATUS
text
-->RT_EXTAB text
FORM PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'BUTT'.
ENDFORM. "PF_STATUS
*& Form PUSH_BUTT1
text
-->R_UCOMM text
-->RS_SELFIELD text
FORM GET USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'GET'.
IF SY-SUBRC EQ 0.
CALL TRANSACTION 'SE11'.
ELSE.
ENDIF.
WHEN 'EXIT' OR 'CANCEL' .
LEAVE PROGRAM.
ENDCASE.
ENDFORM. "PUSH_BUTT1
*& Form FIELDCAT
text
--> p1 text
<-- p2 text
FORM FIELDCAT .
WA_FCAT-SELTEXT_L = 'Select'.
WA_FCAT-COL_POS = '1'.
WA_FCAT-FIELDNAME = 'CHECK'.
WA_FCAT-CHECKBOX = 'X'.
WA_FCAT-TABNAME = 'ITAB'.
WA_FCAT-OUTPUTLEN = '4'.
WA_FCAT-INPUT(1) = 'X'.
WA_FCAT-EDIT_MASK(1) = 'X'.
WA_FCAT-EDIT(1) = 'X'.
APPEND WA_FCAT TO FCAT.
CLEAR WA_FCAT.
WA_FCAT-SELTEXT_L = 'Material Number'.
WA_FCAT-COL_POS = '2'.
WA_FCAT-FIELDNAME = 'MATNR'.
WA_FCAT-TABNAME = 'ITAB'.
WA_FCAT-OUTPUTLEN = '18'.
APPEND WA_FCAT TO FCAT.
CLEAR WA_FCAT.
WA_FCAT-SELTEXT_L = 'Date'.
WA_FCAT-COL_POS = '3'.
WA_FCAT-FIELDNAME = 'ERSDA'.
WA_FCAT-TABNAME = 'ITAB'.
WA_FCAT-OUTPUTLEN = '8'.
APPEND WA_FCAT TO FCAT.
CLEAR WA_FCAT.
ENDFORM. " FIELDCAT
*& Form OUTPUT
text
--> p1 text
<-- p2 text
FORM OUTPUT .
SELECT MATNR ERSDA FROM MARA
INTO TABLE ITAB
WHERE MATNR EQ P_MATNR.
IF SY-SUBRC EQ 0.
PERFORM GRID.
ELSE.
MESSAGE 'No Records Found' TYPE 'I'.
ENDIF.
ENDFORM. " OUTPUT
*& Form GRID
text
--> p1 text
<-- p2 text
FORM GRID .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'GET'
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FCAT
I_DEFAULT = 'X'
TABLES
T_OUTTAB = ITAB.
ENDFORM. " GRID
REGARDS,
SAKTHIVEL.VT -
How to give push button in alv report output
hi,
my requirement is that , i have to give push button in alv report output(item level) not in application toolbar, i am using reuse_alv_grid_display FM, can any body provide me sample code
regards,
siva kumarhave a look at this thread, also has a sample report at the end from Uwe Schieferstein.
[button on alv list|How to add and program a pushbutton on ALV grid line;
seems not to work try this:
How to add and program a pushbutton on ALV grid line
Edited by: Micky Oestreich on May 15, 2008 10:20 PM -
How to inactive the push button on tool bar of alv report
hi masters,
i m working on the ALV interactive report, in this report i have to do 2 different operation on 2 screen.
eg.- on first screen i have the push button for 'data' and on second screen i will have the push button for 'upload'.
in this i don't want to give the 'upload' button on first screen and same i don't want to give the 'data' button on 2nd screen.
i tried with using the 2 different gui status and 2 different PF-STATUS but its not working.
anyone can tell me how i can deactivate the 'upload' button on first screen and how i can do same for 'get' buttton on 2nd screen.
regards,
vickyHI Vicky ,
if u want an interactive ALV report , there are lot of forums already having the solution for that , but let me give u the solution anyway.
In the function module "REUSE_ALV_GRID_DISPLAY" , import parameters
I_CALLBACK_PF_STATUS_SET = 'FLIGHT'
I_CALLBACK_USER_COMMAND = 'BUTTON_CLICK'
has to be supplied to this function module . The PF status is where u hav created the two buttons , that PF status has to be given here .If the user clicks on the button then it is handled by the form routines . Inside the sub-routine based on the button the user has selected u could perform the action.
FORM FLIGHT USING RT_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'FLIGHT' EXCLUDING RT_EXTAB.
ENDFORM.
Here the "Flight" is the PF_status .
FORM BUTTON_CLICK USING UCOMM type SY-UCOMM
SELFIELD type SLIS_SELFIELD.
CASE UCOMM.
WHEN 'BUTTON!' .
write ur code for button 1.
WHEN "BUTTON"
*Write ur code for button2 .
end case.
endform.
for any queries reply back.
regards
Maybe you are looking for
-
Hp envy 4500 will not print from windows 8. Thinks it prints, but it doesn't.
Am trying to print from my Toshiba laptop running Windows 8 to my HP Envy 4500 wirelessly. Works fine from my ipad, works fine from my desktop and laptop running Windows 7. I have uninstalled and re-installed the printer driver 5 times. Printer is re
-
How do i create a table using Gifs?
Do I want to use Gifs? They do look better.... I used a Template to get started, to change my template I lose all my data... http://www.dancehamptonroads.com I figured out a simple table, so I can change random items on my web page without using a te
-
In Process Inspection for Repetitive Manufacturing
Hi All, I'm trying to perform in-process inspection for repetitive manufacturing. I have a semi finished material which has the inspection type 13 activated in the material master. Rate routing for it has also been created. Characteristics have been
-
Pages won't sync any documents correctly in iCloud
I have a macbook, an iPhone and an iPad. The Pages in macbook won't sync any documents correctly in iCloud. It shows me my documents saved in iCloud in Pages, but I can't see any documents in another devices. Also I can see my documents which are cre
-
Limitation of row and column in FR report
Hi all, i want to know what is the maximum number of row and column that we can display in FR report. and is there any possibility to increase the number of row and column in FR reports,if yes then how? Thanks in advance.