Skip to Content
author's profile photo Former Member
Former Member

SMARTFORM

Hi,

i'm developing a smartform for quotation. but i'm unable to retreive contact persons for a particular customer(direct). can someone help me ASAP. if possible with code.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2006 at 10:01 AM

    Hi,

    Add a piece of coding to read table KNVK for the customer.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2006 at 10:07 AM

    Hi Vinay,

    Contact person for particular customer in Quotation is, partner type AP.

    So, you should retrieve them using VBPA as below.

    DATA: wa_vbpa TYPE vbpa.

    SELECT SINGLE * FROM vbpa INTO w_vbpa

    WHERE vbeln = your quotation number from vbak

    AND posnr = '000000'

    AND parvw = 'AP'.

    From above table you will Address number and Personnel Number of Contact person. So you can get the complete details about the Contact person either using ADRC, ADRP or KNVK.

    regards,

    ram

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.