BAPI for Assigning multiple ship to party for customer
Hi experts,
I need a bapi to assign different ship to party for a customer.
I have tried SD_CUSTOMER_MAINTAIN_ALL but not working properly.
Kindly suggest the solution.
Regards,
Nitin.
Hi,
For the maintenance of customers, there is NO BAPI and NO direct function module.
There are some functions modules like the one above where the name is looking nice. But these should not be used.
Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See [note 384462|https://service.sap.com/sap/support/notes/384462]
Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
Hope this helps
BR
Alain
Similar Messages
-
Assign different ship to party for each material in a sales order in CRM?
Hi all,
I need to create a sales order in CRM, such that the sales order contains more than 100 materials at item level and each material should be shipped to a different ship to party.
That is for 100 materials in sales order I need to ship to 100 different customers.
The 100 ship to partyu2019s are maintained for the business partner in relation ships tab in /nBP.
The CRM configuration is done in such a way that when we enter a material while creating a sales order in CRM,u2026u2026.a window pops up asking us to select the ship to party for that material.
No I need to replicate this programmatically. I generated a sales order in CRM programmatically using BAPI_SLSTRANSACT_CREATEMULTI. u2026 Now I need to make changes such that I have a provision to assign ship to party for each materialu2026
How can I do this? Can any one tell me if there is a BAPI or Function Module available so that I can assign a different ship to party for each material in sales order?
Regards,
Jessica SamHere is sample code. In that highlighted portion is different. check this out
DATA: ls_partner TYPE crmt_partner_com,
ls_input_fields TYPE crmt_input_field,
lt_fieldname TYPE crmt_input_field_names_tab,
ls_fieldname LIKE LINE OF lt_fieldname.
ls_partner-ref_handle = p_iv_handle.
ls_partner-ref_partner_handle = 1.
ls_partner-ref_kind = 'A'.
ls_partner-display_type = 'BP'.
ls_partner-no_type = 'BP'.
ls_partner-kind_of_entry = 'C'.
licensee
ls_partner-partner_fct = '00000069'.
ls_partner-partner_no = w_but000-partner.
INSERT ls_partner INTO TABLE gt_partner.
Bill to party
IF NOT w_con_header-billtoparty IS INITIAL.
ls_partner-partner_fct = '00000003'.
ls_partner-partner_no = w_but001-partner.
INSERT ls_partner INTO TABLE gt_partner.
ENDIF.
IF w_con_header-billtoparty IS INITIAL.
ls_partner-partner_fct = '00000003'.
ls_partner-partner_no = w_but000-partner.
INSERT ls_partner INTO TABLE gt_partner.
ENDIF.
Employee
ls_partner-partner_fct = '00000014'.
ls_partner-partner_no = w_con_header-empresp.
INSERT ls_partner INTO TABLE gt_partner.
+*lsinput_fields-ref_handle = p_iv_handle.*+_
+*lsinput_fields-ref_kind = 'A'.*+_
ls_input_fields-logical_key = ls_partner-ref_partner_handle.
ls_input_fields-objectname = 'PARTNER'.
ls_fieldname-fieldname = 'DISPLAY_TYPE'.
INSERT ls_fieldname INTO TABLE lt_fieldname.
CLEAR ls_fieldname.
ls_fieldname-fieldname = 'KIND_OF_ENTRY'.
INSERT ls_fieldname INTO TABLE lt_fieldname.
CLEAR ls_fieldname.
ls_fieldname-fieldname = 'NO_TYPE'.
INSERT ls_fieldname INTO TABLE lt_fieldname.
CLEAR ls_fieldname.
ls_fieldname-fieldname = 'PARTNER_FCT'.
INSERT ls_fieldname INTO TABLE lt_fieldname.
CLEAR ls_fieldname.
ls_fieldname-fieldname = 'PARTNER_NO'.
INSERT ls_fieldname INTO TABLE lt_fieldname.
CLEAR ls_fieldname.
ls_input_fields-field_names = lt_fieldname.
INSERT ls_input_fields INTO TABLE gt_input_fields. -
Multiple Shipping Addresses for a single Ship-to-Party
Hi all,
How can we maintain multiple addresses for a single ship-to-party.
The customer has 4 locations and whenever he places a order he wants the goods to be delivered to one or more than one address .How to do this?
I tried to find it in the forum but I din't get a satisfactory answer.
Regards,
AjitAjit
You may use Text for your requirment...
Better Create a text type say Shipping Address... and assign to a sales order....
Keep that in the Incomplete Log... so that when ever you process the sales order end user is in need to complete the Address....
Another way is Ask ABAB er To change some field relevent to the customer as a Shipping address or may be Z field and use the same to the address..
I have not used this check with your ABABer
Reward if usefull
Muthupandiyan -
Ship to party for each material using BAPI_SLSTRANSACT_CREATEMULTI
i am able to generate sales order for in CRM. I am inputting the sold to party, ship to party, bill to party and payer at the header level...
CRM is currently configured in such a way that , there is a provision to assign ship to party at item level for each material.
How can i programatically replicate this? I need to assign a diiferent ship to party for each material in the sales order.*
how can i programatically replicate this?...
this is my code for cresating a sales order in CRM with sold to party, ship to party, bill to party and payer at the header level...
*************include constants
include crm_direct.
************// GUIDs
data: lv_guid_h type GUID_32, "HEADER GUIDE
lv_guid_i type GUID_32, "ITEM GUIDE
lv_guid_sl type GUID_32, "SCHEDULE LINE GUIDE
lv_guid_p type GUID_32. "PARTNER GUIDE
***********// Handles
data: lv_current_handle type crmt_handle, "CURRENT HANDLE
lv_handle_h type crmt_handle, "HEADER HANDLE
lv_handle_i type crmt_handle, "ITEM HANDLE
lv_handle_sl type crmt_handle, "SCHEDULE LINE HANDLE
lv_handle_p type crmt_handle. "PARTNER HANDLE
***********// Administration header + item + etc
data: lt_salesorder_header type table of bapibus20001_header_ins, "LT_SALESORDER_HEADER
ls_salesorder_header type bapibus20001_header_ins, "LS_SALESORDER_HEADER
lt_salesorder_item type table of bapibus20001_item, "LT_SALESORDER_ITEM
ls_salesorder_item type bapibus20001_item, "LS_SALESORDER_ITEM
lt_scheduleline type table of BAPIBUS20001_SCHEDLIN, "LT_SCHEDULELINE
ls_scheduleline type BAPIBUS20001_SCHEDLIN, "LS_SCHEDULELINE
lt_partner type table of BAPIBUS20001_PARTNER_INS, "LT_PARTNER
ls_partner type BAPIBUS20001_PARTNER_INS, "LS_PARTNER
ls_logical_key TYPE crmt_partner_logic_partner_key, "LS_LOGICAL_KEY
lt_organisation type table of BAPIBUS20001_ORGMAN_INS, "LT_ORGANISATION
ls_organisation type BAPIBUS20001_ORGMAN_INS. "LS_ORGANISATION
*********// Saved sales orders
data: lt_saved_process type table of bapibus20001_object_id, "LT_SAVED_PROCESS
data:
ls_saved_process type bapibus20001_object_id, "LS_SAVED_PROCESS
ls_salesorder type CRMT_RETURN_OBJECTS_STRUC. "LS_SALESORDER
data: lt_input_fields type table of bapibus20001_input_fields, "LT_INPUT_FIELDS
ls_input_fields type bapibus20001_input_fields, "LS_INPUT_FIELDS
ls_return type bapiret2. "LS_RETURN
data: lt_return type table of bapiret2. "LT_RETURN
***********// Macro definition to populate structure and input field This, called as
*_set_field ls_salesorder_header GUID lv_guid_h
*is exploded as
ls_salesorder_header-GUID = lv_guid_h.
ls_input_fields-fieldname = 'GUID'.
append ls_input_fields to lt_input_fields.
*Note 1: &2 (field name) MUST be uppercase
*Note 2: for the salesorder header, Macro has not been used to show how the code should look like.
*except for that the macro has been used everywhere else.
define setfield.
&1-&2 = &3.
ls_input_fields-fieldname = '&2'.
append ls_input_fields to lt_input_fields.
end-of-definition.
*****// end of macro definition
******// fill order administration header
perform get_guid changing lv_guid_h.
add 1 to lv_handle_h.
ls_salesorder_header-guid = lv_guid_h.
ls_salesorder_header-handle = lv_handle_h.
ls_salesorder_header-process_type = 'ZWEB'.
clear ls_input_fields.
ls_input_fields-ref_handle = lv_handle_h.
ls_input_fields-ref_guid = lv_guid_h.
*ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
ls_input_fields-objectname = gc_object_name-orderadm_h.
ls_input_fields-fieldname = 'GUID'.
append ls_input_fields to lt_input_fields.
ls_input_fields-fieldname = 'HANDLE'.
append ls_input_fields to lt_input_fields.
ls_input_fields-fieldname = 'PROCESS_TYPE'.
append ls_input_fields to lt_input_fields.
append ls_salesorder_header to lt_salesorder_header.
**********// fill organisation data (Interface needs this, some times may rely on sales org determination instead...
clear ls_input_fields.
ls_input_fields-ref_handle = lv_handle_h.
ls_input_fields-ref_guid = lv_guid_h.
ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
ls_input_fields-objectname = gc_object_name-orgman.
setfield ls_organisation REF_GUID lv_guid_h.
setfield ls_organisation REF_HANDLE lv_handle_h.
setfield ls_organisation REF_KIND gc_object_ref_kind-orderadm_h.
setfield ls_organisation SALES_ORG_RESP SO_RESP . "(input).
setfield ls_organisation SALES_ORG SALES_ORG. "(input).
setfield ls_organisation DIS_CHANNEL DIS_CHNL. "(input).
setfield ls_organisation DIVISION DIVISION. "(input).
append ls_organisation to lt_organisation.
**********// fill order administration item
perform get_guid changing lv_guid_i.
lv_handle_i = lv_handle_h.
add 1 to lv_handle_i.
clear ls_input_fields.
ls_input_fields-ref_guid = lv_guid_i.
ls_input_fields-ref_handle = lv_handle_i.
*ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_i.
ls_input_fields-objectname = gc_object_name-orderadm_i.
setfield ls_salesorder_item GUID lv_guid_i.
setfield ls_salesorder_item HEADER lv_guid_h.
setfield ls_salesorder_item HANDLE lv_handle_i.
setfield ls_salesorder_item HEADER_HANDLE lv_handle_h.
setfield ls_salesorder_item ORDERED_PROD PRODUCT . "(input).
setfield ls_salesorder_item ITM_TYPE 'ZTAN'.
setfield ls_salesorder_item MODE 'A'.
*adjustment taken from standard include LCMS_MAPPERF04
*(see where-used-list for BAPI_SLSTRANSACT_CREATEMULTI, program LCMS_MAPPERU11)
delete lt_input_fields where fieldname = 'HANDLE'
OR
fieldname = 'HEADER_HANDLE'.
append ls_salesorder_item to lt_salesorder_item.
********// fill schedule line for item
perform get_guid changing lv_guid_sl.
add 1 to lv_handle_sl.
clear ls_input_fields.
ls_input_fields-ref_guid = lv_guid_i.
ls_input_fields-ref_handle = lv_handle_i.
ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_i.
ls_input_fields-objectname = gc_object_name-schedlin.
setfield ls_scheduleline ITEM_GUID lv_guid_i.
setfield ls_scheduleline GUID lv_guid_sl.
setfield ls_scheduleline HANDLE lv_handle_sl.
setfield ls_scheduleline ITEM_HANDLE lv_handle_i.
setfield ls_scheduleline QUANTITY quantity. "(input).
append ls_scheduleline to lt_scheduleline.
********// fill partner line
*perform get_guid changing lv_guid_p.
*the partner use the logical key as well
ls_logical_key-ref_partner_handle = '0001'.
clear ls_input_fields.
ls_input_fields-ref_guid = lv_guid_h.
ls_input_fields-ref_handle = lv_handle_h.
ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
ls_input_fields-objectname = gc_object_name-partner.
ls_input_fields-logical_key = ls_logical_key.
setfield ls_partner REF_GUID lv_guid_h.
setfield ls_partner REF_HANDLE lv_handle_h.
setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
setfield ls_partner REF_PARTNER_HANDLE '0001'.
setfield ls_partner KIND_OF_ENTRY 'C'.
setfield ls_partner PARTNER_FCT '00000001'.
setfield ls_partner PARTNER_NO SOLD_TO. "(input).
setfield ls_partner NO_TYPE 'BP'.
setfield ls_partner DISPLAY_TYPE 'BP'.
move-corresponding ls_partner to ls_logical_key.
append ls_partner to lt_partner.
ls_logical_key-ref_partner_handle = '0002'.
clear ls_input_fields.
ls_input_fields-ref_guid = lv_guid_h.
ls_input_fields-ref_handle = lv_handle_h.
ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
ls_input_fields-objectname = gc_object_name-partner.
ls_input_fields-logical_key = ls_logical_key.
setfield ls_partner REF_GUID lv_guid_h.
setfield ls_partner REF_HANDLE lv_handle_h.
setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
setfield ls_partner REF_PARTNER_HANDLE '0002'.
setfield ls_partner KIND_OF_ENTRY 'C'.
setfield ls_partner PARTNER_FCT '00000002'.
setfield ls_partner PARTNER_NO SHIP_TO . "(input).
setfield ls_partner NO_TYPE 'BP'.
setfield ls_partner DISPLAY_TYPE 'BP'.
move-corresponding ls_partner to ls_logical_key.
append ls_partner to lt_partner.
ls_logical_key-ref_partner_handle = '0003'.
clear ls_input_fields.
ls_input_fields-ref_guid = lv_guid_h.
ls_input_fields-ref_handle = lv_handle_h.
ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
ls_input_fields-objectname = gc_object_name-partner.
ls_input_fields-logical_key = ls_logical_key.
setfield ls_partner REF_GUID lv_guid_h.
setfield ls_partner REF_HANDLE lv_handle_h.
setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
setfield ls_partner REF_PARTNER_HANDLE '0003'.
setfield ls_partner KIND_OF_ENTRY 'C'.
setfield ls_partner PARTNER_FCT '00000003'.
setfield ls_partner PARTNER_NO BILL_TO ."(input).
setfield ls_partner NO_TYPE 'BP'.
setfield ls_partner DISPLAY_TYPE 'BP'.
move-corresponding ls_partner to ls_logical_key.
append ls_partner to lt_partner.
ls_logical_key-ref_partner_handle = '0004'.
clear ls_input_fields.
ls_input_fields-ref_guid = lv_guid_h.
ls_input_fields-ref_handle = lv_handle_h.
ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
ls_input_fields-objectname = gc_object_name-partner.
ls_input_fields-logical_key = ls_logical_key.
setfield ls_partner REF_GUID lv_guid_h.
setfield ls_partner REF_HANDLE lv_handle_h.
setfield ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
setfield ls_partner REF_PARTNER_HANDLE '0004'.
setfield ls_partner KIND_OF_ENTRY 'C'.
setfield ls_partner PARTNER_FCT '00000004'.
setfield ls_partner PARTNER_NO PAYER ."(input).
setfield ls_partner NO_TYPE 'BP'.
setfield ls_partner DISPLAY_TYPE 'BP'.
move-corresponding ls_partner to ls_logical_key.
append ls_partner to lt_partner.
*******// example of a second partner function (custom) with data override
*ls_logical_key-ref_partner_handle = '0002'.
*clear ls_input_fields.
*ls_input_fields-ref_guid = lv_guid_h.
*ls_input_fields-ref_handle = lv_handle_h.
*ls_input_fields-ref_kind = gc_object_ref_kind-orderadm_h.
*ls_input_fields-objectname = gc_object_name-partner.
*ls_input_fields-logical_key = ls_logical_key.
*_set_field ls_partner REF_GUID lv_guid_h.
*_set_field ls_partner REF_HANDLE lv_handle_h.
*_set_field ls_partner REF_KIND gc_object_ref_kind-orderadm_h.
*_set_field ls_partner REF_PARTNER_HANDLE '0002'.
*_set_field ls_partner KIND_OF_ENTRY 'B'. "manual entry...
*_set_field ls_partner PARTNER_FCT customFct(input).
*_set_field ls_partner PARTNER_NO bpNumber(input).
*_set_field ls_partner NO_TYPE 'BP'.
*_set_field ls_partner DISPLAY_TYPE 'BP'.
*_set_field ls_partner TITLE 'Mr.'.
*_set_field ls_partner FIRSTNAME 'John'.
*_set_field ls_partner LASTNAME 'Smith'.
*_set_field ls_partner STR_SUPPL1 'John Smith and Co'.
*_set_field ls_partner STREET 'Street1'.
*_set_field ls_partner STR_SUPPL3 'Street4'.
*_set_field ls_partner HOUSE_NO '42'.
*_set_field ls_partner CITY 'Townville'.
*_set_field ls_partner DISTRICT 'Districtshire'.
*_set_field ls_partner POSTL_COD1 'AA1 2BB'.
*note now ...
*adjustment taken from standard include LCMS_MAPPERF04
*(see where-used-list for BAPI_SLSTRANSACT_CREATEMULTI, program LCMS_MAPPERU11)
*I don't use macro because name of the field in input_table is different
*_set_field ls_partner COUNTRYISO 'GB'.
*instead
ls_partner-COUNTRYISO = 'GB'.
ls_input_fields-fieldname = 'COUNTRY'.
append ls_input_fields to lt_input_fields.
*_set_field ls_partner LANGU_ISO 'EN'.
ls_partner-LANGU_ISO = 'EN'.
ls_input_fields-fieldname = 'LANGU'.
append ls_input_fields to lt_input_fields.
move-corresponding ls_partner to ls_logical_key.
append ls_partner to lt_partner.
*Create sales orders *
call function 'BAPI_SLSTRANSACT_CREATEMULTI'
EXPORTING
testrun = false
TABLES
header = lt_salesorder_header[]
item = lt_salesorder_item[]
partner = lt_partner[]
organisation = lt_organisation[]
input_fields = lt_input_fields[]
scheduleline = lt_scheduleline[]
saved_process = lt_saved_process[]
return = lt_return[].
*************// get the GUID of the created object
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = lt_return1.
INCLUDE ZZGVBAPISALESORDER_GET_GUIDF01.
Edited by: jessica sam on Dec 22, 2008 4:25 PM
Edited by: jessica sam on Dec 22, 2008 4:27 PM
Edited by: jessica sam on Dec 22, 2008 7:05 PM
Edited by: jessica sam on Dec 23, 2008 5:18 AMI know how to trace the Ship to party at line item. When i create an order manually on CRM then the table CRMD_PARTNER has the required entries and the Ship to party at line item is getting populated correctly. Also if i open the order in CRMD_ORDER the ship pto party are being populated correctly at line item..
But if i am trying to replicate this programatcally using the BAPI, i see that the ship to at header is being copied to each line item and this is not what is expected.
If i go and check in the CRMD_PARTNER the data is not filled
correctly as I dont have any ship to party at line item
So finally I even tried to insert the data manually in the CRMD_PARTNER table using an
INSERT statement and even that doesnt work...
https://www.sdn.sap.com/irj/scn/forums
So i am unable to ficgure out what is going wrong
Any body if they have any idea on poulating ship to party programatically in
sales order for each line item please help
I am unable to figure out how to fill PArtner table of this BAPI to populate ship to at line item level
Kindly Help..
Regards,
Jessica Sam -
Different ship to party for one of two line items from sales order
Hi Experts,
1. The Sales Order No.19701 is an Export Order, received from M/s. Industries & Construction, Indonesia. We have to supply all the materials on FOB Indian seaport basis.
2. However, we have to dispatch against Line Item No. 280 & 290 to one of our subvendors, M/s.Industries, sec,rabad to complete some Control Assly. as per agreed Inspection terms.
3. After completion of Control Assembly & Client's Inspection materials will be finally dispatched to nearest Seaport for seafreight.
So here i can i map this scenario from sales order to billing, ship to party for those 2 items must be sub vendor.
Thanx in advance
MadhuHi madhusudan
You can map different ship to party . First you need to configure customer master for the same.
Add the alternate ship to parties to customer master of sold to party, your export customer.
While creating master data for sub vendors as ship to party ,you need to maintian proper customer pricing pricing procedure and tax classification as you mentioned customer is export customer ,but ship to party seems to be domestic ,so carefully check the same. also check the shipping condition if it is separate for exports.
Then in Sales order transaction on line item data ,change your ship to party for the line item as per the the requirement.
for further processing of this scenario ,like excise invoice and ARE1 u might have lsome issues if ship to party is liable for duties and taxes and Sold to is exempt and you are drawing only one invoice for these 2 separate deliveries. pl check on the same.
I hope this helps
Revert for any queries
Regards
Mandar
Edited by: Mandar Deshpande on Apr 13, 2010 11:04 PM -
Maxinum number of ship-to party for a sold-to party?
Dear Expert,
Is there any limitation on the number of the ship-to party that a sold-to party can have? I was told that one sold-to party can have maximally 999 ship-to party? Is it true? If it is true, what if a sold-to party does have more than 999 ship-to parties?
This could be the potential problem of my client, because the number of the ship-to party for one sold-to party is increasing intensively and may exceed the LIMIT in the future?
Any input will be appreciated.
Thanks!
Regards,
Wang HuiHi Bashir,
The problem has been solved.
Actually in sales order, you are allowed to put ship-to party which is not linked to the sold-to party in the master data, that means you can manually key in any ship-to party as you like. I didn't know this before:(
In our case, the orders are transmitted via EDI and created automatically, so the ship-to party is also determined automatically in a user exit, so we can have as many ship-to party as we want.
Thanks!
Regards,
Wang Hui
>
Bashir wrote:
> Hi,
>
>
> I will need more information on your query to solve
> Can you provide the details of industry ur client belongs to
>
>
> As it will be more complex to select 1 ship to party from the xxxx numbers, Can you try this with customer Hierarchy functionality.
>
>
> Regards,
> Bashir -
Ship-to-Party for STO document
Hello All,
Can you guys help me out in pointing to the right database table for getting the ship to party of STO ? I could not find it when I searched it in the forums.
Thanks in advance for your help.
BabuFor Sales Document..
SELECT * FROM VBPA
INTO TABLE <ITAB>
WHERE <YOUR CONDITION>
AND PARVW = 'WE'.
PARVW- If Partner Function eq 'WE' then it is ship to party, if 'AG' then sold to party
Check Value table TPAR -
Multiple ship to party issue.
Hi Experts,
I have multiple ship-to, bill-to, payer for one sold to party. I maintain the same in customer master for sold to party. I create a contract for sold to party with default ship to party.
In creating sales order with reference to contract, the system is letting me assign any ship-to party and other partner functions to the document even though they are not assigned to sold to party in customer master.
If there any option by which I can restrict the partner functions option only to the partners assigned in customer master of sold to party.
If some one has the solution please provide me it ASAP.
Thanks
ChakrapaniHi Chakrapani
Please check your Partner determination procedure configuration.Also check how the ship to party partner function is assigned
to the account groups.
Regards
Srinath -
Maintaining multiple ship to party address in SD
Hi Guys,
Could you please let me know, how we can maintain multiple ship to party address for a customer?
Thanks,
Kam.hi,
this is to inform you that,
you can create another SH against 0002 - or yours and create a multiple address for SH.
then assign the SH number to original customer then this will reflect as two SH's one for the original customer and second is created SH in sales order you will get a POP up screen you can select manually there.
or
you can use contacts person address tab page for alternate address of SH if you dont want to trigger another SH and this is use ful for only address maintaince.
if you can come to a confirmation that you are not using contacts person tab page for any other purpose. then you can use it
regards,
balajia -
Maintaining multiple ship to party address in ECC 6.0
Hi Guys,
Could you please let me know, how we can multiple ship to party address for a customer in ECC 6.0?
Thanks,
Kam.I suggest you ask this question in an SD forum - and/or try to get this information from SAP help or a consultant.
Markus -
BAPI Sales order create - Ship to party Error
Dear All,
I have an issue with BAPI_SALESDOCU_CREATEFROMDATA1.
I need different ship to party's on the items , irresspective of the header ship to party. Currently the order is getting created with the same ship to party for all the items , same as the header ship to party. Please refer the code below and help.
Sales document type
IF zdemmast-doc_type = 'X'.
header-doc_type = 'ZDMM'.
ELSEIF zdemmast-doc_type = 'ZDME'.
headerx-doc_type = 'X'.
ENDIF.
Sales organization
header-sales_org = '1000'.
headerx-sales_org = 'X'.
Distribution channel
header-distr_chan = '10'.
headerx-distr_chan = 'X'.
Division
header-division = '10'.
headerx-division = 'X'.
headerx-updateflag = 'I'.
Sold to
partner-partn_role = 'AG'.
partner-partn_numb = zdemmast-kunnr.
APPEND partner.
Ship to
partner-partn_role = 'WE'.
partner-partn_numb = zdemmast-kunnr.
APPEND partner.
LOOP AT it_zdem_item INTO wa_zdem_item.
itemx-updateflag = 'I'.
item-itm_number = wrk_item_number.
itemx-itm_number = 'X'.
item-material = '000000000000000016'. "wa_zdem_item-matnr.
itemx-material = 'X'.
item-plant = '1000'.
itemx-plant = 'X'.
item-target_qty = wa_zdem_item-cret.
itemx-target_qty = 'X'.
lt_schedules_in-itm_number = wrk_item_number.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = wa_zdem_item-cret.
lt_schedules_inx-itm_number = wrk_item_number.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-updateflag = 'X'.
lt_schedules_inx-req_qty = 'X'.
partner-partn_role = 'WE'.
partner-partn_numb = wa_zdem_item-kunnr.
partner-itm_number = wrk_item_number.
APPEND item.
APPEND itemx.
APPEND lt_schedules_in.
APPEND lt_schedules_inx.
APPEND partner.
wrk_item_number = wrk_item_number + 10.
ENDLOOP.
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
EXPORTING
sales_header_in = header
sales_header_inx = headerx
IMPORTING
salesdocument_ex = v_vbeln
TABLES
return = return
sales_items_in = item
sales_items_inx = itemx
sales_schedules_in = lt_schedules_in
sales_schedules_inx = lt_schedules_inx
sales_partners = partner.
Please suggest.
Thanks in advanceHi,
try the following:
Fill tables parameter SALES_PARTNERS (BAPIPARTNR).
For header don't fill field ITM_NUMBER.
For position fill field ITM_NUMBER.
For example (BAPIPARTNR):
SP | 0000010000 | 000000 | ...
SP | 0000009034 | 000001 | ...
At header the ship to will be "10000" and at item 1 it will be "9034".
Regards -
Multiple sales to party for a ship to party
Hi experts,
I have a scenario, for example. My company is a service provider to many mines..say..mine X,Y and Z. so in my SD sales order my sold to party is either X or Y or Z. Now the company wants to track the actual buyer of the material from these mines by way of capturing them as a Ship to party. So ship to parties say A, B & C . Now this A or B or C can purchase materials from any one of the above mines (because same materials are produced by mines). How do i capture his scenario at the time of creating sales order.
Possible solution i feel
1.define individual account group for sold to party and ship to party and enter their code separately in sales order.
2.Can i define possible sold to parties for a ship to party in the partner function,so that i will enter only ship to party and all possible sold to paty will come as a pop up....(pls explain if this is possible to do and how to do)
Regards,
AjuDear Aju,
Yes you can do as you said, create two account groups 1 for sold to party another for ship to party.
you can assign your sold to parties to your ship to parties or ship to parties to your sold to parties.
As per standard we generally assign different ship to parties to single sold to party,while creating the sale order once you enter the sold to party system will display allowed ship to parties in pop up.
EX: you have X,Y and Z sold to parties and A,B and C ship to parties
you can do like this
X sold to party , Y sold to party and Z sold to party
A ship to party A ship to party A ship to party
B ship to party B ship to party B ship to party
C ship to party C ship to party. C ship to party.
Regards
Ram -
BAPI to retrieve ship to party for a given sold to party
Hi All,
I have a requirement to get the ship to party details for a sold to party. The scenario is that we are using an excel sheet for order loading at the client's place.
The CSR enters the sold to party in the excel sheet and there is a funcationality developed which will call RFC and connect to SAP. Now for the sold to party entered in the excel sheet, I need to have all the ship to party details for the sold to party entered. Now I need to know if there is a standard BAPI to retrieve all the ship to party.
Kindly let me know if anybody is aware of the standard BAPI for the above requirement.Hi,
I am not sure of any BAPI here.But I will give you the ogic to retrieve all Ship-to-parties for your customer.
Goto T.Code SE11/SE16/SE16n T.Code.
Enter the table name as KNVP.
Enter your sold-to-party here for customer field.Execute or press F8.
Retrieve all the partners and get the ship-to-parties having the partner function "WE".
If you click on display by selecting that line all details will appaear here.
Hope this helps you.
Regards,
Krishna. -
Re: Separate shipping charge for multiple ship to party
Hi guys,
We are using the total order value to calculate shipping charge that should be applied to the customer.
0 - 25 -- $6
26 - 50 --$10
and so on
So i am using a condition type ZSHH which groups all the conditions types on value basis and applies the right charge in the sales order.
However when there are 2 ship to party in the sales order, then also it is adding the value of all the lin-items in the sales order and applying the shipping cost.
What is desired that the condition type should calculate the total of the items to be shipped to every ship-to-party and apply different shipping charge for every Ship-to-party separately.
I am not able to figure out how to do this?
Do I need to write a different Structure Group Key Formula so as to acheive this functionality.
Currently The condition type is assigned to the structure key - 1 (Overall Document)
If yes ... kindly guide me .. what all things should I pass to the abaper so as to help him develop the structure key.
Thanks in advace
VinitDoes my question make sense ... as no one is replying ... I feel that I am asking some ridiculous or may be an obvious question.
Can anybody guide me ?
Thanks
Vinit -
Multiple ship to parties for one sold to party.
Hi all,
Suppose we get a P.O which has material A quantity is 10. the sold to party tells that each of the 10 items must be edlivered to 10 different ship to parties. I mean each ship to party recieves 1 qty of material A. Can you explain what setting should be done to process this type of process.Hi Vikrant,
For restricting the quantity to 1 for each ship-to party, you need to go to VOV7, choose your Item Category, there you'll find a check box "Order quantity equal to 1". But in this case for every ship-to party you need to create sparate Order.
Hope this will prove helpful to you
Reward points if so
Regards
SD
Maybe you are looking for
-
Default settings in adobe reader 9 may cause colors to shift error
Upon printing a color document to PS printer, Adobe reader 9 gives the following message: Obviously, one cannot see the options but... Top appears to do nothing, nothing prints. Middle you get print, bottom no print. One of these has to be a fix butt
-
Verify/Repair permissions dimmed
Disk utility/verify/repair permissions are dimmed - maybe resulting from some new programmes downloaded recently. I have been able to verify/repair disk in installation option but this has not resolved the problem. All appears to work but obviously I
-
X-post - Director Developments at Adobe
I wrote up a longish post in the basics forum. Won't post the entire thing here. But, just in case anyone is interested, here's the link: http://forums.adobe.com/thread/529479?tstart=0 Dean Director Lecturer / Consultant / Director Enthusiast http://
-
Hello I need some information about making installer of build exe file. My project contain Modbus I/O server library that connected to "GLOFA GM7U PLC" and Communicated correctly. When i built exe file and installer package did not have any problem
-
ACR6.7 download for CS5
I have downloaded ACR6.7 but do not know how to get it into CSR5/Bridge. Any help would be appreciated.