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

Call ALV Editable Display from Module pool PF Status ( Back Button )

Former Member
0 Likes
3,247

Dear Experts,

I have a report in which I am displaying a ALV grid output. I have a hotspot on the ALV, clicking on which takes me to a module pool screen. When I press back on this module pool screen(I have created a PF status for this) it takes me back to the ALV grid display.

But "BACK" button is not working  to takes me ALV Grid Display along with all internal table data which i m using in Module Pool.

I need ALV Grid when i click on BACK button from module pool PF Status.

Pl help me .

Regards,

Swapnika

Dear Experts,

I have a report in which I am displaying a ALV grid output. I have a hotspot on the ALV, clicking on which takes me to a module pool screen. When I press back on this module pool screen(I have created a PF status for this) it takes me back to the ALV grid display.

But "BACK" button is not working  to takes me ALV Grid Display along with all internal table data which i m using in Module Pool.

I need ALV Grid when i click on BACK button from module pool PF Status.

Pl help me .

Regards,

Swapnika

21 REPLIES 21
Read only

Former Member
0 Likes
2,999

Are you saying that the BACK button shoould take you to the selection screen?

Read only

0 Likes
2,999

No Shambu,

I want Editable Display screen so that I can input data and then save it.   I was trying to use Submit Program.... but all data which is coming from Module pool screens is going to clear... I need all data of Module Pool screen .

Thanks & Regards,

Swapnika

Read only

0 Likes
2,999

If you want to go back to previous screen, just use LEAVE TO SCREEN 0.

I didnt understand what you have said above.

Can you explain?

Thanks,

Shambu

Read only

0 Likes
2,999

Dear Shambhu,

I am working on editable ALV.  When I click on one column of Editable ALV , our Module Pool will call and we input data over screen of module pool. Once all input finish from module pool I need to come back to ALV grid screen. For this I have made a PF Status ( BACK button ) in Module Pool. When we click on BACK Buttton I Need to call ALV Grid screen .

I need statement for BACK button... how to call ALV GRID display screen.

Rgds,

Swapnika

Read only

0 Likes
2,999

Try Leave to Screen 500.

Read only

0 Likes
2,999

Not working Dear..... I already tried....

Read only

0 Likes
2,999

SET SCREEN 500.

LEAVE SCREEN.

Check this.

Read only

0 Likes
2,999

not possible dear.... Suppose 500 screen is also one screen of same module pool.  Editable ALV Grid have also 500 number... difference is only both program name. We can not direcly call  " call screen 500 " ... We need to call Editable ALV Screen from BACK button (PF-STATUS in Module Pool ) .

Call Editable ALV display screen from Module Pool base is click on BACK Button .

Rgds,

Swapnika

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,999

Shambu VS wrote:

SET SCREEN 500.

LEAVE SCREEN.


Previous response: LEAVE TO SCREEN 500.

Hi Shambu - Both mean the same. Read the F1 documentation!

Read only

0 Likes
2,999

Yep! I meant to say SET SCREEN 0 and LEAVE SCREEN, but that's same as LEAVE TO SCREEN 0.

Thanks,
Shambu

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,999

Hello Swapnika,

If i understand correctly you want to display the Editable ALV with the data input in the MP screen after you press the BACK button, correct me if i am wrong!

Btw how are you calling the MP - CALL TRANSACTION?

BR,

Suhas

Read only

former_member282968
Contributor
0 Likes
2,999

Hi Swapnika,

When 'BACK' use as below:

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN  ' '.

With regards,

Read only

0 Likes
2,999

Dear Naveen,

Thanks for reply....  but this statement is not working..... we need to give screen no. also along with RETURN TO SCREEN _____ ? 

Rgds,

Swapnika

Read only

0 Likes
2,999

Ofcourse yes.You have to give the screen number of the screen where you want to return after the list-processing.

With regards,

Read only

0 Likes
2,999

Dear Naveen,

I want ALV Grid Display Screen on BACK button (PF-STATUS) from Module Pool .

I am giving ALV Grid display screen number that is 500 , but its not working ....

Rgds,

Swapnika

Read only

0 Likes
2,999

Dear Swapnika,

Please tell me how you are calling the list-screen from the selection-screen?Because after the selection-screen the way you do the list processing same applies when you use BACK button.

If you have used a sub-routine to do show the ALV data.Call the same sub-routine when 'BACK' and do the CALL SCREEN as well.

With regards,

Read only

0 Likes
2,999

Dear Naveen,

I am working on editable ALV and Module Pool as well.  When I click on one column of Editable ALV , our Module Pool will call and we input data over screen of module pool. Once all input finish from module pool I need to come back to ALV grid screen. For this I have made a PF Status ( BACK button ) in Module Pool i.e screen no. 500. When we click on BACK Buttton I Need to call ALV Grid screen which screen no is 500 .  I don't think we can directly give 500 screen no. of ALV . Becoz 500 screen number can be used in module pool too .  Editable grid have also 500 screen number. but both program name is different. ALV grid using standard program name.   

I need statement for BACK button so that we directly come from module pool to Editable Screen along with SCREEN Data...?

Rgds,

Swapnika

Read only

0 Likes
2,999

Dear Swapnika,

In ALV FM specify the call back program name of your module pool program like below:

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
     EXPORTING

           i_callback_program                = 'Program_name'

In Module-pool program,

    WHEN 'BACK'.

      LEAVE TO SCREEN 0.

With regards,

Read only

0 Likes
2,999

I already written everything.....

Read only

Former Member
0 Likes
2,999

Hi,

Try this. I already tried this and it worked.

--> PAI of your module pool

MODULE pai INPUT.

WHEN 'BACK'.

     LEAVE TO SCREEN 0 .

WHEN OTHERS.
   ENDCASE.

ENDMODULE. 

or

--> PAI of your module pool

MODULE pai INPUT.

WHEN 'BACK'.

   LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

WHEN OTHERS.
   ENDCASE.

ENDMODULE. 

Do you need to update the ALV screen field from your module pool input once you click BACK button?

Regards,

Jake

Read only

0 Likes
2,999

No, Its not working.....  no, I have not update editable ALV screen from field of module pool... ijust need to update Database table with module pool and ALV as well.....