GUI status
i have used EXECUTE in gui status for screen 500. so wats the code am suppose to write to execute the code upon cliking the execute icon?
hi..
chk the SY-UCOMM eq 'SAVE' like that...
write the code..
<b>ex : IF SY-UCOMM EQ 'EXIT'.
LEAVE PROGRAM
ENDIF.</b>
With Rgds,
S.Barani
Similar Messages
-
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 . -
How to put separator lines in menu items in a gui status ?
Hi,
I have created gui status for my z transaction
I need the separator lines in the menu items like it is seen in std transactions
For example, in any screen , in the Help menu, we can see the following.
Application Help
SAP Library
Glossary
(line)
Release notes
(line)
SAP Service Marketplace
could you please help me how to put the lines ?
thanksHi,
Goto Your GUI status.click on your MENU bar.
under the menu bar you will have your own menu items.
where ever you want separator line do the following way.
you will have 2 columns under menu bar
1) code
2) text.
under code dont put anything.
but under text column you put dashes and enter or select right click there and choose separator line.
you will get separator line.
activate and run the ztcode.you will get .
code text
Application Help
SAP Library
Glossary
Release notes
SAP Service Marketplace
Thanks
Parvathi -
How to translate function codes from GUI-status into other language ?
Hello experts,
I've a programm called mrs - multi resource scheduling.
This programm has texts in english and german.
Now I want to translate the text also in italian.
When I opne the programm in se80, in path GUI-status
there are the ui-elements (Function codes).
When I open them in english, I get the texts in english, when
I open them in german , I get the texts in german.
Openeing in italian shows me the english texts.
Changing them into italian I get message:
You can only maintain the object in modification
lang. German (DE) in this system
If I proceed in translating the german text in italian, I get italian texts instead of german.
Some ideas ?
Thanks GerdUse [SE63|https://www.sdn.sap.com/irj/scn/advancedsearch?query=se63&cat=sdn_all].([Translating Objects Directly|http://help.sap.com/saphelp_nw04/Helpdata/EN/41/71601b3ab0f34a8e00aa01338c68f3/content.htm]) else work on a system where italian language is installed.
Regards -
Add Button to GUI STATUS Application toolbar
Hi,
I have to add a button in the application toolbar of a gui status. I have done that many times before, but I never got into trouble like this time....
When I open the Gui status and the tree for the application toolbar, I can see already set buttons. When I now click on change (a modification warning comes) and press the plus-icon, it is possible to enter a new item. But everything I´m typing, I get the message Function code XXXX has not been assigned to a function key. I have never got this before....
When I now go to SE41 and enter a new function key, I can´t use it either afterwards as a button in the application toolbar.
In the tree of the function keys, I can´t change anything...
What can I do here? The program name is SAPMZLCG, so it has been modified sometimes. But how can I change the GUI STATUS now to add a new button?
Thank you!You need to goto the application toolbar and the add your text to the items and click below the text you will get one popup which will ask for static text and dynamic text. select statictext and then add all the information like text name and if you want to add an icon you can do it aswell. the there will be another popup for fuction attributes where you will be able to find some options loke fuction types and reaction need to select all that and then click on the ok button and save check and activate the same and after that activate and check whether the button is visible or not. once the button is visible then you need to check for the ok_code and sy_ucomm and then insert the fuctionality of the button.
I hope this might solve your problem. -
Gui status (AT USER-COMMAND) trigger at first
Hello all,
I wrote a basic list shown below.
In it , AT USER-COMMAND and AT LINE-SELECTION events are used all.
when i double click on line in the list, I think the at line-selection should be trigger at first. but in fact ,the AT USER-COMMAND trigger.
and the sy-ucomm get the first button value in the GUI-STATUS BAR(There's only one button on it).
how can i solve it .
any answers should be appreciated.
START-OF-SELECTION.
SET PF-STATUS 'ZSATMM24F1'.
write : \ 'aaaaaaaaaaaa'
write : \ 'aaaaaaaaaaaa'
write : \ 'aaaaaaaaaaaa'
write : \ 'aaaaaaaaaaaa'
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'TO_a'.
PERFORM to_a.
ENDCASE.
AT LINE-SELECTION.
write : 'test'.
best regards,
daniel.Please make sure to add the fcode PICK to the F2 function code in your gui status and try again.
Regards,
Rich Heilman -
Any ideas for GUI status manipulation?
Hi All,
I have a requirement with me, which I'm not able to figure out how to achieve. Here goes:
There's a transaction in ERP system (CO11N) which was originally not designed (it seems) to be used with CALL TRANSACTION kind of way. But now a requirement is to call it that way... I guess I can do that anyway by passing the SET PARAMETER for the key input fields...
But there's also another requirement that when calling the transaction this way, make sure two of the application toolbar buttons should be disabled. And they should be enabled when the transaction is called directly from the command bar (as /nCO11N).
I don't have any set/get parameters to check for and disable/enable the GUI status Fcodes with it...
Can someone please give me some pointers as to how this can be achieved?
Thanks in advance!
Mithun.Hello Jonathan,
Thanks a lot for the quick tip.
I thought of this technique as well... But then figured that using this 'export to memory' technique is not a very recommended way...
Thus I want to keep this way as a last resort for the time being... But would like to know if there is any better way to achieve the same effect without using the shared memory sort of technique. -
OSS Note 1401249 - Issue in GUI status
Hi ,
As per 1401249 Note instructions, i need to add a new push button 'Display Income Levy Data', in the standard report HIECILC0 .
In SE41 , I am giving the program name HIECILC0 and Status 'ALV', when I click on Change button, I see 'Modify Status ALV in program HIECILC0' , where as in the Note instructions screen shot it is given as 'Maintain Status ALV in program HIECILC0'.
Have anyone faced this issue before, why is it 'Modify Status ALV in program HIECILC0' instead of 'Maintain Status ALV in program HIECILC0'.
I am not able follow the same steps given in the Note instruction because of this issue.
Please let me know how to proceed with this.Hi ,
The below thread resolved the issue.
Can't modify a gui Status
In SE41 Menu path: Edit -> Modification Operations -> Swich off assistant
Thanks -
Upload / download gui-status/dynpro when function group
Hi All,
I'm coding a program where I can download and upload reports and module pools but I tried to do the same with function groups and I found It is different to upload dynpro and gui staus when the objet to generate is a function group.
Could anyone help me a little in order to complete and finish this issue?
Below is shown the routines I coding in order to achive that:
For gui-status uploading I use:
CALL FUNCTION 'RS_CUA_INTERNAL_WRITE'
EXPORTING
program = prog
language = sy-langu
tr_key = tr_key
adm = adm4
TABLES
sta = sta4
fun = fun4
men = men4
mtx = mtx4
act = act4
but = but4
pfk = pfk4
set = set4
doc = doc4
tit = tit4
biv = biv46c
EXCEPTIONS
not_found = 1
OTHERS = 2.
For screen uploading I use:
GENERATE DYNPRO gs_d020s gt_d021s gt_d022s gt_d023s ID dynp_id
MESSAGE mess LINE line WORD word.
IF sy-subrc = 0.
EXPORT DYNPRO gs_d020s gt_d021s gt_d022s gt_d023s ID dynp_id.
ENDIF.
But both options don't work when uploading function groups
Regards...
Edited by: Rob Burbank on Jun 1, 2011 11:58 AM
Edited by: Kenneth Castañeda on Jun 2, 2011 7:31 PM
Edited by: Kenneth Castañeda on Jun 2, 2011 7:34 PMHi Kenneth,
sorry, it is really not obvious that [there is a link behind zsaplink|http://code.google.com/p/saplink/].
From the link:
"SAPlink is an open source project that aims to make it easier to share ABAP developments between programmers. It provides the ability to easily distribute and package custom objects."
This software allows you to up- and download all kinds of SAP objects. It is distributed under the GNU General Public License.
I think this is exactly what you are looking for - or I did not understand your question.
Regards,
Clemens -
hi folks ,
i have created the GUI status for the program .. when i go on the out put screen i am not able to go back or cancel or exit , though i have created the GUI status and activated it as well .
my program is designed to display the user action on screen and it displays the value in the text field which can only accept output no inputs .
plz advice .
Thanks,
Abhishek .Hello,
Make sure that the function codes in the GUI status are written in capital letters only.Similarly in the PAI of the screen,in the case statement,the function codes have to be written in capital letters.I hope you have written the user-commands as the functionality has to be coded by the developer when he makes the GUI.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
case ok_code.
when 'BACK'.
leave to screen 100.
when 'EXIT'.
leave to screen 0.
when 'SAVE'.
....logic
ENDCASE.
endmodule.
Regards,
Beejal
**Reward if this helps -
Problem in GUI status of ALV Grid
Hello All Experts,
I have a following issue.
Am displaying a report using REUSE_ALV_GRID_DISPLAY. I have copied the GUI status from standard GUI STANDARD_FULLSCREEN. Now when i dispaly the report i get select all ICON just before my first column(Marked in red below). i do not need this icon, i have checked in my GUI status also this icon does not exist. can you please help me how to remove this icon.
This is how i have declared the field catalog for my first column.
fieldcatalog-fieldname = text-013.
fieldcatalog-seltext_m = text-014.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 3.
fieldcatalog-emphasize = gc_x.
fieldcatalog-key = gc_x.
fieldcatalog-checkbox = gc_x.
fieldcatalog-edit = gc_x.
APPEND fieldcatalog TO fieldcatalog.
CLEAR fieldcatalog.
Am really thankful to your resposes.
Regards,
Satishi tested with
REUSE_ALV_GRID_DISPLAY and it works fine as you want
report ztestalv.
type-pools:
slis.
data:
i_usr02 type table of usr02,
afield type slis_fieldcat_alv,
sp_group type slis_sp_group_alv,
t_listheader type slis_t_listheader with header line,
t_layout type slis_layout_alv,
t_fieldcat type slis_t_fieldcat_alv,
t_spec_groups type slis_t_sp_group_alv,
event type slis_alv_event,
t_events type slis_t_event,
g_variant like disvariant,
gx_variant like disvariant,
g_exit(1) type c,
g_save(1) type c,
g_repid like sy-repid,
msgtyp like sy-msgty,
lt_dynpread like dynpread occurs 1 with header line.
start-of-selection.
select * from usr02 into table i_usr02
up to 200 rows.
end-of-selection.
t_layout-detail_initial_lines = 'X'.
t_layout-detail_popup = 'X'.
t_layout-f2code = 'PIC1'.
t_layout-get_selinfos = 'X'.
t_layout-group_change_edit = 'X'.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'USR02'
changing
ct_fieldcat = t_fieldcat
exceptions
others = 4.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = 'ZTESTALV'
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USR_CMD'
i_structure_name = 'USR02'
is_layout = t_layout
it_fieldcat = t_fieldcat
it_special_groups = t_spec_groups
i_default = 'X'
i_save = g_save
is_variant = g_variant
it_events = t_events
tables
t_outtab = i_usr02
exceptions
program_error = 1
others = 2.
make sure your field ls_layout-box_fieldname is blank, as you using the checkbox -
Hello everyone.
Is there a way to change the GUI status guy status of a logical database?
thank you in advance.Hi Ebaristo,
REPORT demo_sel_screen_status .
DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.
AT SELECTION-SCREEN OUTPUT.
APPEND: 'PRIN' TO itab,
'SPOS' TO itab.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.
In this example program, the two functions Print and Save as Variant are disabled. You can find the function codes of the default GUI status in the field GUI Status which you can display by choosing System u2192 Status.
[http://help.sap.com/abapdocu_702/en/abenselection_screen_overview.htm] -
How to copy GUI status to new program
Hi all,
In report A, i have GUI status with lot of menu bar activities. i need to create one more report B, with the same GUI status. Is there any option to copy/download from Report A to paste/upload to the new report B.
Note: Both the Reports are in different SAP Systems.
Please suggest.
Thanks.
Regards,
Venkat
Edited by: VENKATA PRASAD BATHINAPATLA on Sep 19, 2011 8:39 AMHi,
You can do this:
go to Transaction se90. Drill down to Program library -> program sub objects -> Double click on GUI Status.
In the program name enter Your PROGRAM NAME and press execute. now select check box beside <Your GUI STATUS which you want to copy>. and in the menu click on GUI Status -> Copy.
Now copy it to ur B report pf status.
or
goto se80 select Program enter your program name then under GUI Status right click on your gui ststus which you want to copy and press copy and enter your B Report name.,
hope this helps u.,
Thanks & Regards,
Kiran -
GUI status items are not displayed
Hi all,
Some parts of gui status are not displayed but some of them are displayed.
What is the problem?
Thanks.
deniz.Hi snehi chouhan,
I have created a program and two gui statuses for this.
One of them is set at first display of report but not all items.
Thanks. -
How can i make a vertical line in Application Toolbar when creat GUI STATUS
I see some standard UI have a separator vertical line in the GUI STATUS--Application Toolbar?
Could you tell me how can i creat it in my customer GUI STATUS?
TKS a million~~Hi.
Please try.
1)Change mode your GUI-STATUS.
2)menu -> Edit -> Insert -> Separator line. -
How to change the Short text of a GUI Status .
Hi Guys ,
Can any one guide me on how to change the short text of an already existing GUI Status .
I have already tried doing these :Opened the GUI Status in change mode and changed the short texts of the Application tool bar ,
Menu Bar ,
Function Keys ,
thinking that this will update in the Short text .. but that didnt happen ...
Below is what I need ...
Requirement :
GUI Status : Status_001 .
Short Text : New GUI Status .
Change the Short Text to " Changed GUI Status ' .
Regards,
RanjitaHi Ranjita,
Do this...
go to SE80
Open the program.. open node GUI Status
Double click on the status you want to change
go to menu GOTO>ATTRIBUTES>STATUS
click on continue or simply enter
Here change the short text and continue or enter
activate it
Hope this helps..
Regards,
Kinshuk
Maybe you are looking for
-
I have unchecked "show time in month view" in iCal preferences. Times do not show in the month "on-line" view but they do in print "Preview" and the printed copy for my monthly calendars. This is new. Prior to putting up the latest OS X 10.4.5 and iC
-
I just updated to IOS 5, when I did this my Songs were erased. I thought sinced i "Backed - Up" my ipod that my songs would return after the update. WHere are my songs? Whats the purpose of a back-up if i cant get my tunes back? I have about 2000 son
-
Hi all, Presently iam developing an ALV report related to MM. I want a logic for calculating previous six months consumed quantity(material).The date for calculating g the quantity is sy-datum.the fields to calculate the qty. are given below. Table-
-
Peace! I'm developing servlets that invoke ejb object under WLE. I include in classpath for starting WLS 4 jar in udataobj of WLE. When I try to start server there are problem and it doesn't start. What do I include to run a client of EJB? PS: I thin
-
Blu-ray Compatibility Testing: Not Encouraging
Today, I decided to try playing a disc that I created with Encore, a Blu-ray disc that my Sony BDP-S301 reads just fine, at a local Sears consumer electronics showroom. They had three Blu-ray disc players: Sony BDP-S300 Samsung Sharp Aquos I tried th