Skip to Content

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

help in writing logic to abaper for printing contact details from partnr fn

Hi friends,

I have to give the logic to the abaper to print the contact details of one partner which is manually entered in the quotation at header level.

i have a partner z1 with partner type PE which is manually entered in the partner fn field at the header level. this z1 partner fn is an employee. The name and contact details of this employee needs to be printed in the header of the output.

What is the logic i need to give to abaper for this.



Former Member
Former Member replied


For printing the employee name and contact number you can follow the below logic.

a. Go to VBPA table and fetch the partner Z1 for the Contract number. You will get the Employee Number.

b. Put the Employee number (fetched from VBPA) into KNA1 table to get the name of the employee and also the contact number. If it is not available in KNA1 then, fetch the ADRNR number from KNA1 for the employee number (KUNNR)

c. Now, put ADRNR number into ADRC table and fetch the required details.

Once you have all the above details, ABAPer will know where to store and print all these details.

Hope this helps


Mukund S

0 View this answer in context

Helpful Answer

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