Push Button Problem in Custom screen
Hi All..
Hi All..
In my custom screen, i have 2 (A1, A2) input boxes with F4 option and a Push Button..
When i select the data in these input boxes, i will click Push Button (COPY) to transfer the data from these (A1, A2) to other two input Boxes (B1, B2)..
But data are displaying in (B1, B2), if and only if i click the Push Button 2 times..
How to make the code to display those data from A1-A2 to B1-B2 by Single click..???
In PAI, I have coded the lines as follow..
Still i need to click 2 times to get the data displayed in B1,B2..
****PAI*****
when 'COPY'.
select bezei from tka01 into (it_sap-name) where kokrs = A1.
endselect.
select msehi from tka03 into (it_sap-unit_of_meas)
where kokrs = A2 and STAGR = A1.
endselect.
B1 = it_sap-name.
B2 = it_sap-unit_of_meas.
Similar Messages
-
How to suppress the Push button in a custom screen
Hi,
Is there any procedure to suppress a Push button in a custom Screen based on a condition.
For eg: If Material is not initial.
then display the Continue button.
else not.
endif.Hi,
If the push button is not on the application toolbar, then follow the below procedure...
1. Assign the MODIF-ID for the button in the screen. Assume that MODIF-ID for the button is SC1.
2. In the PBO of the screen add the below code...
IF not MATERIAL is INITIAL.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SC1'
SCREEN-OUTPUT = 1.
SCREEN-ACTIVE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SC1'
SCREEN-OUTPUT = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Regards,
Vara -
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 -
Customer Push Button on Process Bid screen
Hi Expert.
I need to add a new customer Push Button on "Proces Bid screen" .There are any BADI or user exit which
I can use for addition the new button.
waiting your suggestion.
Sayan.hi,
Please let me know if you have a solution for this thread.
Regards,
Neelima -
Prob with Push Buttons in the selection screen
Hi All,
1) I have 6 push buttons in the selection screen(Normal Report), 3 in a first row(P11, P12, P13) and 3 in the second row(P21, P22, P23). If I press one push button(for ex P11) the other two Push buttons(P12 P13) should grey out(Inactive mode). If I press P22, P21 & P23 shoul grey out.
2) I need color change for the Inactive push buttons.
Thanks
KrisCan you please post your selection screen definition? I don't understand what you want to achieve by greying out the other pushbuttons when one is pressed.
Does that mean pushing one button will do nothing except greying out the buttons?
Typically when you push a button, you want to continue to execute the required processing for that button not just grey out other pushbuttons and stay in the selection screen.
Anyway, you can achieve that using the following logic. I am not sure how and if you can achieve the color change.
TABLES: sscrfields.
DATA: v_button_pushed(5).
SELECTION-SCREEN PUSHBUTTON /1(10) p11 USER-COMMAND push1.
SELECTION-SCREEN PUSHBUTTON 12(10) p12 USER-COMMAND push2.
SELECTION-SCREEN PUSHBUTTON 23(10) p13 USER-COMMAND push3.
SELECTION-SCREEN PUSHBUTTON /1(10) p21 USER-COMMAND push4.
SELECTION-SCREEN PUSHBUTTON 12(10) p22 USER-COMMAND push5.
SELECTION-SCREEN PUSHBUTTON 23(10) p23 USER-COMMAND push6.
INITIALIZATION.
p11 = 'Push11'.
p12 = 'Push12'.
p13 = 'Push13'.
p21 = 'Push21'.
p22 = 'Push22'.
p23 = 'Push23'.
AT SELECTION-SCREEN OUTPUT.
CASE v_button_pushed.
WHEN 'PUSH1'.
LOOP AT SCREEN.
CHECK screen-name <> 'P11'.
screen-input = 0.
MODIFY SCREEN.
ENDLOOP.
WHEN 'PUSH2'.
WHEN 'PUSH3'.
WHEN 'PUSH4'.
WHEN 'PUSH5'.
WHEN 'PUSH6'.
WHEN OTHERS.
ENDCASE.
AT SELECTION-SCREEN.
v_button_pushed = sscrfields-ucomm. -
How to add push buttons in out put screen of ALV
Hai,
How to add push buttons in out put screen of ALV (tool bar) with out using classes or methods .I want to know using normal ALV .
Thanks in advance .
kiranHi Kiran,
Here is the sample code.If you are using reuse_alv_grid_display, no need to write code in PBO.
Just double click the 'TEST' which is written in code.Then create a GUI Status.In Application toolbar,type the name of the button you want(say BUTTON).Then double click that name.Then enter the ICON name and function text.Activate it.This itself will work.If you want all the functionalities,then try to do as Vinod told.
TYPE-POOLS: slis.
DATA: i_qmel LIKE qmel OCCURS 0.
data v_repid type repid.
SELECT * FROM qmel INTO TABLE i_qmel.
v_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
i_structure_name = 'QMEL'
TABLES
t_outtab = i_qmel
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 set_pf_status using rt_extab type slis_t_extab.
set pf-status '<b>TEST</b>'.
endform.
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
data lv_ucomm type sy-ucomm.
lv_ucomm
= sy-ucomm.
CASE lv_ucomm.
WHEN 'BUTTON'. "Double Click line Item
call transaction 'MM01'.
endcase.
endform. -
Hi Friends,
We need a pushbutton which when pressed should display a simple message. So we tried using write statement, message statement, SUBMIT ZTEST3 (where ZTEST3 is another program having a simple write statement) AND RETURN and also
IF sscrfields-UCOMM = 'FCODE'.
set screen 9000.
endif.
module STATUS_9000 output.
....some more code to display the message
end module.
But NONE of these work. THis means when the push button is pressed, the screen does not change.
Any help or input is greatly appreciated.
ThanksSeems 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 -
Push Buttons in the custom Container
Hi
I have created one container using cl_gui_custom_container.
Now I have splitted the container into two parts as left and right using cl_gui_splitter_container.
Is there any way to create push buttons in the left container.
Regards
VijayPushbutton is an example of classic control while custom container is an example of GUI control . You can't mix controls of first type with the latter meaning you can embed classic control in GUI container. You can have such control only outside any container (on screen canvas). This is very common that you have docking container on the left and classic controls on the right side of the screen (not container)
To be able to have a button inside container, you will have to use cl_gui_toolbar class adding your options there and handling them as normal OO event. This way you only combine GUI controls (toolbar + container). Otherwise it is not possible.
Regards
Marcin -
Push Button Problem in IC Web Client
Hi Everyone,
I have got an issue here. Iam working on IC Webclient.
I have got a BSP page wherein I have an input field for the Printer Name. I also have a dropdown list box for that. I have a push button and after clicking on which I want some database updates to be done.
But whats happening is once I take the Printer value from the dropdown list box only, the database updates are being made.
My aim is after I take the value from the dropdown and then click on the push button, thn only, the database updates needs to be done.
Please help me out.
Its too urgent.
Thanks an Regards,
Bhargava Kavuri.Hi Gaurav,
I gor confused with CRM 5.1/5.2 and CRM 2007 profile. You are on CRM 5.0 then you do following things
1) goto tx ppoma_crm
2) on top left under search screen, search for Positions " Sales" and Marketing and Service one by one.
Now assign yourself to each of these positions. ( You might find more than one psoition when you search by above criteria. Ideally you should be able to see position names soemthing like Sales Representative, Marketing Represetative etc . I am not sure what exactly would be the name at your system because ppl might chnage the description of positions.
Now launch UI again and you must be able to see all modules.
Let me know if u still have any issues -
Push button in the selection screen
Hi folks,
I need to display a push button the selection screen.its not on the application tool bar..but in one of the selection block in the selection screen..could anybody guide how to do this...
Thanks in advance,
shyam.
Edited by: shyam prasad on Jan 15, 2009 7:34 AMHi Shyam,
Try the following code..
TABLES sscrfields.
TYPE-POOLS icon.
*SELECTION-SCREEN:
BEGIN OF SCREEN 500 AS WINDOW TITLE title,
PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
PUSHBUTTON 28(30) but2 USER-COMMAND cli2
VISIBLE LENGTH 10.
END OF SCREEN 500.
AT SELECTION-SCREEN.
CASE sscrfields.
WHEN 'CLI1'.
WHEN 'CLI2'.
ENDCASE.
START-OF-SELECTION.
title = 'Push button'.
but1 = 'Button 1'.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_information
text = 'Button 2'
info = 'My Quickinfo'
IMPORTING
RESULT = but2
EXCEPTIONS
OTHERS = 0.
Hope it will be useful..
Regards,
Lakshman.
Edited by: Lakshman N on Jan 15, 2009 7:39 AM -
Forms 9i/Forms 6i Push Button problems
Hello All,
I have a form that is using a bunch of Push Buttons. Each of these Push Buttons has a Access Key assigned to it.
The main canvas is a tab canvas and there are some stacked canvases too. All of them are being displayed on the same window.
If I press the access key a Push button when it is not being displayed on the screen, it still executes the When-Button-Pressed Trigger and is causing me some pain.
How can I stop the When-Button-Pressed trigger from executing when the Push Button is hidden from view ?
Your help will be greatly appreciated.
Thanks
SriramYou could make the button disabled when it is hidden.
Regards,
Robin Zimmermann
Forms Product Management -
Hi all,
for displaying some information to the user i gave one information message.
and now can i give one push button on this pop up screen.
regards,
siri.HI,
use popup_to_confirm FM
to display just information .... use this FM POPUP_TO_DISPLAY_TEXT with default continue button.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
TITEL = ' '
textline1 = 'Your Information'
TEXTLINE2 = ' '
START_COLUMN = 25
START_ROW = 6
Regards
SAB -
Hi,
In my report i have created a one PUSH button. when user clicks that puch button a SM30 transaction will call but with no table name. i have give table name also.
Means when user clicks on PUSH BUTTON a SM3o0 will call and table name should be displayed there.
How to do that.Hi Anurodh,
Try this code.
SELECTION-SCREEN pushbutton 2(10) text-001 user-command TRAN.
at selection-screen.
if sy-ucomm eq 'TRAN'.
call transaction 'SM30'.
ENDIF.
Plz Reward if helpful.
Mahi.
Message was edited by:
Maheswari Chegu -
Help on Back Button on a custom screen
Hi,
I am running a custom report which calls the screen 100 first and upon double click on a particular line item it calls the screen 200. I am facing a problem with back button. When i click back button from screen 200 screen 100 is called properly. But when i click back from screen 100 it should go to selection screen but its again calling the same screen. Please let me know how can i solve this.
Thank You,
Regards,
SwaroopIn the PAI of the screen 100, do something like this.
case ok_code.
when 'BACK'.
set screen 0.
leave screen.
endcase.
Regards,
RIch Heilman -
Add attachment button disapear from Customer screen ( framework )
We did some personalizations in 12.1.2; for one reason ( we don't know why ) add attachment butotn disappear from attachment tab in client screen ( framework )
any idea
Thanks
MarcHi Marc,
i am not clear with your question.
through personalize page option, you can check the rendered property for the same.
Regards,
Naren.
Maybe you are looking for
-
Open return orders in sd module
hi all, can any one explain me wht are open return orders in sd module and also credit memo issued for opem return order and goods receipt processed against the delivery. if possible can u explain me with example.
-
Having trouble sending jpeg images as attachments in Mac email.....they go thru as images and PC users can't see the SAVE or QUICK LOOK boxes that Mac mail has. One friend scrolled over the image, right clicked on it and saved as a PNG file.
-
Hi All, I have four buttons on the ALV toolbar of screen 100 and I am calling screen 200 when the user clicks on them. Each button will display different data. And every time when you click on the button I am refreshing the Outtab and Field Catalog.
-
Raw files exporting in JPG coming out too low resoltion?
I am somewhat new to using a mac/aperture vs. PS/PC . I have uploaded and edited my photos in RAW. I am having trouble with the program downscaling my photos too much. I have changed the preset to high quality JPEG and the quality up to 12. But, for
-
If I add ipod udater to my ipod now what will happen?
I have a whole lot of songs on my ipod right now, But if I add ipod updater to it now, will that delete any of my songs