Application Development 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: 

Call MIRO from report Z

maria_merino
Active Participant
0 Kudos

Hi experts,

I have a custom report which shows an ALV with some data. If I click on a cell, I need to call MIRO with some data and stay in that screen and let the user do what he wants. Then, when the user saves or goes back, go back to the Z report.

Is that possible ?

I did it with a call transaction. In tx. SHDB, I use only 2 dynpros:

PERFORM cargar_tabla USING:
                    'X' 'SAPLMR1M'     '6000',
                    ' ' 'BDC_OKCODE'   '=HEADER_PAY',
                    ' ' 'INVFO-BLDAT'   l_fecha1,
                    ' ' 'INVFO-BUDAT'   l_fecha2,
                    ' ' 'INVFO-XBLNR'   l_xblnr.

   PERFORM cargar_tabla USING:
                    'X' 'SAPLMR1M'     '6000',
                    ' ' 'BDC_OKCODE'   '/00',
                    ' ' 'INVFO-ZFBDT'   l_fecha3.

   CALL TRANSACTION c_miro
                   USING i_bdcdata
                   OPTIONS FROM w_opt.
*                  MESSAGES INTO i_return.

But it always comes to the main report...


Thanks in advance !!


María

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Did you set w_opt-nobiend ?


Regards,

Raymond

7 REPLIES 7

raymond_giuseppi
Active Contributor
0 Kudos

Did you set w_opt-nobiend ?


Regards,

Raymond

0 Kudos

No, I've never used this option. What is it used for ?

0 Kudos

With this option set, at end of BDCDATA the flag sy-binpt is cleared and transaction switch to standard execution, so user can continue transaction execution. Else transaction is ended and control get back to caller.


Regards,

Raymond

0 Kudos

Now my code is like this

  w_opt-dismode = 'N' .
   w_opt-nobiend = 'X'.

[...]


CALL TRANSACTION c_miro
                   USING i_bdcdata
                   OPTIONS FROM w_opt.

And still doesn't work..


María

0 Kudos

Now change value of dismode, e.g. 'E' (for test you could use 'A' to insure you actually called the transactionà

0 Kudos

Yes, the transaction is called. If I execute it with A dismode, it works fine, it doesn't return to main programa unless I click 'back'.

0 Kudos

If I use dismode = 'E' it works !!!