‎2007 Sep 07 7:07 AM
Hi experts,
I want to pass some inputs to VA05 in my report and get the output from the ALV grid display.Can i use a submit statement for a module pool report used in VA05. if so can somebody give some sample code as i am not able to use submit for a module pool report(though i have done it for normal reports).
Is ther some other way through which i can achieve this purpose.
Kindly help.
Thanks in advance
regards
Ashwin
‎2007 Sep 07 7:40 AM
Hi Ashwin ,
Use the command CALL TRANSACTION . There is a addition by which you can pass the parameters also . Please see the detailed help of the command.
Regards
Arun
‎2007 Sep 07 7:37 AM
Dear Ashwin
I think you have two way to do that
1. send parameter by parameter ID of VA05 Screen .
DATA: v_matnr TYPE mara-matnr.
v_matnr = 'Material_NO'.
SET PARAMETER ID: 'MAT' FIELD matnr.
CALL TRANSACTION 'VA05' AND SKIP FIRST SCREEN.
2.use BDC to call transaction VA05 and define parameter in the screen from bdc data.
Example 'BDC' but not in VA05
DATA class_name TYPE c LENGTH 30 VALUE 'CL_SPFLI_PERSISTENT'.
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
DATA opt TYPE ctu_params.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPLSEOD'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'SEOCLASS-CLSNAME'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'SEOCLASS-CLSNAME'.
bdcdata_wa-fval = class_name.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=CIDI'.
APPEND bdcdata_wa TO bdcdata_tab.
opt-dismode = 'E'.
opt-defsize = 'X'.
CALL TRANSACTION 'SE24' USING bdcdata_tab OPTIONS FROM opt.
Regards
Wiboon
‎2007 Sep 07 7:40 AM
Hi Ashwin ,
Use the command CALL TRANSACTION . There is a addition by which you can pass the parameters also . Please see the detailed help of the command.
Regards
Arun
‎2007 Sep 07 9:20 AM
Thanks for the replies,
My requirement is to pass the data and get the output of the data from the ALV grid back to the report in maybe an internal table. For an analogy it is like submit a report and using the call function 'List_to_memory' we get the list output.
So i want to know if something similar is possible in case of module pool report of VA05 wherein i can get the output of the ALG grid back to the report.
Regards
Ashwin
‎2007 Sep 07 9:57 AM
check for get detail BAPI in swo1. Asper my knowldge that is suitable for your requirements.
Thanks