SUBMIT REPORT statement issue in abap
Hi Experts,
I am facing issue while doing SUBMIT REPORT statement.
Below are the details for the Issue:
1. We want to execute another report ZTEST2 from one report , so we have written code in report ZTEST1 as below:
SUBMIT ZTEST2 AND RETURN.
2. It goes to ZTEST2 successfully but when we execute ZTEST2 and click on BACK buttton , it directly goes to ZTEST1 selection screen.
Instead we want to go ZTEST2 program's selection screen. As this back button is standard ALV button is there any way we can handle this without creating new PF-STATUS.
Regards,
Sanjana
That's very limiting.
It depends, there are some things you can do if you ztest2 does something that is traceable.
Without any more info I suggest to check time-lapse between submit calls. If it's inferior to 2 seconds I'd suppose user want's to leave.
mind you the syntax is wrong:
do.
g_initial = get time.
SUBMIT ZTEST2 AND RETURN.
g_final = get time.
if g_final - g_initial <= 2.
exit.
endif.
enddo.
For the user is in most cases transparent, only if he remains a lot of time in selection screen he'll remain there.
regards,
Edgar
Similar Messages
-
Regarding SUBMIT (report) statement.
Hi experts,
Inside an RFC I am calling a custom report which gives the output in the form of ALV grid. I have used SUBMIT (report) in the RFC for a given set of inputs.
it_sel is an internal table with the selection screen parameters and values.
This is my code.
SUBMIT zmmrep03_r3ent WITH SELECTION-TABLE it_sel
EXPORTING LIST TO MEMORY AND RETURN.
Doing so, I am encountering a problem. When I run the RFC in test frame I am viewing the output which should not happen since i am using <b>Exporting List to Memeory And Return</b>. After that I am getting a runtime exception <b>"NOT FOUND"</b>.
How to resolve this problem.
Regards,
Arul Jothi.Arul,
1. ALV does not export the list to memory.
2. You cannot call a RFC that writes data to the screen.
You need to find a differen way of doing this in your case.
Regards,
Ravi
Note : Please mark the helpful answers -
Getting spool number after SUBMIT report statement
Hello Everyone,
Suppose there is a scenario, when 3 users are sharing same session and executing a program simultaneously.
In the program, the users are submitting a program to sap spool such that a spool no is generated.
and based on that spool no, the users read its log...
How will we identify that which spool no belongs to which particular session so that the the user will read its own loag and not the other person/'s log...Hi,
The program can be submitted as a job which has a unique job number and accordingly spool number will be generated which can read.
See code e.g below:
DATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT submitable TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
Hope it helps.
Regards,
Mansi. -
Skip Error message in submit report
Hello Gurus,
I am using SUBMIT <REPORT> command inside a loop of my calling report. For one record the SUBMIT <report> is throwing an eror message due to which my report is getting stopped by displaying the error message.
My requirement is to skip the record if there is any error in SUBMIT <report> and process rest of the records.
Please help me out.Hi,
Vasanth's idea regarding doing a CALL FUNCTION IN BACKGRUOND TASK does work, unless you need to get back some information from the SUBMIT, as export parameters can't be set when using IN BACKGRUOND TASK.
As i need to get data from the SUBMIT, i'll keep looking for other alternatives, so other ideas are still welcome...
Regards,
mr.
Hi Manuel,
Try calling report in background task like below:
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = c_name "this name can be any name defined in constants(you do not have to create a job name anywhere in system or SM36)
IMPORTING
jobcount = w_number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
*" Job opened successfully
IF sy-subrc EQ c_0.
*" Call program to process IDoc
SUBMIT ZSubmit WITH <any value> " e.g. p_field1 EQ <value>
VIA JOB c_name NUMBER w_number
AND RETURN.
[Note: In ZSubmit report you can send the data to calling program through ABAP memory i.e. Use EXPORT parameter to export data
Ex: constants: c_memory(7) type c value 'MEMORY1'.
At the end of ZSubmit report, before returning to the calling program write below statement:
EXPORT i_message TO MEMORY ID c_memory1.]
*" Successful processing of IDoc
IF sy-subrc EQ c_0.
"Here you can import data from ZSubmit report
import i_message from memory id c_memory1.
After retrieving the data, free the memory otherwise it will affect the performance of your report:
Free memory id c_memory1.
*" Close the job
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = w_number
jobname = c_name
strtimmed = c_x
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
ENDIF.
ENDIF.
Hope this helps!
Regards,
Saba -
Report output list to internal table using submit report
Hello,
I have a report that generates the output in the form of an abap list. I want this data in an internal table for further processing. the report internally does not do a export data to memory so i cannot use import later on to get the data.
i did the following
SUBMIT <report name> exportING LIST TO MEMORY and return.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = itab_list
EXCEPTIONS
not_found = 4
OTHERS = 8.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = ascitab
listobject = itab_list
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
This returns the data in the ascitab, but the data contains additional unwanted info like lines and hyphens etc. Also the data is in a table with a single column, so pulling out individuals fields is again an issue. Is there a way to get this data into an internal table directly?
best regards,
Surajhi suraj
export the internal table of report
DATA: BEGIN OF SR_VBAK ,
VBELN LIKE VBAK-VBELN,
END OF SR_VBAK.
DATA: IR_VBAK LIKE STANDARD TABLE OF SR_VBAK WITH HEADER LINE.
EXPORT IR_VBAK TO MEMORY ID 'SALES'.
SUBMIT <program name in which u want internal table records > AND RETURN.
now import that data in submit program .
here u have to creat a internal table with same structure as the internal table from which u r trying to export the data
DATA: BEGIN OF SR_VBAK,
VBELN LIKE VBAK-VBELN,
END OF SR_VBAK.
DATA : IR_VBAK LIKE STANDARD TABLE OF SR_VBAK WITH HEADER LINE.
IMPORT IR_VBAK FROM MEMORY ID 'SALES'.
regards
ANIL CHAUDHaRY -
Performance my Report is 57% is ABAP , 42 % System & 1% for DB
Performance my Report is 57% is ABAP , 42 % System & 1% for DB..it it OK or will there be any performance issues. Please let me know
ABAP Execution time is <b>18,602</b> micro seconds
DB <b> 256</b>
System <b>13,899</b>
<b> HITLIST</b>----
Number Gross time (in microseconds) = Net (microseconds) Gross time in % Net time in % Call Program Name Type Display filter group
1 32757 0 100.0 0.0 Runtime analysis Sys.
1 32725 4368 99.9 13.3 Submit Report Z_BALRAM_TEST1 SAPMS38T
1 26691 776 81.5 2.4 Program Z_BALRAM_TEST1
3 26554 2088 81.1 6.4 Dynpro Entry Z_BALRAM_TEST1
1 26383 850 80.5 2.6 PBO Dynpro SAPMSSY0 SAPMSSY0 Sys.
1 423 50 1.3 0.2 Call Func. DOKU_OBJECT_EXIST RSDBRUNT
1 408 10 1.2 0.0 Call Func. AC_SYSTEM_FLUSH SAPFGUICNTL
1 385 37 1.2 0.1 Call Func. SYSTEM_COMBO_OUTPUT SAPMSSYD
1 303 21 0.9 0.1 Call Func. VRM_QUEUE_FLUSH SAPLSCNT
1 140 97 0.4 0.3 Load Dynpro SAPMSSY0 1000 Z_BALRAM_TEST1 Sys. -
SUBMIT Report with return values
Hi,
I am using the SUBMITE REPORT STATEMENT as
SUBMIT RVV50R10C WITH st_ledat-LOW = s_vstel-LOW
WITH st_ledat-HIGH = s_vstel-HIGH
AND RETURN EXPORTING LIST TO MEMORY.
For the report RVV50R10C the o/p is an hierarchical display.
So when i am exporting list to memory. how exactly are the values populated and,
if i want two fields from the o/p of the report t be populated in another internal table, how can i get it.
initially i am calling FM LIST_FROM_MEMORY and getting values in to a itab of type abaplist.
how the values will be populated into this table.Hi,
Hope this wud help u...
Once the program report has been accessed, the list stored there in the ABAP Memory is read by means of function modules and inserted in the current list.
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT report EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.
Keerthi. -
Will SUBMIT report EXPORTING LIST TO MEMORY work, when Run in Background?
You can use SUBMIT <report> EXPORTING LIST TO MEMORY, and then Call the FM LIST_FROM_MEMORY to get the Data.
This works fine, when the Program is Run in Foreground. My question is, will it work when I Run the Program in Background? i.e. When I Run the Program in Background, will the SUBMIT Statement, Export the List to Memory? Because only then the FM LIST_FROM_MEMORY will get the Data.
Any alternate solution to meet the same requirement will be appreciated.It works for me... my spool output looked like:
11.01.2008 JC: Calling program - test list to memory 1
ZLOCAL_JC_SDN_CALLING_PROGRAM started at 12:54:29
ZLOCAL_JC_SDN_CALLING_PROGRAM call complete 12:54:30
ZLOCAL_JC_SDN_CALLING_PROGRAM started at 12:54:30
11.01.2008 JC: Called program - testing list to memory
ZLOCAL_JC_SDN_CALLED_PROGRAM was called at: 12:54:29
for the following code:
report zlocal_jc_sdn_calling_program.
parameters:
p_start(1) type c.
start-of-selection.
perform testcase.
*& Form testcase
form testcase.
data:
lt_list type table of abaplist.
write: / sy-repid, 'started at', sy-uzeit.
submit zlocal_jc_sdn_called_program
exporting list to memory
and return.
write: / sy-repid, 'call complete', sy-uzeit.
call function 'LIST_FROM_MEMORY'
tables
listobject = lt_list.
write: / sy-repid, 'started at', sy-uzeit.
call function 'WRITE_LIST'
tables
listobject = lt_list.
endform. "testcase
and
report zlocal_jc_sdn_called_program.
start-of-selection.
write: / sy-repid, 'was called at:', sy-uzeit. -
Submit report using internal table
Hi Experts!!,
REPORT 1
TYPES: BEGIN OF ty_out_table,
partner LIKE /sapsll/pntbp-partner,
bpvsy LIKE /sapsll/pntbp-bpvsy,
country LIKE adrc-country,
END OF ty_out_table.
internal table declaration & definition
DATA: gt_out_table TYPE STANDARD TABLE OF ty_out_table
WITH KEY partner
bpvsy.
I have data in internal table gt_out_table.
I want to pass data gt_out_table in report 2. using SUBMIT REPORT.
How to do that ?
REPORT 2
select-options: s_partnr for /sapsll/pntbp-bpvsy.
parameters: p_upd,
p_value .
please suggest.
Thanks
Aneehai,
... WITH SELECTION-TABLE rspar
Effect
If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
SELNAME (length 8),
KIND (length 1),
SIGN (length 1),
OPTION (length 2),
LOW (length 45),
HIGH (length 45).
To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
Notes
In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display. -
Hi all,
Is there is any restriction in using <b>submit report and return</b> statement in BAPI function modules ?
Thanks ,
Jobyhi,
the below guidelines has to be followed while developing BAPIs.
1.BAPI must not contain CALL TRANSACTION or SUBMIT REPORT.
2.BAPI must not invoke a COMMIT WORK.instead use the BAPI.transaction commit to execute the commit after the BAPI has executed.
3.BAPI structures must not use includes.
4.There should be no Functional dependencies b/w two BAPIs.
<b>if helpful reward some points.</b> -
when I submitted the report RM06BA00 in other program using
SUBMIT (REPORT)
USING SELECTION-SET VARIANT
EXPORTING LIST TO MEMORY AND RETURN.
It's not coming to program from where I called...it's displaying the report
so when I used FM LIST_FROM_MEMORY for further process like emailing this report...I am not getting any data.
Could you pls. let me know why this is displaying report instead of coming back to the program from where it's submitted?
Reply ASAP.
Regards,
Sreedevi PHi Sreedevi,
Refer to the codes in this link.
Re: Submit Statement
Regards,
Arun Sambargi. -
Submit report repeatedly through loop
Hi Experts,
I need to submit report in loop. For that i have used SUBMIT as follows
loop at itab into wa_it.
SUBMIT ('ABC') VIA SELECTION-SCREEN
WITH s_item = wa_it-item
AND RETURN.
endloop.
The above statement works fine. But i want next item no (wa_it-item) to be filled automatically as soon called report executes for current item number instead of pressing 'BACK' button.
If anybody worked on this please help me.
Thanks and regards,
Shivanand Kalagi.> I need to submit report in loop. For that i have used SUBMIT as follows
> loop at itab into wa_it.
> SUBMIT ('ABC') VIA SELECTION-SCREEN
> WITH s_item = wa_it-item
> AND RETURN.
> endloop.
>
> The above statement works fine. But i want next item no (wa_it-item) to be filled automatically as soon called report executes for current item number instead of pressing 'BACK' button.
>
Just take out the selection-screen option since you dont want to go through the selection screen.
You can write as follows
loop at itab into wa_it.
submit abc with with s_item = wa_it-item and return. <<< This will call the program without selection screen but passes the
clear: wa_it. parameters required to the program .
endloop.
Try this.... Sure it works -
Problem with submit report for transaction LT23
Hi,
I want to submit report for transaction LT23 based on the double click on a field in the output of my report. I am using selection table to pass values. The problem is I have something called dynamic selections. I am using some selection fields from the dynamic selection option. Can anyone tell me how do I pass the values in such a case?In your [submit|http://help.sap.com/abapdocu/en/ABAPSUBMIT.htm] statement in the [selection screen parameters|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] use the [WITH FREE SELECTIONS|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_5@5@] option to pass dynamic selections
NB: Use FREE_SELECTIONS_RANGE_2_EX to build the correct parameter texpr.
Regards
Raymond -
Reporting annoying issues for the entire Microsoft website (MSDN, forums, all)
Is there any place where I can report bugs with how the Microsoft web sites behave? I can only find forums and "Microsoft Answers" categories about single products that Microsoft makes, but nothing about the infrastructure itself.
For about two weeks now, I am required to log into my account every few hours whenever I access any Microsoft website. This includes MSDN help content, forums, or other resources. I need to login after opening the website through F1 help in Visual Studio
as well as accessing a microsoft.com link from anywhere else like a web search or a direct link from web or an application.
Auto-complete does not work either. My browser (Firefox) does save the password, but it never fills it into the form. Other people have already noticed that
Microsoft applies some dirty tricks here. And even if the login is remembers for a moment, it's slow as hell. It takes a second or two to load the login.live.com page (which is not what I wanted to see), then it sits there for some more seconds before going
anywhere. Other login services like Google or StackOverflow manage to log me in all within one second and most of the time I don't even see it.
And then there's still that insecure SSL-to-non-SSL-submit warning that only occurs in other browsers then IE. Has anybody cared about that in the last couple years?! I'm not getting it now, probably because I'm not logged in anymore. It all slowly falls
apart, piece by piece. Next step is probably losing my data or not loading it at all.
THIS – IS – ANNOYING! And it really makes me feel like I don't want to use Microsoft products anymore (because even good desktop applications are connected to that silly website). I have opened a
Microsoft Connect ticket for a part of this issue (it's grown bigger since then), but this ticket is totally ignored. If microsoft.com went down, they'd certainly care within minutes or hours. This bug is not even regarded in
weeks!
So do I have to write a postal letter to the president of the whole company or do they have support staff for that?! Do they have anybody who is capable of maintaining their website? It's really frustrating how Microsoft has a web presence that is worse
than what our first-year trainees come up with. It's full of bugs and this is currently only the most relevant one. Do they even care about how the world sees them? Or is Microsoft currently preparing (and even failing) to move out of business?The brandings are fun. Here's this same thread in a bunch of flavors:
https://social.technet.microsoft.com/Forums/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
https://social.msdn.microsoft.com/Forums/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
https://social.microsoft.com/Forums/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
https://social.technet.microsoft.com/Forums/sqlserver/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
https://social.msdn.microsoft.com/Forums/vstudio/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
https://social.technet.microsoft.com/Forums/exchange/en-US/cf19ed78-267b-4313-9c49-bd3027f0eb8e/reporting-annoying-issues-for-the-entire-microsoft-website-msdn-forums-all?forum=whatforum
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
Report Development issue: I have queryy of 1600 line but report builder
Report Development issue: I have queryy of 1600 line but report builder 1320 lines . But i m can't create views becasue many parameters are used in it please give solution how can i paste 1600 line in report bulder.
you would have to build a dynamic statements that will make up your query.
e.g.
select &column
from &from_clause
where &where_clause;where:
column is a user parameter that makes up of columns
from_clause is a user parameter that makes up of tables involves
where_clause is a user parameter that makes up of condition statements
and the above parameters can be defined on the report triggers AFTER PARAMETER FORM.
Maybe you are looking for
-
my super drive is not working
-
Connecting to Windows Small Business Server
I need some help getting my iMac connected to a Windows Small Business Server (SBS). Our office is located in another building that runs a SBS with multiple Windows XP clients. I have a new Intel based iMac located in my house that is getting it's in
-
Brand new iPod touch no map showing in the map app in standard view just the grid with arrows and distances, okey in hybrid and satellite view ios 8 just installed don,t no whether it was okey before that. Thanks
-
I cannot log into the itunes store. Everytime that I have tried to log in and error message appears and says it cannot perform this task...and when I try to go into the music section of the application it says its not availble in the U.S as this time
-
Need help switching from trial version of LR5 to paid subscription