‎2010 Jan 18 6:35 PM
Hi
I'm trying to submit and return data calling progam rptbal00 but the memory list is blank.
The seltab is populated with the correct fields.
SUBMIT rptbal00 WITH SELECTION-TABLE seltab USING SELECTION-SCREEN '1000'
WITH pnptimr6 = 'X'
WITH pnpbegda = p_date-low
WITH pnpendda = p_date-high
WITH sw_zl = 'X'. What am i missing ?
‎2010 Jan 18 6:40 PM
To start with :
SUBMIT rptbal00 WITH SELECTION-TABLE seltab USING SELECTION-SCREEN '1000'
WITH pnptimr6 = 'X'
WITH pnpbegda = p_date-low
WITH pnpendda = p_date-high
WITH sw_zl = 'X'
exporting list to memory and return.
‎2010 Jan 18 7:05 PM
Hi ,
before writing the Submit Program.
goto >se38>enter RPTBAL00--> and create Variant with your selction..
Next go to Below Function Module and pass the report name as RPTBAL00 and Variant created as above and execute..
RS_VARIANT_VALUES_TECH_DATA
see the variable and parameters which are passed hiddenly or default and try to pass with your submit program..
next write as J@y said..
submit <Report name> using selection-set <variant>
exporting list to memory and return.
or
submit <Report name>
WITH pnptimr6 = 'X'
WITH pnpbegda = p_date-low
WITH pnpendda = p_date-high
WITH sw_zl = 'X'.
exporting list to memory and return.
Next call the below function modules to show the output of the report or catch the output of the data..
read list from memory into table
call function 'LIST_FROM_MEMORY'
*Spool content in Ascii format
call function 'LIST_TO_ASCI'
call function 'WRITE_LIST'
regards,
Prabhudas
‎2010 Jan 18 10:03 PM
Hi Prabhu,
I've used the code below but it takes me to a list which is displayed on the screen.
It displays the list before the list_from_memory function is called.
SUBMIT rptbal00 WITH SELECTION-TABLE seltab USING SELECTION-SCREEN '1000'
WITH pnptimr6 ='X'
WITH pnpbegda = p_date-low
WITH pnpendda = p_date-high
WITH sw_zl = 'X'
*
EXPORTING LIST TO MEMORY AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listtab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
‎2010 Jan 19 1:13 AM
In the help:
Note
The addition can only work provided the function key Enter is not linked to a function code in the GUI status last defined for the program accessed.
When I search for GUI in the program rptbal00 I could find some gui performs..
‎2010 Jan 19 5:17 AM
So does this mean that the list can't be written to the abap memory list?