Calling selection screen from another selecton screen.
Hi guys,
I want to call default selection screen of one program from default selection screen of another program.
Is that possible . would appreciate some helpful answers.
Thanks,
Venkat.
it is possiable.
1.submit
2. call transcation t_code.
Syntax
SUBMIT <prog>.
For more information about the SUBMIT statement, see Calling Executable Programs (Reports)
Assume the following simple report:
REPORT ZDYN3.
WRITE / 'Dynamic Program!'.
The following executable program (report) starts, modifies, and restarts ZDYN3:
REPORT ZMASTER1.
DATA CODE(72) OCCURS 10.
DATA LIN TYPE I.
READ REPORT 'ZDYN3' INTO CODE.
SUBMIT ZDYN3 AND RETURN.
DESCRIBE TABLE CODE LINES LIN.
MODIFY CODE INDEX LIN FROM
'WRITE / ''Dynamic Program Changed!''.'.
INSERT REPORT 'ZDYN3' FROM CODE.
SUBMIT ZDYN3.
The output of this program is displayed on two subsequent output screens. The first screen displays:
Dynamic Program!
The second screen displays:
Dynamic Program Changed !
When you use the SUBMIT statement, all modifications made to a program during runtime take immediate effect before they are submitted. In the above example, ZDYN3 is submitted from ZMASTER1 first in its original and then in its modified form, generating different results.
This is not the case if you change the codes of include programs or subroutines dynamically.
Assume the following include program:
INCLUDE ZINCLUD1.
WRITE / 'Original INCLUDE program!'.
and an executable program (report) for modifying and including it:
REPORT ZMASTER2.
DATA CODE(72) OCCURS 10.
DATA LIN TYPE I.
READ REPORT 'ZINCLUD1' INTO CODE.
DESCRIBE TABLE CODE LINES LIN.
MODIFY CODE INDEX LIN FROM
'WRITE / ''Changed INCLUDE program!''.'.
INSERT REPORT 'ZINCLUD1' FROM CODE.
INCLUDE ZINCLUD1.
If you run ZMASTER2, the source code of include program ZINCLUD1 is changed and replaced in the system. However, the last line of ZMASTER2 executes the older version since the runtime object of ZMASTER2 is generated before ZINCLUD1 is modified. Only when ZMASTER2 is run a second time, does the system determine that ZINCLUD1 has been changed. Exactly the same is true if you dynamically modify the source code of a subroutine and call it from within the same program.
One way to solve this problem is to use the INCLUDE statement within an external subroutine that is called by the program. This allows you to create or modify include programs or subroutines and use the updated versions directly in the same program.
Assume the following include program:
INCLUDE ZINCLUD1.
WRITE / 'Original INCLUDE program!'.
and an external subroutine:
PROGRAM ZFORM1.
FORM SUB1.
INCLUDE ZINCLUD1.
ENDFORM.
The following program reads the include program, modifies it, enters it back into the system, and calls the subroutine.
REPORT ZMASTER3.
DATA CODE(72) OCCURS 10.
READ REPORT 'ZINCLUD1' INTO CODE.
APPEND 'WRITE / ''Extension of INCLUDE program!''.' TO CODE.
INSERT REPORT 'ZINCLUD1' FROM CODE.
PERFORM SUB1(ZFORM1).
This produces the following output:
Original INCLUDE program!
Extension of INCLUDE program!
In this case, the updated version of the include program is used in the subroutine because its time stamp is checked when the subroutine is called, and not when the calling program is generated.
Similar Messages
-
How to call dynamic selection screen from another report
hi,
i have transaction ZFAGLL03.
it has got standard selection screen.. and dynamic selection screen...
i am calling this transaction from another report, now how do i display this dynamic selection screen.....Try following code and see if it helps:
TYPE-POOLS : rsds.
TABLES:tgsb.
DATA: trange TYPE rsds_trange,
trange_line
LIKE LINE OF trange,
trange_frange_t_line
LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line
LIKE LINE OF trange_frange_t_line-selopt_t,
trange_line1
LIKE LINE OF trange,
trange_frange_t_line1
LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line1
LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.
DATA: seltab TYPE TABLE OF rsparams WITH HEADER LINE,seltex TYPE rsds_texpr.
SELECT-OPTIONS:so_gsber FOR tgsb-gsber.
LOOP AT so_gsber.
trange_line-tablename = 'FAGLFLEXA_FS'.
trange_frange_t_line-fieldname = 'RBUSA'.
MOVE-CORRESPONDING so_gsber TO trange_frange_t_selopt_t_line.
APPEND trange_frange_t_selopt_t_line
TO trange_frange_t_line-selopt_t.
ENDLOOP.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit FAGL_ACCOUNT_ITEMS_GL with FREE SELECTIONS texpr AND RETURN . -
Probe in calling tabstriped screen from another screen ..
hi
could any one please help me ,,,that what is the logic for calling tabstriped screen from another screen ..
Thanks N Regards
PriyaHi,
Jonathan.
Thanks for the response ...
I did execute with call screen statement ...(CALL SCREEN 0123). ..when i excute the program its working fine ,but the same programe when I execute with the T.CODE ...its giving erorr ...
ERORR:Program " ZTEST "tried to use screen 000.
the screen doesn't exist.
HERE IS CODE.
let me know where is the mistake ..
could you please , help me ,,what i suppose to do .
let me know where is the mistake ..
REPORT ZTEST .
DATA: DATE LIKE SY-DATUM,
TIME LIKE sy-uzeit.
DATA number TYPE sy-dynnr.
CONTROLS tabstrip TYPE TABSTRIP.
tabstrip-activetab = 'TAB1'.
number = '1003'.
tabstrip-activetab = 'TAB2'.
number = '1004'.
CALL SCREEN 1000.
*& Module STATUS_1000 OUTPUT
text
MODULE STATUS_1000 OUTPUT.
CASE : SY-UCOMM.
WHEN 'ENTER'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'MOD'.
DATE = DATE.
TIME = time.
SCREEN-INPUT = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDCASE.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1000 OUTPUT
*& Module USER_COMMAND_1000 INPUT
text
MODULE USER_COMMAND_1000 INPUT.
CASE SY-UCOMM.
WHEN 'ENTER'.
LEAVE TO SCREEN 1001.
endcase.
ENDMODULE. " USER_COMMAND_1000 INPUT
*& Module USER_COMMAND_1001 INPUT
text
MODULE USER_COMMAND_1001 INPUT.
CASE SY-UCOMM.
WHEN 'button1'.
CALL SCREEN 1002.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
*& Module USER_COMMAND_1002 INPUT
text
MODULE USER_COMMAND_1002 INPUT.
CASE sy-ucomm.
WHEN 'TAB1'.
number = '1003'.
WHEN 'TAB2'.
number = '1004'.
ENDCASE.
ENDIF.
ENDMODULE. " USER_COMMAND_1002 INPUT
*& Module STATUS_1002 OUTPUT
text
MODULE STATUS_1002 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_1002 OUTPUT
Thanks N Regards.
Priya. -
iPad revers back to a home screen from another page being used, IE Facebook Good battery and wifi signal. Sometimes several times in a couple of minutes. Could there be an problem with internal hardware
Hi there
My wife and I have been dealing with a very similar issue with our iPhone 5ss, all battery drain issues started after the upgrade to ios 7.03. We have performed numerous restores and have had 3 trips to the Genius Bar. Finally they gave us new iPhones (yesterday). We had hoped this would do the trick but we have the same problem on the new phones.
This morning I restored one and didn't sign into iCloud. Battery drain is now gone. And when I deleted iCloud from my wife's phone it too went back to normal. So I believe the culprit is iCloud and I am now testing various setups with iCloud to determine which app/setting is causing the problem.
Hope this helps with your phones. I will post again if I can narrow it down to something specific.
Good luck! -
Since yesterday my Apple TV will not load the movies or tv at all. I select it from the home screen, it goes black, tries to load then goes back to the home screen. YouTube and Netflix works though. I've reset the Apple TV and the modem. No change. Any ideas what the problem is?
Apple TV: Unable to access Movies, TV Shows, or other iTunes features after updating
http://support.apple.com/kb/TS4526 -
Problem regarding calling a program from another program
Hi,
I have a requirement that i need to call a program from another program and in that case the called program should be executed with a value in the selection screen coming from the first program..i.e.
a standard report to view the user Notes for annual leave is RPTARQDBVIEW. Can we create a report to display all the users under a manager as a hyperlink and run the report(RPTARQDBVIEW), with the pernr of the employee selected
Regards,
saumikSubmitting a report using ranges for select-options
* Define range for ltak-tanum
RANGES: r_tanum FOR ltak-tanum.
* Read values from database tabel into the range
* These values are later used for select-options in the report
SELECT * FROM ltak
WHERE lgnum = w_lgnum AND "Warehouse number/complex
vbeln = w_screen1000-io_vbeln. "Transfer order number
MOVE ltak-tanum TO r_tanum-low.
MOVE 'I' TO r_tanum-sign.
MOVE 'EQ' TO r_tanum-option.
APPEND r_tanum.
ENDSELECT.
* Submit report with range
SUBMIT zmm00100 WITH p_tanum IN r_tanum.
or
Submitting a report from ABAP with selection criterias
TYPES: tt_selection TYPE STANDARD TABLE OF rsparams.
DATA: l_iblnr TYPE st_iblnr,
* Define internal table and work area for select-options
l_selection TYPE rsparams,
li_selection TYPE tt_selection.
* Create selectIon table
LOOP AT gi_iblnr INTO l_iblnr.
CLEAR l_selection.
l_selection-selname = 'IM_IBLNR'. "Option name
l_selection-kind = 'S'. "S= select options P=Parameters
l_selection-sign = 'I'. "Sign
l_selection-option = 'EQ'. "Option
l_selection-low = l_iblnr-iblnr. "Value
APPEND l_selection TO li_selection.
ENDLOOP.
* Submit report
SUBMIT rm07idif WITH SELECTION-TABLE li_selection AND RETURN.
Regards,
Prabhudas -
Regarding calling 1 report from another
Hello Friends,
Can u plz tell me how to call one report from another report.
Regards,
Drashanahi,
Use SUBMIT program statement
SUBMIT ZFIR001
chk this.
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
load each personnel number accessed from the structure into
parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
*Code used to populate 'parameters' & execute report
SUBMIT zreport with p_param1 = 'value'
with p_param2 = 'value'.
Other additions for SUBMIT
*Submit report and return to current program afterwards
SUBMIT zreport AND RETURN.
*Submit report via its own selection screen
SUBMIT zreport VIA SELECTION-SCREEN.
*Submit report using selection screen variant
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Once report has finished and control has returned to calling
program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
DISPLAY_LIST to retrieve and display report.
\[removed by moderator\]
rEGARDS
Edited by: Jan Stallkamp on Jul 29, 2008 5:25 PM -
CALL TRANSACTION 'ME33K from another program
Hi,
I ma trying to CALL TRANSACTION 'ME33K from another program, but it is not working. The transactions is opening, but it is not opening with the contract number (ls_ekpo-ebeln) i am passing.
ls_ekpo-ebeln does have a valued when CALL TRANSACTION 'ME33K is called.
In debug, I noticed the "value" is blank when step into CALL TRANSACTION 'ME33K .
WHEN 'EBELN'. "Contract
l_field = 'EVRTN'.
IF ls_ekpo-ebeln <> ''.
GET PARAMETER ID 'VRT' FIELD l_field. "EVRTN.
SET PARAMETER ID 'VRT' FIELD ls_ekpo-ebeln.
CALL TRANSACTION 'ME33K AND SKIP FIRST SCREEN.
SET PARAMETER ID 'VRT' FIELD ls_ekpo-ebeln.
ENDIF.
Any help or suggestions would be great.
Thanks,
NaingDear Naing,
I execute the same code
IF ls_ekpo IS INITIAL.
GET PARAMETER ID 'VRT' FIELD LS_EKPO.
SET PARAMETER ID 'VRT' FIELD ls_ekpo.
CALL TRANSACTION 'ME33K' AND SKIP FIRST SCREEN.
SET PARAMETER ID 'VRT' FIELD ls_ekpo.
ENDIF.
And it is working.
Try to do de simple sintax.
A program with one pararmeter to introduce the contract number.
The set parameter for this parameter and the call transaction.
I´m waiting your comments.
Regards.
Antonio. -
Is there a Siri command to get to the home screen from the lock screen?
Here is the situation - an elderly friend of mine (94 years old) was in a panic because there were text messages on the lock screen and try as he might he could not "slide to open."
He has no passcode set.
Anyway, I had him try this and it worked:
1. Use Siri to "open calendar."
2. After it opened, press the Home button to get to the home screen.
That way he was able to get in.
Is there a Siri command to go directly to the Home Screen from the lock screen? I tried various things I could think of, but couldn't figure out anything that worked.
What would be best is being able to bypass the lock screen altogether. I have another elderly friend who is blind and it is a source of constant confusion for him.
As for voiceover - he is finding it impossible to figure out. I can see, and I am also finding it impossible to figure out. We tried to use it to get into the TED app and select, play and stop videos and all sorts of weird UI elements starting popping up and it was frustrating him so we turned voiceover off. But that's for another discussion thread.
In the meantime, is there an easy way to get home if somebody is having trouble sliding?
Thanks,
dougDoug Lerner2 wrote:
I think the more "assistive" features are turned on the harder it is for both my sighted and blind friend to use.
Yes, that can sometimes be true.
Unless your older but sighted friend has difficulty with fine motor movements, I suspect that the slide to open is a matter of practice. If you can convice your friend that they are capable of learning it and get them to work with it a bit that might help. I've found that older learners can become frustrated very quickly with technology. They either have themselves convinced they can't learn technolgy or that get annoyed because iPhones are supposed to be "intuative". The challenge is getting them to feel okay about being a beginner at something.
You're a good friend to take on this teaching task.
Best of luck. -
How to call a BSP from another BSP?
Hi All,
I've created a BSP for hiring new employees. I have a situation whereby when the user presses a button a pop window will be displayed listing all the positions in the company. The user selects the correct position, which then populates an input box on the originating page and the pop up window closes.
This pop up window is a page in another bsp which goes off and gets the positions and stores the selection in a cookie.
Now my problem is how do i call this 'get postions' bsp from my originating bsp?
I've tried using the <%@ include file="/sap/bc/bsp/sap/z_hr_org_model"%> but i get the error only page fragments can be included.
So how do i call one bsp from another??
Any help would be much appreciated,
Kind Regards,
Liz.Look at the below [link|http://****************/Tutorials/BSP/F4Help/Tutorial.htm]
The only difference in your case is, you need to call the popup from different BSP Application.
To do that, just add the full path when you call the document.open..
For example,
document.open("/sap/bc/bsp/sap/z_hr_org_model/main.do", ............)
Raja -
How to call a process from another project
Hi;
How to calling a process from another process in another project? Which activity that i need or web service, direct binding? I use 11gHi Tulasi ;
I have wsdl of the process i need to call. Also wsdl address on the server. But CALL activity can't use to service call. CALL activity can use only to reusable process call.
I think, this operation must make on composite.xml. But I have a same problem with this method and it don't work.
I create a base process that looking at below. It's include a direct binding. Is it include a direct binding?
[Base Process|http://d1201.hizliresim.com/t/s/21wqu.png]
Then i create a process that call to base process:
[Caller Process|http://d1201.hizliresim.com/t/s/21wqx.png]
I paste to base process' wsdl address on the server. Then i select port type (BaseProcessPortType) and a warning has occured that you see the picture above. Base Process contain Oracle SOA Composite Type. What's the wrong? It happened for Callback Port Type.
And second question is what's the Address? (under Reference Binding Setails option).
I think, i create the this direct binding correctly, i call to base process into my caller process via service activities. -
How to call a servlet from another servlet
hi everybody,
i have a problem, i have to call one servlet from another one.
Everything works on my pc, but when i install the application on the customer's server i got an error about an Uknown URL followed by the name of the machine.
Wjat i do is the folloqing :
String urlString = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+servletName;
URL url = new URL(urlString);
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
the variable servletName is the name of the servlet i have to call.
Is there another way to call the servlet ?
All the servlet are installed in the same server.
Any suggestion ?
Cheers.
StefanoSweep is correct about requestDispatcher being another approach for inter-servlet delegation; the only issue that i recall with this approach is that it defaults the method of the destination servlet to the one it was called from...for example, calling servlet2 from within servlet1.post() resulted in the dispatcher attempting to utilize servlet2.post() - i believe that i searched for a parameterize solution to no avail :( (ended up handling the request by placing a "fake" doPost() in servlet2 that simply called servlet2.doGet())
however, if your application is functioning correctly on your pc/webserver then the problem may be external to servlet communication (e.g. client webserver's ports not configured or blocked, missing runtime classes, etc.)
my suggestion would be to set aside the programmatic concerns for the moment - what is the response if you open a browser on a client's machine and access the URL in question (i.e. http://clientserver:port/stefanoServlet)? If it will not respond to access in this manner then it certainly won't when your application calls for it.
It's possible that there is a coding error but, given the info supplied, i'd start examining the environment, first. Let us know if you have any luck with the test i recommended or not (please provide abundant detail). Or, if you've found the solution then you may want to post back with a quick blub so the next person knows how to escape the trap.
D -
Calling a report from another report
Hi,
Is there any way ,(any built in ) to call a report from another report in Report Builder 2000 and Report Builder 6i.
RegardsTry to call report from report by a button in the calling report:
1 In the Layout Model view, click in the tool palette. Note
2 Click and drag a rectangle.
3 Double-click the button object to display the Property Palette.
4 Under the Button Label node, set the Label Type property to either Text or Icon:
n If the button label is text, set the Text property to the text you want to appear on the button.
n If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
5 Under the Button Behavior node, set the Type property to PL/SQL.
6 Double-click the PL/SQL Trigger property value field.
7 In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
8 Set other properties as desired.
9 To activate the button, run the report, then display it in the Runtime Previewer. -
Calling a Report from another Report.....URGENT
Hi,
I am calling a report from another report using hyperlink. I want that this new report should come in a new page.
Can any body help me where i can set this property, so that the new report will open in a new page.
Thanks in advance
Regards
KamalTry to call report from report by a button in the calling report:
1 In the Layout Model view, click in the tool palette. Note
2 Click and drag a rectangle.
3 Double-click the button object to display the Property Palette.
4 Under the Button Label node, set the Label Type property to either Text or Icon:
n If the button label is text, set the Text property to the text you want to appear on the button.
n If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
5 Under the Button Behavior node, set the Type property to PL/SQL.
6 Double-click the PL/SQL Trigger property value field.
7 In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
8 Set other properties as desired.
9 To activate the button, run the report, then display it in the Runtime Previewer. -
How to call one .SWF from another?
How do I call one .SWF from another. I built a very beefy
base .SWF, and want to add music overlay, and an intro slide show
to the exsting Flash animation, but put it in a second .FLA/.SWF
file. How do I call one from the other?
This will be embedded in an HTML file but I assume this is
superfluous to my question.
F.Z.I think you should open that Another SWF (FLA),
and add some actionscript..
For example, you could create a movie clip, and write
actionscript in the
first keyframe:
loadMovie("
http://www.somewebpage.com/movie.swf",
this);
"FredZimmerman" <[email protected]> wrote in
message
news:ftnjas$mj5$[email protected]..
> How do I call one .SWF from another. I built a very
beefy base .SWF, and
> want
> to add music overlay, and an intro slide show to the
exsting Flash
> animation,
> but put it in a second .FLA/.SWF file. How do I call one
from the other?
>
> This will be embedded in an HTML file but I assume this
is superfluous to
> my
> question.
>
> F.Z.
>
Maybe you are looking for
-
Duplicate loops in GarageBand 11
My GB Loop Browser shows duplicate loops, I would like to remove the duplicates. Not sure how or where. I know it's been asked many times but I can't find a GB11 specific solution. Previous versions of GB appear to store Apple Loops in different loca
-
hi there could anyone help me with with this small issue since i update something to do with my network when i try to log on to the internet useing my default settings in my home wireless network, it goes straight onto virgin network is there any way
-
I need to create a formula for this requirement: Business Warehouse ABC Analysis report will be designed to rate and rank each material within the total inventory of one Plant with an ABC Indicator value. The process is as follows: 1. Materials are s
-
DB13 error: permission denied
hi all, We want to take backup of our Production server through DB13. but when we start backup it generate error " 11/2/2010 1:15:13 PM Job started 11/2/2010 1:15:13 PM Step 001 started (program RSDBAJOB, variant &0000000000010, user
-
Operation details of a Maintenance Order.
Hi Gurus, I am looking for a link to pick up the Operation number along with Operation description and the details of components required using tables. I will have the input as a number of Maintenance Orders and I want the system to bring out the det