No text redetermination once change the ship to party
Hello Experts,
We have text like picking/packing/shipping text in ship to party. and we have assigned such text value in ship to party.
Suppose:
Ship to party A has shipping text: ABCDEFG
Ship to party B has shipping text: 12345678
I create the sales order with ship to party: A and system determine text (header level) as ABCDEFG, I save it later i change the ship to party in sale order from A to B. according to business logic system should change the shipping text from ABCDEFG to 12345678 once I change the ship to party from A to B. But it is not happening.
Even though changing the ship to party from A to B, system is not redetermining text and I am wondering why it's happening?
Is it the standard functionality ? why it is happening ?
Thanks,
How text will be redetermined if the ship to party is changed
Please refer the above tread, System does not re determine the text if Ship to party is changed, it changes only for SP, also if you want to redetermine the SH text then refer the notes also which was mentioned in the above tread.
thanks,
Srinu.
Similar Messages
-
BAPI_SALESORDER_CHANGE - Want to change the Ship-to-party at header level
Hi
I want to change the Ship-to-party at header level in the Sales Order created. I tried using the BAPI BAPI_SALESORDER_CHANGE as shown below.
When I run the program I get the log as Sales Order 45 saved succesfully. However, I don't find the SO changed. Apart from this I get an Express Message saying the Updation failure. Not sure of what'z wrong here.
Pls help
thanks
girish
REPORT ZBAPI_SALESORD_CHANGE.
data : zBAPISDHD type BAPISDH1,
zSALESDOCUMENT type BAPIVBELN-VBELN.
data : zORDER_ITEMS_IN like /AFS/BAPISDITM occurs 0 with header line,
zORDER_SCHEDULES_IN like /AFS/BAPISDSCHD occurs 0 with header line,
zORDER_PARTNERS like BAPIPARNR occurs 0 with header line,
zRETURN like BAPIRET2 occurs 0 with header line,
so_no type BAPIVBELN-VBELN,
zORDER_HEADER_INX TYPE BAPISDH1X,
zPARTNERCHANGES like BAPIPARNRC occurs 0 with header line.
clear : zBAPISDHD.
so_no = '0000000045'.
data : l_comp_qty like zORDER_ITEMS_IN-COMP_QUANT.
l_comp_qty = 10.
zBAPISDHD-SALES_ORG = 'BP01'.
zBAPISDHD-DISTR_CHAN = '02'.
zBAPISDHD-DIVISION = '01'.
zORDER_HEADER_INX-UPDATEFLAG = 'U'.
zORDER_HEADER_INX-SALES_ORG = 'X'.
zORDER_HEADER_INX-DISTR_CHAN = 'X'.
zORDER_HEADER_INX-DIVISION = 'X'.
Ship to pary
zORDER_PARTNERS-PARTN_ROLE = 'WE'.
zORDER_PARTNERS-PARTN_NUMB = 'BPAFS0007'.
append zORDER_PARTNERS.
zPARTNERCHANGES-DOCUMENT = '45'.
zPARTNERCHANGES-ITM_NUMBER = '10'.
zPARTNERCHANGES-UPDATEFLAG = 'U'.
zPARTNERCHANGES-PARTN_ROLE = 'WE'.
zPARTNERCHANGES-P_NUMB_OLD = 'BPAFS0001'.
zPARTNERCHANGES-P_NUMB_NEW = 'BPAFS0007'.
append zPARTNERCHANGES.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = so_no
ORDER_HEADER_IN = zBAPISDHD
ORDER_HEADER_INX = zORDER_HEADER_INX
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
RETURN = zRETURN
ORDER_ITEM_IN =
ORDER_ITEM_INX =
PARTNERS = zORDER_PARTNERS
PARTNERCHANGES = zPARTNERCHANGES.
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES =
SCHEDULE_LINESX =
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
data : s_BAPIRET2 like BAPIRET2.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'
importing
return = s_bapiret2.Thanks Prashanth. It worked !!!!!!!!!!!!!
Now I am facing another type of problem. The requirement is to change the Sales Order Item Quantity. I basically planned to update the quantity of Schedule Item which needs to be changed. When I run the below code, it works and says the Sales Order changed succesfully. However I get an express message saying the Database update failure. I don't get any sort of technical information.
Appreciate if you could help me finding the error.
Thanks
regards
girish
Note --> I am trying to change the Quantity for 2 line item in SO '56' to 40 Units.
REPORT ZBAPI_SALESORD_CHANGE.
data : zBAPISDHD type /AFS/BAPISDHD,
zORDER_HEADER_INX TYPE /AFS/BAPISDHDX,
zSALESDOCUMENT type BAPIVBELN-VBELN.
data : zORDER_ITEMS_IN like /AFS/BAPISDITM occurs 0 with header line,
zORDER_ITEM_INX like /AFS/BAPISDITMX occurs 0 with header line,
zORDER_SCHEDULES_IN like /AFS/BAPISDSCHD occurs 0 with header line,
ZSCHEDULE_LINESX LIKE /AFS/BAPISDSCHDX occurs 0 with header line,
zORDER_PARTNERS like BAPIPARNR occurs 0 with header line,
zRETURN like BAPIRET2 occurs 0 with header line,
so_no type BAPIVBELN-VBELN,
zPARTNERCHANGES like BAPIPARNRC occurs 0 with header line.
data : l_comp_qty like zORDER_ITEMS_IN-COMP_QUANT.
data : g_qty like /AFS/BAPISDSCHD-REQ_QTY.
g_qty = 40.
l_comp_qty = 40.
clear : zBAPISDHD.
so_no = '0000000056'.
zBAPISDHD-REFOBJTYPE = '/AFS/ORDER'.
zBAPISDHD-SALES_ORG = 'BP01'.
zBAPISDHD-DISTR_CHAN = '02'.
zBAPISDHD-DIVISION = '01'.
zBAPISDHD-PMNTTRMS = '0001'.
zORDER_HEADER_INX-UPDATEFLAG = 'U'.
zORDER_HEADER_INX-SALES_ORG = 'X'.
zORDER_HEADER_INX-DISTR_CHAN = 'X'.
zORDER_HEADER_INX-DIVISION = 'X'.
zORDER_HEADER_INX-PMNTTRMS = 'X'.
**********ITEM ***************************************
zORDER_ITEMS_IN-ITM_NUMBER = '00020'.
zORDER_ITEMS_IN-MATERIAL = 'F1202'.
zORDER_ITEMS_IN-PLANT = 'BP01'.
zORDER_ITEMS_IN-ITEM_CATEG = 'TAS'.
zORDER_ITEMS_IN-SHIP_POINT = 'BP01'.
zORDER_ITEMS_IN-COMP_QUANT = l_comp_qty.
zORDER_ITEMS_IN-TARGET_QTY = l_comp_qty.
zORDER_ITEMS_IN-TARGET_QU = 'ST'.
append zORDER_ITEMS_IN.
zORDER_ITEM_INX-ITM_NUMBER = '00020'.
zORDER_ITEM_INX-UPDATEFLAG = 'U'.
zORDER_ITEM_INX-MATERIAL = 'X'.
zORDER_ITEM_INX-PLANT = 'X'.
zORDER_ITEM_INX-ITEM_CATEG = 'X'.
zORDER_ITEM_INX-SHIP_POINT = 'X'.
zORDER_ITEM_INX-COMP_QUANT = 'X'.
zORDER_ITEM_INX-TARGET_QTY = 'X'.
zORDER_ITEM_INX-TARGET_QU = 'X'.
append zORDER_ITEM_INX.
*********SCHEDULE LINE******************************
refresh zORDER_SCHEDULES_IN.
clear zORDER_SCHEDULES_IN.
zORDER_SCHEDULES_IN-ITM_NUMBER = '000020'.
zORDER_SCHEDULES_IN-SCHED_LINE = '0001'.
zORDER_SCHEDULES_IN-REQ_DATE = '20070525'.
zORDER_SCHEDULES_IN-DATE_TYPE = '1'.
zORDER_SCHEDULES_IN-SCHED_TYPE = 'CS'.
zORDER_SCHEDULES_IN-GRID_VALUE = 'BLK2728'.
zORDER_SCHEDULES_IN-REQ_CATEGORY = '1DE'.
zORDER_SCHEDULES_IN-REFOBJTYPE = '/AFS/ORDER'.
zORDER_SCHEDULES_IN-REQ_QTY = g_qty.
append zORDER_SCHEDULES_IN.
refresh ZSCHEDULE_LINESX.
clear ZSCHEDULE_LINESX.
ZSCHEDULE_LINESX-ITM_NUMBER = '000020'.
ZSCHEDULE_LINESX-SCHED_LINE = '0001'.
ZSCHEDULE_LINESX-UPDATEFLAG = 'U'.
ZSCHEDULE_LINESX-REQ_DATE = 'X'.
ZSCHEDULE_LINESX-DATE_TYPE = 'X'.
ZSCHEDULE_LINESX-SCHED_TYPE = 'X'.
ZSCHEDULE_LINESX-GRID_VALUE = 'X'.
ZSCHEDULE_LINESX-REQ_CATEGORY = 'X'.
ZSCHEDULE_LINESX-REFOBJTYPE = 'X'.
ZSCHEDULE_LINESX-REQ_QTY = 'X'.
append ZSCHEDULE_LINESX.
CALL FUNCTION '/AFS/BAPI_SALESORD_CHANGE'
EXPORTING
SALESDOCUMENT = so_no
ORDER_HEADER_IN = zBAPISDHD
ORDER_HEADER_INX = zORDER_HEADER_INX
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
TABLES
RETURN = zRETURN
ORDER_ITEM_IN = zORDER_ITEMS_IN
ORDER_ITEM_INX = zORDER_ITEM_INX
ORDER_SCHEDULE_LINES = zORDER_SCHEDULES_IN
ORDER_SCHEDULE_LINESX = ZSCHEDULE_LINESX.
PARTNERS =
PARTNERCHANGES = zPARTNERCHANGES
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
*CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = so_no
ORDER_HEADER_IN = zBAPISDHD
ORDER_HEADER_INX = zORDER_HEADER_INX
TABLES
RETURN = zRETURN
ORDER_ITEM_IN = zORDER_ITEMS_IN
ORDER_ITEM_INX = zORDER_ITEM_INX
PARTNERS = zORDER_PARTNERS
PARTNERCHANGES = zPARTNERCHANGES
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
SCHEDULE_LINES = zORDER_SCHEDULES_IN
SCHEDULE_LINESX = ZSCHEDULE_LINESX.
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
data : s_BAPIRET2 like BAPIRET2.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
importing
return = s_bapiret2. -
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 -
Any exits to change the ship-to-party in VA01 before its display
Hi All,
I'm having a situation here that i would need your help.
From IW51 i'll create a sales order VA01 and just before creation i would need to do some validation on the plant and service center and then change the Ship-to-party value to another.
I am not sure on which exit or badi offers that functions. the ones that i've found is EXIT_SAPLV46H_002 and EXIT_SAPLV09A_004. Both of this doesn't work.
If any one of you has encountered this problem and manage to resolve it please help me resolve mine as well.
Thank you.
VinodHi,
here u will find complete example:
http://sap.niraj.tripod.com/id21.html
Jogdand M B -
Header text is not changing when ship to party has changed
Hello Team,
I am facing one issue when ship to party has changed in sales order the header text is not re determining automatically,
I have read some posts and found that using standard its not possible we need to write enhancement for that.
I have written below code to change the header text but facing some issues, can you please help me on to resolve this issues.
I am calling 'RV_TEXT_COPY' FM inside the include FV45PFAP_VBAP_FUELLEN_TEXTE ,
then its saving header text correctly, but this include is calling whenever I click on Header Text tab,
if suppose if I am changing ship to party and I am not clicking on Header Text tab then this FM will not call this is an issue
and one more issue is even in screen data is changing after calling RV_TEXT_COPY FM
but STXH table is not updating, its updating the first value when we created the order.
Can any one tell me how to solve this issue, Thanks in advance!Hi Mac,
I think the following user exits can help you. In the Include MV45AFZZ use the below exit points,
1) USEREXIT_MOVE_FIELD_TO_VBKD
2) USEREXIT_SAVE_DOCUMENT_PREPARE
try to write your code logic here.
Regards,
Satish -
Change of ship-to party right before dispatch on delivery (not order)
have a client that consistently has to change the ship-to party right before dispatch. the client has customers that are dealers, who in turn have sub-dealers. the dealers very rarely accept shipment to their address, they want the delivery posted to the sub-dealers and this can change at the last minute. as of right now, the addresses for sub-dealers is not maintained by the client, but they would like to have this option.
i would like to maintain the address of the sub-dealers. but once the delivery document is created the ship-to party is greyed out, how would i change this, so i can enter a new ship-to party? the address changes last minute, but after the delivery has been created.
thanks in advance!Hi
In standard SAP it is not possible.
Once , you create a Delivery document, you can not change the Ship-to-party. Ship-to-party is a Header data in Delivery.
If you want the change then you have to delete the Delivery.
Make your client understand that it is not only Ship-to-party, so many other related data will get redetermine once the Ship-to-party is changed.
For example, When Ship-to-party is changed, Route will be redetermined, Tax will be redetermined, partial delivery agreement may be different etc.
The new Ship-to-party may have a choice of different Plant also.
Normally, the above data are determined in Sales order, therefore you can change those in Sales order only and NOT possible to change in the Delivery document. -
Change of Ship-to-party address in IC WebClient
Dear Guru's,
Acc. my business requirement i need to configure IC-webclient,
Scenario1:- End User should be able to change the Ship-to-party address (on customers request) thru IC-Webclient. (in this scenario sold-to-party & ship-to-party are 2 different addresses.)
can ny1 guide me on this.
Thanx in advance
-Nirav.Hi,
Nirav
Pull in the Transaction BP view from the transaction launcher .This will have the BP transaction which will have the details in edit mode for you .You can restrict the views with authorisations for the user.
Hope this will resolve your Issue
Regards
Raj
Don't forget to reward!! -
How to change the ship to party when PO raised and sent to vendor in the 3rd party sales?
Edited by: Lakshmipathi on Aug 28, 2011 8:05 AM
Please use the subject effectivelyHi gaddammai ,
u can change Ship to Party goto va02 tcode then Goto -> Header -> Partner...
but u should have shipping point determination in place
u can change any partner at sales order level only Sold to Party remains unchanged in standard sap System.
Thanks & Regards,
Deepaks -
Change of ship-to party right before dispatch
have a client that consistently has to change the ship-to party right before dispatch. the client has customers that are dealers, who in turn have sub-dealers. the dealers very rarely accept shipment to their address, they want the delivery posted to the sub-dealers and this can change at the last minute. as of right now, the addresses for sub-dealers is not maintained by the client, but they would like to have this option. so, a 2 part question, do we have to maintain the addresses for the sub-dealers or can we use them as a one-time customer? and 2, how would be change the ship-to address last minute right before dispatch?
thanks a bunch!Hi Astro,
Option 1 - Since most of the Deliveries are shipped to the Sub Dealers, it is better to maintain Ship to Party Master Record for these Sub dealers and assign the same to the Sold to Party. Here, you have to justify the correct Ship to Party and maintain or change in Sales Order before the Delivery is created.
Option 2 - Maintain one single Ship to Party for all the Sub Dealers and you can change the address of the Ship to party as required at the last minute before goods issue.
Hope this will be helpful to u. let me know if anything.
Rgds,
Ravi. -
How text will be redetermined if the ship to party is changed
Hello,
The test is maintaining at ship to party level and if the ship to party is changed how the text will be redetermined here in the order the text is not redetermining. kindly give the solution for redetermination on this.
Regards,
Kishore.aHi Kishore,
Sorry, note 784371 is not released to customer anymore.
Please refer to note 548615, point 5 about the description of this standard system behavior.
You want to change the SAP standard behavior described above with a user-defined modification and trigger the text determination in dependency of other fields (for example ship-to party).
Take into account that all header texts and item texts entered manually are lost when you call you own text determination again.
If you still want to modify, use the following include for the item
data:
> FV45PFAP_VBAP_FUELLEN_TEXTE
and for the header data, use the include
> FV45KFAK_VBAK_FUELLEN_TEXTE
In both includes, the RV_TEXT_COPY function module is called. A user exit is not provided here.
Ensure that the modification is retained (using transaction SPAU) when you import a new Support Package after an upgrade.
Thanks,
Alex -
Hi! How can I change the shipping address for the program of replacement of the 1 generation ipod nano? I've already received the empty box and now I should send back the old ipod but I'd like to receive the new one to another address. Thank you.
I would contact Apple directly and have them work with to get the iPod shipped to a new/different address.
http://www.apple.com/contact/
B-rock -
I just did the photoshop camera raw update and now every time I try to do a text box or change the text the whole program crashes.
All fixed!!! My Aperture wasn't being recognized because it was in a folder. OK, now I can use my camera with Aperture.
-
Hi, I'm trying to order a photo album through IPhoto, my billing address is in the UK but I'd like the book to be sent to an address in the US. Step 3 says enter shipping address, I go to enter new address and the only country it offers is the UK, I cant change the shipping address to US.
Go to File / Provide Feedback and tell Apple that you want this enhancement in their product.
-
Transportation Zone in the ship to party changed after delivery
Dear Guru,
Earlier when the user was creating sales order and the delivey the transportation zone for the ship to party was france, now before billing he has changed the transportation zone to netherlands.
When he created billing, tax MWST was not getting triggered. i asked him to create pricing condition for Export tax, but it is not heling us.
If he changes the transportation zone for the ship to party and try to crete billing will it help to trigger MWST.
Reg,
NZHi Nayaz,
You should maintain create condition records for MWST from vk11 in access sequence like (departure country/destination country, domestic, and export taxes). additionally, maintain your route determination regarding of your requirement and customer and material master billing tax tab should be maintained according to this configurations.
I hope these will solve your problem.
Regrds, -
I want to ship an photo album manufactured by Apple to friends abroad. How can I change the shipping address??
With the short time I would definitely call Apple and see if you can request the change. Otherwise, you can log into your account in thle online store and view the order. You may be able to chlenge it there, or cancel and reporder.
Good luck.
Maybe you are looking for
-
Safari started crashing all the time each time it starts. I think a Java update was installed and the safari problem. Started Macbook Pro in safe mode and disabled extensions but Safari still crashes. I am running OSX Mavericks on MacBook Pro 2011. A
-
I gave my husband a hardcover book for his birthday 3 days ago, and the photo on the front is already peeling off. I am so disappointed in the quality of the cover (although I love the inside). Does anyone know who can help me with this? Also, the te
-
I get the "Your purchase could not be completed" message, please help to verify
I get the "Your purchase could not be completed" message, please help to verify
-
I need help, most of the time I go to watch videos they will be green. I need help on setting up or fixing it so this doesn't happen
-
Can not get correct sinewave via labview RT
now i am working on a little program about anlog wave input and anlog wave output.here is my diagram block you know, i just load this VI into the RT system and run it, on th other hand, i choose a anlog in channel, and genarate(by the TEK machine)