10-29-2015 8:02 AM
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
10-29-2015 8:22 AM
10-29-2015 8:22 AM
10-29-2015 8:35 AM
10-29-2015 9:46 AM
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
10-29-2015 11:02 AM
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
10-29-2015 11:07 AM
Now change value of dismode, e.g. 'E' (for test you could use 'A' to insure you actually called the transactionà
10-29-2015 11:13 AM
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'.
10-29-2015 11:17 AM