2012 Jun 05 6:32 AM
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
2012 Jun 05 6:50 AM
Are you saying that the BACK button shoould take you to the selection screen?
2012 Jun 05 6:59 AM
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
2012 Jun 05 7:04 AM
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
2012 Jun 05 7:14 AM
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
2012 Jun 05 7:20 AM
2012 Jun 05 7:25 AM
2012 Jun 05 7:29 AM
2012 Jun 05 7:59 AM
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
2012 Jun 05 8:41 AM
Shambu VS wrote:
SET SCREEN 500.
LEAVE SCREEN.
Previous response: LEAVE TO SCREEN 500.
Hi Shambu - Both mean the same. Read the F1 documentation!
2012 Jun 05 8:47 AM
Yep! I meant to say SET SCREEN 0 and LEAVE SCREEN, but that's same as LEAVE TO SCREEN 0.
Thanks,
Shambu
2012 Jun 05 8:56 AM
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
2012 Jun 05 6:53 AM
Hi Swapnika,
When 'BACK' use as below:
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN ' '.
With regards,
2012 Jun 05 7:07 AM
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
2012 Jun 05 7:12 AM
Ofcourse yes.You have to give the screen number of the screen where you want to return after the list-processing.
With regards,
2012 Jun 05 7:17 AM
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
2012 Jun 05 7:34 AM
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,
2012 Jun 05 7:49 AM
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
2012 Jun 05 8:23 AM
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,
2012 Jun 05 11:47 AM
2012 Jun 05 8:56 AM
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
2012 Jun 05 11:48 AM
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.....
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |