Modulepool-screen
hi,
why do we use the
Loop at screen.
if screen-group = grp.
Screen-invisible = 0 / 1.
endif.
endloop.
hi ,
Loop at screen.
if screen-group = grp.
Screen-invisible = 0 / 1.
<b>modify screen .</b>
endif.
endloop.
Screen-group provides the information about the functionality group to whcih ur screen fields are assigned to .
By using screen-invisible , you can make the screen element invisible .
You use LOOP AT SCREEN ........ ENDLOOP to do runtime modifications to the screen elements .
the statement provided is used to make the screen fields invisible , which are assigned under a screen group .
Reward if helpful !
Regards,
Ranjita
Similar Messages
-
How to Fetch Data From an Internal table to a field in Modulepool Screen ??
In my Modulepool Screen i have two fields ,
Based on the data of the First field ,the second field will display the data.
For ex- first field - I choosed the data -" MARUTI",
then in the second field , all d CARs ( 800,zen,waganor.....)related to MARUTI shd be displayed.
without using POV module hw to use dis ? and also using POV ,what are the function modules to be used ..
pls explore in details...
Thnks to all d contributors for their Time.....see if u have a limited values to display in Listbox, den we will go for vrm_set_values.
but here as per the requirement
thr is no limited Values in d second dropdown box.
Let me Clear abt the requirement.
First field - issue no.
2nd field- Item no.
when u select a particular issue no, den in item it shd display the corresponding item nos related to that issueno. And both Fields r Primary keys in d table( customised Table.)
this is wwht exactly my requirement.
as i created The search help for issueNo, its displaying all the issueno Dat are in DB.
But Itemno Field is nt behaving as per That.
Pls Suggest me.. in details -
Help Window in a modulepool screen
Hello Folks,
I have created a button(named it as HELP) in the modulepool screen. I have a requirement where when i click on the button it should display the help information in the same screen.
For example: whenever we click F1 on any standard field it will display the help information in a same screen with new window.
Please assist me in fixing this.Hi
trap the Fcode and write the code inside
this is some demo programs which will help u.
Hi Sri,
Check these demo programs:
DEMO_DYNPRO_F1_HELP
DEMO_SELECTION_SCREEN_F1
Regards,
Amresh. -
Reg: smartform in modulepool screen
Hi Experts,
I have a requiremnet like smartform display in modulepool screen.
requirement like : firsthalf in modulepool screen and second half have to display the smartform.
is there any option to display hte smartform .Hi the easiest way is to convert the SSF in a PDF ( ..OTR.. )
after converting start the web browser in a hidden Container > show the PDF in the Web Browser....
a) seperate Window (outside gui )
b) in a Container of the dynpro -
Problem in Modulepool Screen validation
Hi friends,
In my Prog. i am using Modulepool screen with 10 fields on it.
Using this screen i am updating the Ztable.
In these fields if i enter the wrong data then it is displaying the system defined error message like <b>'Entry xx is defined in T178 table, check your entry'</b>.
But in my requirment i need to get my own Error Message insted of system message.
Is it possible or not.
Iam sending the code which i designed in Modulescreen .
<b>PROCESS BEFORE OUTPUT.
MODULE clear .
MODULE status.
PROCESS AFTER INPUT.
MODULE exit AT EXIT-COMMAND.
CHAIN .
FIELD zmjbr_det-spg.
FIELD zmjbr_det-brand MODULE validation_brand.
FIELD zmjbr_det-flavor MODULE validation_flavor.
FIELD zmjbr_det-beverage_prod MODULE validation_beverage_prod.
FIELD zmjbr_det-pack_type .
FIELD zmjbr_det-pack_size .
FIELD zmjbr_det-tragr .
FIELD zmjbr_det-to_eff_date MODULE validation_to_date.
FIELD zmjbr_det-from_eff_date MODULE validation_from_date.
FIELD zmjbr_det-major_brand MODULE validation_major_brand.
ENDCHAIN .
MODULE user_command.
PROCESS ON VALUE-REQUEST .
FIELD zmjbr_det-brand MODULE value_req_brand .
FIELD zmjbr_det-flavor MODULE value_req_flavor .
FIELD zmjbr_det-beverage_prod MODULE value_req_beverage_prod .</b>
in above code for the following fields i need own error messages.
spg (T178-KONDM) ,
pack_type (TMFG-MFRGR),
pack_size (TVM1-MVGR1) ,
tragr (TTGR-TRAGR) ,
major_brand (TVBO-BONUS).
Reward is Sure.
Thanks,
Anil.Sure, just create new modules for those fields and do your check within the modules and issue your own error messages.
Write the MODULE extension in the FIELD statement.
FIELD zmjbr_det-spg <b>MODULE VALIDATION_SPG</b>.
FIELD zmjbr_det-pack_type <b>MODULE VALIDATION_PACK_TYPE.</b> .
FIELD zmjbr_det-pack_size <b>MODULE VALIDATION_PACK_SIZE</b>.
FIELD zmjbr_det-tragr <b>MODULE VALIDATION_TRAGR</b> .
Now you can double click the module in the statement, the system will ask if you want to create it, say yes. It will create it in the ABAP program, now you can simply put your code in the MODULE. Like this.
MODULE VALIDATION_SPG.
If zmjbr_det-spg is initial.
message e001(00) with 'This field is not filled in!'.
endif.
ENDMODULE.
Regards,
Rich Heilman -
Uploading two images at a time on to modulepool screen
Hi all,
I uploaded one image on to the module pool screen using the custom container. Now i want another image on the screen. I used one more container and tried. But the old image is beeing overwritten by the new one in the first container only. Is it possible to upload two images at a time?
Thanks in advance,
Dev.This is the code in TOP,
DATA CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA PICTURE TYPE REF TO CL_GUI_PICTURE.
DATA URL(256).
DATA CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
DATA PICTURE1 TYPE REF TO CL_GUI_PICTURE.
DATA URL1(256).
Code in F01. I have written a similar subroutine for the other image also.
form load_pic_from_db changing p_url.
DATA query_table LIKE w3query OCCURS 1 WITH HEADER LINE.
DATA html_table LIKE w3html OCCURS 1.
DATA return_code LIKE w3param-ret_code.
DATA content_type LIKE w3param-cont_type.
DATA content_length LIKE w3param-cont_len.
DATA pic_data LIKE w3mime OCCURS 0.
DATA pic_size TYPE i.
REFRESH query_table.
query_table-name = '_OBJECT_ID'.
query_table-value = 'ZTEST_ICICI'."name of logo
APPEND query_table.
CALL FUNCTION 'WWW_GET_MIME_OBJECT'
TABLES
query_string = query_table
html = html_table
mime = pic_data
CHANGING
return_code = return_code
content_type = content_type
content_length = content_length
EXCEPTIONS
object_not_found = 1
parameter_not_found = 2
OTHERS = 3.
IF sy-subrc = 0.
pic_size = content_length.
ENDIF.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
TABLES
data = pic_data
CHANGING
url = url
EXCEPTIONS
OTHERS = 1.
endform. " load_pic_from_db
Dev. -
Hi,
What is the difference b/n screen painter and module pool?
Which to use & when?
Regards,
SiriSCREEN PAINTER-
The Screen Painter is a component of the ABAP/4 Development Workbench. In the Screen Painter, you can define the following interface elements with their associated attributes:
input/output fields
field names
checkboxes
radio buttons
Group boxes
subscreens
pushbuttons with no fixed position
To start the Screen Painter, choose the corresponding pushbutton on the initial screen of the ABAP Workbench or enter Transaction SE51. From here, you can:
Create new screens.
Test an existing screen.
Create new components for an existing screen.
In the Screen Painter, you define the graphical layout of the screen as well as the underlying flow logic.
The layout editor of the Screen Painter can run in two different modes:
alphanumeric mode
graphical mode
MODULE-POOL-
An ABAP program with the program type 'M'.
ALSO IN MODULE POOL , OUTPUT SHOWS IN ANOTHER TRANSACTION CREATED BY US.
module pool should be used with each infotype. This module pool is the main program for the maintenance interface for the infotype.
***DO REWARD IF USEFULL
VIJAY -
Text Editor on modulepool Screen
Hi,
my requirement is to have two input fields on the screen where the user can input some text. when the user comes to the end of one field the cursor should automatically to the next input field.
How to do this one.
I thought of placing an text editor on the screen, can anybody give some sample code to place the text editor on the screen and at the desired position in my case it is in the middle of the screen...
Thanks and Regards,
Kiran KumarTo put text editor on moudule pool screen,
1. Add 'custom control' element on Screen : name it as TEXTEDITOR1.
2. Declare the variable in TOP include as
DATA :
g_editor TYPE REF TO cl_gui_textedit, " Text Editor
g_editor_container TYPE REF TO cl_gui_custom_container, "Container For Text Editor
"Variables to Get the Content of the Text Box Editor
DATA: line TYPE solisti1.
DATA : it_editor TYPE STANDARD TABLE OF line.
3. Put following code in PBO as
IF g_editor IS INITIAL.
CREATE OBJECT g_editor_container
EXPORTING
container_name = 'TEXTEDITOR1'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc NE 0.
ENDIF.
" TextEdit Control
CREATE OBJECT g_editor
EXPORTING
parent = g_editor_container
wordwrap_mode =
" cl_gui_textedit=>wordwrap_off
cl_gui_textedit=>wordwrap_at_fixed_position
" cl_gui_textedit=>WORDWRAP_AT_WINDOWBORDER
wordwrap_position = 128
wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
ENDIF.
4. Now to Retireve data from Editor in PAI write:
CLEAR it_editor.
"Method to retrieve table from control (Text From Editor in IT_EDITOR)
CALL METHOD g_editor->get_text_as_r3table
" EXPORTING
" ONLY_WHEN_MODIFIED = FALSE
IMPORTING
table = it_editor
" IS_MODIFIED =
EXCEPTIONS
error_dp = 1
error_cntl_call_method = 2
error_dp_create = 3
potential_data_loss = 4
OTHERS = 5 -
Dynamic data on Screen -Display data Based On the First Field
hello Helping Minds..
I have Two Fields In MODULEPOOL SCREEN.
1--- BUKRS
2--- BELNR ..... Both From BKPF table.
My requirement is When i select a CompanyCode ( BUKRS ) In d first field,all the DocumentNO ( BELNR ) related to that CompCOde Shd be displayed in the 2nd field,
For Ex-
If i choose BUKRS = 1000,
and Then clicked the Belnr field, All d DocumentNO for BUKRS 1000 will be populated in d Dropdown list..
BUKRS = 0001,
then BELNR = 0100000000 ,
0100000001 in d dopdown.
source code will be Appreciated...
Thnks in advance To D helping MindsProcess on value-request.
filed Bukrs module f4_bukrs.
field belnr module f4_belnr.
*module f4bukrs input.*_
if belnr is not initial.
select belnr bukrs from bkpf whre belnr = belnr.
else.
select belnr bukrs from bkpf whre belnr = belnr.
endif. "" Hey both these Condition lead to same thing...den Whts d use??
Firstly Belnr will be always Intial. cos it will be populated after we select the BUKRS. , Here am confused?
if t_bkpf is not initial.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' " No idea Abt dis FUncn module, pls explain
endif.
end module.
module f4_belnr input.
if bukrs is not initial.
select belnr bukrs from bkpf where bukrs = bukrs.
else.
select belnr bukrs from bkpf whre belnr = belnr.
endif.
if t_bkpf is not initial. "" What is t_bkpf and y its used
call fm to CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
endif.
end module. -
DYnamic Screen -Display data Based On the First Field
hello Helping Minds..
I have Two Fields In MODULEPOOL SCREEN.
1--- BUKRS
2--- BELNR ..... Both From BKPF table.
My requirement is When i select a CompanyCode ( BUKRS ) In d first field,all the DocumentNO ( BELNR ) related to that CompCOde Shd be displayed in the 2nd field,
For Ex- If i choose BUKRS = 1000,
and Then clicked the Belnr field, All d DocumentNO for BUKRS 1000 will be populated in d Dropdown list..
BUKRS = 1000,
then BELNR = 0100000000 ,
0100000001 in d dopdown.
<<don't cross post/Duplicate else thread will be locked or deleted>>
Thnks in advance To D helping Minds
Edited by: Vijay Babu Dudla on Apr 25, 2009 4:57 AMProcess on value-request.
filed Bukrs module f4_bukrs.
field belnr module f4_belnr.
*module f4bukrs input.*_
if belnr is not initial.
select belnr bukrs from bkpf whre belnr = belnr.
else.
select belnr bukrs from bkpf whre belnr = belnr.
endif. "" Hey both these Condition lead to same thing...den Whts d use??
Firstly Belnr will be always Intial. cos it will be populated after we select the BUKRS. , Here am confused?
if t_bkpf is not initial.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' " No idea Abt dis FUncn module, pls explain
endif.
end module.
module f4_belnr input.
if bukrs is not initial.
select belnr bukrs from bkpf where bukrs = bukrs.
else.
select belnr bukrs from bkpf whre belnr = belnr.
endif.
if t_bkpf is not initial. "" What is t_bkpf and y its used
call fm to CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
endif.
end module. -
I need how to insert records in ztable through modulepool
Hi All
I created a modulepool screen, in that i placed some fields from ztable.
Now i enter the record in that screen text area and push submit button it would be
store in ztable.
plz some one help me by sending the INSERT code for that
Thanks
LokeshHi,
Check out the following code.
TABLES: Ztable. .
DATA : BEGIN OF IT OCCURS 0,
sortl LIKE kna1-sortl,
SGTXT LIKE MSEG-SGTXT,
WERKS LIKE MSEG-WERKS,
LGORT LIKE MSEG-LGORT,
END OF IT.
*& Module USER_COMMAND_1000 INPUT
text
MODULE USER_COMMAND_1000 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'CANCEL'.
LEAVE PROGRAM.
WHEN 'SAVE'.
ztable-agency = it-sortl.
ztable-AGENCY = IT-SGTXT.
ztable-WERKS = IT-WERKS.
ztable-LGORT = IT-LGORT.
INSERT ztable.
MESSAGE S100(ZMMABAP) .
IF SY-SUBRC NE 0.
MESSAGE E101(ZMMABAP).
ENDIF.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT
*& Module STATUS_1000 OUTPUT
text
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'Zstatus'.
SET TITLEBAR 'title'.
ENDMODULE.
Reward points if helpful.
regards,
CS -
Hi all,
I have developed a modulepool screen...this screen is used for saving vendor details into databse tables...so,here i m entering the vendor number and its details and then save it by using a pushbuton...My problem here is when i enter a vendor number and its detail values and suddenly if a user changes the vendor number...i need to show a message that u need to save vendor details before changing the vendor number..
How to achieve this..as the user first enters the vendor number and presses ENTER buton..then a event will trigger..but from there how to handle that event and how to know exactly the vendor number has changed....That is why you check if the field content is different BEFORE you set the current value.
Let's simulate:
Transaction is called and your_input_field is empty (gv_vendor_number is empty as well)
User enters a vendor and hits enter
We check if gv_vendor_number NE your_input_field but because gv_vendor_number is still initial we do not raise the message (because this is the first time the user put something in.
Now we move your_input_field to gv_vendor_number (both have the same value)
User now changes the your_input_field value and hits enter
We again check if gv_vendor_number NE your_input_field and because the gv_vendor_number field still has the OLD value in it we can identify it as being changed and raise the message.
Only then we move your_input_field to gv_vendor_number (both have the same value again) to make sure we capture the next change.
Michael -
I wnt to do background settings ( like colors, pictures) for modulepool screens, is it possible?
Thanks in advancehi Lakshmi,
Example for a Picture control
Steps:
Create a screen
Place a custom container for the picture on the screen. Name the container GO_PICTURE_CONTAINER.
Type pool for using SAP icons
TYPE-POOLS: icon.
Declarations
DATA:
go_picture TYPE REF TO cl_gui_picture,
go_picture_container TYPE REF TO cl_gui_custom_container.
MODULE status_0100 OUTPUT.
IF go_picture_container IS INITIAL.
Create obejcts for picture and container and
setup picture control
CREATE OBJECT go_picture_container
EXPORTING
container_name = 'PICTURE_CONTAINER'.
CREATE OBJECT go_picture
EXPORTING
parent = go_picture_container.
Set display mode (Stretching, original size etc.)
CALL METHOD go_picture->set_display_mode
EXPORTING
DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center
EXCEPTIONS = 1.
Load picture from SAP Icons. To oad a picture from an URL use method
load_picture_from_url
CALL METHOD go_picture->load_picture_from_sap_icons
EXPORTING
icon = icon_delete
EXCEPTIONS error = 1.
ENDIF.
ENDMODULE.
Example for calling a list with colors displaying the text in List processing
REPORT demo_leave_to_list_processing .
TABLES sdyn_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 = sdyn_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.
This example switches to list processing during the screen processing for screen 100. Screen 100 has a single input field - the component CARRID from the ABAP Dictionary structure SDYN_CONN.
The flow logic of screen 100 is:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
MODULE user_command_0100.
The PAI module user_command_0100 calls screen 500 using the CALL SCREEN statement. This screen encapsulates a basic list. It has the following flow logic:
PROCESS BEFORE OUTPUT.
MODULE call_list_500.
PROCESS AFTER INPUT.
The module call_list_500 defines the basic list and switches to list processing. Since the next screen after list processing is screen 0, screen 500 is a one-screen screen chain. After list processing, control returns to the position in user_command_0100 from which screen 500 was called.
If the user selects a line on the basic list, a detail list appears. This is achieved through the event block AT LINE-SELECTION. The program also contains event blocks for TOP-OF-PAGE and TOP-OF-PAGE DURING LINE-SELECTION, which define page headers for both the basic list and detail list.
Since there is only one list system in this program, there is no need for case distinctions within the list events.
Good Luck and thanks -
Hi,
I'm creating a modulepool screen with an input field and some output fields (all in the same screen).
The program has to do the following: when I enter data in the input field and press enter, the output fields have to fill with data from a select. I don't know how to control the pressing of the enter key.
Thanks
CarlesHI,
goto ABAPDOCU tcode.
select ABAP User Dialogs ->Screens ->Processing Screens ->Input and Output Fields on Screeos
THERE U CAN SEE AN EXAMPLE SIMILAR TO UR REQUIREMENT.
<b>reward if helpful</b>
rgds,
bharat. -
How to create a text box in ascreen painter?
HI friends can anyone tell me how to create a text box in a screen painter?
And attachment BROWSER like what we attach for any documents in over mail.
Example when we click on browser the path of the computer has to be opened and by giving the document name attach and the document will be attached. Please tell me the procedure....
ThksTo get the best answers, I think you probably need to break down your post into several different one with a separate question in each, along with the business problem you are trying to solve... but here's a few pointers for you to research...
Textbox - there's plenty of info in SDN on creating a custom control with a textbox e.g. Re: Text Editor on modulepool Screen and sample code in SAP too.
Attachments - If this is for an email, then GUI_UPLOAD might help and the BCS class is the newer way to send messages... check out Re: Offline Approval: RBBP_NOTIFICATION_OFFAPP Vs RSWUWFMLEC for example... if this is an attachment for an SAP object such as an FI Document or Purchase Order, then the Generic Object Services (GOS) could be what you want e.g. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3
Jonathan
Maybe you are looking for
-
Synced photo albums do not show up on ipad until rebooted - latest OS
Very annoying. Latest iTunes and iOS on iPad. Windows 8 PC OS. Sync works terribly. Videos don;t sync. Photos sync, but new albums show up only after I reboot. iTunes is not accurate about space used and space remainign. What's the deal- this
-
Apple id password not accepted on icloud
why is my apple id password not accepted when I try to login to iCloud? The same password worked when I tried to login to support to post this question!
-
My Internet Explorer crashed. As I can nt get on the internet on that computer, I am attempting to use another computer to download Mozilla to a usb key. Then, I will upload Mozilla to the crashed computer,hopefully restoring connectivity.
-
Error While Payment Proposal F110
Dear All, I am facing problem while running transaction F110. Error Message is "Company codes GEIL/GEIL do not appear in proposal 10.03.2009 GEIL3; correct" where as GEIL is a paying and sending company code and GEIL3 is Identification id. Also attac
-
How to set email "from" address when sending photo
when I send photos from my iPhone people respond to the wrong address. This just started. How do I switch the FROM address to the correct email address.