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

salesorder creation using BDC

Hi All,

I have a requirement as described below.

while creating a sales order, if u go to header level and then partners tab in that, u would see a table like structure where u have sold-to-party, ship to party, bill to party, and payer.

My requirement is that i need to select ship-to-party and press details button then i want to change the details there.everything is working fine at the moment.

but i have a doubt that the order of ship to party, sold to party , payer and bill-to-party wouldnt be same all the time.now the ship-to-party is in 4th position.so, in BDC recording it is GVS_TC_DATA-SELKZ(04), i am setiing that to 'X' and iam going ahead.what if the position changes?

is there anyway that i can trace the ship-to-party position whether it is in position 1 or 2 or 3 or 4.

could some one help me with this.

Thanks in advance,

suresh

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 Aug 29, 2006 at 04:26 PM

    Use the function module VIEW_KUAGV. Pass soldto details and document details being created in inport parameter comwa and pass shipto number in WE_INPUT and fif_no_dialog = 'X',no_address_data = 'X'.

    This gives the exact structure of how the partners will appear when you create a sales order in table xvbpa. You can find the positions of partners from the table.

    Award points if answer is helpfull.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 29, 2006 at 04:29 PM

    Hi,

    Go to Knvp table to get all patrner details

    of customer for sales order aand use this index

    in your BDC.

    vbak-kunnr = knvp-kunnr.

    vbak-vkorg,vtweg,spart = knvp-vkorg,vtweg,spart

    Regards

    Amole

    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.