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

classical report using write statement after alv

0 Likes
2,050

Hi ,

I have checkbox in my reuse alv list .when I press execute button ,it should take me to another classical report done using write statement .I am finding the ALV after the write statement .I have tried LEAVE TO LIST PROCESSING AND RETURN 0 before and after the write statement ,still the alv is coming .How to avoid the alv to appear after write statements .

13 REPLIES 13
Read only

0 Likes
1,783

Hi Pvnchndra,

        I would suggest you to use SUBMIT statement for your classic report to avoid the alv coming out.

Thanks

Hock Lin

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,783

Classical report is a separate one..? or when user check the checkbox you just do a write..?

Read only

Former Member
0 Likes
1,783

So u have 2 separate program. One with output ALV and another with classical.

So have AT USER COMMAND in ALV program and using SUBMIT call classsical program

Read only

0 Likes
1,783

I have only one program in which I am producing another output using write statements from user command of ALV .How to avoid the ALV from coming in the second output

Read only

0 Likes
1,783

Hi,

You can use Screens and containers. In once screen display ALV and AT USER COMMAND call second screen and in that you can WRITE the data.

Regards,

Vijay

Read only

0 Likes
1,783

You have to build second program for the classical report and in your first program trigger SUBMIT for your second program.

Read only

Former Member
0 Likes
1,783

Do you want to print the classical report output on same screen or different screen.

Read only

ThangaPrakash
Active Contributor
0 Likes
1,783

Hello Pvnchndra,

Please paste your source code for better analysis. There might be some problem in your logic.

Where like you haven't done the correct coding in the USER command.

Regards,

TP

Read only

0 Likes
1,783

Hi ,below is the source code .In the perform process_checked_lines,I have the write statements ,how to avoid the alv coming after write statements without using submit.


FORM user_command USING ucomm TYPE sy-ucomm selfield TYPE slis_selfield.

  CASE ucomm.

    WHEN 'ONLI'.

* Process checked lines.

      PERFORM process_checked_lines.

      selfield-refresh = 'X'.

Read only

0 Likes
1,783

Please paste your entire source code.

Read only

0 Likes
1,783

This message was moderated.

Read only

ThangaPrakash
Active Contributor
0 Likes
1,783

Hello,

As you said inside the PERFORM process_checked_lines you were not using the WRITE statements.

You are using REUSE ALV fucntion module to display it in ALV format.

Please elaborate on your issue.

Regards,

TP

Read only

0 Likes
1,783

Hi ,

I have 2 conditions inside the PERFORM process_checked_lines based on which it either calls 2nd alv or it performs write statement .