Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Select-option

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

former_member181995
Active Contributor
0 Kudos

Sai,

search in SDN with loop at screen you will get you answer.

Amit.

Former Member
0 Kudos

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.