07-17-2008 12:03 PM
Hi Guy's,
Please help me, in my program using one function module. i_trip is contain gsber(business area) field.
added business area at selection-option. i want validate this field and also displays the output based on this business area. how to work this senario.
CALL FUNCTION 'ZHR_GET_FUND_TRIPS'
EXPORTING
p_fictr = p_fictr
p_fictr = wa_fc-fictr
p_sub = p_sub
TABLES
s_bukrs = s_bukrs
s_pernr = s_pernr
s_reinr = s_reinr
s_pdatv = s_pdatv
s_berei = s_berei
i_trip = i_trip
EXCEPTIONS
OTHERS = 1.
loop at i_trip.
how to validate that field....
Thanks,
Sai.
07-17-2008 12:10 PM
If I am correct u want to validate business area getting from i_trip against the select-option say s_gsber. If my assumption is correct then try this:
CALL FUNCTION 'ZHR_GET_FUND_TRIPS'
EXPORTING
p_fictr = p_fictr
p_fictr = wa_fc-fictr
p_sub = p_sub
TABLES
s_bukrs = s_bukrs
s_pernr = s_pernr
s_reinr = s_reinr
s_pdatv = s_pdatv
s_berei = s_berei
i_trip = i_trip
EXCEPTIONS
OTHERS = 1.
loop at i_trip.
if i_trip-gsber in s_gsber[ ].
write / i_trip-gsber.
endif.
endloop.
Regards,
Joy.
07-17-2008 12:05 PM
Sai,
search in SDN with loop at screen you will get you answer.
Amit.
07-17-2008 12:10 PM
If I am correct u want to validate business area getting from i_trip against the select-option say s_gsber. If my assumption is correct then try this:
CALL FUNCTION 'ZHR_GET_FUND_TRIPS'
EXPORTING
p_fictr = p_fictr
p_fictr = wa_fc-fictr
p_sub = p_sub
TABLES
s_bukrs = s_bukrs
s_pernr = s_pernr
s_reinr = s_reinr
s_pdatv = s_pdatv
s_berei = s_berei
i_trip = i_trip
EXCEPTIONS
OTHERS = 1.
loop at i_trip.
if i_trip-gsber in s_gsber[ ].
write / i_trip-gsber.
endif.
endloop.
Regards,
Joy.