‎2011 Mar 21 3:36 PM
I want to make a validation for callup point 3 'Complete Document'
I would like a validation in bool_data-bseg that only 1 transaction type (bewar) or no transaction type is used in any of the line items. If 0 or only 1 transaction type has been used there is no error. If more than 1 transaction type is used in the line items then an error message should appear that only 1 transaction type should be used.
ABAP Code would be roughly:
LOOP AT bool_data-bseg INTO bseg WHERE bewar <> ''.
...
ENDLOOP
if bewar_count >1
b_result=false.
else .
b_result=true.
end if.
Please give some hints for the code at '...'.
‎2011 Mar 21 3:48 PM