Application Development and Automation 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: 
Read only

Select-option

Former Member
0 Likes
435

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
Read only

Former Member
0 Likes
409

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
Read only

Former Member
0 Likes
409

Sai,

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

Amit.

Read only

Former Member
0 Likes
410

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.