Skip to Content
0
Former Member
Dec 27, 2007 at 12:09 PM

Parnter Fucntion to be fetched

15 Views

Hi ,

We have a requirement where in I need to pass the ship to party and sold to party to one of the function module

SD_SALESDOCUMENT_CREATE. In which the header data ,partner data and item data has to be passed. We used VBRK table to pass ..

wa_sales_header_in-division = wa_vbrk1-spart.

wa_sales_header_in-sales_org = wa_vbrk1-vkorg.

wa_sales_header_in-distr_chan = wa_vbrk1-vtweg.

wa_sales_header_in-doc_type = co_zpcr.

wa_sales_header_in-ord_reason = co_zre.

wa_sales_header_in-price_date = wa_vlcdiavehi_ct-zz_prsdt.

but while doing so it thows an error as ship to party and sold to party need to be enter.

I have some hint that while fetching the billing doc from VBRK

table I need to fetch the Sales doc somehow and in the process need to fetch parnter function.

But I am not getting how to achieve that.

Please provide your valuable inputs.

Thanks in advance

Mohinder Singh Chauhan