2010 May 04 1:13 PM
hi,
i am getting a date from the selection screen which is a parameter.... i have to pass it to sm13 transaction in the date field....
how could i do it... i cannot use set or get since the target field is a datum field
2010 May 04 1:24 PM
Hi,
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
PARAMETERS : p_date TYPE sy-datum.
DATA : lv_date(10).
WRITE p_date to lv_date.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPMSM13'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'SAPMSM13-FROM_DATE'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'FROM_DATE'.
bdcdata_wa-fval = lv_date.
APPEND bdcdata_wa TO bdcdata_tab.
call TRANSACTION 'SM13' USING bdcdata_tab .
Edited by: Sumodh P on May 4, 2010 6:08 PM
hi,
i am getting a date from the selection screen which is a parameter.... i have to pass it to sm13 transaction in the date field....
how could i do it... i cannot use set or get since the target field is a datum field
2010 May 04 1:24 PM
2010 May 05 5:30 AM
hi,
yesterday i asked you about passin the date to sm13.. you suggested me to use submit... could you elobearte...
i used it but i am not getting it... also it should not call the screen sm13 but the next screen that is the executed screen...
taking the date parameter from the selectio screen i have given...
thanks in advance,
syed
2010 May 05 5:33 AM
hi,
yesterday i asked you about passin the date to sm13.. you suggested me to use submit... could you elobearte...
i used it but i am not getting it... also it should not call the screen sm13 but the next screen that is the executed screen...
taking the date parameter from the selectio screen i have given...
thanks in advance,
syed
2010 May 04 1:24 PM
Hi,
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
PARAMETERS : p_date TYPE sy-datum.
DATA : lv_date(10).
WRITE p_date to lv_date.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPMSM13'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'SAPMSM13-FROM_DATE'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'FROM_DATE'.
bdcdata_wa-fval = lv_date.
APPEND bdcdata_wa TO bdcdata_tab.
call TRANSACTION 'SM13' USING bdcdata_tab .
Edited by: Sumodh P on May 4, 2010 6:08 PM
2010 May 04 3:41 PM
2010 May 04 1:29 PM
Hi,
If you are calling it from report, i think you can write call transaction 'SM13' using BDCDATA.
Populate BDCDATA with that screen field value.
Regards and Best wishes.
2010 May 04 1:36 PM
2010 May 04 1:44 PM
Hi
You can use CALL TRANSACTION statment passing values for the screen fields.
In the ABAP Workbench press F1 to check the correct syntax for this statment.
Regards
2010 May 05 5:44 AM