BAPI_SALESORDER_CHANGE for Ship to party header text updation.
hello gurus,
My requirement is to update SHIP to PARTY text at header level using BAPI_SALESORDER_CHANGE.
exisiting logic is updating same through below parameter to BAPI for line item with pop up to change the SHIP to party text..
partnerchanges = tb_partnersc
But to the same parameter if i am passing header record also long with Line item , header data is not updated but line item is updated,
ITM_NUMBER = '000000'. "header line item = 000000
headerx-update = X is also passed.
Please help me .
regards,
Jayant.
pradeep,
I still see this thread as open. Please review this code as a more clear solution.
REPORT ZR_SANDBOX_PROG.
data: vb like BAPIVBELN-VBELN.
data: cl like BAPISDH1X.
data: rt type table of BAPIRET2 with header line.
data: rt2 type BAPIRET2.
data: pt type table of BAPIPARNRC with header line.
vb = '0000153147'. " your sales order here
cl-updateflag = 'U'.
pt-DOCUMENT = vb.
pt-ITM_NUMBER = '000000'. "header line item = 000000
pt-UPDATEFLAG = 'U'.
pt-PARTN_ROLE = 'WE'.
pt-P_NUMB_OLD = '0003300744'.
pt-P_NUMB_NEW = '0003300074'.
append pt.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = vb
ORDER_HEADER_INX = cl
TABLES
RETURN = rt
PARTNERCHANGES = pt.
loop at rt.
write: / rt-MESSAGE.
endloop.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = rt2.
Reward points accordingly.
Similar Messages
-
User Exit Or BADi for Ship-to-Party's Transportation Zone F4 Help in VA01
Dear Experts,
I want to change the F4 help of Transportation Zone in Ship-to-Party Address in VA01.
I have to show the possible entries from Z table which is compared by the city of that particular customer.
Explanation:
1. Go to Transaction VA01.
2. Enter the values in first screen and Enter.
3. select the sold to party and ship to party and Enter.
4. Enter any item in item level.
5. Press Display Doc. Header ICON.
6. Go to partners tab.
7. Double click on Ship to party.
8. One Pop up screen will open. (ie. Address from Master Data for Ship-to-Party (Document Header).
9. Press F4 help for the field Transportation Zone. (It will show the possible entries from the table TZONE (All records).
10. I want to show the possible entries only for that particular city.(For a particular city there may be more than one transportation zone. I will maintain these records in Z table ).
I have tried all user exit from the program MV45AFZZ and ADDRESS_SUBSCREEN BAdI. But I could not get the solution.
Please help help me to do this.
Thanks,
MaruthamuthuHi Sandeep,
These are the user exits will trigger in va01 .
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
Please check this and post .
Regards,
Madhu. -
Table for Ship to Party for Tcode VA03
hii Experts,
Can anyone plz tell me the Table for Ship to Party (kunnr) corresponding to VBELN?
Regards,
ApoorvHi,
For a VBLEP get VKORG,VTWEG,SPART, from VBAK and then check KNVP.
Regards,
Himanshu -
Header text update problem for BAPI_CONTRACT_CREATE
Hi,
We are in the process of converting the BDC for Contract creation ME31 into BAPI.
For the purpose we had identified the BAPI,
BAPI_CONTRACT_CREATE.
The bapi works fine , except it doest not update the Header Text.
The parameters passed for header text are
Text ID : K01.
Text Form : *
Text line : ( Header text content).
We are working on ECC6.0.
Pls advice me how to proceed.
Regards
harishHi Harish,
Can you please give me a brief idea on how you are using this BAPI?
1) What would be the format of excel file?
2) Does the BAPI work for both create and update ?
3) Any know limitation ?
4) Any documentation you have or you can point me to on the web regarding this BAPI?
Thanks
AK -
BAPI_SALESORDER_CHANGE changing ship-to party
Hi,
i want to change ship-to party for sale's order.how to do this using BAPI_SALESORDER_CHANGE.
thanks in advance.pradeep,
I still see this thread as open. Please review this code as a more clear solution.
REPORT ZR_SANDBOX_PROG.
data: vb like BAPIVBELN-VBELN.
data: cl like BAPISDH1X.
data: rt type table of BAPIRET2 with header line.
data: rt2 type BAPIRET2.
data: pt type table of BAPIPARNRC with header line.
vb = '0000153147'. " your sales order here
cl-updateflag = 'U'.
pt-DOCUMENT = vb.
pt-ITM_NUMBER = '000000'. "header line item = 000000
pt-UPDATEFLAG = 'U'.
pt-PARTN_ROLE = 'WE'.
pt-P_NUMB_OLD = '0003300744'.
pt-P_NUMB_NEW = '0003300074'.
append pt.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = vb
ORDER_HEADER_INX = cl
TABLES
RETURN = rt
PARTNERCHANGES = pt.
loop at rt.
write: / rt-MESSAGE.
endloop.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = rt2.
Reward points accordingly. -
Item partners for Ship-to-Party in Sales order for Free goods items.
Dear All
After Creation of Sales order, there are 4 line of items in which 2 line of items having same Ship-to-party (Chargeble and Free)and remaining two line items having different Ship-to-Party chargeble and free items.
We have tried to change the Item partners of Ship-to-party in chargeble item of the 3rd line item it is changing but in free item the item partners not updating.
Pl.advice
VenkateshDear Venkates,
Kindly deactivate the check box Not Modifiable of the corresponding partner function by selecting Partner determination procedure - Partner Functions in procedure
Do this change if you have maintained partner proc. for sales document type or item category in
SPRO - Sales and Distr. - Basic Functions - Partner Determination
Hope this would solve you problem. If not kindly elablorate your problem.
Regard,
Sagar -
Header text updation at the time of IP10
When the user converts the maintanence plan for PRS at the time of IP10 the user wants to know the below
1. Need to get the prs number in the footer so that immediately he can not it down
2. They have some specific text to be updated in the PRS where while converting that in to po the same will get reflected in the PO print previe
at the time of creation of PR itself the same text need to get updated in PR header text and as well as in the item levelPRAVANESH TN,
You post isn't clear...
I'm assuming that a PRS is a purchase requisition??
And where is this text coming from?
PeteA -
Delivery report output for'Ship-to party address and Sold-to party address'
Hi Experts,
We have an report output generated upon delivery creation.
We need print following fields:
Ship-to party #
Ship-to party Name
Ship-to Party Address
Sold-to party #
Sold-to party Name
Sold-to Party Address
As per i understand, we could get those field according to partner function....
So experts, could please advise me from which table and field and logic to get above information....
Thank you very much!!Hi,
Are you changing partner details in delivery document?
This partner address details will be updated in VBPA table.
E.g change the partner street no. in delivery document manually.
Now goto VBPA table, enter correspondence sales document number for that delivery and execute.
Click on partner function AG / WE get the address number (ADRNR) .
Now goto ADRC table, enter this address number in ADRNR field and execute. you will get partner details.
Regards,
Chandra -
Excise duties for ship to party in exports process
Hi experts
i added one more ship to party for foreign sold to party and , in exports sales order for the line item i changed the same ship to paty.
we processed up to billing and came to know excise duties are not posted to accounting and unable to do excise invoice i n J1IIN... is there any possibility and pricing changes and configurations needed in this scenario.
your answer is most valuable for me
THanks in advance
MadhuHi Raj,
thanx for reply and exactly what u said.
sold to party is Foreign customer
ship to party is domestic customer
for one line item i am doing invoice now here i am getting sold to party name only , anyway my client wants to get excise duties in the invoice and posted to accounting and do J1IIN.. please tell me possibilities.
if i change Pricing procedure excise duties from statistical to active is it works or is there any other procedure
please experts help me
Madhu -
Output type is not getting triggered for ship to party in shippment output
Hi,
we have maintained output determination procedure for shipments. It was working fine.
We have just added new condition table to access sequence, and maintained the condition records also for condition type ZABC. I have checked in NACE, Application V7, I am able to find the condition type. checked in VV73, condition records displayed. But in VT02N/VT03N, we are unable to get print for the output type.
Why this is happening? we are able to see the procedure, condition type, access sequence, condition records in place ...why condition type ZABC is not getting triggered in the shipment output.
Please advise and let me know if you need more details....thanks in advance.
Thanks,
SSHi Noel,
Thanks for your time and reply.
We have output determination procedure for shipments, condition type ZABC, Access sequence ZABC, Condition tables 550,600,650,700 already maintained. output is working fine.we have a new requirement and created new condition table 700 with the fields" Ship to party and transportation planing point "(Condition table 700 ). we assigned the condition table 700 to access sequence ZABC. Condition type ZABC already placed in Output determination procedure.
We test the output, new condition record is not triggering in the output, even in output determination analysis also, we are unable to see the record 700 for the condition type ZABC. we are not sure what is the reason for the condition table that is not picking up ? Why condition type ZABC with condition record 700 not visible in output determination analysis.
I have checked condition records, output determination procedure. Please advise and let me know you need more details.
Thanks,
SS -
Change log of document address for Ship to party in sales order
hi experts,
There is a case where Ship to party address is diffferent at sales order level and custome rmaster level.Can anyone help to find the log of data inserted /updated in the customer address at sales document level. We tried CDHDR and CDPOS tables with object Adresse.But this is not giving correct information.Hi,
In your case,I hope the Customer number is same at both levels.i.e. at Sales Order level and Customer master level but the address is different.
Goto the T.Code "SE16".Enter the table Name as "KNA1".Enter the Custoemr Number and get the value from the field "Adress".
Now Enter the table name as "VBPA".
Enter the Address numebr you have noted from table "KNA1" and enter the select option as "Not Equla to".Pass the Ship-To-Party number under the field "Customer" and select the partner function as "WE/SH".
Execute.
You will receive all the list of sales orders where teh address is differed from master data.
Regards,
Krishna. -
Header text update in creation of PO
Hi All,
Our reqd is to change the header text while creation of PO.
I am using the badi BBP_CREATE_BE_PO_NEW.
Could some one please tell me how to use this badi for populating the header text in PO.
Regards
Bidyutthanks
-
Reg: Header text updation in VL02n transaction
Hi Experts,
i have one requirement in return delivery.
I am executing one customizing trasaction, and it displays screen.
In that screen i am editing the fileds and when i click on the save button i need to update in delivery transaction header texts (VL02n transaction goto header texts).Hi,
Use the SAVE-TEXT FM as below.
CALL FUNCTION 'SAVE_TEXT'
EXPORTING
HEADER = LS_THEAD
IMPORTING
NEWHEADER = LS_THEAD
TABLES
LINES = TLINETAB
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
OBJECT = 4
OTHERS = 5.
IF SY-SUBRC = 0.
Where LS_THEAD, CONTAINS:
TDOBJECT VBBK
TDNAME 00999999(Your delivery no)
TDID Z950
TDSPRAS E.
You can find this details, when you go to the transaction(VL02N) and enter some text and do the debug on SAVE_TEXT FM, then get the values it uses to save the text, use the same in you program.
Hope this helps,
Cheers,
Srini. -
Different Price for Ship to party
Hi,
I have created sales order with one sold and 3 different ship to partys. Now I want maintain different pricing information for each ship to party. Is it possible?
Note: it is using Same sales area and Same customer pricing procedure.
Regards
Sasikanth.ChHi Sasikanth...
It should be possible to maintain diffrent pricing for your 3 diffrent ship to parties.. For Eg if your Ship to parties are A, B and C you may have to maintain the condition table for the 3 Ship to parties through VK11.Say ,for eg if the sales org zxxx is the another field of your condition table then maintain the entries for zxxx-A ,zxxx-B and zxxx-C .
So that the system will pick the right combination of keys and carry out that pricing...
Hope this clears... Kindly reward if this helps...
Thanks..
Safeer Rahman -
Hi Experts,
I have created sales order with one sold and 3 different ship to partys. Now I want maintain different pricing information for each ship to party. Is it possible?
Note: it is using Same sales area and Same customer pricing procedure.
Regards
Sasikanth.ChHi Sasikanth,
You can do this by assigning the filed KUNWE in the access sequence field assignment.
In the access sequence choose the Condition table and choose the fields.
KUNNR KOMK KUNNR Sold-to party
Now place your cursor on the fields KUNNR and choose Field Catalog button
Then search for KUNWE, once you have search results double click on KUNWE. So now system reads the records from Ship to
Maintain Condition records for Ship to and check the results.
Hope this helps.
Regards
Murali
Maybe you are looking for
-
Upgrading MacBook Pro (OS 10.6.8) to Yosemite
Can I upgrade my 2008 MacBook Pro (Snow Leopard 10.6.8.) with Yosemite? I was advised not to as it would substantially slow down my hard drive.
-
Presentation variable problem in PDF generation
Hi, I have created the custom field using the following code *case when (V_balance.yr<=@{var_year}{2009} and V_balance.yr>=@{var_year-3}{2006}) then 1 else 0 end* Use this field I have created the filter and remove the field from report. When I run t
-
Downloaded 9.0.1 firefox will not open
Downloaded Version 9.0.1 to replace 7.0.1 and when I attempted to open Firefox, the following error message came up: This application has failed to start because MOZCRT19.dll was not found. Re-installing application may fix problem. Re-installed - no
-
I can't access any functionality on my icloud email account on my I pad, all functions other than loading has locked up the last received email was a local government one. so I'm using my PC to send this. Any ideas how to unfreeze this account? Safar
-
Synchronising User Tables not Happening
Hello All , I am using SSM 7.5 SP 04. We configured SSM to connect to the BusinessObjects User store.(BOE). I am able to login as the "cmstechnicaluser" who is an admin on the BOE side. I created a new user called "VJ" and added him to the strategy_