Submit Report and return
Hi All,
I am using the submit statement to call my report. In my report I call another modal dialog box. My issue is I get blocked on the dialog box and the screen gets hanged. I have no option but to kill the session. I want the control to come back to my calling report after I have done my processing on the dialog box.
Kindly help as this is really urgent.
Thanks in advance.
Thanks & Regards,
Anju
Hi Anju,
I think, this is happening because you dont any event on the dialog screen which will process the PAI. create back button and in PAI check for back. on back use leave to screen 0.
Process on Output.
module status.
Process on input.
Module check.
module status output.
set pf-status 'PF100'.
in PF100 , set BACK func code for back button
endmodule.
module check input.
case sy-ucomm.
when 'BACK'. leave to screen 0.
endcase.
endmodule.
Reward points if useful.
Regards
Megha
Similar Messages
-
CALL A TRANSACTION IN SIMPLE REPORT AND RETURN BACK TO REPORT
I 'VE A REQUIREMENT IN WHICH I HAVE TO MAKE A REPORT PROGRAM. IN THIS REPORT PROGRAM I HAVE TO CALL A TRANSACTION cs11 IN BACKGROUND AND THEN PICK ITS OUTPUT VALUE (DISPLAYED IN alv GRID OF cs11) AND THEN RETURN BACK TO MAIN PROGRAM. DO SOME CALCULATION WITH THE BROUGHT DATA AND THEN DISPLAY THEM ON THE REPORT alv OUTPUT.
iS THIS POSSIBLe? IF YES? HOW.
PLEASE HELP.try creating two reports.....ztest_a and ztest_b
do your call transaction in ztest_b
in ztest_a you can write submit ztest_a and return....
see if this works...
Message was edited by:
Priyank Jain -
Hi Every one,
I want to know that whether the statutory reports and returns to be submitted in india is available in India or we have to customize and develop one.
I am not that aware of Forms...I have just gone to PE51 and tried to create a remuneration statement , thats all.
Also if the returns and reports formats are available in SAP . what is the Transaction Code to see and customize the forms available........
Please help to solve the query
Thanks And regards
SrijitHai..
Form 24 Form 16 Form 217(A) Other statutory deductions like section 80,88, 89(1), professional Tax... etc..
EASY ACCESS,HR,PY,ASIA,INDIA,SUBSEQUENT REPORTS, PERPAYROLL PERIOD, LEGAL REPORTS..
Manohar -
SUBMIT rfebbu01 AND RETURN - not capturing errors
Hi All,
We are using following code SUBMIT rfebbu01 AND RETURN
USER sy-uname
WITH anwnd = gstr_febvw-anwnd
WITH s_kukey IN gr_kukey
WITH jobname = ''
WITH buber = 'A'
WITH valut_on = gstr_febsca-buch_val
WITH mregel = '1'
WITH bnkgroup = ''
WITH nebgroup = ''
WITH function = 'C'
WITH mode = gstr_febsca-jmode
WITH p_statik = cc_x.
CLEAR gc_message.
CONCATENATE 'Routing No : ' gstr_paymentlot-bankrouting ' Bank Account : ' gstr_paymentlot-bankaccount
' Amount : ' gstr_paymentlot-amount ' Posted to Loan system. Group Id : ' gc_group INTO gc_message.
log the payment record to application log
CALL FUNCTION 'ZUT_LOG_EMMA'
EXPORTING
object = 'FICA'
subobject = 'MAPAYP'
header = gc_external_id
info = gc_message
msgty = 'I'.
this is to post payment to Loans.
We have a custom program that calls the above program.
We are trying to capture errors and put it into log but errors are not passing back to custom program.
So users assum all is ok but it was found that sometiems posting was not successful but we still did not receive any errors.
Please suggest what aer we missing?
thanks in advance,
HeenaTry SUBMIT ... EXPORTING LIST TO MEMORY and then analyze the list returned by the first program. You'll find examples for such code on SDN.
-
Statutory reports and returns in India .....
Hi Every one,
I want to know that whether the statutory reports and returns to be submitted in india is available in India or we have to customize and develop one.
I am not that aware of Forms...I have just gone to PE51 and tried to create a remuneration statement , thats all.
Also if the returns and reports formats are available in SAP . what is the Transaction Code to see and customize the forms available........
Please help to solve the queryHai..
Apart from Form 16, Form 24 Form 217(A).. there are many statutory reports to be maintained...
isbtcprd2\SAPHelp_470SR1\helpdata\EN\dd\38a63a04227748e10000000a11402f\frameset.htm
Kindly go through the link.. might be helpful to u...
Manohar -
How to submit a report and return a table?
Sumbit RVKRED01 and return .
then how to get table value from report RVKRED01 ???Follow the below example:
SUBMIT rashsd14
WITH vbeln IN l_rsdsselopt
WITH dbasar = c_x
EXPORTING LIST TO MEMORY AND RETURN.
*Getting the list from memory
REFRESH t_tab1.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = t_tab1
EXCEPTIONS
not_found = 1.
IF sy-subrc <> 0.
ENDIF.
*Converting to ASCII
REFRESH t_tab2.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listasci = t_tab2
listobject = t_tab1
EXCEPTIONS
empty_list = 1
list_index_invalid = 2.
IF sy-subrc <> 0.
WRITE: / 'LIST_TO_ASCI error'(098).
ENDIF.
IF t_tab2 IS NOT INITIAL.
DELETE t_tab2 INDEX 1.
DELETE t_tab2 INDEX 1.
DELETE t_tab2 INDEX 1.
DESCRIBE TABLE t_tab2 LINES g_tabix.
DELETE t_tab2 INDEX g_tabix.
ENDIF.
REFRESH t_vbka1.
IF t_tab2 IS NOT INITIAL.
LOOP AT t_tab2 INTO wa_tab2.
CLEAR wa_vbka-vbeln.
REPLACE ALL OCCURRENCES OF '|' IN wa_tab2-vbeln WITH space.
CONDENSE wa_tab2-vbeln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_tab2-vbeln
IMPORTING
output = wa_vbka-vbeln.
wa_vbka-vbeln = wa_tab2-vbeln.
APPEND wa_vbka TO t_vbka1.
ENDLOOP.
SORT t_vbka1 BY vbeln.
ENDIF. -
Submit report and export to memory
Hi
I am using this code to submit report
submit ZM005REP
WITH S_BLEND IN R2
WITH S_GROUP IN R3
WITH S_WERKS IN r1
exporting list to memory and return.
I am using LIST_FROM_MEMORY to read the list.
I want to further use the values from this list for calculations , but when I saw the list its just an array of strings.
I want to read the opening bal field which is returned in this list.
Any advice on this ?
Thanks,
ShitalHi,
DATA BEGIN OF itab_list OCCURS 0.
INCLUDE STRUCTURE abaplist.
DATA END OF itab_list.
DATA: BEGIN OF vlist OCCURS 0,
filler1(01) TYPE c,
field1(06) TYPE c,
filler(08) TYPE c,
field2(10) TYPE c,
filler3(01) TYPE c,
field3(10) TYPE c,
filler4(01) TYPE c,
field4(3) TYPE c,
filler5(02) TYPE c,
field5(15) TYPE c,
filler6(02) TYPE c,
field6(30) TYPE c,
filler7(43) TYPE c,
field7(10) TYPE c,
END OF vlist.
SUBMIT zreport EXPORTING LIST TO MEMORY.
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 = vlist
listobject = itab_list
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
Then you can use the ITAB_LIST for caliculation which is having all the values.
Thanks
Sudheer -
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. -
i want to submit trans MB5B and move the data of table
BESTand (is this itab?) to my ITAB in my programHello Rani,
U can use the following sample code to call the report. U can modify the code as per ur req. however thesecond requirement of urs is not possible as the internal table is defeined only till the program executes and as soon as the control returns back to ur program the internal table is lost.
data: begin of selpr occurs 0.
include structure RSPARAMS.
data: end of selpr.
clear selpr.
refresh selpr.
*selpr-selname = 'KD_LIFNR'.
*selpr-kind = 'S'.
*selpr-sign = 'I'.
*selpr-option = 'EQ'.
*selpr-low = '10000151'.
*append selpr.
clear selpr.
selpr-selname = 'MATNR'.
selpr-kind = 'S'.
selpr-sign = 'I'.
selpr-option = 'EQ'.
selpr-low = '000000000000000967'.
append selpr.
clear selpr.
selpr-selname = 'WERKS'.
selpr-kind = 'S'.
selpr-sign = 'I'.
selpr-option = 'EQ'.
selpr-low = 'MZ01'.
submit RM07MLBD with selection-table selpr and return.
U will have to copy this porgram and play, however u need to be careful as it may server the purpose at this point in tie but during upgrade u may face problems. -
Calling BSP from report and return control back ?
Hi All,
My requirement is as follows :-
1. I am calling a BSP from report using CL_GUI_HTML_VIEWER->show_url. The BSP page is displayed successfully.
2. Then, I perform some operations and want to return some data back to the main program (from where it was called - Report) and continue execution from there
How do I accomplish the second requirement (Control doesnt come back once I close the BSP) ?
Regards,
Ashishhow to generate events from html code in the html control back to your ABAP check out this demo program
SAPHTML_EVENTS_DEMO
say for example, in your case you are showing the BSP in GUI HTML control and on clicking a link you want to pass some data from your link to ABAP program and the ABAP should receive the value and process it and may be comeback to same BSP or go some to some other screen/transaction.
steps to follow:
after creating the html control
register event for call back and call the BSP url.
create object hviewer
exporting
parent = mycont.
myevent-eventid = hviewer->m_id_sapevent.
myevent-appl_event = 'x'.
append myevent to myevent_tab.
call method hviewer->set_registered_events
exporting
events = myevent_tab.
create object evt_receiver.
set handler evt_receiver->on_sapevent
for hviewer.
hviewer->enable_sapsso(
exporting
enabled = 'X'
exceptions
cntl_error = 1
others = 2
if sy-subrc <> 0.
endif.
call method hviewer->show_url
exporting
url = wf_url.
in your BSP the link should look like below
A HREF=SAPEVENT:TAGS?value to be passed to your ABAP> link text </a
when you click this link in bsp then you can then capture the value "TAGS" to know which link was clicked and the value passed after the ?
link is just one option, you can also send whole form data.
this type of link and form will only work when your BSP is invoked within HTML contro. if its invoked from standalone browser these wont work. so you amy want to dynamically show/hide "sapevent" links based on where it runs.
Hope this is clear. if not do getback.
Regards
Raja
Edited by: Durairaj Athavan Raja on Sep 9, 2008 1:04 PM -
Fighting with Submit Button and Return Address / distributing Forms
I go crazy, too ! We designed some smart forms for a new evaluation process, too, and had a successfully test within our IT collegues. Now we handed the process over to the users, and the problems are on!
We made sure that everyone uses the same version of Adobe 9.1.2 Pro - but not 2 users do have the same results.
We found following 2 major issues:
1) When opening the _distributed.pdf - users either completly missing the pink bar with Highlight fields / Submit Form
or, very odd, just the Submit Form button
2) For those who fortunatly have the Submit Button, another odd thing happens:
The Send form correctly shows the to: address .....
Our Desktop Email Application is Notes...
Guess what .... Now the Email adress changes to [email protected] ( this worked fine in our testings before...)
Do you have any clue from where this address is pulled ???? We checked the identitity Info in the Adobe installation at the users computers, the email and name entries are correct there.....
Please help !!!I am pretty sure the answer is in the script. I have put together pieces of script from other suggestions and I am pretty sure I have ascrewed something up along teh way. I have looked at the attached link and that is where I got some of the script you see below. I am sure you will refer to me as the hatchet person who chopped the script up. sorry. (It is in the Mouse Up) This does work, sort of...It will give the user the message that the required fields are not filed in if they are blank, but it will send the email, but without the custom message in the subject line.
if (employeename.rawValue != null || employeename.rawValue != "") {
vSubject = "Form completed by " + employeename.rawValue;
vBody = "The form has been sent by " + employeename.rawValue;
if (completedate.rawValue != null || completedate.rawValue != "") {
vBody = vBody + " on " + completedate.rawValue;
if (EmployeeID.rawValue != null || EmployeeID.rawValue != "") {
vBody = vBody + " Your ID is: " + EmployeeName.rawValue;
var oDoc = event.target;
oDoc.mailDoc({
bUI: false,
cTo: "[email protected]", cSubject: "Statement from " + EmployeeName.rawValue + " -
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> -
SUBMIT and return the value of that report into internal table
Dear all,
I have a requirement. I want to submit a report and return the value of that report into my internal table.
How to do this.
Pl. guide.Hi Vidhya,
Below links from SAP help will resolve your issue.
http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb3bde358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bd1358411d1829f0000e829fbfe/content.htm
Edited by: Harsh Bhalla on Jan 2, 2010 11:54 AM -
I am calling Report1 from Report 2.
I am using SUBMIT REPORT1 AND RETURN.
Call transaction method is used in report 1 to make some changes on a screen . have code for saving it.
This part is processed well. When the control gets back to report2(i have to do something else on the same screen) and when I see the screen... the changes made with report1 are not seen. It reflects the old data itself.
Do I need to use Commit stmt after submit? to retain the changes.
Plz help.
thankshi alchemi,
Here you do not need to specify a destination. ... If the update is triggered locally because of the COMMIT WORK statemen
pls see the below links they may help yout
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=doIneedtouseCommitstatementaftersubmit+++&adv=false&sortby=cm_rnd_rankvalue
www.geocities.com/sapcircle/questions2.
www.geocities.com/sapcircle/questions2.
thanks
sagar
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 30, 2008 3:42 PM -
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
Maybe you are looking for
-
Thunderbolt Display Connection to a DVI Port video card
Hi everyone, Im a snob to when it comes to computers and I'm kind of interested to find out if it's possible to connect my 27" thunderbolt display to my DVI port video card of my computer with this device: http://store.apple.com/us/product/H5236ZM/A?
-
Looking for Dreamweaver How to's
Hi all, As a beginner, I am having problems with Dreamweaver CS4. Mainly with creating an email campain page. I have read so much on does and don't, which many people seem to disregard. I would like to know the following... 1. Should I use tables or
-
Toggling panels with tab key in lightroom
my tab key in lightroom 3 is not toggling one panel at a time rather it simply hides all side panels at the same time. What is happening?
-
10.4.7 Upgrade - WebKit.Framework error - Symbol not found
i get the following error whenever i start applications such as Yahoo Messenger 3.0 Beta, Mail, Software Installer. Link (dyld) error: Symbol not found: __ZN3KJS9ObjectImpC2Ev Referenced from: /System/Library/Frameworks/WebKit.framework/Versions/A/Fr
-
All scheduled jobs started suddenly to fail with ORA-01031: insufficient pr
I have a setup of gridcontrol 11g on windows 2008. I've been running successful for weeks until the other day when all my scheduled jobs started to fail with ORA-01031: insufficient privileges (rman jobs) ERROR: Invalid username and/or password (sql