Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to submit a report program to a standard program.

Former Member
0 Likes
1,726

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.

8 REPLIES 8
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,346

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.

Read only

0 Likes
1,346

i tried but its saying that with is unknown

Read only

0 Likes
1,346

For unkwon you have to check whether the project and subproject exists in LSMW tsn or not?

Read only

0 Likes
1,346

can you tell in detial where to check that.

Read only

Former Member
0 Likes
1,346

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.

Read only

Former Member
0 Likes
1,346

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

Read only

former_member778253
Active Participant
0 Likes
1,346

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.....

Read only

0 Likes
1,346

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.