Problem in push button of abap object code
Hi,
I am working on a example ABAP Object taken from www.erpgenie.com . There is a problem code that during exceution the push button when i select the exapnd sroage locations it does not get expanded. plzz provide me guidelines by watching the code of it and tell me what will be the amendments requiered in it to display the all the storage locations when click on the push buttons.
http://docs.google.com/Doc?id=dngp529_1rqvhzxgv&hl=en
plzz go through the above link as it conatins the code in it and provide me guidelines to solve this problem.
Edited by: ricx .s on Apr 13, 2009 11:07 AM
hi,
please refer this link
Re: Setting the PF Status for ALV
https://wiki.sdn.sap.com/wiki/pages/pointstab/viewpageversion.action?pageId=37715&version=2
thanks
Similar Messages
-
Push button using abap objects
Hi experts,
can u paste any sample code for creating and handling push button on a screen using ABAP objects.
thanks in advance.
santhoshHi Santhosh,
Check the following code.
* create a custom area on the screen
DATA : gref_ver_toolbar TYPE REF TO cl_gui_toolbar,
gref_custom_container TYPE REF TO cl_gui_custom_container.
* initializing toolbar
* Creating toolbar container............................................
create object gref_custom_container
exporting
container_name = iv_ccarea " control area on screen
exceptions
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
others = 6
* creating reference to toolbar........................................
create object gref_ver_toolbar
exporting
parent = gref_custom_container
display_mode = 1
exceptions
cntl_install_error = 1
cntl_error = 2
cntb_wrong_version = 3
others = 4
* subroutine to create buttons
* Local data............................................................
data: lv_fcode type ui_func,
lv_icon type iconname,
lv_is_disabled type c,
lv_quickinfo type iconquick.
* delete node button...................................................
lv_fcode = 'DELETE'.
lv_icon = '@11@'.
lv_is_disabled = space.
lv_quickinfo = test(001).
* adding button to toolbar
call method gref_toolbar->add_button
exporting
fcode = lv_fcode
icon = lv_icon
is_disabled = lv_is_disabled
butn_type = cntb_btype_button
quickinfo = lv_quickinfo
exceptions
cntl_error = 1
cntb_btype_error = 2
cntb_error_fcode = 3
others = 4
* registering toolbar
* Local data............................................................
data: ls_event type cntl_simple_event,
lt_event type cntl_simple_events.
ls_event-eventid = cl_gui_toolbar=>m_id_function_selected.
ls_event-appl_event = space.
append ls_event to lt_event.
* Method for Registering Events for Toolbar.............................
call method gref_toolbar->set_registered_events
exporting
events = lt_event[]
exceptions
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3
others = 4.
* Setting handler for the Toolbar Buttons..............................
set handler gref_application->handle_function_selected
for gref_toolbar.
just copy paste the above code in the PBO of the screen also you need to create a method handle_function_selected which will take care of the function on the button
* Method to handle button on toolbar....................................
handle_function_selected
FOR EVENT function_selected
OF cl_gui_toolbar
IMPORTING fcode.
method handle_function_selected.
case fcode.
when 'DELETE'.
* code...
endcase.
endmethod.
Hope the above code snippet help you.
Regards,
Kinshuk -
Add custom Push button in ME21N T-Code?
Dear ABAP Experts,
I have a requirement , when the user will create PO(in Standard ME21N t-code) Delivery/Invoice tab user want to add new push button 'NEW_DATA' . When the user click on 'NEW_DATA' Push button then one new screen will appear. In that new screen(which had some input and check box fields which are field manually).
At the end ,whenever the user click on SAVE Icon then all these new screen details will save in custom (Z or Y) table.
How can i do this Issue ?
Thanks & Regards,
K.Chinna..Dear Sreekanth,
In SAPLMEGUI program you suggested me that do SHD0 and add GUIXT to add new button.
What is SHD0 and GUIXT ?
How can i do this ? please explain me step by step ?
Regards,
K.Chinna -
Problem With Push buttons on the selection screen
Hi All,
I've taken 3 push buttons on the selection-screen with the following syntax
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2,
FUNCTION KEY 3.
and have removed the F8 execute button using FM RS_SET_SELSCREEN_STATUS
Now, the problem is i'm able to perform validations using At selection screen but the code after the Start-of-selection is not being triggered.
I mean the processing is being terminated after the at selection-screen.could anyone please tell me how do i trigger some code after the event start-of-selection when a user presses a push button with sy-ucomm = FC01.Check the below sample program :
REPORT ZLPRWINSPC_TMP .
tables : mara,
sscrfields.
select-options s_matnr for mara-matnr.
initialization.
sscrfields-functxt_01 = 'Clear Selection'.
selection-screen function key 1.
AT SELECTION-SCREEN.
case sscrfields-ucomm.
when 'Clear Selection' or 'FC01'.
clear s_matnr.
refresh s_matnr.
endcase.
Thanks
Seshu -
Custom Push button on CAT2 t-code
Hi Experts,
There is a requirement in my project, where we need to add a custom push button in the application tool bar of CAT2 transaction.(This push button must be placed right next to the additional fields push button). When this push button is pressed, a pop up must be displayed with some details on fields.
There are three screen exits available for this screen.They are as follows:
CATS0005
CATS0007
CATS0012
Is it possible to add a custom push button in this standard application tool bar? If so, can you please help me in identifying the appropriate screen exit that can be used to achieve this requirement.
Also, the current system is in 4.6c version and the above requirement is to be implemented in 4.6c. In near future, there will be an upgrade to ECC 6.0 version. So it will be helpful if you can give me suggestion that is applicable in 4.6c and ECC 6.0 verison.
Thanks a lot in advance,
Regards,
DeepaDear Sreekanth,
In SAPLMEGUI program you suggested me that do SHD0 and add GUIXT to add new button.
What is SHD0 and GUIXT ?
How can i do this ? please explain me step by step ?
Regards,
K.Chinna -
Problems binding push button to NSArrayController
I've got a text field that is bound to a selection value from an NSArrayController. I'd like to create a button that populates that text field with an automatically generated value. I thought the solution was to bind the button to a simple controller that generates a new value, which is in turn bound to the text field. This works to change the displayed text in my text field, but the content doesn't get written to the array controller (because the field editor is bound to a different component?).
I then tried binding the button's target directly to the NSArrayController selection value and using a custom NSValueTransformer, but that didn't work either.
Any clue on how I can pull this off?Seems like a 2 in 1 question.
1. Creating a pushbutton and assigning a function code: I have copied a SAP help text below.
2. Displaying a message: There are several SAP standard function modules that displays/popup text. SE37 and type popup* and pulldown. One example is "POPUP_TO_INFORM".
Here is SAP verbage on pushbuttons:
Variant 10
SELECTION-SCREEN PUSHBUTTON fmt name USER-COMMAND ucom.
Addition: MODIF ID modid.
Effect
Generates a pushbutton on the selection screen. When you define the button, you also define a user command ucom (no inverted commas), up to 20 characters long, which is triggered when the user pushes the button. The rest of the syntax is the same as for SELECTION-SCREEN COMMENT
You can define the name name either statically or at runtime (see also the BEGIN OF BLOCK, COMMENT and SELECTION-SCREEN BEGIN OF SCREEN variants).
When you define a pushbutton, you must always specify a format fmt.
By specifying a Modif ID, you can assign the pushbutton to a modification group.
Notes
The best way of reacting to the pushbutton is in the AT SELECTION-SCREEN event, or, for pushbuttons in the selection include, in the PAI routine (with FNAME = '*' and MARK = SPACE) in the database program SAPDBldb. The field SSCRFIELDS-UCOMM contains the user command ucom. (You need to declare the SSCRFIELDS table using the TABLES statement).
You can create your own pushbuttons in the application toolbar using the FUNCTION KEY n addition.
Within the selectoin include : Additions FOR NODE node ,FOR TABLE dbtab und ID id.
Example
TABLES SSCRFIELDS.
SELECTION-SCREEN PUSHBUTTON /10(20) CHARLY USER-COMMAND ABCD.
INITIALIZATION.
MOVE 'My text' TO CHARLY.
AT SELECTION-SCREEN.
IF SSCRFIELDS-UCOMM = 'ABCD'.
ENDIF.
A pushbutton appears on the selection screen with the text 'My text'. In the AT SELECTION-SCREEN event, the field SSCRFIELDS-UCOMM has the contents ABCD after the button has been pushed.
Hope this helps -
Generating events such as "push buttons" in ABAP
Hi,
Is it possible to make code in ABAP that given a screen number can generate events for that screen.
For example create a Z program that given the input parameters screen name and transaction, do something like:
screen 101.pushChangeButton.?
regards
Baranyes see this code.
REPORT YH648_DIALOG_PROGRAM.
*call screen 1649.
call screen 1642.
***&SPWIZARD: DATA DECLARATION FOR TABLECONTROL 'T_CONTROL'
*&SPWIZARD: DEFINITION OF DDIC-TABLE
TABLES: SPFLI.
*&SPWIZARD: TYPE FOR THE DATA OF TABLECONTROL 'T_CONTROL'
TYPES: BEGIN OF T_T_CONTROL,
MANDT LIKE SPFLI-MANDT,
CARRID LIKE SPFLI-CARRID,
CONNID LIKE SPFLI-CONNID,
COUNTRYFR LIKE SPFLI-COUNTRYFR,
CITYFROM LIKE SPFLI-CITYFROM,
AIRPFROM LIKE SPFLI-AIRPFROM,
COUNTRYTO LIKE SPFLI-COUNTRYTO,
CITYTO LIKE SPFLI-CITYTO,
AIRPTO LIKE SPFLI-AIRPTO,
FLTIME LIKE SPFLI-FLTIME,
DEPTIME LIKE SPFLI-DEPTIME,
ARRTIME LIKE SPFLI-ARRTIME,
DISTANCE LIKE SPFLI-DISTANCE,
DISTID LIKE SPFLI-DISTID,
FLTYPE LIKE SPFLI-FLTYPE,
PERIOD LIKE SPFLI-PERIOD,
END OF T_T_CONTROL.
*&SPWIZARD: INTERNAL TABLE FOR TABLECONTROL 'T_CONTROL'
DATA: G_T_CONTROL_ITAB TYPE T_T_CONTROL OCCURS 0,
G_T_CONTROL_WA TYPE T_T_CONTROL. "work area
DATA: G_T_CONTROL_COPIED. "copy flag
*&SPWIZARD: DECLARATION OF TABLECONTROL 'T_CONTROL' ITSELF
CONTROLS: T_CONTROL TYPE TABLEVIEW USING SCREEN 1642.
*&SPWIZARD: LINES OF TABLECONTROL 'T_CONTROL'
DATA: G_T_CONTROL_LINES LIKE SY-LOOPC.
DATA: OK_CODE LIKE SY-UCOMM.
module pf_status output.
set pf-status 'STATUS_1642'.
endmodule.
*&SPWIZARD: OUTPUT MODULE FOR TC 'T_CONTROL'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: COPY DDIC-TABLE TO ITAB
MODULE T_CONTROL_INIT OUTPUT.
IF G_T_CONTROL_COPIED IS INITIAL.
*&SPWIZARD: COPY DDIC-TABLE 'SPFLI'
*&SPWIZARD: INTO INTERNAL TABLE 'g_T_CONTROL_itab'
SELECT * FROM SPFLI
INTO CORRESPONDING FIELDS
OF TABLE G_T_CONTROL_ITAB.
G_T_CONTROL_COPIED = 'X'.
REFRESH CONTROL 'T_CONTROL' FROM SCREEN '1642'.
ENDIF.
ENDMODULE.
*&SPWIZARD: OUTPUT MODULE FOR TC 'T_CONTROL'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: MOVE ITAB TO DYNPRO
MODULE T_CONTROL_MOVE OUTPUT.
MOVE-CORRESPONDING G_T_CONTROL_WA TO SPFLI.
ENDMODULE.
*&SPWIZARD: OUTPUT MODULE FOR TC 'T_CONTROL'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: GET LINES OF TABLECONTROL
MODULE T_CONTROL_GET_LINES OUTPUT.
G_T_CONTROL_LINES = SY-LOOPC.
ENDMODULE.
*&SPWIZARD: INPUT MODULE FOR TC 'T_CONTROL'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: PROCESS USER COMMAND
MODULE T_CONTROL_USER_COMMAND INPUT.
OK_CODE = SY-UCOMM.
PERFORM USER_OK_TC USING 'T_CONTROL'
'G_T_CONTROL_ITAB'
'FLAG'
CHANGING OK_CODE.
SY-UCOMM = OK_CODE.
ENDMODULE.
module back_exit.
leave program.
endmodule.
INCLUDE TABLECONTROL_FORMS *
*& Form USER_OK_TC *
FORM USER_OK_TC USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME
P_MARK_NAME
CHANGING P_OK LIKE SY-UCOMM.
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA: L_OK TYPE SY-UCOMM,
L_OFFSET TYPE I.
&SPWIZARD: END OF LOCAL DATA----
*&SPWIZARD: Table control specific operations *
*&SPWIZARD: evaluate TC name and operations *
SEARCH P_OK FOR P_TC_NAME.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
L_OFFSET = STRLEN( P_TC_NAME ) + 1.
L_OK = P_OK+L_OFFSET.
*&SPWIZARD: execute general and TC specific operations *
CASE L_OK.
WHEN 'INSR'. "insert row
PERFORM FCODE_INSERT_ROW USING P_TC_NAME
P_TABLE_NAME.
CLEAR P_OK.
WHEN 'DELE'. "delete row
PERFORM FCODE_DELETE_ROW USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME.
CLEAR P_OK.
WHEN 'P--' OR "top of list
'P-' OR "previous page
'P+' OR "next page
'P++'. "bottom of list
PERFORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
L_OK.
CLEAR P_OK.
WHEN 'L--'. "total left
PERFORM FCODE_TOTAL_LEFT USING P_TC_NAME.
WHEN 'L-'. "column left
PERFORM FCODE_COLUMN_LEFT USING P_TC_NAME.
WHEN 'R+'. "column right
PERFORM FCODE_COLUMN_RIGHT USING P_TC_NAME.
WHEN 'R++'. "total right
PERFORM FCODE_TOTAL_RIGHT USING P_TC_NAME.
WHEN 'MARK'. "mark all filled lines
PERFORM FCODE_TC_MARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
CLEAR P_OK.
WHEN 'DMRK'. "demark all filled lines
PERFORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
CLEAR P_OK.
WHEN 'SASCEND' OR
'SDESCEND'. "sort column
PERFORM FCODE_SORT_TC USING P_TC_NAME
l_ok.
ENDCASE.
ENDFORM. " USER_OK_TC
*& Form FCODE_INSERT_ROW *
FORM fcode_insert_row
USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_LINES_NAME LIKE FELD-NAME.
DATA L_SELLINE LIKE SY-STEPL.
DATA L_LASTLINE TYPE I.
DATA L_LINE TYPE I.
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE CXTAB_CONTROL.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <LINES> TYPE I.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: get looplines of TableControl *
CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_LINES_NAME.
ASSIGN (L_LINES_NAME) TO <LINES>.
*&SPWIZARD: get current line *
GET CURSOR LINE L_SELLINE.
IF SY-SUBRC <> 0. " append line to table
L_SELLINE = <TC>-LINES + 1.
*&SPWIZARD: set top line *
IF L_SELLINE > <LINES>.
<TC>-TOP_LINE = L_SELLINE - <LINES> + 1 .
ELSE.
<TC>-TOP_LINE = 1.
ENDIF.
ELSE. " insert line into table
L_SELLINE = <TC>-TOP_LINE + L_SELLINE - 1.
L_LASTLINE = <TC>-TOP_LINE + <LINES> - 1.
ENDIF.
*&SPWIZARD: set new cursor line *
L_LINE = L_SELLINE - <TC>-TOP_LINE + 1.
*&SPWIZARD: insert initial line *
INSERT INITIAL LINE INTO <TABLE> INDEX L_SELLINE.
<TC>-LINES = <TC>-LINES + 1.
*&SPWIZARD: set cursor *
SET CURSOR LINE L_LINE.
ENDFORM. " FCODE_INSERT_ROW
*& Form FCODE_DELETE_ROW *
FORM fcode_delete_row
USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME
P_MARK_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: delete marked lines *
DESCRIBE TABLE <TABLE> LINES <TC>-LINES.
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
IF <MARK_FIELD> = 'X'.
DELETE <TABLE> INDEX SYST-TABIX.
IF SY-SUBRC = 0.
<TC>-LINES = <TC>-LINES - 1.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM. " FCODE_DELETE_ROW
*& Form COMPUTE_SCROLLING_IN_TC
text
-->P_TC_NAME name of tablecontrol
-->P_OK ok code
FORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
P_OK.
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TC_NEW_TOP_LINE TYPE I.
DATA L_TC_NAME LIKE FELD-NAME.
DATA L_TC_LINES_NAME LIKE FELD-NAME.
DATA L_TC_FIELD_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <LINES> TYPE I.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get looplines of TableControl *
CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_TC_LINES_NAME.
ASSIGN (L_TC_LINES_NAME) TO <LINES>.
*&SPWIZARD: is no line filled? *
IF <TC>-LINES = 0.
*&SPWIZARD: yes, ... *
L_TC_NEW_TOP_LINE = 1.
ELSE.
*&SPWIZARD: no, ... *
CALL FUNCTION 'SCROLLING_IN_TABLE'
EXPORTING
ENTRY_ACT = <TC>-TOP_LINE
ENTRY_FROM = 1
ENTRY_TO = <TC>-LINES
LAST_PAGE_FULL = 'X'
LOOPS = <LINES>
OK_CODE = P_OK
OVERLAPPING = 'X'
IMPORTING
ENTRY_NEW = L_TC_NEW_TOP_LINE
EXCEPTIONS
NO_ENTRY_OR_PAGE_ACT = 01
NO_ENTRY_TO = 02
NO_OK_CODE_OR_PAGE_GO = 03
OTHERS = 0.
ENDIF.
*&SPWIZARD: get actual tc and column *
GET CURSOR FIELD L_TC_FIELD_NAME
AREA L_TC_NAME.
IF SYST-SUBRC = 0.
IF L_TC_NAME = P_TC_NAME.
*&SPWIZARD: et actual column *
SET CURSOR FIELD L_TC_FIELD_NAME LINE 1.
ENDIF.
ENDIF.
*&SPWIZARD: set the new top line *
<TC>-TOP_LINE = L_TC_NEW_TOP_LINE.
ENDFORM. " COMPUTE_SCROLLING_IN_TC
*& Form FCODE_TC_MARK_LINES
marks all TableControl lines
-->P_TC_NAME name of tablecontrol
FORM FCODE_TC_MARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME.
&SPWIZARD: EGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: mark all filled lines *
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
<MARK_FIELD> = 'X'.
ENDLOOP.
ENDFORM. "fcode_tc_mark_lines
*& Form FCODE_TC_DEMARK_LINES
demarks all TableControl lines
-->P_TC_NAME name of tablecontrol
FORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: demark all filled lines *
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
<MARK_FIELD> = SPACE.
ENDLOOP.
ENDFORM. "fcode_tc_mark_lines
see at pf-status.
Message was edited by:
sunil kumar -
Push Button Notification Problems
OK, so I had an iPod touch 3, and there were TWO push button notifications I got:
1) Facebook
2) ThePensblog
So anytime I got a message from somebody on facebook or the pensblog had a new posting, I got a badge and a banner on my home or lock screen.
Then, I got and upgraded to the iOS5 and iPhone 4S. So I have an iPhone 4s and iPod touch 3. Here is the problem, my push buttons work "sporodically".
Some days I might get alerts, some days I just get badges.
I want it like it was before, where everytime thePensblog updates, I get a banner on screen, and it stays until I unlock or scroll past it, and I get this updates "stacked" (that is, if it updates twice I keep both updates on my screen until I unlock and move past).
I had this before, how come I don't now? Any solutions?And yes, I am connected to wifi, yes I did go to the notication center, where for both apps it says I have banners and badges.
So I am confused on why this is a problem! Anybody else have this? -
Error during creation of push button on selection screen
Hi,
I wanted to create push buttons on selection screen,
Code:
DATA DB1 TYPE VBAP-WERKS.
DATA DB2 TYPE MARA-MATNR.
SELECT-OPTIONS : SPLANT FOR DB1,
SCLASS FOR DB2.
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2,
FUNCTION KEY 3.
INITIALIZATION.
DATA FUNCTXT TYPE SMP_DYNTXT.
CLEAR FUNCTXT.
DATA: FUNCTXT_01 TYPE SSCRFIELDS-FUNCTXT_01.
FUNCTXT-TEXT = 'DEL'.
SSCRFIELDS-FUNCTXT_01 = FUNCTXT.
CLEAR FUNCTXT.
FUNCTXT-TEXT = 'EDIT'.
SSCRFIELDS-FUNCTXT_02 = FUNCTXT.
CLEAR FUNCTXT.
FUNCTXT-TEXT = 'CRE'.
SSCRFIELDS-FUNCTXT_03 = FUNCTXT.
But during activating, I'm getting the error as : Field "SSCRFIELDS-FUNCTXT_01" is unknown. It is neither in one of the specified tables nor defined by "DATA" statement.
Please suggest solutions to overcome this error.
Regards
Darshan MSHi,
trans. for examples of selection screen : BIBS
regards
Fred -
Double Click Navigation with ABAP Source Codes of Reports On ABAP Workbench
Hi,
i have a problem about double click on abap source code on abap workbench. double clicking doesn't work after first double clicked on abap codes. that is going to row of first double clicking.
did anyone have the same problem? can somebody help me please?
thanks.Nurullah RÜSTEM wrote:
> isn't there any radical solution to solve this problem?
> these are very kill-time
You feel
Source Code Editor --> Utilities --> Update Navigation Index
is not radical & kill-time.
Can you please define "radical" & "kill-time" ?
BR,
Suhas -
Displaying internal image on a push button
Hi,
I am running oracle forms 11.1.2.0.0.
I create a push button and under object property make it an iconic yes
and under iconic file name I have "java/oracle/forms/icons/save.gif"
During run-time it displays a image but it is not of save, it is an image of badimage.gif
Even if I change save.gif to print.gif it is same result.
What am I missing?
Thanks
MunishMunish wrote:
Hi,
I am running oracle forms 11.1.2.0.0.
I create a push button and under object property make it an iconic yes
and under iconic file name I have "java/oracle/forms/icons/save.gif"
During run-time it displays a image but it is not of save, it is an image of badimage.gif
Even if I change save.gif to print.gif it is same result.
What am I missing?
Hi Munish
Do you read {thread:id=2513867} -
How to use selection buttons in an ALV created without abap objects?
Hi, I use an alv created without ABAP Objects to show some information. Can I introduce inside the alv, the top buttons to select all rows / none row? And the second question, how may I introduce lateral buttons in the ALV to select indidividual rows?
Thanks!HI
i think you use REUSE_ALV_LIST_DISPLAY or REUSE_ALV_GRID_DISPLAY FMs.
Try to calling the function in this way
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE = ' '
i_callback_program = 'YOURREPORT'
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMAND'
* I_STRUCTURE_NAME =
is_layout = ls_layout
it_fieldcat = fieldcat
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
* IT_SORT =
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
i_save = 'A'
is_variant = gt_variant
it_events = event_tab
* 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
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = tb_output
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " LISTA
where
'SET_PF_STATUS'
'USER_COMAND'
are two form like this.
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD'. " EXCLUDING rt_extab.
ENDFORM. " SET_PF_STATUS
FORM user_comand USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&CPR'.
WHEN 'YOUR CODE FUNCTION'
endcase.
I hope it can help you.
Bye
enzo -
Need to fetch function code value of push button into BUS
He expert,
I have created one custom screen in standard transaction IQ02.where I am populating some values into screen and one push button is there.I want to trigger the workflow only when user press this push button.I am using BUS DEVICE for that.
Is it possible to fetch function code value of push button into the BUS object by creating custom attributes.So i can put the function code value as a condition before triggering workflow.or is there any other way to to implement the above functionality.
Please suggest.Hi,
I'd say you need to delegate the std DEVICE object to your own ZDEVICE, where you define a custom event. Then generate the DEVICE.CUSTOMEVENT event when the user clicks on your pushbutton (eg. with SAP_WAPI... function module).
In your workflow remove the standard triggering event and use your custom event instead.
Cheers,
Patrick -
Hi All,
I have a required field in module pool programming. When i press Exit push button message displays "Fill in all required entry fields".
I want to exit from program without fill any field.
Is it possible. plz help meHi,
In the PF-Status, keep the Functional Type for the EXIT button as E.
And code for the same button in the module:-
PROCESS AFTER INPUT.
MODULE exit AT EXIT COMMAND.
MODULE exit.
CASE sy-ucomm.
WHEN 'EXIT'.
LEAVE PROGRAM. "<- to leave the transaction.
ENDCASE.
ENDMODULE.
Hope this helps you.
Regards,
Tarun -
MiniSap MBS "Abap Objects" problem HELP
Hi All,
I just bought ABAP objects book MiniSap MBS released in 2001, and managed to istall with no problems.
My problem is that in the object navigator , i can not see the object selector.
Has anyone been through this problem and how to fix it??
I am talking about SAP MBS 4.6 Not the AS web 6.2.Check this thread:
Object Navigator
Peter
Maybe you are looking for
-
Here is my dilemma. I am an archivist at an arts organization and we are in the process of digitizing many of our materials to post them on the web and make them available to internet users. One of the principle components of our collection is a larg
-
New Contact groups not appearing in iTunes
I just got my iPhone 3G and attempted to set up syncing with iTunes (v7.7). I added a new group in Address Book, put some contacts in it, and then went to iTunes. I wanted to sync only certain groups from Address Book, so I turned that option on, but
-
New macbook pro, unsupported file error
Hi there, I've just got my new Macbook Pro, have installed Aperture2 and performed a software update. I get the 'unsupported file format' message when I import my RAW files. I can see the thumbnail, but no preview is rendered. I have a Canon 5D MkII
-
GLPCT-GLPCA, GLPCA-BFOD_A/BFOK_A table relations
Hi, How are these tables related to one another? What are the fields that I can match? 1. GLPCT and GLPCA 2. GLPCA and BFOD_A or BFOK_A. Thanks.
-
when i click on a new tab it want it to go to my home page not "new tab". Under tabs in options there is no option to set a new tab to open my home page.