I've developed a program that calls program RM06BA00 and automatically populates the selection criteria of this program. Program RM06BA00 is doing an export of its internal table which is what I need. Then I will import this internal table into my program and do some more filtering.
My code:
SUBMIT rm06ba00 AND RETURN EXPORTING LIST TO MEMORY
WITH ba_banfn IN r_banfn
WITH ba_ekgrp IN r_ekgrp
WITH ba_matnr IN r_matnr
WITH ba_matkl IN r_matkl
WITH s_werks IN r_werks
WITH s_lfdat IN r_lfdat
WITH s_frgdt IN r_frgdt
WITH s_flief IN r_flief
WITH p_afnam = preq_name
WITH p_txz01 = short_text
WITH p_zugba = open
WITH p_erblba = closed
WITH p_bstba = open
WITH p_freig = closed
WITH p_selgs = open
WITH p_selpo = open
WITH s_kostl IN r_kostl
WITH s_aufnr IN r_aufnr.
IMPORT BAN COM FROM MEMORY ID 'ZYX'.
In standard SAP Code:
Program RM06BA00 calls SAPMF06B
PERFORM SUBMIT(SAPFM06B) USING SUCOMM
.
Then program SAPFM06B calls RM06BL00
SUBMIT RM06BL00 AND RETURN.
As shown in the codes above, program (RM06BA00) calls program SAPFM06B which is where it does the export. Then this second program calls program RM06BL00 to display the output. My problem is that I don't need program RM06BL00. How do I exclude this program? Is there any way to suppress the display output?
Any other suggesstions are highly appreciated.
Thanks in advance!