06-08-2007 3:14 PM
hi ,
I got one problem that i should send a values from the current program to one select-options to the called program ie(other transcation or program) using submit and at the same time the called program should internally takes the values and i should display the output.
ie from submit tcode or program
and i should send a values to tcode or program
thank u
06-08-2007 3:29 PM
Hi Santu,
Please check the help doc.
DATA: RANGE_LANGU TYPE RANGE OF SY-LANGU,
RANGE_LANGU_WA LIKE lINE OF RANGE_LANGU.
PARAMETERS: MSG_FR LIKE T100-MSGNR,
MSG_TO LIKE T100-MSGNR.
MOVE: 'I' TO RANGE_LANGU_WA-SIGN,
'BT' TO RANGE_LANGU_WA-OPTION,
'D' TO RANGE_LANGU_WA-LOW,
'I' TO RANGE_LANGU_WA-HIGH.
APPEND RANGE_LANGU_WA TO RANGE_LANGU.
MOVE: 'EQ' TO RANGE_LANGU_WA-OPTION,
'E' TO RANGE_LANGU_WA-LOW.
APPEND RANGE_LANGU_WA TO RANGE_LANGU.
SUBMIT REPORT00
USING SELECTION-SET 'VARIANT1'
WITH MSG BETWEEN MSG_FR AND MSG_TO
WITH LANGU IN RANGE_LANGU.
'VARIANT1' can be used if you have a variant (VARIANT1) in the report screen.
Regards,
George
reward points to helpful answers
06-08-2007 3:27 PM
Hi
Populate the Select-options range into range paramter R_VBELn and R_WADAT and other paramters into varaiables and use
SUBMIT ZREPORT <TO SAP-SPOOL Optional>
WITH s_vbeln IN r_vbeln
with s_date in r_wadat
Reward points for useful Answers
Regards
Anji
06-08-2007 3:29 PM
Hi santu,
For getting value back into the calling program you need to use IMPORT in calling program and EXPORT in called program.
regards,
Atish
06-08-2007 3:29 PM
Hi Santu,
Please check the help doc.
DATA: RANGE_LANGU TYPE RANGE OF SY-LANGU,
RANGE_LANGU_WA LIKE lINE OF RANGE_LANGU.
PARAMETERS: MSG_FR LIKE T100-MSGNR,
MSG_TO LIKE T100-MSGNR.
MOVE: 'I' TO RANGE_LANGU_WA-SIGN,
'BT' TO RANGE_LANGU_WA-OPTION,
'D' TO RANGE_LANGU_WA-LOW,
'I' TO RANGE_LANGU_WA-HIGH.
APPEND RANGE_LANGU_WA TO RANGE_LANGU.
MOVE: 'EQ' TO RANGE_LANGU_WA-OPTION,
'E' TO RANGE_LANGU_WA-LOW.
APPEND RANGE_LANGU_WA TO RANGE_LANGU.
SUBMIT REPORT00
USING SELECTION-SET 'VARIANT1'
WITH MSG BETWEEN MSG_FR AND MSG_TO
WITH LANGU IN RANGE_LANGU.
'VARIANT1' can be used if you have a variant (VARIANT1) in the report screen.
Regards,
George
reward points to helpful answers
06-08-2007 3:33 PM
USE :
SUBMIT PROGRAM NAME VIA SELECTION-SCREEN
WITH SELECTION-TABLE t_param
AND RETURN.
ELSE ABAP MEMORY :
REPORT ZTEST_AMEM1.
tables : lfa1.
data : begin of i_lfa1 occurs 0 ,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
land1 like lfa1-land1,
end of i_lfa1.
start-of-selection.
select lifnr
name1
land1 from lfa1
into table i_lfa1 up to 100 rows.
Export
export i_lfa1 to memory id 'SAP'.
submit ztest_amem2 and return.
write:/ 'hello'.
&----
*& Report ZTEST_AMEM2
*&
&----
*&
*&
&----
REPORT ZTEST_AMEM2.
data : begin of j_lfa1 occurs 0,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
land1 like lfa1-land1,
end of j_lfa1.
start-of-selection.
import i_lfa1 to j_lfa1 from memory id 'SAP'.
loop at j_lfa1.
write:/ j_lfa1-lifnr,j_lfa1-name1,j_lfa1-land1.
endloop.
06-08-2007 3:42 PM
Hi Santu,
You can do this using the following syntax:
SUBMIT sunit_report_name
with parameter_name_1 = parameter_value_1
with parameter_name_2 = parameter_value_2
and return.
You can extend the above with any number of parameters. However, please ensure that the data types of the parameter values being passed and the data types of the parameters in the called report match with each other.
Let me know in case you face issues. And, ofcourse, award points if you find this useful.!
Regards,
Ram