‎2007 Jun 21 11:17 PM
The Submit command can be ued to call a program . I have a Report that needs to be called in a dialog program . I wanted to know , how I can submit the parameters to the submit for the report.
thanks
‎2007 Jun 21 11:27 PM
Hi,\
SUBMIT RMCB0300 WITH SL_WERKS-LOW EQ SO_WERKS-LOW
WITH SL_MATNR IN SO_MATNR
WITH VA EQ 'X'
WITH SL_SPMON-LOW EQ W_BUDAT1
WITH SL_SPMON-HIGH EQ W_BUDAT1
WITH SL_MTART-LOW EQ 'ROH'
WITH SLV_NO EQ 'STOCK'
AND RETURN.
aRs
‎2007 Jun 21 11:27 PM
Hi,\
SUBMIT RMCB0300 WITH SL_WERKS-LOW EQ SO_WERKS-LOW
WITH SL_MATNR IN SO_MATNR
WITH VA EQ 'X'
WITH SL_SPMON-LOW EQ W_BUDAT1
WITH SL_SPMON-HIGH EQ W_BUDAT1
WITH SL_MTART-LOW EQ 'ROH'
WITH SLV_NO EQ 'STOCK'
AND RETURN.
aRs
‎2007 Jun 22 12:49 AM
‎2007 Jun 21 11:36 PM
Hi krish
You can call application programs in your module pool program using:
1.CALL TRANSACTION for type M program
2. SUBMIT for type 1 program
since your report would be a type 1 program/executable prog , you can use the submit statement as follows:
Lets say u have the following parameters on your selection screen of the report:
1. s_aufnr (order)
2. s_werks (plant)
3. p_matnr (material)
SUBMIT X
WITH s_aufnr IN s_aufnr
WITH s_werks IN s_werks
WITH p_matnr EQ p_matnr
AND RETURN.
Hope this helps.
Thanks and Regards
shivika
‎2007 Jun 22 12:49 AM