07-16-2008 8:34 AM
Hi All,
I want to get the data based on the selection screen values. and i am using the PNP Logical data base in that and below is my selection screen values,
INFOTYPES :0001,0002,0008.
SELECT-OPTIONS: s_btrtl FOR pa0001-btrtl NO INTERVALS,
s_trfgr FOR pa0008-trfgr NO INTERVALS,
s_trfgb FOR pa0008-trfgb NO INTERVALS,
s_awart FOR pa2001-awart NO INTERVALS.
PARAMETERS : p_begda LIKE sy-datum DEFAULT sy-datum,
p_endda LIKE sy-datum DEFAULT sy-datum.
using get pernr i am gettin the values
************************************************************************
START-OF-SELECTION.
************************************************************************
GET pernr.
PERFORM get_data_001.
END-OF-SELECTION.
&----
*& Form get_data_001
&----
FORM get_data_001 .
rp_provide_from_last p0008 space pn-begda pn-endda.
rp_provide_from_last p0001 space pn-begda pn-endda.
rp_provide_from_last p2001 space pn-begda pn-endda .
How to get the values based on the selection screen values ie) S_BTRTL,S_TRFGR,S_TRFGB,S_AWART,P_BEGDA,P_ENDDA.
Pls give me a solution to get the datas based on the selection screen.
Thanks,
With Regards,
Deesanth
07-16-2008 9:29 AM
You have to write coding for that .. as U have declared
these parameters in the program.(LDB has its own set of
select-options)
FORM get_data_001 .
rp_provide_from_last p0008 space p_begda p_endda.
rp_provide_from_last p0001 space p_begda p_endda.
rp_provide_from_last p2001 space p_begda p_endda .
if not p0001-btrtl in s_btrtl.
REJECT.
endif.
if not p0008-trfgr in s_trfgr.
REJECT.
endif.
if not p0008-trfgb in s_trfgb.
REJECT.
endif.
if not p2001-awart in s_awart.
REJECT.
endif.
*coding ....
ENDFORM.
07-16-2008 9:29 AM
You have to write coding for that .. as U have declared
these parameters in the program.(LDB has its own set of
select-options)
FORM get_data_001 .
rp_provide_from_last p0008 space p_begda p_endda.
rp_provide_from_last p0001 space p_begda p_endda.
rp_provide_from_last p2001 space p_begda p_endda .
if not p0001-btrtl in s_btrtl.
REJECT.
endif.
if not p0008-trfgr in s_trfgr.
REJECT.
endif.
if not p0008-trfgb in s_trfgb.
REJECT.
endif.
if not p2001-awart in s_awart.
REJECT.
endif.
*coding ....
ENDFORM.