Change ship to address in sales order
Hi Friends,
I am an SD consultant and need your help regarding a requirement.
While creating the sales order, the user changes the address of the ship to in the order - header - partner tab. The user deletes the name1 of the ship to party and keeps the name1 of the sold to party here. This is our business requirement. When doing manually, it is perfectly saving the changes. But, the client requires to handle it through program because sometimes the users are forgetting to change the ship to address and it is creating problems at field level. Our technical team is finding it difficult to handle the process and I would like to take the suggestions of experts here.
In brief, my requirement is,
when the user creates a sales order, system should take the name1 details of the sold to party partner and keep it in the name1 of the ship to party address.
Please let me know if any more details are required.
Thanks,
Ravi
HI Ravi
in the BADI 'ORDER_SAVE' you can implement the method 'PREPARE'.
this method will call after have pressed the save button.
best regards
Marco
Similar Messages
-
Monitor the changes of Ship to address in Sales Order
Hi,
My client has an requirment which they would like to monitor whether the ship-to-address has been modified after the order were save.
e.g.
Sold-to 12345
Ship-to 12356
SAVE the order
After the order are sale and sometime later, the user went in VA02 and update the ship-to-address to 23456
now
sold-to 12345
ship-to 23456
It there anyway we can have a report to check if the ship-to has been changes?
thanks,
RebellaHello Rebella,
The best option of monitering the changes incurred fro the Ship-to-Party details of a SALES ORDER are as follows:
If you are interested to pick up the information of changes values of Ship-To-Party from a Sales Order then i think you can use the table VBPA. This table will contain the updated value of Ship-To-Party partner function of a Sales Order.
Second option would be to use a program which actually run when you open a Sales Order in VA03 --> Environment --> Changes. You can develop a t-code which shall call this program.
You can also use the T-code AUT10 for tracking changes for a Sales Order.
Hope these infotmation helps you in resolving your issue and please don't forget to mark your thread as closed.
Regards,
Sarthak -
Prevent change of Ship-to address in Sales Order entry ?
We want to be able to prevent users from changing the Ship-to address in either VA01 or VA02, if the Ship-to has a specific Account Group. I am aware that we could do a check in a userexit, but our preference would be to grey-out the address fields if someone went to Goto->Header->Partners, and double-clicked on the Ship-to Partner.
Do anyone know if it's possible to do this in config ?
Thanks, paul.This can be very well done. As i succeded in doing in my project
Goto-SHDO
enterVA01 and do go on till u get the partner address tab and there u select Wcontent display and save
and again take VA02 and do the same procedure and save it
And also dont forget to activate in SHDO nor it will not work
hope this will clear u
Sri -
Error while updating Ship to Address on Sales Order form
hi ,
A user is trying to update the ship to address on a standard sales orders screen, this is pretty common and never caused any issues. However with one particular order the user gets the following error :
"You cannot update Ship To Location; the standard value rule set prevents override. "
This is an Oracle shipped message and not custom code. The message name is OE_SEC_UPDATE_VIOLATION whose text is : You cannot update &ATTRIBUTE; &REASON
Seems like REASON is the message : OE_SEC_SV_VIOLATION, whose text is
" the standard value rule set prevents override. "
This is a message shipped by Oracle Order entry. I am not able to locate this message since the oracle shipped files are not available to us and this is not in any database code(i searched the code)
Does anyone know when this message is thrown. It seems like some value set error but am not able to figure out where it is being set.
Any help in this will be appreciated.
ThanksDid you check if any Processing rule is defined for Ship to location update :
Setup> Rules > Security > Processing constraint ?
Maybe this order matches condition that prevents this field from being updated. -
Change of Ship to Party on sales order after invoice
Hi all,
I have created a sales order, created a despatch advice and then created an invoice. After that i opened sales order and changed ship to party there. System is allowing me to change ship to party on sales order after invoice. I want that system should not let me change ship to party on sales order after invoice.
How can i do that as this is an audit issue as we have different prices for different ship to parties.
Please respond.
Best Regards,
AI.Hi
You have two options
1. create a transaction variant in T.code SHD0 for VA02 and make the field as display in the variant. But remember that you will not be able to use standard T.code VA02 after this, you need to make and use a "Z" t.code like ZA02
2. Take the help of your ABAPER and ask him to find a screen exit in the sales order PBO module, where he will be able to grey out the ship to party field.
Hope this helps
Chandra Kiran -
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 -
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 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 -
Change ship-to address in third-party order
Hello gurus,
we have got a little probelm here:
We got a third-party order from one of our customers. The goods are to be delivered not to the "normal" adress of that customer, but to another site. So, we would like to change the ship-to address in this individual customer order or at least in the purchase requisition or PO for our vendor.
Unfortunatelly SAP does not let me do either of those things. The "normal" adress of the customer master ercord is always written to the purchase requisition and I cannot change it after the requisition has been created.
Any ideas on this?
Thanks AliciaHello,
If you believe your customer has the delievery receiving address different from the Sold-to-party. Follow below steps:
1. Please create a ship-to-party (use appropriate Account group as per your project. Standard account Group- 0002).
2. Link the ship-to-party to the sold to party by going to tcode XD02 - Sales area data-partner function tab and select partner functin SH and then Assign the newly created ship-to-party to sold-to-party.
[Note: If your sold-to-party has multiple ship-to locations, then add new SH partner function in your sold-to-party partner function tab and link the newly created ship-to-party and follow the same for all your multiple ship-tos for the sold-to]
OR
1. Create Stand alone shipto Party (Account Group-0002) and do not link it to any sold to party.
2. Link the new stand alone ship-to-party during sales order creation.
You can change the ship-to-party in two locations.
a. Header Level - From sales order- goto - Header - Partners (applicable to whole document)
b. Item Level - Double click the Item - Got0 - Item - Partner (applicable to Item only)
Hope it helps.
Thanks,
Ram. -
Changing Sold-to/Ship-to of a sales order causing delivery priority 0.
Hi Epts,
While Changing the sales order (VA02)'s sold-to /ship-to party then delivery priority changing from 6 to 0.(Delivery priority changes to initail value).
Analyzed the standard program SAPMV45A and found the subroutine (FV45PFAP_VBAP_FUELLEN_KUAGV) in which the delivery priority is getting changed. But i am unable to find the user exit which will causing the problem.
Regards,
Beeru.If u r wishing to change the sold to party for a particular item it means u r not selling that item to him. U cant have 2 different sold to parties in a single sales order.. U can change other partner functions at sales order level but not sold to party partner function....
U can assign reason for rejection to close this particular order and raise a fresh order in favor of the sold to party u wish to for that particular item...
Message was edited by:
srinivas rao -
Avoid invoice split due to change of address in Sales order
Hello Gurus,
I have one business scenario, where, bill to party address is different in sales order then customer master. Such orders are collectively billed and should generate one invoice. ( all the sales order for a customer have same bill-to party address, bud different from customer master). In standard functionality it will split. I want to avoid split and in invoice bill to party address in sales order should be copied. Is there anybody have similar scenario faced before?
Regards, and thanks in advance,
MukulHi Lakshmipathiji,
please find below screen shot, where we have address as one of the criteria. but other three criteria has become my problem. ABAPer has able to remove address as split criteria but can't find how these three criteria is splitting invoice. They are nothing but invoice number and payment reference. Can you help me with this?
Regards,
Mukul -
Hi. i used Function module to change Characteristic values of a sales order
hi. i used Function module to change Characteristic values of a sales order..
but sales order's Characteristic values didn't change.
And the Function module doesn't occur any log message.
please tell me wrong code, and how to solve this problem.
if i have wrong method, what data can i pass to change the characteristic values
DATA: LT_E1CUVAL TYPE TABLE OF E1CUVAL.
DATA: WA_E1CUVAL TYPE E1CUVAL.
DATA: LS_CFG_HEAD LIKE CUXT_CUCFG_S,
LS_INSTANCES LIKE CUXT_CUINS_S,
LS_VALUES LIKE CUXT_CUVAL_S,
LS_E1CUCFG LIKE E1CUCFG,
LS_E1CUINS LIKE E1CUINS,
LS_E1CUVAL LIKE E1CUVAL,
LS_PROFILE LIKE E1CUCOM,
LS_VBAP LIKE VBAP,
L_CUOBJ LIKE INOB-CUOBJ,
L_ATINN LIKE CABN-ATINN.
DATA: LT_INSTANCES LIKE CUXT_CUINS_S OCCURS 0,
LT_PART_OF LIKE CUXT_CUPRT_S OCCURS 0,
LT_VALUES LIKE CUXT_CUVAL_S OCCURS 0,
LT_VAR_KEYS LIKE CUXT_CUVK_S OCCURS 0,
LT_KSML LIKE KSML OCCURS 0 WITH HEADER LINE,
BEGIN OF LT_CLINT OCCURS 0,
CLINT LIKE KSSK-CLINT,
END OF LT_CLINT.
DATA: LT_CUIB LIKE CUIB_CUOBJ_S OCCURS 0 WITH HEADER LINE.
DATA: E_ROOT_INSTANCE TYPE CUXT_INSTANCE_NO.
DATA: EV_ROOT_PERSIST_ID TYPE IBEXTINST_DATA-EXT_INST_ID.
DATA: EV_CFG_HAS_CHANGED TYPE XFELD.
DATA: EV_HANDLE_APPL_LOG TYPE BALLOGHNDL.
DATA: L_CUOBJ_NEW TYPE CUOBJ.
DATA: L_OWNER TYPE IBXX_BUSINESS_OBJECT.
REFRESH LT_E1CUVAL.
CLEAR LS_VBAP.
SELECT SINGLE CUOBJ INTO CORRESPONDING FIELDS OF LS_VBAP
FROM VBAP WHERE VBELN = I_VBELN
AND POSNR = I_POSNR.
IF SY-SUBRC <> 0.
RAISE INSTANCE_NOT_FOUND.
ENDIF.
REFRESH LT_CUIB. CLEAR LT_CUIB.
LT_CUIB-INSTANCE = LS_VBAP-CUOBJ.
APPEND LT_CUIB.
CALL FUNCTION 'CUCB_INITIALIZER'
EXPORTING
IT_INSTANCES = LT_CUIB[].
CALL FUNCTION 'CUXI_GET_SINGLE_CONFIGURATION'
EXPORTING
I_ROOT_INSTANCE = LS_VBAP-CUOBJ
IMPORTING
E_CFG_HEAD = LS_CFG_HEAD
ES_PROFILE = LS_PROFILE
ET_RETURN = ET_RETURN
TABLES
E_TAB_INSTANCES = LT_INSTANCES
E_TAB_PART_OF = LT_PART_OF
E_TAB_VALUES = LT_VALUES
E_TAB_VAR_KEYS = LT_VAR_KEYS
EXCEPTIONS
INVALID_INSTANCE = 1
NO_ROOT_INSTANCE = 2
INSTANCE_IS_A_CLASSIFICATION = 3
INTERNAL_ERROR = 4
NO_PROFILE_FOUND = 5
INVALID_DATA = 6
OTHERS = 7.
IF SY-SUBRC <> 0.
CASE SY-SUBRC.
WHEN 1.
RAISE INSTANCE_NOT_FOUND.
WHEN 3.
RAISE INSTANCE_IS_A_CLASSIFICATION.
WHEN OTHERS.
RAISE INVALID_DATA.
ENDCASE.
ELSE.
LOOP AT LT_VALUES INTO LS_VALUES.
IF LS_VALUES-CHARC = 'SAP_MILLCA_PACKAGING'
OR LS_VALUES-CHARC = 'PD_CA_PACKING_DM'.
LS_VALUES-VALUE = '7100010'. "This is test data
MODIFY LT_VALUES FROM LS_VALUES.
ELSE.
DELETE LT_VALUES WHERE CHARC = LS_VALUES-CHARC.
ENDIF.
CLEAR LS_VALUES.
ENDLOOP.
ENDIF.
영업정보 특성 변경
CALL FUNCTION 'CUXI_SET_SINGLE_CONFIGURATION'
EXPORTING
I_CFG_HEADER = LS_CFG_HEAD
I_ROOT_INSTANCE = LS_VBAP-CUOBJ
I_PLANT =
I_STRUCTURE_EXPLOSION_DATE =
I_STRUCTURE_EXPLOSION_APPL_ID =
I_LOGSYS =
IS_PROFILE = LS_PROFILE
IV_ONLY_SINGLE_LEVEL =
IV_HANDLE_APPL_LOG =
IV_OBJECT_APPL_LOG = 'CIF'
IV_SUBOBJECT_APPL_LOG = 'T_CNFG'
IMPORTING
E_ROOT_INSTANCE = E_ROOT_INSTANCE
EV_ROOT_PERSIST_ID = EV_ROOT_PERSIST_ID
EV_CFG_HAS_CHANGED = EV_CFG_HAS_CHANGED
EV_HANDLE_APPL_LOG = EV_HANDLE_APPL_LOG
ET_RETURN = ET_RETURN
TABLES
I_TAB_INSTANCES = LT_INSTANCES
I_TAB_PART_OF = LT_PART_OF
I_TAB_VALUES = LT_VALUES
I_TAB_VAR_KEYS = LT_VAR_KEYS
I_TAB_BLOB =
EXCEPTIONS
NO_CONFIGURATION_DATA = 1
NO_ROOT_INSTANCE = 2
INVALID_INSTANCE = 3
INSTANCE_IS_A_CLASSIFICATION = 4
INTERNAL_ERROR = 5
NO_PROFILE_FOUND = 6
INVALID_DATA = 7
OTHERS = 8
IF SY-SUBRC <> 0.
CASE SY-SUBRC.
WHEN 1.
RAISE NO_CONFIGURATION_DATA.
WHEN 3.
RAISE NO_ROOT_INSTANCE.
WHEN 3.
RAISE INVALID_INSTANCE .
WHEN 3.
RAISE INSTANCE_IS_A_CLASSIFICATION.
WHEN 3.
RAISE INTERNAL_ERROR.
WHEN OTHERS.
RAISE INVALID_DATA.
ENDCASE.
ENDIF.
COMMIT WORK.
save configuration with next commit
CLEAR: LS_INSTANCES.
READ TABLE LT_INSTANCES INTO LS_INSTANCES INDEX 1.
L_OWNER-OBJECT_TYPE = LS_INSTANCES-OBJ_TYPE.
L_OWNER-OBJECT_TYPE = 'PVS_POSVAR'.
L_OWNER-OBJECT_KEY = LS_INSTANCES-OBJ_KEY.
CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'
EXPORTING
ROOT_INSTANCE = LS_VBAP-CUOBJ
ROOT_OBJECT = L_OWNER
IMPORTING
NEW_INSTANCE = L_CUOBJ_NEW
EXCEPTIONS
INVALID_INSTANCE = 1
INVALID_ROOT_INSTANCE = 2
NO_CHANGES = 3
OTHERS = 4.
IF SY-SUBRC > 1 AND SY-SUBRC <> 3.
CLEAR LS_VBAP-CUOBJ.
RAISE INTERNAL_ERROR.
ELSEIF SY-SUBRC = 1.
LS_VBAP-CUOBJ = L_CUOBJ_NEW.
ENDIF.
What's wrong?
help me to solve this problem.
Thanks a lot.<b>SD_SALES_DOCUMENT_READ</b> Reads sales document header and business data: tables VBAK, VBKD and VBPA (Sold-to (AG), Payer (RG) and Ship-to (WE) parties)
<b>SD_SALES_DOCUMENT_READ_POS</b> Reads sales document header and item material: tables VBAK, VBAP-MATNR
<b>SD_DOCUMENT_PARTNER_READ</b> partner information including address. Calls SD_PARTNER_READ
<b>SD_PARTNER_READ</b> all the partners information and addresses
<b>SD_DETERMINE_CONTRACT_TYPE</b>
In: at least VBAK-VBELN
Exceptions: NO CONTRACT | SERVICE_CONTRACT | QUANTITY_CONTRACT
<b>SD_SALES_DOCUMENT_COPY</b>
<b>RV_ORDER_FLOW_INFORMATION</b> Reads sales document flow of sales document after delivery and billing
SD_SALES_DOCUMENT_SAVE create Sales Doc from the copied document
SD_SALES_DOCUMENT_ENQUEUE to dequeue use DEQUEUE_EVVBAKE
RV_DELIVERY_PRINT_VIEW Data provision for delivery note printing
SD_PACKING_PRINT_VIEW
SD_DELIVERY_VIEW Data collection for printing
called from RV_DELIVERY_PRINT_VIEW, SD_PACKING_PRINT_VIEW
RV_BILLING_PRINT_VIEW Data Provision for Billing Document Print
regards
vinod -
Pricing after change of delivery date in sales order
Hi,
When i change delivery date in a sales order prices are not recalculated automatically .
I want the prices to be calculated automatically .
thank you.
Ashokhi,
i have this problem, can anyone suggest me, is there any user exit or anything relevant for the solution.
When we attempt to remove the Rejection flag (for any Reason) The system is changing Dates in sales order like Delivery date , Shipping date, GR date to current date this needs to be stopped and client wants to retain old set of dates when rejection flag is removed
waiting eagerly for this solution. if you find send me mail to my id [email protected]
bharadwaj. -
Copy "Ship to party" from sales order to "Delivery addreess" in PO
Hi All,
when i create a Purchase Order in ref to the Purchase Requistion of the Sales Order, I want the Ship to Party address from line item of the Sales Order needs to get copied to the Purchase Order line item in "Delivery address" tab of the PO.
Please tell me the required configuration settings to achieve this.
Awaiting your responses.
Thanks in advance.
Rgds.
Anil.Hi All,
This is a third party scenario. And in third party scenarios I guess the ship to party address from sales order will be automatically copied into the delivery address of the PO (Standard Functionality of SAP). But some how this is not happening and use to happen till the sixth week. Do I still need to check the enhancements given by the experts above? or we can achieve this with some configuration settings from schedule lines etc?
Rgds,
Anil. -
Help Required in Ship To Address in Purchase Order
Hi all,
Is it not possible to have multiple ship to address made available as drop down list in Logistics tab of Purchase order.. It is possible in Sales order. I require the same as i need to ship the product from different location...
In business partner it does allow the vendor to have multiple ship to address so would it not be possible to select any ship to address in purchase order...?
Regards,
JonaHi Jona,
The system does not provide this functionality. You could create an add-on that adds this drop-down list and populates the address field based on the address that the user chooses. However, you could use a formatted search to achieve the same kind of function.
The following query could be set up as a formatted search on the address field:
select
case
when Street = '' then ''
when Street is not null then Street + char(13)
end +
case
when Block = '' then ''
when Block is not null then Block + char(13)
end +
case
when City = '' then ''
when City is not null then City + char(13)
end +
case
when County = '' then ''
when County is not null then County + char(13)
end +
case
when Country = '' then ''
when Country is not null then Country
end +
case
when ZipCode = '' then ''
when ZipCode is not null then ' ' + ZipCode
end
from
CRD1
where
AdresType = 'S'
and CardCode = $[$4.0.0]
You should modify the script to fit your own address format requirements.
Hope this helps,
Owen
Maybe you are looking for
-
How do i get my music from my iphone, onto itunes? Plz help
Hi, I have had my Iphone for two years now, but only got my macbook some months ago. Before i got my computer, i bought my music over the app itunes on my Iphone. My phone is broken so I'm sending it to reparation very soon, and they say i should hav
-
Problem with enhancement RSR00001
Hi, I hope you can help me. I've got a problem with the enhancement RSR00001. The include ist activated, but the coding isn't execute when I start my querie. No break-point help me. Nothing will run. Any ideas? Release BI 7.0. Thanks Martin
-
Hi, I am working in FCEHD. The left track of my project has no audio. Is there a way to copy the right track and "paste" it to the left track or make the project mono so I get sound from both speakers? The audio is voice only. Advice would be appreci
-
How do I move thumbnails in the order I want them (in Acrobat Pro)?
I have uploaded the files from CS Bridge 5 to Acrobat.com. Acrobat does not place them in the specific order in which they had been arranged. I want to rearrange the thumbnails into the order I prefer before converting the file to a PDF. How do I do
-
For the Apple problem solving section I need a serial number, my issue is that my problem regards missing contents within my iTunes. Do I have an iTunes serial number? And if so, where can I locate it? If there is not a serial number for iTunes, advi