2010 Aug 18 8:09 AM
I want to submit a report program to a slection screen program which is standard with some values. can any one help me out.
here is the code.
CONSTANTS: w_object(10) type c value 'ZCOST2',
k_projet(10) TYPE c VALUE 'AIN_AUSA2',
k_ssprojet(10) TYPE c VALUE 'ZCOST2'.
SUBMIT /sapdmc/sap_lsmw_bi_recording
via selection-screen
WITH p_keep = 'X'
WITH p_object = w_object
WITH p_projec = k_projet
WITH p_subpro = k_ssprojet and return.
I want to submit a report program to a slection screen program which is standard with some values. can any one help me out.
here is the code.
CONSTANTS: w_object(10) type c value 'ZCOST2',
k_projet(10) TYPE c VALUE 'AIN_AUSA2',
k_ssprojet(10) TYPE c VALUE 'ZCOST2'.
SUBMIT /sapdmc/sap_lsmw_bi_recording
via selection-screen
WITH p_keep = 'X'
WITH p_object = w_object
WITH p_projec = k_projet
WITH p_subpro = k_ssprojet and return.
2010 Aug 18 8:39 AM
Try this :
SUBMIT /sapdmc/sap_lsmw_bi_recording
using selection-screen
WITH p_projec = k_projet
WITH p_subpro = k_ssprojet
WITH p_object = w_object
WITH p_keep = 'X'
and return.
2010 Aug 18 9:23 AM
2010 Aug 18 9:27 AM
For unkwon you have to check whether the project and subproject exists in LSMW tsn or not?
2010 Aug 18 12:49 PM
2010 Aug 18 8:44 AM
Hi,
Along with submit statement you have to pass selection table, press F1 on submit & see the help, you will get the solution.
Fill seltab as per the example.
SUBMIT program with seltab and return.
2010 Aug 18 9:34 AM
Hi,
Check this syntax,
Eg:
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Regards,
Selva
2010 Aug 18 9:46 AM
Hi
Try this...
SUBMIT /sapdmc/sap_lsmw_bi_recording
WITH p_keep = 'X'
WITH p_object = w_object
WITH p_projec = k_projet
WITH p_subpro = k_ssprojet
AND return.
Note: No need to mention 'VIA Selection Screen', it's not a mandatory.....
2010 Aug 18 11:48 AM
I have another question that. the values are populated in the standard program after selection screen. but i need values to be populated before seletion screen ie in the initialisation itself.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |