smart form data fetching
I got some doubt that how can we solve this following, please give some sample code for this as follows.
Pass KUNNR from table KNA1 to get the list of contact persons. Then get the contact title in table KNVK for ABTNR (contact department) = 1001. If there is only one contact maintained for the customer then picks the same with out checking for the department.
So how can i check that more than one contact.