Skip to Content

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

To get the contact fax number in my form


I would like to get the fax number on the customer section of my smartform for BOL. How do i get the contact fax number in my form with following lines that i ahve for getting contact name.

data: l_parnr like vbpa-parnr,
      l_name1 like knvk-name1,
      l_namev like knvk-namev. "first name

select parnr into l_parnr from
       vbeln = g_sale_ord and
*      vbeln = is_nast-objky and
       parvw = 'AP'.

if l_parnr is not initial.
   select single name1 namev  into (l_name1, l_namev)
      from knvk
       parnr = l_parnr.
   concatenate l_namev l_name1 into g_contact separated by ' '.


Former Member

I wanted you to check if the fax number exists or not.... you can do that using se16n by restricting fax number NE space and see how many entries come up...

if some also have fax numbers it means that the table correect but the data is not maintained..

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