Hide subscreen
Hi All,
I am new in ABAP HR. I developed one infotye.and it is related to tcode PA30 and PB30.
In my screen one CALL SUBSCREEN SUBSCREEN_HEADER INCLUDING HEADER_PROG HEADER_DYNNR
is there.I want when user click on tcode PA30 then it should be enable and when user click PB30
You have to create a blank subscreen and when you are pressing the button you can call this blank subscreen.
ie, if 9002 is a blank subscreen then
case ok_code.
when 'BUTTON'.
subscreen = '9002'.
Then in the next PBO ,the statement
'CALL SUBSCREEN subscreen INCLUDING SY-REPID gv_dynpro' calls the blank screen
Edited by: Rengith Skariah on Apr 16, 2008 10:56 AM
Similar Messages
-
How to hide subscreen in module pool
hello expert.
i created one Box, and inside box i created one subscreen in Module pool ->layout.and two radio button out side of the Box.
if i select 2nd radio button , want to hide subscreen.
how to hide subscreen. could you please send me the solution asap , it's urgent.
i written below code but not working.
LOOP AT SCREEN.
IF rad2 Eq 'X'
IF SCREEN-NAME = 'SUB1' .
SCREEN-INPUT = 0.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
Regards
srinivasexample:
BOX1
MATNR [ ] (Normal screen)
BOX2
BOM [ BOM-OW] TO [BOM-HIGH] (subscreen)
BOX3
radio buttons
push button
selection screnn etc..
if i selection 2nd radio button i will get.
BOX1
MATNR [ ] (Normal screen)
BOX2
empty
BOX3
radio buttons
push button
selection screnn etc..
my requirement is:
BOX1
MATNR [ ] (Normal screen)
BOX3
radio buttons
push button
selection screnn etc.. -
Hide SUbscreen depending on Radio buttons
i have 2 radio buttons in one screen. and a subscreen in another screen.
i need to hide this subscreen depending on which radiobutton is being selected.
my code is as follows :
PROCESS BEFORE OUTPUT.
MODULE STATUS_0010.
CALL SUBSCREEN SUB1 INCLUDING SY-REPID '100'.
PROCESS AFTER INPUT.
MODULE EXIT_0009 AT EXIT-COMMAND.
FIELD: WA_PRINT-EXIDV MODULE VAL_EXIDV ON REQUEST.
CALL SUBSCREEN SUB1.
MODULE USER_COMMAND_0010.Hi,
Check the bellow link for your requirement.
how to hide subscreen in module pool
Regards,
Goutam Kolluru. -
Hidding Sub Screen in infotype
Hai Experts,
How can I hide subscreen in the infotype. I need to hide subscreen 100 in the infotype. Expecting your help soon.
Thank you
Rekhahi,
for this u hav to do following steps
>>Define the sub-screen area(s) on a screen. Resizable, Minimum size and scrollable are the attributes
>>Define suitable sub-screen screens
>>Include the sub-screen screen in the sub-screen area.
>>Adjust the frame of the sub-screen within the "main" screen. Name the sub-screen in the Field name field.
>>Arrange the fields within the sub-screen so that they appear in the main screen .
>>You include a subscreen screen using the CALL SUBSCREEN statement in the flow logic of the main screen.
To include a subscreen screen in the subscreen area of the main screen and call its PBO flow logic, use the following statement in the PBO event of the main screen:
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN in the PBO event. This can call PAI modules of the ABAP program in which the subscreen screen is defined. Data is transported between identically-named fields in the subscreen screen and the ABAP program either when the PAI event is triggered, or at the corresponding FIELD statements in the PAI flow logic of the subscreen screen.
thanks
Sachin -
Hi,
I need to hide the custom subscreen in a standard transaction depending on the document type created. How can I achieve this?
Thanks in advance.Hi,
Please do the appropriate coding in an enhancement point where you code the condition.
Regards,
Prosenjit. -
Hide alv grid PR custom subscreen
Hello All,
I have a custom subscreen on PR ( bulit via screen exit) with ALV grid and some screen elements ( to get input data from user) on it.
In create and change PR mode, I need to get the input ( could be multiple rows with the help of create next icon )from user and update ALV grid with the input values. But in PR display mode, I need to hide the ALV grid.
I tried using desctructor method FREE, but dint work.
Any suggestions?
Thanks,
ChandraI have a similiar problem:
I have a dynpro where there are different possibilities for ALV grids to be shown. I have 10 containers (that's the maximum number of ALV grids that can appear) and want to use the highest first. Now, it might be that I want to show another ALV in a container I have had an ALV before, therefore I must hide / delete / destroy the previous ALV in this container.
I use the FREE( ) method of the alv controls, I clear and free all references, but still, even after leaving and accessing the dynpro again, the ALV is shown. That's why I'd need some help here too...
Thanks in advance, Christopher -
HI
I have a requirement like first in main screen three check boxes and a button should be displayed . If i check any of the check box and click on the pushbutton the related subscreen in the main screen should be displayed.please help.
Edited by: pradeep2008 on May 5, 2010 8:11 AMHi Pradeep,
1. Create a Pushbutton or set a PF status.
2. u can create input fields without a subscreen.
3. u can code to hide the input fields by using
LOOP at Screen.
case screen-fieldname.
when <fieldname1> or <fieldname2>..
Screen-Invisible = 1.
Screen-active = 0.
endcase.
ENDLOOP.
4. when u press the button.
i. Catch the Ok code
ii. Unhide the input fields.
LOOP at Screen.
case screen-fieldname.
when <fieldname1> or <fieldname2>..
Screen-Invisible = 0.
Screen-active = 1.
endcase.
ENDLOOP.
Regards,
Raj. -
How to hide a entire tablecontrol without using subscreen....
hiiiiiii
iam using input/out and tablecontrol in screen 100...my input/output field is matnr.. before entering matnr tablecontrol should not visible....i.e i want entire tablecontrol to hide not particular column....n tablecontrol is hide.... when iam entering matnr tablecontrol should visible.....
how to visible and invisible a tablecontrol without using subscreen.....is tre a way to do it...
table-invisible = 'x'.
where table is name of tablecontrol n it hides the tablecontrol... but again after entering matnr how to make tablecontrol visible....
if any one knows how to do it pls help....
rewards if any tell correctly.......
thanks...In screen painter, open the table control attributes, enter the some value in group column.
ex:
PROCESS BEFORE OUTPUT.
MODULE SCR_INIT.
*& Module SCR_INIT OUTPUT
text
MODULE SCR_INIT OUTPUT.
LOOP AT SCREEN.
if g_auth = 'BM'.
if screen-group1 = 'GR1'.
SCREEN-ACTIVE = '0'.
SCREEN-INPUT = '0'.
endif.
modify screen.
endloop. -
How can i hide a tabstrip control
On my screen there are a pushbutton and a tabsrtip control which contain two tabs.
initial,the tabstrip is visible,and the button with icon_collapse icon.
then,i click the button ,and the tabstrip must be invisible,and the button's icon will change to icon_expand.
if i use screen-name conditions to set the tab invisible,but the tabstrip has a shadow on the screen.the color of the space obtained by the tabstrip is different with other space's color.
How can i set the color same with other if i want to hide the tabstrip.
ths very much.see the example of custom tabstrip control for 0591 infotype
MODULE ztab_strip_active_tab_set OUTPUT.
IF psyst-dsubt EQ 'BNPF'.
g_ztab_strip-pressed_tab = c_ztab_strip-tab2.
LOOP AT SCREEN.
IF screen-group4 = '060'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF psyst-dsubt EQ 'BNES'.
g_ztab_strip-pressed_tab = c_ztab_strip-tab1.
LOOP AT SCREEN.
IF screen-group4 = '050'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF psyst-dsubt NE 'BNPF' AND psyst-dsubt NE 'BNES'.
LOOP AT SCREEN.
IF screen-group4 = '050'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
LOOP AT SCREEN.
IF screen-group4 = '060'.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
g_ztab_strip-pressed_tab = ' '.
ENDIF.
ztab_strip-activetab = g_ztab_strip-pressed_tab.
CASE g_ztab_strip-pressed_tab.
WHEN c_ztab_strip-tab1.
g_ztab_strip-subscreen = '0201'.
WHEN c_ztab_strip-tab2.
g_ztab_strip-subscreen = '0203'.
WHEN OTHERS.
g_ztab_strip-subscreen = '0202'.
ENDCASE.
ENDMODULE. "ZTAB_STRIP_ACTIVE_TAB_SET OUTPUT
check this for hiding one tabstrip in one subtype and another in next subtype -
Hiding a Complete Subscreen in a main Screen
HI All,
I have a req in which there is 5 subscreens present in one main screen. My issue is i want to hide a complete Subscreen based on 1checkbox present in that mainscreen itself.
After checking that checkbox user will be pressing ENTER. After that i need to hide some of the subscreens.
Thanks in advance,
ShyamHI,
You can check for the subscreen_area that you use to put the subscreen and in the PBO of the main screen you can avoid calling this subscreen or you can hide the subscreen area by making SCREEN-ACTIVE=0 for the subscreen area.
For the check box you can set some fcode and in the PAI you can set some global flag which you need to check in PBO and then deactive the subscreen area.
PAI module.
if ok_code is <your check box>.
if check_box = 'X'.
global_flag = 'X'.
else.
clear global_flag.
endif.
PBO Module.
if global_flag = 'X'.
loop at screen.
if screen-name = 'SUBSCREEN_AREA'.
screen-active= 0.
modify screen.
endloop.
endif.
Regards,
Sesh -
How to hide/show and move screenelements at runtime
Hi Guys
Currently, i have a requirment that, in the same screen, when user choose different different option in the dropdown list, there should be different screenelements and table control with different columns showing below it.
Now, i have two plans below:
1), hide/show and move position of screen elements and table control at runtime
2), call different subscreen
I hope i can take the first way since the second way will modify structure of program ( As it is infotype screen ), any one knows how to implement the first solution?Hi,
I would suggest you to call different subscreens and load them dynamically based on your parameters.Since different subscreen are called your coding and functionality could also be seperated by writing in the PAI and PBO of the correspondiong Screens.
if you have decided to go by your first method then try the below code.
a) if it is normal UI elements like text box etc
LOOP AT SCREEN.
IF <var> = ' value '.
screen-invisible = '0'.
MODIFY SCREEN.
endif
ENDLOOP.
Here <var> refers to the screen field name and value refers to its value.
b) To hide columns in a Table control.
DATA cols LIKE LINE OF tc-cols.
LOOP AT tc-cols INTO cols.
IF cols-screen-group1 = 'G1'.
cols-invisible = 'X'. "HIDE THIS COLUMN
MODIFY tc-cols
FROM cols
TRANSPORTING invisible.
ENDIF.
CLEAR cols.
ENDLOOP.
PS: here TC refers to the name of the table control.
Lemme know if you face any problems.
Cheers,
RK -
ME22N - Want to hide the unblock button
Hi,
Here is a scenario where the client want the user should not have authorization to unblocked the line item in T-CODE ME22N. I tried lot many option but couldnt suceed.
They are not ready for transaction or screen variant like Z tcode. Is there any ways out to hide or disable the ublock icon button in me22n through authorization object or program.
Please help me out.
Cheers
ArunYou could use a transaction variant - which would still use ME22N - but you would hide:
@07\QUnblock/undelet(Pushbutton)
on:
Screen values 1211 Program SAPLMEGUI Subscreen SUB1
We have successfully implemented it this way, as there is no authorisation object for this. -
Not Displaying List when called in subscreen
Hi all
My program is not showing the output screen(list) when it is called from the subscreen, it is returing back to the subscreen.
Following is the program flow.
1. I have a normal selection screen and a selection subscree.
SELECTION-SCREEN BEGIN OF BLOCK b1. PARAMETERS: pa_bukrs LIKE t001-bukrs,
pa_kunnr LIKE kna1-kunnr,
pa_kdgrp LIKE knvv-kdgrp,
pa_gjahr LIKE bsid-gjahr DEFAULT '2007'.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF SCREEN 2001 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b2.
PARAMETERS: p1 RADIOBUTTON GROUP g1 DEFAULT 'X',
p2 RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF SCREEN 2001.
2. Now after displaying normal selection screen, with some input parameter combination i am calling new screen, as shown below.
IF pa_kunnr <> ''.
CALL SCREEN 100.
ENDIF.
following is the code of screen flow logic
PROCESS BEFORE OUTPUT.
MODULE status_0100.
CALL SUBSCREEN area INCLUDING sy-repid '2001'.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
MODULE TEST.
CALL SUBSCREEN area.
MODULE user_command_0100.
3. Now in "user_command_0100" Module i am writing the commands to print the list, as shown below
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE PROGRAM.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE PROGRAM.
LEAVE TO SCREEN 0.
WHEN 'EXEC'. "This is the button defined on the sub screen"
IF ( p1 = 'X' ).
PERFORM select_data_opt3_1.
PERFORM rep_opt3_1_top.
PERFORM rep_opt3_1_print.
ELSE.
PERFORM select_data_opt3_2.
ENDIF.
ENDCASE.
_Problem:-_ Now i am writing the list in the perform statements,
now problem is that after executing all the command the program is returing back to the subscree(OR screen no 100) without displaying the list.
Please tell me where should i give the write command.
Regards
Sukhjinder SinghYou have to write the follwoing statements if you want to switch list from screen :
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
SET PF-STATUS space.
SUPPRESS DIALOG.
Ex: Check the following code:
REPORT demo_leave_to_list_processing .
TABLES demo_conn.
DATA: wa_spfli TYPE spfli,
flightdate TYPE sflight-fldate.
CALL SCREEN 100.
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE user_command_0100.
CALL SCREEN 500.
SET SCREEN 100.
ENDMODULE.
MODULE call_list_500 OUTPUT.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
SET PF-STATUS space.
SUPPRESS DIALOG.
SELECT carrid connid cityfrom cityto
FROM spfli
INTO CORRESPONDING FIELDS OF wa_spfli
WHERE carrid = demo_conn-carrid.
WRITE: / wa_spfli-carrid, wa_spfli-connid,
wa_spfli-cityfrom, wa_spfli-cityto.
HIDE: wa_spfli-carrid, wa_spfli-connid.
ENDSELECT.
CLEAR: wa_spfli-carrid.
ENDMODULE.
TOP-OF-PAGE.
WRITE text-001 COLOR COL_HEADING.
ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE sy-lisel COLOR COL_HEADING.
ULINE.
AT LINE-SELECTION.
CHECK NOT wa_spfli-carrid IS INITIAL.
SELECT fldate
FROM sflight
INTO flightdate
WHERE carrid = wa_spfli-carrid AND
connid = wa_spfli-connid.
WRITE / flightdate.
ENDSELECT.
CLEAR: wa_spfli-carrid.
screen 100
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
module cancel at exit-command.
MODULE USER_COMMAND_0100. -
Customer subscreen on the PO item detail tab ( ME_GUI_PO_CUST)
I use the BADI ME_GUI_PO_CUST added customer subscreen ( new TAB) on the PO item detail. if PO order type is NB , the TAB can show both me23n and me22n . if PO order type is UB , the TAB can show ME23N , but can't show ME22N . Please Help, thanks.
Hi,
In PBO Logic of whicehver screen is called we can check if sy-tcode = ME22N/23N and hide all the fields/make it display only as per requirement so that user sees an empty screen/display only fields in customer tab ....using
loop at screen..
if screen-name = 'XXX' .
screen-invisible = 1. for hiding
screen-input = 0. for display only
modify screen .
endloop.
Hope it helps
Regards
Byju -
BADI CRM_MKTPL and Status Change button! (Hide the standard system status)
Hello,
In transaction CRM_MKTPL, i need to delete some status that appears when i click on button Change status.
I am trying to use the BADI: CRM_MKTPL using the method 'GET_DROPDOWNBOX_VALUE', but i didn't get what i
want because this method is only valid (i think) for Listboxes for a field and not for a button, that is my
requirement.
Also i am trying to use the method 'p_fill_dropdown_listbox', but i don't know how to use this, and where, in
whick part of the BADI CRM_MKTPL.
I want to hide the standard system status in the dropdown list.
Any ideas?
Thanks in advance
Best regards
Message was edited by:
yukimai maiojust check in your badi there is any option is there for menu area customization or not in the implementation you can find attribute,interface ,subscreen like tab there check any menu area tab is there or not.. if it is not there then try for any menu exit and lastly you can try for transaction variant tcode SHD0.
regards
shiba dutta
Maybe you are looking for
-
Guys do you know how to use the AS2 Adapter ?. Our Customer is complaining that Invoices sent to them are now being rejected due to signing problem. The Receiver Agreement has Security Settings for AS2 Sender Signing Key TRUSTED\ mycompanykeys \ my
-
Error on "External Payment Collectors: Transfer Payment Data"
Dear FI-CA gurus On the program ""External Payment Collectors: Transfer Payment Data" (RFKK_CVSPAY_CONFIRM), when I ticked the simulation flag, it seemed the file upload is done successfully. However, when I ticked-off the simulation flag, I got err
-
My blackberry IM messages are being deleted without my o...
my blackberry IM messages are being deleted without my or the other individual ending the conversation. How do I stop this from happening and can the old messages be retreived?
-
How can I disable the Facebook app from auto-playing videos?
Is there away to disable Video auto playing in Facebook App on iphone 5, os 7?
-
Looking to update student Photoshop cs 5.1 to full cs 6
Hey peeps... Trying to upgrade my student license Photoshop CS5.1 to a full license CS6. Found the upgrade on the website but for some reason can't check out. can i only order in shop hours? or can I just not buy it anymore? Ta