Regarding Calling a Report Program
Hi Gurus,
1. I have an Requirement in which i need to call Program CATSSHOW.
I need to Pass the Selection screen values from calling program by skipping the Selection screen of Called Program.
or
2. Can i call the Transaction CADO(which is T-CODE for CATSSHOW Program)
by passing selection screen values from calling program to call program skipping selection screen.
I used a. SUBMIT catsshow
WITH so_pers IN r_pernr
WITH so_datum IN r_datum
AND RETURN.
which goes to the called program and does not pass the values to the ranges in called program.
a. SUBMIT catsshow VIA SELECTION-SCREEN
WITH so_pers IN r_pernr
WITH so_datum IN r_datum
AND RETURN.
which goes to the called program and pass the values to the ranges in called program and displays the selection screen. (which i needs to skip).
Please help regarding this.
Thanks and Regards
Sanath
SUBMIT catsshow
WITH so_pers IN r_pernr
WITH so_datum IN r_datum
AND RETURN.
this should work.. make sure r_pernr and r_datum are filled properly the option and sign fields...
MOVE wa_parameter-parva TO s_vkorg-low.
MOVE 'I' TO s_vkorg-sign.
MOVE 'EQ' TO s_vkorg-option. "<<<<< this varies
APPEND s_vkorg.
MOVE wa_parameter-parva TO s_vkorg-high.
MOVE 'I' TO s_vkorg-sign.
MOVE 'EQ' TO s_vkorg-option. "<<<<< this varies
APPEND s_vkorg.
look at the padded zeros or conversion exits available for the field...
Similar Messages
-
Calling a report program in another program.
can we call on report program in another report program. If yes, please give me the right syntax. Thanks in Advance.
Hi,
Use SUBMIT AND RETURN statement. In below given codes,
I'm sending an internal table t_spfli to a memory id abc. After that I'm calling another program by using SUBMIT <program name> AND RETURN.
Check these two programs
PROGRAM 1
REPORT z_abap_memory.
DATA:
w_carrid TYPE spfli-carrid,
BEGIN OF fs_spfli,
carrid LIKE spfli-carrid,
connid LIKE spfli-connid,
fltime LIKE spfli-fltime,
END OF fs_spfli.
DATA:
t_spfli LIKE
TABLE OF
fs_spfli.
SELECT-OPTIONS:
s_carrid FOR w_carrid.
START-OF-SELECTION.
PERFORM get_spfli.
PERFORM disp_spfli.
AT LINE-SELECTION.
IF sy-lsind EQ 1.
EXPORT t_spfli TO MEMORY ID 'ABC'.
SUBMIT z_ABAP_MEMORY1 AND RETURN.
ENDIF.
END-OF-SELECTION.
PERFORM disp_spfli.
*& Form get_spfli
* text
* --> p1 text
* <-- p2 text
FORM get_spfli .
SELECT carrid
connid
fltime
FROM spfli
INTO TABLE t_spfli
WHERE carrid IN s_carrid.
ENDFORM. " get_spfli
*& Form disp_spfli
* text
* --> p1 text
* <-- p2 text
FORM disp_spfli .
LOOP AT t_spfli INTO fs_spfli.
WRITE: / fs_spfli-carrid,
fs_spfli-connid,
fs_spfli-fltime.
HIDE:
fs_spfli-carrid,
fs_spfli-connid.
ENDLOOP.
ENDFORM. " disp_spfli
PROGRAM 2
REPORT z_abap_memory1.
DATA:
BEGIN OF fs_spfli,
carrid LIKE spfli-carrid,
connid LIKE spfli-connid,
fltime LIKE spfli-fltime,
END OF fs_spfli,
fs_fl LIKE fs_spfli.
DATA:
BEGIN OF fs_flight,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
END OF fs_flight.
DATA:
t_spfli LIKE
TABLE OF
fs_spfli.
DATA:
t_fl LIKE t_spfli.
DATA:
t_flight LIKE
TABLE OF
fs_flight.
IMPORT t_spfli FROM MEMORY ID 'ABC'.
t_fl = t_spfli.
SELECT carrid
connid
fldate
FROM sflight
INTO TABLE t_flight
FOR ALL ENTRIES IN t_spfli
WHERE carrid = t_spfli-carrid
AND connid = t_spfli-connid.
LOOP AT t_flight INTO fs_flight.
WRITE: / fs_flight-carrid,
fs_flight-connid,
fs_flight-fldate.
ENDLOOP.
Regards
Abhijeet -
Calling one report program from another
Hi All,
i am calling one report program from my program & exporting it's output to SAP-SPOOL using SUBMIT statement. I want to fetch the spool no in my program for this spool. Please guide me how this can be achieved? i have tried SYST- SPONO but it's not working.
Thanks & Regards,
Chetan.Hi,
Initially check this it might be helpful to u.
http://help.sap.com/saphelp_sm40/helpdata/en/30/cc154219fce12ce10000000a1550b0/content.htm.
Even use the function module slike Job_open , Job_close this is also one of the methid to achive spool requests.
Regards,
Sana.
Reward with points if found helpful.. -
Itz possible to call one report program into another program
hi guys,
i had a doubt that can i call a report program into another report program by declaring their name into the second program like as we calling Includes ,function modules and like class and their methods .
if anybody done this or know how to do this, give me the details and explination about this friends
if it possible with screenshots and codings
Thanks & Regards
SaigijeoPlease search before posting, do not ask basic questions here.
Always do your own work before turning to the community with specific problems.
Thread locked.
Thomas
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] -
Calling a Report Program In Web Dynpro Using Submit statment
Hi all,
Can any one suggest how can i call a report program form Web Dynpro using Submit statment. I tried to call it its showing Field symbols not defined error. Is their any other ways to call Report in a Web Dynpro?. I have posted the error message when i tried using SUBMIT ZRR AND RETURN CONTROL
Field symbol has not yet been assigned.
The error occurred on the application server mnghcmsap_HRS_00 and in the work process 1 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Form: CHECKBOX_OUT of program SAPLKKBL
Form: GEN_LINE_OUT of program SAPLKKBL
Form: DATA_OUT_SIMPLE of program SAPLKKBL
Form: LIST_OUTPUT_NEW of program SAPLKKBL
Form: FIRST_LIST_DISPLAY of program SAPLKKBL
Module: LIST_DISPLAY of program SAPLKKBL
Function: K_KKB_LIST_DISPLAY of program SAPLKKBL
Method: PRINT_BACKEND of program CL_GUI_ALV_GRID===============CP
Method: SET_TABLE_FOR_FIRST_DISPLAY of program CL_GUI_ALV_GRID===============CP
Form: PBO of program SAPLSLVC_FULLSCREEN
Edited by: VINMANO on Jul 22, 2009 2:54 PMHI,
Its possible to call report program from Web dunpro...
chk out dis link,
calling report(se38) in webdynpro abap
By the way are using field symbol anywhere and left it unassigned?
Thanks,
Divya.S -
Dear SAP Crew,
In dynamic action, we can call routines through indicatiors.
In that routine, Can we call a report program or schemas???
Kindly clarify with some scenario.
Thks & Rgds
Krish SathyaHi Krish,
In the routine you should be able to SUBMIT the program/report you need to execute.
Cheers,
Aditya -
Calling a Report Program from Web Dynpro
Hi all,
I have a requirement, where i have to call a report program from web dynpro?. Wether its possible to call a report program in web dynpro?. Is we can call it, how this functionality has to be achived?Hello,
Yes it is possible to call report using SUBMIT statement from one of the method defined in COMPONENTCONTROLLER's method tab.
Once you define the method with SUBMIT statement then call that method with proper event.
Rest configuration will remain same for ABAP webdynpro.
Hope this helps.
Thanks,
Augustin. -
Can we call a report program in smartforms
hai
I need my report progrm output should be called in smartforms.
i.e my report output is displayed in a table in smartforms
pls give suggestionHi,
You cannot call report program in smartform.
But,you can call the smartform in your report program.
Refer these links:
how to write driver programming in smartforms
what is the basic purpose of driver program
Regards,
Sravanthi -
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 Normal Report program in workflow?
Hi all,
My requirement is that i want to call a simple report program in workflow?
eg-when i entered material num ,the data related to that material is displayed from MARA table.
when i execute my workitem ,i want that output of report to be displayed.
i have created a z object in that i called one z method ,in that method i have written,
'SUBMIT PrgName AND RETURN.
but it is not working.
Thanks and Regards,
Arpita.Hi Arpita,
I am not sure if a report program can be called from workflow. But would it be possible for you to convery your report program into a BO method? A BO method can be easily called from a workflow.
Please clarify if you have a different requirement.
Regards,
Saumya -
Calling a Report program in Web Dynpro methods
Hi,
Can any one suggest how i can call a Report created in SE38 in Webdynpro?. I tried to call it using Submit statement. But its throwing some error.Hi,
Please refer these links -
https://forums.sdn.sap.com/click.jspa?searchID=29253250&messageID=7731540
report list output on a webdynpro view
Please paste the error or check it in ST22.
Regards,
Lekha. -
How to call the Report program into Function module
Hi Experts,
Actually I want to create the DataSource. But I have only the ALV report program. I need to create function module but I dont know how to call the ALV report program using in function module
So could you please any one send the Document or step by step method?
Advance Thanks,
SathisIf the report is just based out of a table than create a Generic Extractor using View.
If its an InfoSet query than create a Generic Extractor on that InfoSet.
If its an ABAP report than create a Generic Extractor using FM
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33 -
Insert a link to call a report program.
Hello all!
Im new in ABAP developing, and I have a Z Workflow that I need to put a link in a user decision step.
When the user will accept or refuse an workflow in sbwp transaction, the user wants see a link and when he clicks in this link,
a report program is called.
How can I do it, in this decision step?
Thank you!Hello,
I understand that if a user selects one option(from the decision step), he will receive a mail with the work item. The link from the work item will show him service entry sheet. If he clicks the link, he will see service entry sheet and after that he will see the report.
If i understood right, you can create custom method in the subtype of the object BUS2091. In the method enter the code:
submit "report_name".
Check the syntax of the submit instruction for passing select-options and parameters to the report.
For the other option of the decision step, you can create another custom method.
Efren
Edited by: Efren23 on Jun 20, 2011 1:52 PM -
Calling A Report Program From DIALOG Program ?
Hi helping Minds ,
My requirement is like....
I have a screen, where Datas Are displayed after all the calculation in TABLECONTROL .
The user wants a button REPORT on the same Screen ,
By clicking the REPORT button, it will call a SELECTION SCREEN to enter tthe input to dispaly the report list.
After entering the data in selection screen , it will display the LIST output ,
So my doubt is I have all the Data in * DIALOG SCREEN* ,which i have stored in INTERNAL TABLE .
and when i will dispaly the output i have to dispaly all those data which are in those INTERNAL TABLE. so how to transfer those INTERNAL TABLE data of Dialog Screen to REPORT , so that i can Dispaly them in LIST OUTPUT in report .
Pls suggest me ?Hi,
If i am not wrong.....you have the data to be displayed as a report in an internal table......when report button is pressed you want to display one selection screen .....and depending on the selection screen input search you want ti segregate the data of this internal table ...and show as list display.......
if that is the case .....store the internal table data globally .....and ...when that button is clicked call the selection screen by usong POPUP_GET_VALUES.. with the requred fields or call your own screen with the layout designed .......and get the search criteria data and sort the internal table according the search adn display in ALV ......for ALV creation in module pool see the link below ...
[alv in module pool]
Thanks,
Shailaja Ainala. -
Calling report program to my workflow method
hi friends
I have writen the logic to find the email id for travel admin now i want to call this REPORT program to my workflow method. How can i do that. I know how to do that in function module but i want to try with report program. How to get the import and export parameter in the report program. I know there is some thing called memory id export but i dont no how to do that. Can any one show with sample code.
Regards
vijayHi Vijay,
You can make use of the following sample code.
BEGIN_METHOD ' ' CHANGING CONTAINER.
export itab to memory id 'PQR'.
submit zMM_R_BUDJETDISP AND RETURN."exporting list to memory and return.
END_METHOD.
In your program you can use
import itab from memory ID 'PQR'.
Here Itab is a internal table.
Similarly you can define single data elements as well.
you can use this syntax to import, export parameters.
let me know if you have any queries.
Regards,
Raj
Maybe you are looking for
-
Can I keep my iTunes library solely on an external drive?
I have the macbook air with 128gig HD. I currently have a Windows laptop with a bigger HD housing my itunes network with all of my music and digital copies of movies. I've been using this computer as my primary laptop since I bought it (love it too m
-
Amulet Display : Is it possible to pilot pixels one by one ?
Hi, I would like to know if it is possible to pilot AMULET pixels one by one to generate a moving object ? (here is a ball) The purpose would be to do a ping pong game application on it. Commands will be two potentiometers from AI module giving order
-
WFA 2.1+ CM Snapshot support with Unified Manager 6.0+
Hi All, If you've come here, you may have noticed that WFA 2.1 appears to lack support of Snapshots in cDOT, and the Snapshot database view within OnCommand Unified Manager 6.0 and above is empty. This pack intends to fill that gap by providing a sep
-
Need to combine back ups from months ago and current...help!
All of my contacts were deleted when I shut down/restarted my iPhone 4S. The last back up on iTunes was many months ago, but I have many new calendar, note, photo etc entries since then that I cannot loose. I performed a new back up on iTunes and ha
-
User shows two phones in Jabber
I have a user that just decided to use Jabber for the first time. When she signed in I was showing her how it defaults to using the computer for the calls and how we can change it so that it will dial the phone for her. When I clicked on that icon