Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to pass select-options variable to a form.

I have a select-options variable smatnr. I need to pass this select-options variable to a form by

perform using smatnr changing svar.

form cond_types using pmatnr changing svar.

IT gives an error saying imcompatible types been passed between smatnr and pmatnr.

Any ideas, what is wrong. How do I pass a select-option variable into a form the right way.

Thanks

Ram

replied

Try like this:

TABLES: vbak.

SELECT-OPTIONS: s_vbeln FOR vbak-vbeln.

START-OF-SELECTION.
  PERFORM get_data USING s_vbeln[].


*&---------------------------------------------------------------------*
*&      Form  get_Data
*&---------------------------------------------------------------------*
FORM get_data  USING  p_s_vbeln LIKE s_vbeln[].

ENDFORM.                    " get_Data

Regards,

Naimesh Patel

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question