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

ABAP code for validation OB28

Former Member
0 Likes
536

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 '...'.

1 REPLY 1
Read only

Former Member
0 Likes
372

Moderator message - Essentially duplicate post locked Rob