Catching Information message in Program called using SUBMIT
Hello All,
I am calling a report program using below
SUBMIT program EXPORTING LIST TO MEMORY
AND RETURN.
the program called is having one inforamtion message and is coming out after this message appears on screen. I want to capute this information message and need to display in my main program.
Please let me know how capture this type of messages in SUBMIT.
Thanks in advance.
Regards,
Ganesh.
Hi ,
DATA: text TYPE c LENGTH 10,
lt_selscreen TYPE TABLE OF rsparams WITH HEADER LINE .
lt_selscreen-sign = 'I'.
lt_selscreen-option = 'EQ'.
lt_selscreen-low = '7100'.
append lt_selscreen.
FIELD-SYMBOLS <lt_pay_data> TYPE ANY TABLE.
DATA lr_pay_data TYPE REF TO data.
cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false
metadata = abap_false
data = abap_true ).
Submit Wage Type Reporter
SUBMIT ZMR113_NON_MOVING_AGING WITH SELECTION-TABLE lt_selscreen with so_werks ='7100' AND RETURN.
TRY.
cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lr_pay_data ).
ASSIGN lr_pay_data->* TO <lt_pay_data>.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).
THis Code i used in my report it was Created by Glen Simpson Expert Blogger : it was nice piece of code to Gain Access from Other ALV Report of SAPGUI
regards
Deepak.
Edited by: Deepak Dhamat on Oct 5, 2011 8:18 AM
Edited by: Deepak Dhamat on Oct 5, 2011 8:21 AM
Similar Messages
-
How to catch errors in calling program when using SUBMIT ... AND RETURN ?
Hi ,
I am calling a report using submit and return statement from a function module. The report has select-options field for a date field. If user enters a date in low, which is greater than high, getting error message "Lower limit is greater than upper limit".
How to catch this error without endup stoping on selection screen of the report?
In the documentation, I read :
Programs called with SUBMIT ... AND RETURN or CALL TRANSACTION cannot propagate exceptions to the caller, because exception objects are bound to the internal mode of a program.
Is there any way to overcome this?
Also my aim is to write a validation on the date selection-option to have the date range not more than 20 days.
I am not sure of how to achieve this.
Is there a way to do validation of select-options data before submiting to the report ?
Is there any standard FM to achieve this task?
Thank you,
Surya.
Edited by: Surya on May 24, 2009 6:08 PMHi Surya ,
In your function module's code validate the date .
If the low value of the date less than high and date period is not more than 20 then
call transaction and in else condition raise exception.
In your FM write like that - -
IF date-low LT date-high AND
date_difference LE '20' .
CALL TRANSACTION 'transaction'.
ELSE.
RAISE ........... " Raise the invalid date exception
ENDIF.
Regards
Pinaki -
Suppress the Information message during BAPI Call
Hi, I am getting the information message pop up during the BAPI Call "BAPI_BUS2054_CREATE_MULTI". Is there any possiblity to suppress the message?
Hi,
use call function with destination. Here is a short example:
REPORT zhabitest.
DATA:
et_return LIKE bapiret2 OCCURS 0.
CALL FUNCTION 'ZTEST'
DESTINATION 'NONE'
TABLES
et_return = et_return.
DATA:
ele_return LIKE bapiret2,
rc LIKE sy-subrc.
CLEAR rc.
LOOP AT et_return INTO ele_return.
IF ( ele_return-type = 'E' ) "error
OR ( ele_return-type = 'A' ). "abort
rc = 8.
EXIT.
ENDIF.
ENDLOOP.
IF rc IS INITIAL.
WRITE: / 'Call OK'.
ELSE.
WRITE: / 'Call error'.
ENDIF.
And the function is here:
FUNCTION ztest.
*"*"Lokale Schnittstelle:
*" TABLES
*" ET_RETURN STRUCTURE BAPIRET2 OPTIONAL
MESSAGE i208(00) WITH 'Separate I/O and processing!'.
GET TIME.
DATA:
ele_return TYPE bapiret2.
* return error randomly
IF sy-uzeit+5(1) CA '13579'.
ele_return-type = 'E'.
APPEND ele_return TO et_return.
ENDIF.
ENDFUNCTION.
Pay attention to the documentation of call with destination (db commit).
Regards
Walter Habich -
Isight not detected...message another program is using it
I haven't been able to find a solution to my problem. After using my isight of my macbook for months suddenly it started to appear a message saying that a different program was using the isight. I already tried all the steps troubleshooting my isight without having good results. I read in some article that in system profiler (applications/ utilities) one could see if the isight was being detected by the computer. So now I have narrowed my problem. My isight is not being detected by my macbook. Some people say that is a problem related to quicktime. I really don't know. What I do know is that I miss my isight. If someone could help I would really appreciate any advice.
Thank YOUNO, MY ISIGHT IS NOT DETECTED, BUT I DON'T KNOW WHY. I WOULD REALLY APPRECIATE IF SOMEONE COULD HELP SOLVE THIS PROBLEM. I'M USING LEOPARD. THANK YOU
-
How to execute the first program without using SUBMIT and RETURN
Hi Experts,
My requirement is , I need to select thet value from VA02 at runtime and need to pass that value to VF01 transaction and press save then it creates proforma document.The created document we can see in VA02 by clicking on document flow.
My program is processed through OUTPUT TYPE.
To get this functionality i written coding like this.
1) i am selecting the value at runtime from VA02 using FORM ROUTINE.Now iam passing this selected value to VF01 for
genarate proforma document using BDC.Here the problem is,first time when i am selecting the value form VA02 at runtime it is in open status,now my BDC code need to update the value in VA02 only.so locking problem occurres the document is not getting updated.
To overcome this problem i have done changes like this......
2) i splited my program into two parts, that is into two programs.
a) In first program i am only selecting the value form VA02 at runtime using FORM ROUTINE and in this program i have written SUBMIT statement to call another program there my BDC code will create documet and update in VA02,upto here everything is doing fine,
But here again the problem is when i process OUTPUT type my program is triggering and giving correct result but the status is not changing form YELLOW to GREEN.Why means when SUBMIT statement trigger, control is going to second program and creating a new document,but not coming to first program so the status is not changing as the first prohram is still processing. .If i write RETURN along with SUBMIT the VA02 is in open STATUS only, till control comes to first program.so it will not uodate document in VA02.
If i execute all line in my program status will automatically change from YELLOW to GREEN how to acheive this
please suggest me the solution.I would do 2 things:
1) be sure to do a COMMIT WORK AND WAIT
2) refresh your display in calling program
the point 2) can be done by submitting the program again (or the transaction) with the same parameters -
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 -
Passing an internal to another program using SUBMIT
Hi,
I need to pass one internal table from one program to another which i am calling using SUBMIT. Is there any way to pass this data without using export/import or selection screen.
If i do use EXPORT is there a retriction to the maximum size i can export?
ThanksHi Pankaj,
Consider these two programs I have done using both WITH SELECTION-TABLE and IMPORT/EXPORT.
In Program 1(ZZTEST_ARUN_1).
I have two radio buttons. If I select Material the program executes its own code. If I select plant data is fetched and exported to memory. Then it gets the selection parameters of the Program 2(ZZTEST_ARUN_2) through the FM RS_REFRESH_FROM_SELECTOPTIONS. Then I populate the values for selection screen and pass using the
SUBMIT....WITH SELECTION-TABLE option.
REPORT zztest_arun_1.
TABLES: t001w.
DATA : it_marc TYPE STANDARD TABLE OF marc WITH HEADER LINE,
it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.
PARAMETERS material RADIOBUTTON GROUP abc. "Material General Details
PARAMETERS plant RADIOBUTTON GROUP abc DEFAULT 'X'. "Material Plant Details
START-OF-SELECTION.
IF material EQ 'X'.
*If Material selected own code executes
SELECT * FROM marc INTO TABLE it_marc UP TO 200 ROWS .
LOOP AT it_marc.
WRITE :/ it_marc-matnr,
it_marc-werks.
ENDLOOP.
ENDIF.
IF plant EQ 'X'.
*If Plant selected data fetched
SELECT * FROM t001w INTO TABLE it_werks UP TO 50 ROWS.
*Exported to Memory
EXPORT it_werks[] TO MEMORY ID 'TEST'.
*Declare on selection table type RSPARAMS
DATA : stable LIKE rsparams OCCURS 0 WITH HEADER LINE.
*Call this FM to get the Selection screen details
*of Program ZZTEST_ARUN_2 (it returns Select Options, Parameters..)
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = 'ZZTEST_ARUN_2'
TABLES
selection_table = stable
EXCEPTIONS
not_found = 1
no_report = 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.
stable-sign = 'I'.
stable-option = 'BT'.
* populate some selection condition
READ TABLE it_werks INDEX 10.
stable-low = it_werks-werks.
READ TABLE it_werks INDEX 40.
stable-high = it_werks-werks.
APPEND stable.
*Submit it then
SUBMIT zztest_arun_2
WITH SELECTION-TABLE stable
AND RETURN.
ENDIF.
<b>Second Program.</b>
REPORT zztest_arun_2.
TABLES: t001w.
DATA : it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.
SELECT-OPTIONS : s_werks FOR t001w-werks.
*Import the stored data.
IMPORT it_werks[] FROM MEMORY ID 'TEST'.
*Display the data based on selection criteria got
*form ZZTEST_ARUN_1
LOOP AT it_werks WHERE werks IN s_werks.
WRITE : / it_werks-werks,
it_werks-name1.
ENDLOOP.
Regards,
Arun Sambargi. -
Hi Experts,
Can any one tell me if i am calling a program ZXABC using SUBMIT & RETURN, abd if that progrm has few internal tables containing the data it_table1, it_table2 & it_table3, how can i get the data from those tables into the tables through which the program ZXABC is called?
Thanks.
HarshadHi Dude,
There are two cross-program memory areas to which ABAP programs have access (refer to the diagram in Memory Structures of an ABAP Program that you can use to pass data between programs.
SAP Memory
SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).
These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens.
ABAP Memory
ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse. For further information, refer to Data Clusters in ABAP Memory
Edited by: Raghunath Shyamala on May 25, 2009 7:32 AM -
hello guys,
Actually i am trying to call a program'B' from program 'A', using submit and return.i want to capture the output of program 'B' which is list output, i have used 'LIST_FROM_MEMORY' functional module in program 'A', to download from abap memory, but how do i convert this file into a normal internal table to read the output.
i have tried 'LIST_TO_TXT' Func Mod to convert from abaplist to txt but its not working.
could anybody pls suggest a solution.dear anbu,
thanks for the code ,but i have a problem here
my code...........
DATA list_tab TYPE TABLE OF abaplist.
data : t_ascii type LIST_STRING_TABLE.
data : wa_ascii type LIST_STRING_TABLE.
SUBMIT Zrabest_alv01 USING SELECTION-SET 'DEEPAK'
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 'LIST_TO_ASCI'
TABLES
listasci = t_ascii " list converted to ASCII
listobject = list_tab
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc NE 0.
ENDIF.
it is giving me a dump in the function module LIST_TO_ASCI.
IT SAYS:
" At the statment
"DESCRIBE"
only character-type data objects are supported at the argument position
"LISTASCI", but no strings are supported (data types STRING and XSTRING).
In this particular case, the operand "LISTASCI" has the
type "g". " -
Suppress Information message during submit a standard program
Hi experts,
I am calling standard program RCATSCO from a report using following code:
SUBMIT rcatstco WITH p_pernr IN s_pernr
WITH p_date IN lt_r_date
WITH p_belnr IN s_belnr
WITH s_rkdauf IN s_rkdauf
WITH p_budat EQ sy-datum
WITH p_warn EQ gc_x
EXPORTING LIST TO MEMORY
AND RETURN.
When all data are already transferred to controlling this standard program displays a popup information message 'No data for transfer'. I need to suppress this popup and continue execution of the report. Please help.
Thanks,
ArnabOne option is to do that check yourself and bypass submitting the program if there is no data to transfer. Another option is to submit the program via job. That way the the message will go to the job log. I see that you are using the option exporting list to memory, which means you want to read the spool after the program is executed. With the "via job" option, you may need to monitor the status of the job for completion and then read its spool.
-
How to get data from the called program using SUBMIT in a background job?
Hi Experts,
I've a program which creates a background job using JOB_OPEN and JOB_CLOSE function modules.
Between the above function modules I need to call a program using SUBMIT VIA JOB statement.
My problem is, How do I fetch some data in an internal table in the called program to the calling program after the SUBMIT statement?
I tried to EXPORT and IMPORT the data, but they are giving a failed sy-subrc when using this background job.
Kindly let me know your inputs and valuable suggestions.Kumar,
When we execute a program as a background job then the output will be sent to Spool which needs to be fetched again.I guess we need to use Submit via spool as mentioned by Rajat.
Check these threads to get some idea
submit report to spool & import spool id
Re: Generate Spool for a report
K.Kiran. -
How to pass a value and call SE38 program using SUBMIT statement
Hello Friends
I am trying to write a batch program in SE38, that calls other SE38 Programs.
I don't want to use Parameter command to see the value on screen.
All I want is to send a range of date (ToDate & FromDate) and generate different reports satisfying this date range condition.
Can some one please help me with this. I would really appreciate it.
I have tried the command SUBMIT with options of filling the input fields of the subsequent programs but I don't want to do this.
I want all the sub programs to be called one after another and the reports generated using the date varialbles I send from the main program.
I don't want to use se37 functions because of the client's request.
Any help will be highly appreciated.
Tks
RamYes I am using SUBMIT command but I was not using the right options with the SUBMIT command and once I used the right options, it worked.
Tks
Ram -
i have Iphone5, i make video calls using line program, i want know video calls is safe or anybody can see my video call??
some friends told me that there is hackers can have all my data, photos, videos, listen and record my voice and video calls. is this right?some friends told me that there is hackers can have all my data, photos, videos, listen and record my voice and video calls. is this right?
Not on an Apple device, no.
Things are not the way popular movies and TV shows would have one believe.
Apple goes to extremes to ensure your personal information remains protected, to a far greater extent than any other consumer product manufacturer on Earth.
Your FaceTime videos, Messages, and everything else you do with your iPhone are as secure as your iCloud credentials.
Anyone with your iCloud or Apple ID credentials has complete and unfettered access to everything associated with them, equal to that of your own, so keep them secure. Never divulge them to anyone you would not trust equally with your wallet, your girlfriend / boyfriend / spouse / child / Lamborghini etc. -
Using 'SUBMIT' and get messages
Hi, all.
I created 2 addon programs.
1 program call another program by 'SUBMIT'.
but I don't get messages outputed by called program.
Is it impossinble?
please let me know.
thanks.Hello,
In Background, If you want to append messages from called program into calling program, then, in the calling program after the submit stmt, you will have to read the joblog for called program looping at the joblog table of called program using write stmt print all the msg .
Then if u see joblog of calling program , it will have messages of called program also.
Check the code below to get pointers:
"Call the functin module to read the job log of called program in the calling program after the SUBMIT stmt
CALL FUNCTION 'BP_JOBLOG_READ'
EXPORTING
client = sy-mandt
jobcount = g_jcount
jobname = g_jbname
TABLES
joblogtbl = g_t_joblogtbl
EXCEPTIONS
cant_read_joblog = 1
jobcount_missing = 2
joblog_does_not_exist = 3
joblog_is_empty = 4
joblog_name_missing = 5
jobname_missing = 6
job_does_not_exist = 7
OTHERS = 8.
IF sy-subrc EQ 0.
* Looping at the internal table for the joblog the messages are reported
* to build the joblog in CLOCO
LOOP AT g_t_joblogtbl INTO g_wa_joblogtbl.
MESSAGE g_wa_joblogtbl-text TYPE 'I'.
endloop.
endif.
Regards,
Mansi.
Edited by: SAP USER on Apr 17, 2009 6:42 AM -
How To supress the Pop-up during Submit program Call
Hi,
I am calling a program from a a function module using Submit Report and return statement. The problem is that the report give a information pop up to show the number of account processed, and i just click the Ok code and it goes, but i want to supress the Popup since that causes problem if i call it in Background. Please provide any solution for this.
Regards,
Nikesh
SAP GlobalHi,
Did you try to check in back ground or not. I think the program will execute automatically when we are assign it in back ground mode.
create back ground job and assign the respective program to it. definitely it will work fine. if you have any problem let me know.
Ram.
Maybe you are looking for
-
[iPhone] Location-aware web app
I've been tapped to create a web app formatted for use on an iPhone that will display results depending on the user's current location. Since this is a web app, not an internal one, is there a way I can get a user's location sent to a web app (query
-
DataGrid column order - with actionscript?
I can't seem to find an effective way to get the data laid out the way I want. Imagine this scenario: I have a single-column list of all the fields in a database table on the left, and a display table on the right (which starts with no columns in it)
-
How to fetch the Business area field value from MIRo into report
Hi, I want to create a report for MIRO with payment details. How to fetch the business area field value in to report. What is the table name. I verified it is storing in structure. Which is the right table for fetching that value with reference to MI
-
I have the first Intel based Macbook (2006) white. Battery model: DP ASMB016. Under System profile the charge remaining is 3620. Full charge capacity is 3769 and the cycle count is 240. This is my second battery in 5 years. The battery icon says
-
Hi all, i have iphone 4 and now my software version is 7.1. If i reset factory back to ios 4.2.1 can i upgrade again to ios 6.3.1 ?? Please help me to resolve this problem. Thanks. Ruki