How to pass radiobuttons using a submit statements.
Hi All,
Can anyone tell me how to pass radiobuttons using Submit statement.
My problem is that I am able to pass one select option and one parameter using the statement:
submit (v_repid) to sap-spool without spool dynpro
spool parameters s_print_parms
using selection-screen '1000' WITH SELECTION-TABLE t_rspar_tab
and return.
This selection screens got to check selections based on 2 radio buttons available in the selection screen which also i need to pass through SUBMIT.Please let me know how do i pass this to the Submit statement.
Thankx in advance...
Helpful answers will be rewarded fully...
Hi Susanth,
Create Variant for the calling program, Give that variant( here in the below program variant for calling program that I created is VAR1) in the calling program in SUBMIT Statement.
<b>
CALLING PROGRAM:
</b>
data:
w_variant(5) TYPE c VALUE 'VAR1'.
SUBMIT YH625_CALLED_PROGRAM USING SELECTION-SET w_variant.
<b>CALLING PROGRAM:</b>
TABLES spfli.
parameters:
w_radio1 RADIOBUTTON GROUP g1,
w_radio2 RADIOBUTTON GROUP g1.
SELECT-OPTIONS s_table FOR spfli-carrid.
WRITE '*************** This is Called program output **********************'.
Hope this solves your problem.
If you any query you are welcome.
Regards,
V.Raghavender.
Similar Messages
-
How to send report output from SUBMIT statement
Hi,
I need to develop one report whcih can be use to send any report output in mail as attachment in txt of execl format. So i will be using SUBMIT statement to execute the report in my new report and i need to convert the reportout in txt or excel format and need to send as attachment in mail. This new report can be use to execute any report which may have ALV GRid, Normal outout screen. So what could be the best way to develop this kind of report.
Br,
Piyush>
piyush mathur wrote:
> Hi Suhas,
>
> LIST_TO_ASCI will give me data in lines. and its difficult to separate the columns in another internal table for attachment file. As this report is going to use to send any report output so i can not fixed the delimiter. So i am looking some function which can split the data in columns when I am reading from List.
> Br,
> Piyush
No need to seperate nothing additionally, this will come automatically in the attached file. Draft below
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT your_report EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
DATA string_tab TYPE list_string_table.
"use table type appropriate for attchement
DATA ascii_tab TYPE soli_tab.
CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listasci = ascii_tab
listobject = list_tab.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\test.txt'
filetype = 'ASC'
TABLES
data_tab = ascii_tab.
DATA go_email_doc TYPE REF TO cl_document_bcs.
go_email_doc = cl_document_bcs=>create_document(
i_type = 'TXT'
go_email_doc->add_attachment( i_attachment_type = 'TXT'
i_attachment_subject = 'My Attachment'
i_att_content_text = ascii_tab ).
Regards
Marcin -
How to pass column name in slect statement in query
hi,
i want to make a report where in query select statement using variable as a column name. but its not working plz guide me how can i do this.
i have created a function which return column name through variable & that variable i want to to use in select statement
select :m1 from table1;
regardsHi,
Create a user parameter (say P_field), and assign a valid field name as initial value (say NAME), And In the Query, write
SELECT CODE, &P_field FN_FIELD FROM <table_name> WHERE <condition>And in the BEFORE PARAMETER FORM Trigger under the Report Triggers, write,
function BeforePForm return boolean is
begin
:P_field := <your_function_call>;
return (TRUE);
end;And use that FN_FIELD field in the report.
Hope this will clear your issue.
Regards,
Manu. -
How Do You "Unload" Using a "While" statement?
How do you "Unload" or "Exit" using a "While" statement?
Sample: The console displays "Press Enter to continue".
Description: It a User press the Enter key, then the application would start over. On the other hand, if a User presses the "0" key, the application ends, exits. What code would be used?
THANKS ... signed ... VERY NEW at JAVA ...input=readInput();
while (input!=yourExitKey)
// do stuff here
input=readInput();
// End of code -
How to pass Function code to Submit or Call transaction command
Hi
I have to call a report in an other report, But the problem is when i call the report through submit command i need to skip the initial screen and display an other screen. the other screen is not next screen. It display after clicking a button on main screen.
Is there any way to pass Function code to submit command. submit command code is as under
SUBMIT ZADR0056
WITH P_AUFNR = '7000052' AND RETURN...
Regards
AmmadHi,
It is not possible to pass function code with submit. alternatively you can work with CALL TRANSACTION with BDCDATA.
Or as a work arround way you can modify your code i.e check for function code or an dummy parameter which can be passed by SUBMIT statement.
Check below code..
Report ztest1.
submit ZTEST2 WITH P2 = 'X' AND RETURN.
Report ztest2
SELECTION-SCREEN:
PUSHBUTTON 2(10) but1 USER-COMMAND cli1.
PARAMETERS P2 TYPE C NO-DISPLAY. " no need to display
AT SELECTION-SCREEN.
IF SY-UCOMM = 'CLI1' OR P2 IS NOT INITIAL.
message 'Button clicked' type 'S'.
ENDIF.
Regards,
Ravi. -
How to create indexes using CREATE TABLE statement
Hi,
Can anyone please tell me how to create indexes using CREATE TABLE staement? This point is part SQL Expert exam (1Z0-047) and please guide me to use which books for this particular exam.
Thanks in advance.Can anyone please tell me how to create indexes using CREATE TABLE staement?e.g. creating a primary key or a unique constraint will generate indexes along with the create table syntax:
SQL> create table t (a integer primary key, b integer unique)
Table created.
SQL> select index_name, index_type, uniqueness
from user_indexes
where table_name = 'T'
INDEX_NAME INDEX_TYPE UNIQUENES
SYS_C0016575 NORMAL UNIQUE
SYS_C0016574 NORMAL UNIQUE
2 rows selected. -
How to pass Internal table in submit
Hi Friends-
i have a internal table with two fields it is like
begin of error occurs 0,
num(8) type n,
msg(50) type c,
end of error .
now this table i have to submit in another report and i have to use this table in that other report
but how i can pass this in submit pls guide me.
Regards
MeetaHi ,
I am writing the 2 options that I know of my knowledge:
OPTION 1 :
in prog1
loop at itab.
r_matnr-sign = 'I'.
r_matnr-option = 'EQ'.
r_matnr-low = itab-matnr.
append r_matnr.
clear r_matnr.
endloop.
submit prog2 via selection-screen
with s_matnr in r_matnr and return.
in prog2
select-options: s_matnr for mara-matnr no-display.
loop at s_matnr.
itab-matnr = s_matnr-low.
append itab.
clear itab.
endloop.
OPTION 2:
report zashish_1.
data: imara type table of mara with header line.
start-of-selection.
select * into table imara from mara up to 10 rows.
export imara to memory id 'YOURID'.
submit zashish_2 and return.
The submitted program.
report zashish_2 .
data: imara type table of mara with header line.
import imara from memory id 'YOURID'.
loop at imara.
write:/ imara-matnr.
endloop.
Hope these option might have clarified most of your doubts.
Regards,
Ashish Arora -
How to pass Array String to callable statement
How can I pass an array variable to the callable statement as an out parameter and how to define that in the pl/sql procedure.
Thanks,
HCHC
If you would refer to the link given by Anil, You can make out that there in input as well as in output it is passing an array of records.
CallableStatement cs = conn.prepareCall("{call XX_PassTableType.XX_PassTableType_prc(:1, :2)}");
ARRAY array = new ARRAY(new ArrayDescriptor("APPS.JTF_NUMBER_TABLE", conn), conn, vNumber);
ARRAY array1 = new ARRAY(new ArrayDescriptor("APPS.JTF_VARCHAR2_TABLE_100", conn), conn, as);
cs.setArray(1, array);
cs.setArray(2, array1);
cs.registerOutParameter(2, 2003, "JTF_VARCHAR2_TABLE_100");In above lines 1 is the input parameter that is an array of number while 2 is an array of varchar.
Thanks
AJ -
How to pass data between two internal sessions using ABAP memory?
Hi,
How to pass data between two internal sessions using ABAP memory?
It would be fine if you could explain with an example.
And also let me clear about the data passing between two main sessions and two external sessions with specific examples.
Thanks.Hi ,
check the example.
Reading Data Objects from Memory
To read data objects from ABAP memory into an ABAP program, use the following statement:
Syntax
IMPORT <f1> [TO <g 1>] <f 2> [TO <g 2>] ... FROM MEMORY ID <key>.
This statement reads the data objects specified in the list from a cluster in memory. If you do not use the TO <g i > option, the data object <f i > in memory is assigned to the data object in the program with the same name. If you do use the option, the data object <f i > is read from memory into the field <g i >. The name <key> identifies the cluster in memory. It may be up to 32 characters long.
You do not have to read all of the objects stored under a particular name <key>. You can restrict the number of objects by specifying their names. If the memory does not contain any objects under the name <key>, SY-SUBRC is set to 4. If, on the other hand, there is a data cluster in memory with the name <key>, SY-SUBRC is always 0, regardless of whether it contained the data object <f i >. If the cluster does not contain the data object <f i >, the target field remains unchanged.
In this statement, the system does not check whether the structure of the object in memory is compatible with the structure into which you are reading it. The data is transported bit by bit. If the structures are incompatible, the data in the target field may be incorrect.
PROGRAM SAPMZTS1.
DATA TEXT1(10) VALUE 'Exporting'.
DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
DO 5 TIMES.
ITAB-BOOKID = 100 + SY-INDEX.
APPEND ITAB.
ENDDO.
EXPORT TEXT1
TEXT2 FROM 'Literal'
TO MEMORY ID 'text'.
EXPORT ITAB
TO MEMORY ID 'table'.
SUBMIT SAPMZTS2 AND RETURN.
SUBMIT SAPMZTS3.
The first part of this program is the same as the example in the section Saving Data Objects in Memory. In the example, the programs SAPMZTS1 and SAPMZTS2 are called using SUBMIT. You can create and maintain the programs called using the SUBMIT statement by double-clicking their names in the statement. For further information about the SUBMIT statement, refer to Calling Executable Programs (Reports)
Example for SAPMZTS2:
PROGRAM SAPMZTS2.
DATA: TEXT1(10),
TEXT3 LIKE TEXT1 VALUE 'Initial'.
IMPORT TEXT3 FROM MEMORY ID 'text'.
WRITE: / SY-SUBRC, TEXT3.
IMPORT TEXT2 TO TEXT1 FROM MEMORY ID 'text'.
WRITE: / SY-SUBRC, TEXT1.
Example for SAPMZTS3:
PROGRAM SAPMZTS3.
DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
IMPORT ITAB TO JTAB FROM MEMORY ID 'table'.
LOOP AT JTAB.
WRITE / JTAB-BOOKID.
ENDLOOP.
The output is displayed on two successive screens. It looks like this:
and
The program SAPMZTS2 attempts to read a data object TEXT3 from the data cluster "text", which does not exist. TEXT3 therefore remains unchanged. The existing data object TEXT2 is placed in TEXT1. In both cases, SY-SUBRC is 0, since the cluster "text" contains data.
The program SAPMZTS3 reads the internal table ITAB from the cluster "table" into the internal table JTAB. Both tables have the same structure, namely that of the ABAP Dictionary table SBOOK.
Pls. reward if useful..... -
SUBMIT statement using variant
Hi Gurus,
i am trying to use execute a variant , and that variant has to be submitted in memory.(i.e i have three variants A,B,C whenever i run the report using variant A then that fields only has to be passed to memory) , but instead of that , even if i am using varinat B , but by defaul it is taking another variant which contains all the fields.I think my issue is clear.i am using this submit statement.
SUBMIT (sy-repid)
AND RETURN
EXPORTING LIST TO MEMORY
WITH SELECTION-TABLE i_selscr.
pleasehelp me regarding this ASAP.
Thanks and regards,
RajeshwarHi Rajeshwar
You can submit it by using variant name also:
Submit <Report> USING SELECTION-SET variant .
Check this link:
http://sapdevelopment.co.uk/reporting/rep_submit.htm
http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm
http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm
Need information about SUBMIT statement
Regards
Neha
Edited by: Neha Shukla on Nov 30, 2008 12:46 PM
Edited by: Neha Shukla on Nov 30, 2008 3:22 PM -
Using a layout in SUBMIT statement
Hi,
I am calling a program from another program using a SUBMIT statement. I'm also using a layout to do so.
SUBMIT rffmepgax
WITH s_fonds = s_fund-low
WITH s_fictr = s_fc-low
WITH s_hkont = c_gl
WITH p_per_fr = s_poper-low
WITH p_per_to = s_poper-high
WITH p_fyr_fr = s_year-low
WITH p_fyr_to = s_year-low
WITH s_fipex = c_citem
>>> WITH p_disvar = '/ZTRAVEL'
WITH p_maxsel = c_max
WITH s_wrttp = c_vt1
WITH s_wrttp = c_vt2
WITH FREE SELECTIONS texpr
AND RETURN
EXPORTING LIST TO MEMORY.
The problem is that /ZTRAVEL is a public layout that anyone can change. I can rewrite the code to use a user-specific layout, but then only I can run the program. If anyone else tries, it stops and says the layout doesn't exist.
Is it possible to create a public layout that cannot be changed by anyone? What is the t-code for this?
thanks,
KevinHi
USING SELECTION-SET <var>
This addition tells the system to start the called program with the variant var
You specify the variant in the quotes.
Check the below links
http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm
regarding calling another program from current report
Hope this helps
Regards
Shilpa -
Submit statement in ABAP program
Hi All,
I am using two submit statements in my program for two different reports. When i run the program i get the output screens of the two reports at the ouptut. Is there any way i can hide the user seeing the output screens of the two programs and display only the output screen of my program. If you have any clues please post it.
Thanks & Regards,
Rahul RathiYou can call executable programs from other ABAP programs using the following statement:
SUBMIT <rep>|(<field>) [AND RETURN] [<options>].
You can either specify the name of the program you want to call statically by entering the program name in the code of the calling program, or dynamically by specifying the name of a field (in parentheses) containing the name of the program. If the system cannot find the specified executable program when trying to execute the SUBMIT statement, a runtime error occurs.
If you omit the AND RETURN addition, all data and list levels of the calling program (the entire internal session) are deleted. After the called executable program has finished, control returns to the level from which you started the calling program.
If you use AND RETURN, the system stores the data of the calling executable program and returns to the calling after processing the called program. The system resumes executing the calling program at the statement following the call.
The SUBMIT statement has a set of additions <options> for passing data to the called program and specifying various other processing options. Some of them are described in the following sections:
Have a look at below link. It will help you.
http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9dd035c111d1829f0000e829fbfe/content.htm
Best Regards,
Vibha
*Please mark all the helpful answers -
How to pass parameter as http POST in pageContext.setForwardURL
Hi,
I need to call a third party application page in my custom OAF page. I need to pass parameter to this third party page using POST method. I am using following command to call that -
HashMap hm = new HashMap();
hm.put("FirstName",firstName );
hm.put("LastName",lastName);
hm.put("AppSignature", signature);
pageContext.setForwardURL(hopURL,
null, // not necessary with KEEP_MENU_CONTEXT
OAWebBeanConstants.KEEP_MENU_CONTEXT, // no change to menu context
null, // No need to specify since we're keeping menu context
hm, // request parameters
false, // retain the root application module
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // display breadcrumbs
OAException.ERROR);
I am passing parameter to the page using hash map table. That application is expecting the parameters in POST format and I believe using hash map table the parameters will be passed as GET format.
We figured that out because one of the parameter we have to send is AppSignature which is 160 characters long. When third party applicatoin received that parameter they got only 151 characters, looks like they are truncated by GET method.
Any idea how to pass parameter using POST format so that this issue could be fixed.
Regards
HiteshSumit,
Thanks for your reply. I have resolved this issue by forwarding all parameters in session using pageContext.putSessionValueDirect and redirect to a jsp using pageContext.redirectImmediately.
in jsp I read the params from session and set in the form , and then redirected to my third party application.
Regards
Hitesh -
Problem with Submit statement into print program for delivery
Hi all,
i got a problem with the SUBMIT statement that i put into a print program associated to a delivery output message.
If i print the message by VL02N or VL71, everything works.
But if i associate the output with RV56ABST, the SUBMIT instruction isn't accepted and i get the message
"Processor ABAP: POSTING_ILLEGAL_STATEMENT"
There is any solution to this situation?
Why i cannot use the SUBMIT statement in this case?Hi Simone,
you could try to do the operation in a separate task (call a function in starting new task). This will decouple your current process from the new task.
Cheers,
Stefan. -
Staroffice Basic, Calc, passing and using ranges
Okay, I was trying to transfer a VBA function from Excel to StarOffice.
The routine call looks like this:
=PS_MUL($K$22:$K$277 ; $L$22:$L$277 ; $F$22:$F$277 ; F22)
That is, there are three ranges, and a value input.
Here is my attempt at STAROFFICE's version of this routine
Function PS_MUL(Tay1_A as Object, Tay2_A as Object, Rank_Vector, Rank_A as Long) as Double
Dim Product_sum as Double
Dim Element1 as Double, Element2 as Double
Dim i as Integer, j as Integer
Dim cell1 as Object, cell2 as Object
Product_sum=0
i=0
For Each Element1 in Rank_Vector
i=i+1
j=0
cell2=Tay2_A.GetCellByPosition(i,0)
For Each Element2 in Rank_Vector
j=j+1
cell1=Tay1_A.GetCellByPosition(j,0)
If Element1+Element2=Rank_A Then Product_sum=Product_sum+cell1.Value*cell2.Value
Next Element2
Next Element1
PS_MUL=Product_sum
End FunctionIn VBA, I simply refereced "Product_sum=Product_sum+Tay_1A( i ) * Tay_2A( j )"
That is, the input cell ranges are 1-D arrays, and Tay_1A was implicitly defined. So I just used them as arrays, and no problem.
Here, no matter what I try to do with my code, including getting a cell reference by position and taking its value or whatnot, I still get errors.
I think it is becoming clear to me that I don't understand how to pass and use range references in StarBasic.
If anybody could help me out with understanding passing and using these range references, I'd appreciate it.
Just for comparison, here is the function in VBA:
Function CombSumProd(Tay_1A, Tay2_A, Rank_Vector, Rank_A As Variant) As Variant
Dim Product_sum As Variant, Element1 As Variant, Element2 As Variant
Dim i As Integer, j As Integer
Product_sum=0
i=0
For Each Element1 in Rank_Vector
i = i+1
j = 0
For Each Element2 in Rank_Vector
j=j+1
If Element1+Element2=Rank_A Then
Product_sum=Product_sum+Tay1_A(i) *Tay2_A(j)
Next Element2
Next Element1
CombSumProd=Product_sum
End FunctionHi
Follow the steps below - (I am assuming that you are using BI queries in your model & your tabs are as per quarter - one tab for each quarter)
1. Create one radio button & in entry list create static list as 1 - Quarter 1, 2 - Quarter 2 & so on.
2. Now you want plan Vs actual in one graph & Currency in another. So create these reports for each quarter separately, so in all you will have 8 reports (2 for each quarter)
3. IN the layout you have to arrange it vary carefully, you take all the 'Plan Vs Actual' report for all the quarters & arrange them exactly one over the other. Same for Currency reports also.
4. NOw Give visibility condition for each report example - if report is for first quarter then condition will be - bool(if(radio button string=="1",true,false)) & assign the default value in radio button as 1. so that at the time of execution you will get these reports by default.
5. Like wise give condition for all.
6. When you execute this report you will get radio buttons at the top & as you select different buttons differents report will get opened.
7. As you have plased these exactly one over the other, user will not come to know these are different reports.
Try this method, if you have any doubts for this, please do ask me.
Regards
Sandeep
Maybe you are looking for
-
Is it possible to connect Thunderbolt display to a PC (hp pavilion) modem?
Is this possible through some sort of adaptor? I have an old PC modem I need to run some programs, however it's currently hooked up to one of those huge CRT monitors from like 1998 and I'd like to free up some space. Edit: for example could I somehow
-
Concurrent execution of mapping
Hi All, I have quick question about concurrent execution of mapping. Let's assume a simple mapping loading data from external table to regular table. My question is whether it is possible to execute concurrently this mapping but with different set of
-
Where to store images in webapp?
Hello. I'm designing an web application which main purpose is to store and view images that users has stored. I'm considering that where is the best place to store those images? I have at least two options: relational database or filesystem. Is it ba
-
I lost my imac remote, how can i replace it?
Does my protection plan cover lost remotes? Do I have to buy a new one?
-
Why don't my video clips from iPhoto automatically load when I open iMovie - like they used to?