Is it possible to print the current screen in Module pool program(Dynpro)?
Is it possible to print the current screen in Module pool program(Dynpro)?
I create a Module pool program , and customer hope can print the screen when they click print button, Is it possible?
Does the customer want a screen shot or what? Please elaborate on your requirement.
Maybe you should create a smartform first, which is called when one clicks on print button. But in fact, we need a bit more info than this.
Similar Messages
-
Uploding sub screens in module pool programs
HI,
Can any one help in uploading sub screens in module pool program .
Regards,
Mahendra.Hi
Debugging of module pool is same as reports, use /h or put breakpoint
but u shud know what u want to check
there are generally two event used in module pool
PBO
This event is used before displaying the screen,It is used to clear fields table, show table control, tabstrip and most important conditionally modify the scrren .
PAI
is used to validate the fields which are entered on the screen with database values and then fetch records from table.
i mean all values to make available in internal table
now u would be sure which part u want to debug.
<REMOVED BY MODERATOR>
Regards,
Chandru
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 6:19 PM -
Call report selection screen in module pool program with tab strip control
Hi,
Could anyone explain in detail to call report selection screen in module pool program with tab strip control.
Thanks
ManoHi,
Refer std program:
demo_sel_screen_in_tabstrip.
demo_sel_screen_with_tabstrip.
Call your program with SUBMIT stmt form module program.
Reward points if this Helps.
Manish -
How to remove the print popup screen from module pool program
Hi,
In my project i am having one module pool program in which 7-8 screens are there.
In the initial screen after entering the equipment number when i am executing the program then after loading second screen
it is showing one screen is coming which is asking to print the content of the page.
I want to remove this screen (printing popup) but i am not able to get the code or setting for it.
Please help me to solve this problem.
Thanks and regards.I think this is more to do with ABAP than EP so, the corresponding sections of forum could prove more helpful on this...
Thanks,
H -
How to get the cursor position from screen in module pool program
Hi,
I am doing the module pool program, I have one table control in one screen.
I have to give functionality to the user that when the user enters first record in the table control and after filling the last field
when he presses enter the cursor will have to come in the starting field of the second record.
I know the logic , but i m bit confused.
Can any body help me to solve this....
thanksHi,
Check this code,
Write it in the PBO
MODULE SET_CURSOR_WERTKONTRAKT.
MODULE SET_CURSOR_WERTKONTRAKT OUTPUT.
PERFORM SET_CURSOR USING 'VBAP-ZWERT'.
ENDMODULE. " SET_CURSOR_WERTKONTRAKT OUTPUT
FORM SET_CURSOR USING US_FELDNAME.
DATA: DA_TFILL LIKE SY-TFILL.
DESCRIBE TABLE IVBAP LINES DA_TFILL.
FCODE 'Create Position':
==> Cursor to the first free line set to make the new position
Can be created directly
IF DA_TFILL EQ 0.
SET CURSOR FIELD US_FELDNAME LINE 1. -> set cursor position
ELSE.
SET CURSOR FIELD US_FELDNAME LINE 2.
ENDIF.
Product proposal actively
Set ==> cursor in the first row
IF DPP_ACTIVE EQ CHARX AND
XVBAP_UMFANG_OPV IS INITIAL.
in the 'target volume' if available
IF KOPGR_MIT_ZMENG CS TVAK-KOPGR.
SET CURSOR FIELD 'VBAP-ZMENG' LINE 1.
EXIT.
ELSE.
Else in the field 'Order quantity'
SET CURSOR FIELD 'RV45A-KWMENG' LINE 1.
EXIT.
ENDIF.
ENDIF.
Hope it helps you,
Regards,
Abhijit G. Borkar -
How to validate the field values in module pool program?
Hi Guys
I am working with module pool programming.
Here I want to validate the fields like below.
with out filling all the fields if I click SAVE option it has to show a message that all fields has to be filled. This can be done by checking all the fields individually.
I think it can be done through <b>LOOP AT SCREEN ......ENDLOOP</b>. sequence.
If it is possible, can anyone help me?You need to write the Module in between the CHAIN and ENDCHAIN statment in SE51
If you send a warning or error message from a module <mod> that you called using a FIELD statement as follows:
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1>.
FIELD: <g1>, <g 2>,...
MODULE <mod2>.
ENDCHAIN.
all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.
Look at the DEMO program DEMO_DYNPRO_FIELD_CHAIN.
ashish -
Current time in module pool programming in text field
Hello Friends,
In module pool programming ther is a input output field for time i want the current system time should be displayed in that field and when user press saves tht time should get saved in the database tables.
regards,
SunnyHi, sunny,
If I understand your question correctly than I think that the following code will help you, you will have to write this code in the called program means where you are calling your screens.
data: tf_rec_no(10). u201Ctf_rec_nou201D is the field name on your screen
initialization.
write: sy-uzeit to tf_rec_no.
after this you can update db using this field.
Replay if any problem or you have some different query.
Kind Regards,
Faisal. -
How to change the logon language in module pool program?
Hello All,
I had created a module pool program and had desiged a screen.
When i am logged in English language i am able to see them in english as per the requirement it is working fine.
But the requirement is wen i am logged in DE then the selection-screen texts should show in English and not in German.
Kindly give me a solution for this.
Thanks & Regards,
Rajesh KumarHi Rajesh,
This problem is because you have maintained a standard dictionary fields on selection screen and all the standard dictionary fields are maintained in DE language, on the screen layout, go to the attributes of that particular text field, there is a option MODIFIZ for dictionary fields (it is a drop down), selection F TEXT, now whatever the text u will define, it will remain same for all the languages, once u do this then u again login in DE,l u will see the text maintained by u and not the DE text.
Do reply if problem still persist.
point if useful.
Rohit G
Edited by: Rohit Gaharwar on Aug 11, 2009 1:24 PM
Edited by: Rohit Gaharwar on Aug 11, 2009 1:30 PM
Edited by: Rohit Gaharwar on Aug 11, 2009 1:36 PM
Edited by: Rohit Gaharwar on Aug 11, 2009 1:36 PM
Edited by: Rohit Gaharwar on Aug 11, 2009 1:37 PM
Edited by: Rohit Gaharwar on Aug 11, 2009 1:38 PM -
Making a screen in module pool program web based
I have developed a module pool program with screens and flow logic. I want to make that application web based. Is there any option to make it web based or I have to write the fresh application in bsp. Please suggest
Sucheta,
You unfortuantely need to re-write that application as BSP. If you separated your business logic from the screen logic, then all you will need to do is rewrite the screen logic and not the whole application.
Take care,
Stephen -
Checking Records in multiple screens using module pool programming
Hi,
I created student registration form using module pool programming.In first SCREEN i designed like the Below.
Name: <INPUT/OUTPUT Field>
Emailid: <INPUT/OUTPUT Field>
Password:<INPUT/OUTPUT Field>
CREATE<Push Button> SIGNIN<Push Button> cancel<Push Button>
in screen 1000 I created like the above screen and i wrote the code for it.It's successfully inserted records in ZSTUDENT database.
BUT
when i call the second screen 2000.I design the screen like below.And database table is ZSTU_LOGIN.
username : <INPUT/OUTPUT Field>
password : <INPUT/OUTPUT Field>
LOGIN<push Button> EXIT<Push Button>
AND i created Third screen 3000.Like full of detail of student details like First Name,Last Name,DOB,Education Details,Contact Details etc...
BUT I'm facing the pbm is
whatever the record is stored in table ZSTUDENT-Name & password when i call the screen 2000 that USERNAME & PASSWORD are same
Then go to THIRD screen 3000.BUT i wrote the code for second screen 2000 by using SELECT statement.without my code check it will go to third
screen 3000 By the Statement of Call screen 3000.
PLZ any one help me HOW to CHECK the Exact Record From second Screen 2000 to First Screen 1000.
HOW to Check the code AND can u provide me any code available.
thanks,
AnushaHi vikram,
I wrote the code for screen 2000 like below.
MODULE STATUS_2000 OUTPUT.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
TABLES : ZSTUDENT_ENTER.
TYPES: BEGIN OF ST_TAB1,
USERNAME TYPE ZSTUDENT_ENTER-USERNAME,
PASSWORD1 TYPE ZSTUDENT_ENTER-PASSWORD1,
END OF ST_TAB1.
DATA : W_TAB1 TYPE ZSTUDENT_ENTER.
DATA : IT_TAB1 TYPE STANDARD TABLE OF ZSTUDENT_ENTER.
DATA : USERNAME TYPE CHAR50,
PASSWORD1 TYPE CHAR25.
ENDMODULE. " STATUS_2000 OUTPUT
*& Module USER_COMMAND_2000 INPUT
* text
MODULE USER_COMMAND_2000 INPUT.
CLEAR W_TAB1.
MOVE-CORRESPONDING W_TAB TO W_TAB1.
IF SY-SUBRC EQ 0.
SELECT SINGLE MAILID PASSWORD
INTO CORRESPONDING FIELDS OF W_TAB
FROM ZSTUDENT_INFO
WHERE USERNAME = W_TAB-MAILID AND
PASSWORD1 = W_TAB-PASSWORD.
CALL SCREEN 2000.
ENDSELECT.
ELSEIF SY-SUBRC NE 0.
MESSAGE 'INVALID USERNAME/PASSWORD'.
ELSEIF SY-UCOMM = 'LOGIN'.
CALL SCREEN 3000.
ENDIF.
ENDMODULE. " USER_COMMAND_2000 INPUT
But i could not found whether code is write or not.
syntax error is USERNAME is Unknown.
could solve me my pbm anybody.....
Thanks,
Anusha -
Selection screen in module pool programming..
hi,
I designed some screen elements for KUNNR and MATNR and handled their value selection thru POV request.
I want to select data from my table using these values. Will a simple select statement with AND condition on these values work ? I doubt as even if the user does not enter value for one of these, my select is giong to fail. for e.g. he enters value for KUNNR but not for MATNR.
If that is so then shud i need to design a screen which must display select options like for KUNNR, MATNR etc ? if yes then the value that is displayed there when user selects F4 must be controlled by me. how to design this in module pool ?? where to write statements related to selection screen definition and how to handle its selection ?
thksit is possible.
I am involved in this topics check my post for one method .
https://forums.sdn.sap.com/click.jspa?searchID=14529204&messageID=1412188
https://forums.sdn.sap.com/click.jspa?searchID=14529204&messageID=1501162
in the above post there is alternative by Rich. that is simple and easy.
Regards
Vijay Babu Dudla -
How to pass the field value from module pool program to smartform using submit?
// AT pai of module pool pgm i entered the following: here gv_orderid is my value to be available at smart form(driver pgm) & zmusic_store_smf is the driver program of my smartform.
gv_orderid= wa-itemid./
SUBMIT ZMUSIC_STORE_SMF VIA SELECTION-SCREEN
WITH p_order = gv_orderid
AND RETURN.
//AT driver pgm(zmusic_store_smf):
START-OF-SELECTION.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZMUSIC_SMARTFORM1'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = lv_form
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION lv_form
EXPORTING
* iv_orderid = is_purchase_item-zorder_id.
iv_orderid = gv_orderid.
// here i'm trying to call my smartform('ZMUSIC_SMARTFORM1') from this driver pgm but unable to access the value of gv_orderid please help me out with this.Declare the gv_orderid in modulepool program.
And Declare the parameter as import parameter in smartform.
CALL FUNCTION lv_form
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
i_input = gv_orderid
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5 -
Control Mandatory fields on custom screen in Module pool program
Hello all,
I have developed a custom screen on which I have a table control with 5 fields. I wanted to make the first three fields mandatory. So instead of selecting the entry as "required" from the screen attributes for these input fields, I have looped at table screen in PBO and based on the screen name and screen group I have set the field screen-required = 1. By doing this, I could make these 3 fields mandatory.
Now, when I enter the data for the first line and press enter, it is asking me to fill the required fields in the second line and so on.How can I avoid this without having to remove the mandatory symbol in the subsequent lines?
There is an altenative way of achieving this by not making the fields mandatory on the screen but while saving we can check if the value is entered and raise a message. In this scenario the user would not know that they are obligatory fields until he hits save button.
For example, in standard transaction VK12, if we select condition type K005 and go to the maintenance, we see that material is obligatory.
After entering material in first line and when I hit enter, it does not ask me enter the material in the second and subsequent lines even though it is a mandatory field.
I want to achive this functionality in my custom screen also.
Can anyone let me know how to handle this?
Thanks,
Sandeep.sandeep akula wrote:
I have developed a custom screen on which I have a table control with 5 fields. I wanted to make the first three fields mandatory. So instead of selecting the entry as "required" from the screen attributes for these input fields, I have looped at table screen in PBO and based on the screen name and screen group I have set the field screen-required = 1
Why didn't you set these fields as required on the attributes? That has to be the easiest way.
Rob -
Refresh customization screen in module pool programming
Hello Colleagues,
I have a requirement where in i have to refresh the customization screen of table.
Detail: i have generated table maintenance screen of table 'XYZ'. Now from this screen i am launching one pop-up screen.
within this pop-up screen i am modifying this table 'XYZ'. So when i close the pop-up i wanted to see the refreshed value in my maintenance screen of table 'XYZ'.
Could you please help?
Regards,
Viratdefine the table global to the entire program.
in PAI of Pop up, modify the internal table with the changed values..
in PBO of the main screen, always check is data exists, then clear and update from the modified table. -
Split screen in module pool programming
Hi Sap GURUS,
Please can you provide me some help on how to create the spilt screen ( similar to IDOC screen WE05 transaction ) screen. left side the idoc nubmer are available, on click of particular IDOC, detials would be displayed in right side sceen. I need to develope the screen like this.
You inputs are highly appricated.
Thanks in advance.
Regards
HarikrishnaCheck out this code:
1) First create a docking container.
2) Docking will hold your tree
3) double clicking on the tree will open a screen on the right side.
This program only demonstrates how to create a docking container and split it...
REPORT z_sourav_splitter.
TYPE-POOLS:cndp.
DATA: docking TYPE REF TO cl_gui_docking_container,
splitter TYPE REF TO cl_gui_splitter_container,
picture_control_1 TYPE REF TO cl_gui_picture,
picture_control_2 TYPE REF TO cl_gui_picture,
dock_sub_cont1 TYPE REF TO cl_gui_container,
dock_sub_cont2 TYPE REF TO cl_gui_container,
url1 TYPE cndp_url, " URL-field in screen 200
url2 TYPE cndp_url. " URL-field in screen 200
PARAMETERS: p TYPE char1.
AT SELECTION-SCREEN OUTPUT.
IF docking IS NOT BOUND.
* create the docking container
CREATE OBJECT docking
EXPORTING
* parent =
repid = sy-repid
dynnr = sy-dynnr
side = docking->dock_at_left
extension = 200
* style =
* lifetime = lifetime_default
* caption =
* metric = 0
* ratio =
* no_autodef_progid_dynnr = 'X'
* name =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6
IF sy-subrc = 0.
CHECK splitter IS NOT BOUND.
CREATE OBJECT splitter
EXPORTING
link_dynnr = sy-dynnr
link_repid = sy-repid
* shellstyle =
* left =
* top =
* width =
height = 50
* metric = cntl_metric_dynpro
align = 15
parent = docking
rows = 2
columns = 1
* no_autodef_progid_dynnr =
* name =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3
IF sy-subrc = 0.
CALL METHOD splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = dock_sub_cont1.
CREATE OBJECT picture_control_1
EXPORTING
parent = dock_sub_cont1.
CALL FUNCTION 'DP_PUBLISH_WWW_URL'
EXPORTING
objid = 'DEMOWORD97SAPLOGO'
lifetime = cndp_lifetime_transaction
IMPORTING
url = url1
EXCEPTIONS
dp_invalid_parameters = 1
no_object = 2
dp_error_publish = 3
OTHERS = 4.
* load image
IF sy-subrc = 0.
CALL METHOD picture_control_1->load_picture_from_url_async
EXPORTING
url = url1.
ENDIF.
CALL METHOD splitter->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = dock_sub_cont2.
CREATE OBJECT picture_control_2
EXPORTING
parent = dock_sub_cont2.
CALL FUNCTION 'DP_PUBLISH_WWW_URL'
EXPORTING
objid = 'ENJOYSAP_LOGO'
lifetime = cndp_lifetime_transaction
IMPORTING
url = url2
EXCEPTIONS
dp_invalid_parameters = 1
no_object = 2
dp_error_publish = 3
OTHERS = 4.
* load image
IF sy-subrc = 0.
CALL METHOD picture_control_2->load_picture_from_url_async
EXPORTING
url = url2.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
Maybe you are looking for
-
Open file vi return not a refnum in executable
Hey there, I have a the "Open/Create/Replace File" vi in an executable. It works perfectly fine on my development machine, both in development and in the executable. When I install it on another machine, the <not a refnum>-function returns true. It s
-
How to keep the field value in the forms for one week
I have an application that when the user logs on to it , it shows all the documents that are in the current dept. the form has the following fields: document no sent date assigned to dep_LOV and a check box if a user clicks the check box and assignes
-
I have started to use firefox as my browser after a lapse of several months. This version is now old it seems and i have been asked by Firefox to update it.However evrery time i try it fails to register or it fails to be accepted by my computer, and
-
When i start my PC, it takes to long to turn on, so when finaly its on i try to open a webpage and it taks to long, like 2 minutes... how can i fix it? do i have to take it to a macstore?
-
Need info about 2006s(5.1/5.2)
Hi, Need some info about the new product 2006s (5.1/5.2), what are the new features, whats new on the technology side, what skill sets will be required for these products. is GUI/SPRO still there in the new products or some new config tool is being