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

Submit and return: Calling program rptbal00

Former Member
0 Likes
1,401

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 ?

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
839

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.

Read only

Former Member
0 Likes
839

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

Read only

0 Likes
839

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.

Read only

0 Likes
839

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..

Read only

0 Likes
839

So does this mean that the list can't be written to the abap memory list?