Bapi or FM to delete Pricing condtion from sales order
Hi,
I have a requiremnet where i need to delete the pricing condition .The sales order is changed by one proxy program and then the pricing condtion record is appearing twice in order this because of the condition origin is automatic.
one entry is for automatic and one entry ( changed manually ) is which we are passing to the bapi 'BAPI_SALESORDER_CHANGE' FM in the proxy program .
I need to delete the record for automatic .
I have checked the bapi 'BAPI_SALESORDER_CHANGE' but not working...
can anyone let me know any bapi available to delete the procing condition.
Regards,
raj
Hi,
Any one please.
Regards,
raj
Edited by: kumar raj on Apr 28, 2009 2:25 PM
Similar Messages
-
How to release Stock blocked against deleted line items from Sales order.
We have Scenario as follows.
Sales order made for items available in stock. Deleted few lineitems from sales order balance items delivered and invoiced. Sales cycle is complete in all sense.
What we have noticed is when we are creating new sales order / Delivery for deleted items from above Sales order it shows deleted quantity is blocked against old sales order. These line items are no longer
available in old sales order since it is deleted also it is not appearing in open sales order report (VA05).
Overall stock available is same as quantity mentioned in deleted line item.
In MD04 - Sales requirenment transaction it shows sales order / line item against which it is blocked.
i.e deleted line item.
How to release these stock and make available for sales. Any standard process available ? or any other solutions
Thanks & Regards,I got a solution for my question from other forum. for info
Go to SE38 and enter program SDRQCR21 then execute...
Enter line item which is blocked for sales order in MD04 and enter plant then check Data
transfer box and uncheck other boxes... It will pop up information and click yes...
You will get one report and Stock inconsistency will go off and then check it in MD04....
regards -
Delete Credit Card from Sales Order
Hi Gurus
I have some issue in releasing sales order to accounting... in this process the only solution I am finding is to delete the credit card info from the sales order. Do we have a BAPI or BDC is the only option.
Thanks
Ram KumarMr,
1) Delete the Sales Order
SALESDOCUMENT = <doc. number>.
ORDER_HEADER_INX-UPDATEFLAG = 'D'.
2) Delete an item of Sales Order
SALESDOCUMENT = <doc. number>.
ORDER_ITEM_IN-ITM_NUMBER = <item number>.
ORDER_ITEM_INX-ITM_NUMBER = <item number>.
ORDER_ITEM_INX-UPDATEFLAG = 'D'.
finally:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Amit. -
BAPI or FM to create outbound delivery from Sales order
Hello All,
My requirement is to create a outbound delivery from sales order. Also i need the batch number and texts to be updated in the delivery.
For this i need a single FM. The catch is that we don't have the batch number and texts in the sales order. That i have to take from some other delivery. I can get all the information .
The problem is that i can not find a FM through which i can create the delivery from the order and update the same.
I should not use two FM.
Could you please tell me some FM which does both in one go?
Thanks and Regards,
Rahul SinhaHi
Hi,
You can use the BAPI BAPI_DELIVERYPROCESSING_EXEC.
Check this sample code..
PARAMETERS: p_vbeln LIKE vbak-vbeln.
DATA: BEGIN OF t_vbap OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
matnr LIKE vbap-matnr,
werks LIKE vbap-werks,
END OF t_vbap.
DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
WITH HEADER LINE.
DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
WITH HEADER LINE.
DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
SELECT vbeln posnr kwmeng matnr werks
INTO TABLE t_vbap
FROM vbap
WHERE vbeln = p_vbeln.
LOOP AT t_vbap.
t_request-document_numb = t_vbap-vbeln.
t_request-document_item = t_vbap-posnr.
t_request-quantity_sales_uom = t_vbap-kwmeng.
t_request-id = 1.
t_request-document_type = 'A'.
t_request-delivery_date = sy-datum.
t_request-material = t_vbap-matnr.
t_request-plant = t_vbap-werks.
t_request-date = sy-datum.
t_request-goods_issue_date = sy-datum.
t_request-goods_issue_time = sy-uzeit.
APPEND t_request.
ENDLOOP.
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
TABLES
request = t_request
createditems = t_created
return = t_return
READ TABLE t_return WITH KEY type = 'E'.
IF sy-subrc = 0.
MESSAGE e208(00) WITH 'Delivery creation error'.
ENDIF.
COMMIT WORK.
READ TABLE t_created INDEX 1.
Write: / 'Delivery ', t_created-document_numb.
Regards,
Sreeram -
Delete only itemno from sales order
Dear all,
By using this bapi BAPI_SALESORDER_CREATEFROMDAT2 i created the sales order.And i updated the sales order.When i am deleting the item the whole sales order is deleting.How should i delete only item no in sales order.
regards,
malliMr,
1) Delete the Sales Order
SALESDOCUMENT = <doc. number>.
ORDER_HEADER_INX-UPDATEFLAG = 'D'.
2) Delete an item of Sales Order
SALESDOCUMENT = <doc. number>.
ORDER_ITEM_IN-ITM_NUMBER = <item number>.
ORDER_ITEM_INX-ITM_NUMBER = <item number>.
ORDER_ITEM_INX-UPDATEFLAG = 'D'.
finally:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Amit. -
How to get report for deleted line items from sales orders
Dear FRIENDS,
please infirm the t.code or report for viewing the deleted line items from sales ordrers.
Kindly do the neeedful.
regards,
N.M.PAWARHi,
With transaction SE16 you can view table CDHDR for header changes and
CDPOS for item changes. This includes deletion.
OR
GO to VA03 - Display Sales order -> Put order no : don't press enterbutton. -> Go to Enviornment -> changes -> You will get details
Date ItmNo. SLNo Action
Hope this help please close the thread if answers -
Copy Pricing Conditions from Sales Order to Billing
Hi,
Is there anyway to copy pricing conditions for item level from Sales Order to Billing Document at the time of creation of Billing Document.
ThanksThis question is not on topic for the Web Dynpro ABAP forum and has been locked.
-
Delete Pricing Condition IN Sales Order
Hello Forum,
Does anyone know how to delete a specific pricing condition in a Sales Order.
In a sales order for each line item there are multiple pricing conditions. I need to delete a specific price condition 'ZZZZ' for instance then how do I go about it?
This is what I have been able to find out so far.
1. Does NOT seem to be possible by BDC because there is no way to position the cursor on the particular condition record I require.
2. Although there is BAPI_SALESORDER_CHANGE, SAP via an OSS note specifies that this BAPI CANNOT be used to delete condition records.
3. None of the PRICING function modules seems to work for deletion. I did find out a function module PRICING_DELETE_LINE but this seems to rely on being called via SAP Standard function.
I have tried searching for some means to do this and I hope that someone on this forum can give me some help on the same.
Regards,Hi Peter,
Your reference to OSS Note 593246 saved me from hitting my head to the wall, I had almost given up. Thanks a lot.
Here is the code, in case any one needs to add or change a condition type on the sales order.
REPORT ytest.
DATA:lt_conditions_in TYPE STANDARD TABLE OF bapicond,
lt_conditions_inx TYPE STANDARD TABLE OF bapicondx,
lt_return TYPE STANDARD TABLE OF bapiret2,
ls_logic_switch TYPE bapisdls,
ls_order_header_inx TYPE bapisdh1x,
ls_conditions_in TYPE bapicond,
ls_conditions_inx TYPE bapicondx.
ls_order_header_inx-updateflag = 'U'.
ls_logic_switch-cond_handl = 'X'.
ls_conditions_in-itm_number = '000010'.
ls_conditions_in-cond_type = 'PR00'.
ls_conditions_in-cond_value = '21.11'.
ls_conditions_in-currency = 'USD'.
APPEND ls_conditions_in TO lt_conditions_in.
ls_conditions_inx-itm_number = '000010'.
ls_conditions_inx-cond_type = 'PR00'.
ls_conditions_inx-updateflag = ' '.
ls_conditions_inx-cond_value = 'X'.
ls_conditions_inx-currency = 'X'.
APPEND ls_conditions_inx TO lt_conditions_inx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = '0000053232'
ORDER_HEADER_IN =
order_header_inx = ls_order_header_inx
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
logic_switch = ls_logic_switch
TABLES
return = lt_return
ORDER_ITEM_IN =
ORDER_ITEM_INX =
PARTNERS =
PARTNERCHANGES =
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 = lt_conditions_in
conditions_inx = lt_conditions_inx
EXTENSIONIN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return =
Regards
Amit Maole -
Not to be able to delete line items from sales orders
I have to do something so as not to be able to delete the line items from a sales order if I have already received a down payment for this sales order
Dear Stilianos
Assign Reason for Rejection for that line item and create a new line item in the same sale order.
Incidentally, why do you want to delete the line item ??
thanks
G. Lakshmipathi -
Deleting line item from sales order
Hi to All,
I am an SD support consultant,i had an issue please help me out,
When i am trying to delete one line item from the sales order i am getting error message that line item cannot be deleted because of planned order.Hello
Due to your availability check & transfer of requirement config for sales process & material, in the background planned order already generated. Till the time you have subsequent document for Item, you can't delete the litem.
So, take assistance of PP consultant in your team for delete planned order
Thanks & Regards
JP -
How to restore deleted manual conditions from sales order?
Hello Experts,
I have a situation where one of the users did a mass change on many sales orders. As part of this mass change, re-pricing was done and that deleted all manual conditions which are applied on each sales order item level.
Is there a way I can restore deleted manual conditions?
Please let me know and appreciate any help!
Thanks!
PL.hi
peter
you find the sale order manual deleted condition types in AUT10 t code level
go to AUT10 t code here enter the sale order number and give the date time, then execute now its showing condition types and amount also
pl check below screen
regards
sankar -
Copy the pricing conditions from Sales Order to Delivery
Hi all,
I have to send the princing conditions from the delivery trough Idoc.
That's the reason why I need the princing conditions in the delivery. But I can't redetermine the pricing procedure in the delivery creation. I need to copy the pricing conditions from order to delivery.
Because if there is any manual modification of a condition in the sales order, If I redeterminate the pricing procedure in the delivery, I would lost the changes.
Anybody knows any User Exit or anyway to copy the pricing conditions from SO to Delivery?
Thanks in advanceI think pricing will not determine in delivery, if any shipmentchanges will copy to delivery, not standard pricing.
Logically, when you create delivery by that time your pricing need to finsh, no changes, so send pricing infor from order to customer, as its standard process in any client. -
Copying Pricing date from Sales Order to Invoice
Hello,
I am trying to copy pricing date at line item level from sales document to invoice. Currently I have a pricing date of 04/02/2015 in sales order line item, but in invoice, the same line item pricing date is coming up to be 04/08/2015. The pricing date is defaulting to when the invoice was created.
How can I change the pricing date of the invoice so that it matches sales order pricing date?
Thanks,
BrijeshHello Shiva,
The line item I am looking at has the item category of Z0N1 (used for Stock item), but when I go into copy control using tcode (VTFA) under item level, I don't see this item category as one of the options for selection. Is that normal?
Thanks,
Brijesh -
Cannot delete line item from sales order
Hi Gurus,
Need your expert helo for the following issue :
A sales order was created in CRM with 3 line items, the first and 3rd line item being the same.The order was successfully replicated to ECC.Now on the CRM side the 3 rd line item was deleted and another item was entered which doesnot exist in the system.The system gave 2 errors indicating that the item doesnt exist in the system which is valid.Now when we are tryng to delete the line item(3rd item which doesnt exist in the system) the system doesnt allow it .If there were any subsequent docs for this order it would make sense that order doesnt allow any changes on the CRM side but there is no delivery doc created yet.
Seems like the order is in some confused state.Can you please suggest what can be done to make sure that line item 3 can be deleted and changes on CRM side reflect to ECC.
your suggestions will be greatly appreciated.
Will reward with points.Thanks in advance.Hi Venkat,
I think once you create order..system will not allow you to delete the line Item completely. Now do one thing open a sales order and try to delete the line item..it will not delete it. But if you go to status column of same line item...it will show the status as 'rejected'. This means that order is not placed for that material. And the requirement will not be shown in APO. This is as good as deleting the line item completely.
thanks
Kushal
reward points if help -
Pricing Conditions from Sales Order to Purchase Order
Hi,
This is a third party scenario. The vendor says that he will sell product ABCD for $10 to us.
When the customer places and order, we have a manual condition type ZDIS in sales order and we enter $10 for the product ABCD while we create the order.
This $10 is not the sales price for the customer, it is the purchase price for us from vendor. Even though we maintain Info Record for the Vendor we bypass that sometimes and this is the reason we created this condition type.
The purchase requisition is created automatically when we save the order, and we create the purchase order using the Purchase Requisition automatically using ME59
Now we want to copy the condition type ZDIS to the Purchase Order.
Please let me know how to do this.
ThanksHi tinsnow ,
I belive you have to access the condition records of sales order from any one of the user exit \ BADI of ME59.
Regards,
Sen
Edited by: Senthil Nattamai Sekar on Feb 27, 2009 5:28 AM
Maybe you are looking for
-
AP Invoice Aging Report for past date
hi guys, I am running R12. my requirement is to run AP invoice aging report for past dates (same like AP Trial Balance Report), but the seeded invoice aging report has no option to do so. would appreciate some help thanks in advance Ravi
-
Issues related mapping constraints in 3rd party content
Hi Guru's.... Please suggest me some important focus areas while mapping standard R/3 to Non-SAP content mapping . Please suggest me few important points which should be taken take while doing this process of mapping. and please differencia
-
FM for CUSTOM FIELDS added in BP transaction
Hi all, We have added few custom fields in the BP transaction. Now the thing is we need to update those using Function module. Could any one please help me like in which Function Module can i found those fields once i add in the BP transactio
-
How do i close dynamiclinkmanager when downloading Abobe Premier Elements 10
How do I close dynamiclinkmanager while trying to re-download Adobe Premier Elements 10?
-
My new iMac does not see my last iMac backup in Time Machine
I just got a new iMac and I wanted to get my files from the time machine back up of my old iMac. Migration assistant did not see my iMac backup. It sees my Macbook backups, but not my iMac. My old iMac was running Yosemite Beta and the new one runs 1