cancel
Showing results for 
Search instead for 
Did you mean: 

Exit variable for multiple characteristics

Former Member
0 Kudos

Hi,

What would be the syntax for an exit variable to populate a variable defined with multiple characteristics (which are independent)?

I tried to adjust the code used for a single characteristic variable without success.

ls_varsel-seqno = 1.

LOOP.

ls_varsel-sign = 'I'.

ls_varsel-opt = 'EQ'.

ls_varsel-chanm = characteristic 1

ls_varsel-low = variable value (for characteristic 1)

APPEND ls_varsel TO eto_charsel.

ls_varsel-sign = 'I'.

ls_varsel-opt = 'EQ'.

ls_varsel-chanm = characteristic 2

ls_varsel-low = variable value (for characteristic 2)

APPEND ls_varsel TO eto_charsel.

ls_varsel-seqno = ls_varsel-seqno + 1.

ENDLOOP.

Thanks for any help.

David

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Sorry, by independent I meant one is not a compound or an attribute of the other one.

My variable exit is returning a unique combination but it does not populate the variable values.

Thanks

Former Member
0 Kudos

Hi,

I created a dummy function module and here's how I have coded for it.

***general logic for fetching the various values....

loop at the data from the above table.

Loop at internal table ITO_CHANM into a work area.

populate the characteristic selection as you have mentioned in ur post. Just making sure that the sequence number is same for a set of values. so increment it outside this loop.

endloop.

increment ur counter for sequence

endloop.

Former Member
0 Kudos

Hi,

Actually with variables for multiple characteristics is a unique set of values for the characteristic attached to the variable.

These are not independent...

thanks