Ship to party address in sales order header
Hi
We changed the ship to party address at the header level and new address number got generated and updated the table VBPA.
We need to revert the address so that the original address number of the ship to party should be updated in the table VBPA.
Eg : Ship to party address number - 123
During the creation of the sales order, 123 is updated in VBPA.
We changed the address of the ship to party at header level and new addess number 963 got generated for the changed address and updated in the table VBPA.
Now we need to revert the changes so that original address number 123 should get updated in VBPA.
Please help us to resolve this issue.
Thanks in Advance
Shaju
HI Shaju,
This is not SAP standard, but a trick we learned and we have used successfully.
Go to the change mode of sales order. Delete the ship-to and press enter. It will give you a warning, still press enter. If its very compulsory then put some other ship to party and then press enter. DO NOT save the sales order.
There will be a lot of re-determinations, let them happen.BUT DO NOT save the sales order. Once all the re-detereminations happen. Delete the new ship-to and put in the old one. ANd you will have the old shipt-to with the oroiginal address and address number.
Now save the sales order.
The logic is when you put in the new ship-to then it re-determines everything including the address number. And then when you put in the old one, it will do one more round of re-determination and will copy the address number from customer master. Thus you get the original address.
Hope this helps,
Abhishek
Similar Messages
-
User Exit to change the Ship-to party address at Sales Order headder level
Hi,
I have requirement like this......
I need to change the ship-to party address at Sales Order headder level. for that which user exit i need to use and which structure i need to use to update the transaction.
I used : userexit_save_document_prepare, in that i passed data to 'xvbpa' and 'xvbadr' structures. even though it is not update the transaction.
Please let me know the answer.
Thanks,
Satish.Hi Satish,
Step1. Create new Data Copy Routine using Tcode VOFM.
Step2. *-----------------------------------Ship to Party from contract
IF CVBPA-PARVW = 'WE' OR
CVBPA-PARVW = 'SH'.
REFRESH IT_STP.
SELECT KTOKD
A~KUNNR
NAME1
NAME2
A~ADRNR
FROM VBPA AS A INNER JOIN KNA1 AS B ON A~KUNNR = B~KUNNR
INTO CORRESPONDING FIELDS OF TABLE IT_STP
WHERE VBELN = CVBPA-VBELN .
Step3.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 80
ENDPOS_ROW = 10
STARTPOS_COL = 10
STARTPOS_ROW = 5
TITLETEXT = 'Your Title'
IMPORTING
CHOISE = T_SELIDX<=====Index No of selection
TABLES
VALUETAB = IT_STP
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
Step4.
READ TABLE IT_STP INTO WA_STP INDEX T_SELIDX.
IF SY-SUBRC = 0.
CLEAR:CVBPA-KUNNR, CVBPA-ADRNR.
MOVE WA_STP-KUNNR TO CVBPA-KUNNR.
MOVE WA_STP-ADRNR TO CVBPA-ADRNR. <========Address ID (Change Here).
ENDIF.
Regards,
Amrendra
Moderator Message - Please do not reply to old, dormant threads.
Message was edited by: Suhas Saha -
Changing ship to party address in sales order
Hi All,
We have a scenario herein in sales order, the ship to party address is copied from some other ship to party address. Put simply if the ship to party in sales order 1 is A, the address of A will be copied from ship to party B. The ship to party B is in sales order 2. The ship to party in sales order 1 will remain A only but the address is copied from B ship to address
i just need to know where this kind of development must have been done. i.e the include program, exit etc.
i am trying to see exit EXIT_SAPLV09A_001, but i could not see it in se38?
regards
sachinHi,
In first place why you want to have such a requirement. Why can't you have the correct address in the Ship to Party master record in the XD01 and assign correct ship to party at the sales order line item, so that correct address flows to the sales order line item.
Eg:
Sold to Party A
Ship to Party A & Ship to Party B (Both are assigned in the Partner tab of Sold to Party A)
Ship to Party A has Address A & Ship to Party B has Address B (Ship to Party B was created with Account Group SHIP TO)
On the sales order line item, change the ship to party to Ship to Party B
So that you have correct address in the relevant line item.
As per your requirement, you have to have a Z table to keep the logic between hip to Party & relevant address.
If not, check below link for all User Exits in SD>
https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
Find a correct one for your requirement.
Best regards,
Anupa -
Over write ship to party address when sales order is created
Hi
I am creating sales order using BAPI_SALESORDER_CREATEFROMDAT2 but would like to change the shipto party address.
I want to change the following address fields of shipto party
Name1
Name2
Street
STR_SUPPL1 (Street2)
C_O_NAME (c/o name)
POSTL_COD1 (City postal code)
CITY
COUNTRY
REGION
TRANSPZONE
Following is the piece of code i wrote for partner structure and partner address structure of the BAPI.
I_ORDER_PARTNERS-PARTN_ROLE = 'WE'.
I_ORDER_PARTNERS-PARTN_NUMB = '0000241269'.
I_ORDER_PARTNERS-country = 'US'.
I_ORDER_PARTNERS-TRANSPZONE = 'US'.
I_ORDER_PARTNERS-ADDR_LINK = ''0000201328'.
APPEND I_ORDER_PARTNERS.
I_PARTNERADDRESSES-ADDR_NO = ''0000201328'..
I_PARTNERADDRESSES-NAME = WA_CUSTOMER-NAME.
I_PARTNERADDRESSES-NAME_2 = WA_CUSTOMER-NAME2.
I_PARTNERADDRESSES-STREET = WA_CUSTOMER-STREET.
I_PARTNERADDRESSES-STR_SUPPL1 = WA_CUSTOMER-STREET2.
I_PARTNERADDRESSES-C_O_NAME = wa_customer-c_o_name.
I_PARTNERADDRESSES-POSTL_COD1 = WA_CUSTOMER-ZIPCODE.
I_PARTNERADDRESSES-CITY = WA_CUSTOMER-CITY.
I_PARTNERADDRESSES-COUNTRY = WA_CUSTOMER-COUNTRY.
I_PARTNERADDRESSES-REGION = WA_CUSTOMER-REGION..
I_PARTNERADDRESSES-TRANSPZONE = WA_CUSTOMER-TRANSPZONE..
In the above code address number 0000201328 is address number for customer 0000241269. Now the sales order is getting created but ship to party address is not overwritten with the values passed above. Ship to party address is just defaulted from customer master.
What should i have to pass to the address number field.
Any piece of code which is working would be more helpful.
Thanks in advance
Rajesh.I haven't tried for this, but from the documentation of FM I got this note:
<i>Notes
If the table is used to enter document addresses for a sales and distribution document, the address data is then not necessary in the document partner table BAPIPARNR / BAPIPARTNR ).</i>
So, I am not sure wheather it is possible or not.
Regards,
Naimesh Patel -
How to find ship-to party of a sales order
Hi,
I want to display the sold-to party and ship-to party of a sales order, I know the sold-to party is in table vbak, but where can I find the ship-to party? In which table?
Thank you!
WilliamHi Zhiyuan,
Table LIKP : Delivery Header Data.
With luck,
Pritam. -
Need information of Table containing Ship-to-party Partner at Sales Order
Hello SAP folks,
There is a scenario where we need to change the shipping address detail of a partner funtion "Ship-to-party" at Sales Order level. so I just wanted to know which tables stores all the data related to Address of Ship-to-party after the Sales Order is created.
Suggestions are eagerly awaited in this topic !!
Regards,
SarthakHi sarthak
As soon as you change the address for any partner in sales order, the changes are recorded in table ADRC. ( Normal address table for business partners)
Select table VBPA and for the document number (VBLEN) and item number (POSNR) get the address number ( ADRNR) for the ship to party (WE)
Now in the table ADRC with this ADRNR you can find the changed address for ship to party for the order.
regards
makarand -
Updating email address in Sales order header partner address -VA01/VA02
I got the requirement to update the email address in Sales order-> header-> partner address.
The mail address will be picked from ZTABLE and updated in header partner address through user exit
I cannot find any field for updating email address in partner address in user exit "MV45AFZZ"
Is there any other user exit/option to update email address in header partner address of sales order?
Thank You,
GMHi Rajesh,
I agree with you but this Scenario is different.
Just as you have mentioned the address change will not reflect in the Old Sales orders but it should in the new Sales orders right??
But that is not happening..The Address was changed say two months back and the new address is not appearing in the Sales orders created these days say yesterday or today..
In such a case,what is should I check to get the address updated??
Please advice.
Regards,
Sophia Xavier -
MULTIPAL SHIP TO PARTY IN ONE SALES ORDER
HI GURU
I WANT TO KNOW ANY POSSIBALTY IN A ONE SALES ORDER WITH MULTIPAL SHIP TO PARTY AT HEADRE LEVEL NOT AT IEAM LEVEL . I WANT TO AT HEADER LEVEL IF YES THN PLZ HELP ME OUT
THANKS & REGARDS
VISHALHi,
I don't think so.
Though you have it, what's the purpose of having it?? Because your dleivery is created based on your sales order line item. So Ship to Party in the line item will used for the delivery.
But you can have different ship to parties in each line item.
By the way why you want to have such a function in the sales order header?.
Best regards,
Anupa -
Ship to party name in Sales Order
Hello all. I created a sales order. I saw the technical information of a Ship-party in a sales order. It is a structure KUAGV. Field is TXTPA. I want to know the real database table this information came from. Your help will be appreciated.
ShirishKumar,
That is "Display text for partners (name, city, country, street)".
The data comes from the address table ADRC and Customer master table KNA1.
The key between these two tables is ADRC-ADDRNUMBER and KNA1-ADRNR.
Hope this helps you.
Regards,
Ajai. -
Ship To Party issue in Sale Order
Hi,
when i trying to choose another ship to party on header of a sales quotation . system is giving me error
"Top node 0011000560 for ship-to 0011000845 not maintained or ship-to is not valid"
I have maintained the 2nd code as ship to party in customer master of the 1st.
Please advice.
Ankur
Edited by: Lakshmipathi on Jun 3, 2011 12:07 PM
Please use the subject effectivelyDear Ankur,
I hope you created a new ship to party in new account group,now what you have to do is assain this ship to party no to your customer (sold to party) change mode,sales area tab there in partner functions there menction one more SH and give the ship to party no and save the customer master.Then while you crating the quatation or sale order once you enter the sold to party system will show the pop up to select the ship to party then select the related ship to party.
Thanks and Regardds
Vinayk -
AFS ship-to party problem in sale order
Hi!
We use AFS solution.
I use customer "0000087655" as sold-to party in sale order and try to set customer "0001000016" as ship-to party but get message
"Top node 0000087655 for ship-to 0001000016 not maintained or ship-to is not valid
Message no. 8W321"
How to Solve this error?
Thanks and Regards
SureshkumarEnsure that the ship to party 0001000016 is created with correct account group. Else change it via XD07.
thanks
G. Lakshmipathi -
How to limit entry of Ship to party in a sales order
Dear Gurus,
My current project requires the following Scenario:
My client's requirement is that for <b>a single sold to party</b>, there need to be <b>more number of ship to parties</b>. We were able to achieve the same by <b>assigning </b> the list of all the <b>respective ship to parties in the sold to party, customer master.</b>
Now the client's requirement is that, the <b>system should not</b> let the user to enter a <b><b>ship to party</b> apart from the list maintained in Sold to part</b>y. But when we are creating the sales order, the system is letting us enter, <b>a ship to party apart from</b> what is maintained in sold to party..
Looking forward for your inputs at the earliest.
regards
Sridhar.Phi,
In SPRO Determine Partner determination Procedure for sales Order, jut check for ship to party partner function : what value has been maintain in the field Origin
leave the field blank or maintain c.
other wise you can make use of custome r defined user exits.
PARTNER_CUSTOMIZING_40C_XPRA
this might be useful to you in solving the problem.
thanks
deepak -
User Exit for correct ship-to Party while Creating Sales Order
Dear Friends,
Pls let me know which User Exit should I use to validate the Ship-to Party on the basis of Sold-to Party, while creating a sales order.
In other words we wish to make sure that the user gives the correct Ship-to party corresponding to the Sold-to party, while creating a sales order.
Regards,
Alok.Dear Naveen,
Thanks for replying.
I do agree with you that SAP may validate the Ship-to Party in accordance with the Sold-to Party. But still the user may change that Ship-to Party value and save the Sales Order with a wrong Ship-to Party.
Here, my user wants a check/validation that no one should be able to save the sales order with wrong Ship-to Party other than the ones defined in Customer Master.
Hope you got the issue now.
Regards and thanks once again,
Alok. -
Changing the Ship-to partner details in Sales order header through exit
Hi all,
I have a requirement where in during the process of the sales order creation, based on certain
criteria, the details in the ship-to partner would have to be modified.
These details like the Name, Street, etc would be maintained in a local table and based on the criteria,
the appropriate record from this table would be fetched and updated to the ship-to partner.
I was trying to implement this in the MV45AFZZ user exit. However, I was not able to update this through the exit.
Would I have to somehow update the ADRC table directly through this exit or is there any better method.
Please suggest.
Regards,
SudeepHi,
If you could not find Street in this Routine call the BAPI BAPI_BUPA_ADDRESS_CHANGE to update Street and required details ..
Thanks and regards,
Sree. -
Changing address in sales order item level
Dear very good mng
i want to know , i am trying to change ship to party address in sales order line item level
but showing Gray mode only .. i have maintained Sales document item level ( partners) Removed check box not modifiable
And i activated Item partners check box at partner tab
even i am not able to change address in sales order item level plz tell me
Thanks a lotHi Madhuri
I have checked my self.system does allow to change different ship to Party on line Item level .
Please do the following steps .
1. Replace/delete the WE partner Number ( Example -1) in my case in change mode.
2. system will show some error message as show below while deleting or replacing WE with some other ship to Party code.
3. Ignore the message and go ahead . Please put the new Partner's number and double click
address Screen will Pop up . You can Change the address .
Hope this helps .Let me know for more clarification needed .
Regards
Santosh Verma
Maybe you are looking for
-
IGS for BW 3.5- Chart showing as column only
IGS for BW 3.5 Hi All, We've been having problems with our WAD chart, it is showing up only as column chart even though we change the chart type to e.g line chart, bar chart..etc. I found note 653249 but it everything seems okay in our system. IGS te
-
I have two dynamic text fields the give the apearance of wrapping text around a photo. The text has been set up to load each text field and appear to smoothly wrap and look like one continued display. It work on the computer I am created it on...When
-
Similar issue to what I've seen with some other users with an interesting twist - TV has HDMI input so I've got a DVI to HDMI cable. Hook up the TV to the Mini and no picture. If I hook up a monitor open up displays and set the mouse on 'detect displ
-
Packaging JavaFx Applications in a single executable file (.exe)
Hi, Can anyone let me know how i can convert my javafx application into a single .exe format. I am able to convert into an executable jar file. But i want to convert it into native code. Are there any tools which can convert javafx application to .ex
-
Error:conversion of PPDS order from SNP order-error /sapapo/rrp_heur45
Hi, I am converting a snp planned order from ppds order in transaction /sapapo/rrp_sap2ppds and using heuristic sap_pp_002.But it is canceling the heuristic and giving above error message.I have given 60days ppds horizon and 61days snp horizon.lot si