Roll Back the Sales Order After Adding
Hi Experts,
I want to roll back the system form trasaction like Sales Order. After adding the Sales Order immediately i want to roll back the transaction.
I used the Company.Transaction Object, but it is only working on User Tables. Not in System Forms like Sales Order.
Can you please tell me the solution for this ASAP.
Thanks in Advance,
G.Suresh
Hi Petr,
You didnt get my point. In my concern is, i am going to add Sales Order by Manually not using code.
In FormDataEvent of the Sales Order
Select Case BusinessObjectInfo.EventType
Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD
If BusinessObjectInfo.ActionSuccess = True Then
/***** This Code for getting current transaction of the Sales Order *****/
Dim oObject As SAPbobsCOM.Documents
oObject = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
oObject.Browser.GetByKeys(BusinessObjectInfo.ObjectKey).
/**** here i want to rollback the saved sales order ****/
End If
End Select
Can you tell me, how i ll rollback the already saved transaction which added by user from Sales Order Screen not in code.
Thanks in Advance,
G.Suresh.
Similar Messages
-
Can we block the sales order after creating ?
Can we block the sales order after creating ?
If how to do.
Thanks
nareshHi
Naresh
If you want to block the sales order then go to
>Header -- shipping tab
There u will find the column of delivery block there u put any reason. This way u block the sales order.
Another way u can give reason for rejectioon this way also u block the order and as and when u want to desp u can remove the reason/block.
Hope this will help you.
Thx. -
Field sequence Change in Sales order after adding new field( Resolved)
Hi I have added a new filed into sales order/item overview.(addded thr se51-layout ) . but when i go to va01/02/03, i noticed that the field sequence is changed due to my new field.(but when i see the layout its differnt and correct.)( even i checked changing the groups also)
Is there something i need to do..?Please advise. Thanks a lot.
<b>Answer:</b>
Table view is configurable in VA01/02/03.( No matter where you add the new fields)
Users can always move them to desired position.
Message was edited by: Deadlock1
Message was edited by: Deadlock1
Message was edited by: Deadlock1Hi
In the comments for the subroutine, it says:
* Parameter new_pricing controls the new pricing in the calling *
* form. It can be filled according the the allowed values *
* of domain KNPRS (Pricing type), for example: *
* ' ' = no new pricing *
* B = Carry out new pricing *
* C = Copy manual pricing elements and redetermine the others
So, you must write:
If VBAP_WERKS NE *VBAP_WERKS.
new_pricing = 'B'.
Endif.
Regards
Eduardo
Edited by: E_Hinojosa on Aug 25, 2011 8:21 AM -
How to change the pricing rate of Sales Order after delivery is created?
Is it possible to update(change) the pricing rate which belong to a specific condition type, of the "Sales Orders" after corresponding delivery is created ?
number of the Sales Order to be changed is huge. How can I handle this situation ?
immediate replies would be rewardedRepricing is only possible if your pricing record has a valid from date that is equal to or before the pricing date on the order. Otherwise, your pricing rate change will be applicable only from the begin date of that record.
Assuming that it is allowed by config, you can go to VA02, go to conditions, and then there is small button at the bottom, that says 'Update'. By pressing that, your system will automatically reprice the sales order, provided, as I said, all pre-conditions are met. Once you know that you can do this, then you can adopt any of the technical solutions that Rich had suggested above to do the mass changes. -
ATP check in the Sale order Processing and CO06 transaction (Confirm Qty)
Hi All,
While creating the Sale order, After performing the ATP check and saving the document i have called an user exit to make the confirmed Quantity equal to ZERO when the delivery block is set (As requested by customer). That is working fine...
But the same confirmed Quantity of ZERO is not reflecting in CO06 transaction. Its showing the old value that the value before setting the delivery block.
I have identified the table VBBE-VMENG which stores the confirmed quantity in CO06 transaction...
Could you please help me know any USER EXITS or any other solution to change the confirmed quantity to ZERO in CO06 transaction also while delivery block is set in the sale order.
Thanks &Regards,
NavaneethHi All,
Please help me by providing some clues on this issue...
Regards,
Navaneeth -
Retrigerring the delivery block for sales order after change.
Dear All,
I have a scenario, When we are creating FOC order, automatically Delivery Block is
appeared. After an authorised person releases the order, the Delivery is
made against it.
Now if the order is released and any amendment is made in the order, FOC
order should get back the Delivery Block status automatically.
Thanks,
Ani.Hello,
I have a scenario, When we are creating FOC order, automatically Delivery Block is
appeared. After an authorised person releases the order, the Delivery is
made against it. Now if the order is released and any amendment is made in the order, FOC
order should get back the Delivery Block status automatically.
The best option of meeting your requirement is using a User exit which would put a Delivery block when the Sales Order details are changes.
USER EXIT --> USEREXIT_SAVE_DOCUMENT_PREPARE
Kindly try out this exercise with the help of a ABAPer and close this thread if your query is answered.
Regards,
SARTHAK -
Hi Experts,
I would like to retain the old schedule lines after the ATP/GATP check in the sales order for certain conditions.
I don't want to change XVBEP,IVBEP,VBEP contents in the user-exit..
Is there any standard sub-routine or function module to reatain old schedule lines in the sales order so that the schedule lines will not update with the new values after the ATP check ?
Thanks
RayuduIn Include LV03VFMM, you have:
* Userexit availability
PERFORM USEREXIT_AVAILABILITY_IN USING DA_ATPPR.
There may be an option to implement some logic in here. However, I tried changing the value of MVERF_POS-EINTEIL[1]-VFPKZ to initial. This will ensure that when FM AVAILABILITY_CHECK_CONTROLLER is called that the following IF statement is untrue:
CHECK NOT P_ATPCSX[] IS INITIAL.
as P_ATPCSX[] Table[0x648].....
However, this will just mean that the 2nd confirmed schedule line (assuming we have > 1 schedule lines) will have a confirmed quantity to zero.
EXIT_SAPLATPC_001 could also be used. However, when I removed the "X" from CHKFLG, I get the same result; the 2nd schedule line will revert to zero.
They were the only tests I tried; I cannot think of any other ways around this.... -
In Sales Order form populate charges field after saving the Sales Order
Can we populate Charges field in Sales Order form after saving the sales Order automatically.
The charges to be calculated based on the amount entered and the item selected in Sales Order.
In the Manual process it is done by hitting the Actions Button and then select the Charges.
The charge type would be "Freight Costs"by using process_order API, I am able to update the charges field.
-
Item & Discount added in the Sales Order
Dear All,
I have a requirement where in once a Sales Order is created with approved Quotation, then no new extra items to be added in the sales order.
Quantity in the existing line item can be decreased to the lower side but no addition in quantity to be done.
Also no change in discount condition types to be done.
Please suggest the approprite Config. If there is no standard config, then please suggest the code which needs to be written in the approprite Userexit.
Best solution will be rewarded.
Thanks and regards,
Dilip Kumar RaoHi,
To restrict creation of new items and to restrict addition of quantity to existing items, use following user-exits and coding.
Program : MV45AFZB
FORM USEREXIT_CHECK_VBAP USING US_DIALOG.
*{ INSERT D50K904678 1
if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
check vbap-vgbel <> space and vbap-vgpos <> space.
read table vvbap with key vbeln = vbap-vgbel
posnr = vbap-vgpos.
if sy-subrc eq 0.
if vbap-kwmeng gt vvbap-kwmeng.
message e499(sy) with
'Quantity entered is greater then referenced'.
endif.
endif.
endif.
*} INSERT
ENDFORM.
Program : MV45AFZZ
FORM USEREXIT_MOVE_FIELD_TO_VBKD.
if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
loop at xvbap where vgbel eq space
and updkz eq 'I'.
exit.
endloop.
if sy-subrc eq 0.
message e499(sy) with 'New Item is not allowed'.
endif.
endif.
ENDFORM.
-Alpesh -
Adding Variant in Header Level in the Sales Order
Field "Card Verification Value" (CVV) is part of the Standard from Support Package SAPKH47028 onwards. But if you like you can use a variant for screen SAPMV45A4440 and set
field "Card Verif.Code" to invisible in this variant.
This is the reply from SAP after implementing the new support pack. Now there is an additional field in VA01 that I am trying to remove.
I can add the variant in Table Settings but that is on Item Level in the Sales Order (VA01). How do I do it in Header Level?Hi,
Go to SHD0 ,write down the Transaction code , transaction variant then go to Tab " With Processing'.
Now you will be in T Code VA01 ,press enter and you will get all the variants maintained in Header Level.
Now you can activate / deactivate as per your requirement.
Best Regards,
Ankur -
Calling VA01 from Report,how to get the Sales Order No when Back.
Hi all,
I have a requirement of calling va01 from the report and have done that using
did recording ...&
call transaction va01 using bdcdata.
but my problem is when back from that trasaction i have to get the sales order that is created . Is it possible to retrieve that value from va01 .i am unable to get . anyone pls shareUse the addition MESSAGES INTO itab with call transaction va01 using bdcdata.
Effect of MESSAGES INTO itab:
Using this addition, all the messages sent during batch input processing are stored in an internal table itab of the type BDCMSGCOLL from the ABAP Dictionary.
If the call transaction is successful then retrieve the last message from itab and then in any field among MSGV1,MSGV2,MSGV3,MSGV4 of itab u will get the document no.
And when doing the call transaction pl. choose update mode as 'S' or 'L'.
Regards,
Joy. -
After creating deliveries, the Bill-to and payer can be updated in the sales order.
After creating deliveries, the Bill-to and payer can be updated in the sales order.
Is there any standard customizing avaiable which will not allow the change of bill to party and payer in Sales order after delivery creation?Either via sdh0 you can set the field as non-editable or in configuration, if you set the field for BP as not modifiable in Partner Determination for Sales Order Header, then users wont be able to change the partner function in sale order.
G. Lakshmipathi -
System resets the sales order item price changes after save in VA02.
Hi All,
We have implemented automatic credit control at sales order level.
System is blocking the sales order once saved in VA01.
But if I do any changes in prices at item level in VA02 and save before credit releasing the sales order then system agian reset to the original prices from pricing condition records.
Can any body tell me why this is happening? I should able to change the sales order prices manually before releasing the sales order credit block. Is it possible?
Regards,
Kartheek.Like Lakshmipathi said, you should be able to change the prices in the order even if the order is under credit limit block.
Please check the condition types which are being changed . In the condition type definition( T Code V/06) for the field Manual Changes - the value should be either "Manual entry has priority" or "....should allow to change manually...".
Also in your pricing procedure ( T Code V/08) , against your pricing procedure , please select the value for pricing type as ..."copy manual conditions and redetermine others".
Hope this helps
Regards
Sai -
Adding Custom Fields to the Sales Order Screens - VA01, VA02 & VA03
Hi,
I have a requirement to add custom fields in the Sales Order Standard Screen. Could anyone please tell me is there any screen exit available to add a tab screen or is there any possibility without modifying the standard code.
Please let me know with the details.
Thanks & Regards,
Goutham.Hi Narendran,
Thanks for prompt reply, it was very useful.
Could you please let me know the procedure you have followed in coming to this conclusion of what screens to be used.
I understand that the program is SAPMV45A.
Thanks & Regards,
Goutham. -
After invoice completed the sales order is showing being processed
Dear All,
I have created one Sales Order. Checked the incomplet procedure where it gives document is completed.
I have created invoice with reference to this Sales Order. Invoice is successfully created and Accounting document is also generated.
Now if I check the document flow the Sales Order is showing as Being Process (not completed)
Can anyone tell me the reason why this sales order is showing Being process in Document Flow though the invoice is completly processed.
with regards
AmjathpashaHi,
Please check the below link. All this is happening because of some inconsistency in the system, for which we do not have a clear reason, every time and every issue may be having a different reasons. It is advisable to go through the different solutions provided by others in the forum and analyze which is suitable for your scenario.
Hope below link helps you...
Re: Sales Order Status
Venkat Cheedalla
Maybe you are looking for
-
Import files to iphoto from time capsule
I have a brand new time capsule and I want to be sure I have all of my bases covered before I start to set it up. At this point I plan to use it as a shared external hard drive between two macs, wirelessly. I'm not going to use it as a router or ba
-
really struggling to export adobe pdf to a microsoft word format so i can send onwards as email attachment
-
Regarding Idoc scenario....
Hi Gurus, Could any one explain what are the configurations required for idoc to file scenario ? i have configured every thing, with defining a logical system, assigning a logical system, creating port and partner profile and i am getting confusing a
-
How to share session beween 2 weblogic instance (451)
Hi, I'm looking for the possibility to share session information between two weblogic instance (for weblogic 4.5.1). The first instance create and add information inside the session and store the session inside
-
How to create success factors csv directory path in sap ?
Dear Gurus, I want to make a directory path for success factors csv exporting in sap. what should i do ? where can i start ? where can i make this directory path like "SFactors" , "E:\SFactors" ? Best Regards