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

program RM06BL00

Former Member
0 Likes
586

I've created a program that calls program RM06BA00 and automatically populates the selection criteria of this program. Now this program also calls program SAPFM06B which then calls program RM06BL00 and prints out the output.

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.

My problem is that I don't need program RM06BL00. This program prints out the output report. But all I need is to do an import as shown above and do some more filtering from there. How do I exclude this program?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
425

Best practice is:

IF SY-UNAME = 'BABOON'

SUBMIT RM06BL00 AND RETURN.

ELSE ....

END IF

Then only I can run it

Alternately, catch the SY-TCODE of your own report or possibly the SY-REPID otherwise to

differentiate the behaviour.

1 REPLY 1
Read only

Former Member
0 Likes
426

Best practice is:

IF SY-UNAME = 'BABOON'

SUBMIT RM06BL00 AND RETURN.

ELSE ....

END IF

Then only I can run it

Alternately, catch the SY-TCODE of your own report or possibly the SY-REPID otherwise to

differentiate the behaviour.