Help Regarding Sales Order Change Upload
Dear gurus
I need to change a line item quantity of a sales order in va02.
i have a excel file i want to change that data in sap.
how to do that?.
regards
Saad.
Ill be very thankful if you guide with a simple sample.
simply you can use lsmw using recording with VA02
for details refer
http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/content.htm
Regards'
sateesh
Edited by: sateesh kumar on Sep 7, 2009 11:23 AM
Similar Messages
-
Sales order change Inbound interface
Hi all,
This is regarding sales order change inbound interface,
we are using new Z function module for sales order posting(exteded idoc ORDERS05), for this shall i use standard message type,standard process code or custom message and custom process code?
Regards,
Suresh.DHi,
If you are having a custom function then its better you create a custom process code, you need not create a custom message type and also never change any of the standard process codes.
Thansk,
Mahesh. -
Report for Sales Order Change History CDPOS and CDHDR
How to take a report of the data for the Sales Order Change history for a particular period of time. It is required to take a report of all the Sales Orders for which the basic price has been changed. Please let me know the procedure. I could not get the data from the table CDPOS and CDHDR
Helpful answer would be rewarded.
Regards
PraveenDear Praveen Kumar
Have you tried with VBAP where sale order details at item level would be stored.
Moreover, to my knowledge, there won't be any changes as for as pricing is concerned at sale order level but there is at billing level. Normally, any price increase / decrease would reflect in billing. So why dont you to table join through SQVI VBAP (for sale order details) and VBRP (for billing details) so that you can compare the selling price in sale order with billing.
Thanks
G. Lakshmipathi -
Sale Order change BAPI - Storage loc not updated
Hi Everybody,
Iam using "BAPI_SALESORDER_CHANGE", to change the sale order items.
First iam calling above bapi with switch B, for new pricing & then second time for material change.
When i change any material number, it is getting updated correctly.
But the storage location, even though iam passing in the bapi it is not updated, & is blank - updation flag is also passed.
When i execute sale order change again it is updated - ie, for any material change for first bapi call, storage loc is not updated - for 2nd bapi call storage loc is updation - for same input in both the cases.
Is there any way to update the storage loc is first call of sales order change bapi.
Below is the parameters iam passing in bapi :
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = LS_SALESDOCUMENT
ORDER_HEADER_IN = LT_HEADER_IN
ORDER_HEADER_INX = LT_HEADER_X
TABLES
RETURN = LT_RETURN
ORDER_ITEM_IN = LT_ITEMS
ORDER_ITEM_INX = LT_ITEM_X
ORDER_CFGS_REF = LT_CFGS_REF
ORDER_CFGS_INST = LT_PARTS
ORDER_CFGS_VALUE = LT_VALUES
ORDER_CFGS_BLOB = LT_CUBLOB
ORDER_CFGS_VK = LT_CUVK
ORDER_CFGS_REFINST = LT_CUREF
SCHEDULE_LINES = LT_SCHEDULE_L
SCHEDULE_LINESX = LT_SCHEDULE_X
ORDER_TEXT = LT_TEXT
CONDITIONS_IN = LT_CONDITION_L
CONDITIONS_INX = LT_CONDITION_X.
Any help is appreciated.
Regards,
Nagarajan.JHi,
Storage location is updated only when same sale order bapi is called another time with required details.
rgs,
Nagarajan J -
Sales Orders Change Log question
Hi All,
I am currently working on a project that involves querying SAP Database to get custom reports via web browser, I've made a lot of advances and most of the site is ready but I'm missing just one item that I hope you could help me.
Thing is I am working with the Sales Order change log and the problem comes one a user deletes a row. If I go to the change log inside SAP and see the differences a new record will be shown saying that row X was deleted and
if I go to the database (ADOC and ADO1 tables) I don't have a way to see wich row was deleted.
My way of doing this is to check for the number of rows on the current state of the sales order and check the same on the previous instance of the SO and see if a line was deleted. Then I would have to check row by row between instances what rows are there and what row is missing and store that info. I think this kind of approach will definitively kill the server.
I was wondering if some one can give me a hint about how to approach this problem. Does any body know how SAP works on this area?
I'm working with SAP2005A and SQL Server 2005 Standard Edition.
Any help is greatly appreciated.
Thanks!
Alejandro.-Hola Alejandro,
Thanks for your answer, as I see it I'm doing exactly what you proposed but the problem comes with the following scenarios:
a.- If I post a new SO with two lines I will have on the ADO1 table two records with the values 0 and 1 for each line respectively but if I delete the item on LineNum = 1 and then I add a new item, this last item will be also created with LineNum value = 1. This is not a complicated thing to do but the problem comes when the user is used to work with SOs with several items at detail level and is used to add and erase lines once in a while and as I see it it's very difficult for me to track those specific changes. There's also the fact that on the Log table a new instance is created every time the user hits the update button regardless if a modification was actually made or not. I mean I would know that a line was deleted or added but I would have to start comparing each field on each line of a sales order with it's previous instance to check what was actually added/deleted and I'm afraid that this may affect the server performance. I know that SAP does this without affecting to much the system resources and that is what I'm trying to find.
I forgot the other scenario I was considering he he I will post again as soon as I remember it but I hope I'm explaining this ok (I'm not very good at explaining...) If not let me know and I'll try to explain again.
I'm also working on trying to get another approach to see what comes up...
Thanks for checking this thread, your answers are helpful.
Regards. -
I have a problem regarding sales order line item with confimed quanity
Hi Experts,
I have a problem regarding sales order line item with confimed quanity with '0' with delivery block but confirming the sales order quantity once the order is released from credit check.
The situation arises as per the below scenarios.
Scenario - 1 - When the sales order has two line item - one line item with confirmed qunaity in the schedule line and for the 2nd line item there is no available stock for the Material xxxxxx.
Initially the sales order is created for the line item 2 with confirmed quantity = 0, and having the delivery block = 01 for the Material xxxxxx and the order is set with credit check. Once the order is relased from the credit check. The quanity for the item 2 where the confirmed quantity will be = 0 ( Where it is not changing the confirmed quantity)
Scenario -2- Updating the order qunaity for the line item 2 as (9Pcs) it will goes to credit check and save the order.
Maintain the stock for the line item 2 ( 5 Pcs).
Once the order is released from the credit check. Then for the line item 2 the confirm quanity will be seting to 5 Pcs with Delivery blcok 01.
This should not happen, When the credit check is released even though if it has stock based on the delivery blockl it should set the confirmed quanity to Zero.
Can you please help me how to solve this issue.
Looking forward for your reply.
Thanks and Regards,Hi,
I agree with your point. In the sales order When the complete delivery check box is enabled where the confimed qty is set to zero, it is fine but when we save the orderr it goes to credit check. Once we release the order using VKM3 where in the sales order the confimed quantity is setting to 5, But it should set to Zero quantity. Quatity should not be get confirmed it should be Zero Quantity.
Further in SPRO - customizing in the deliveries blocking reasons - It has a tick mark in the confirmation blcok. But we dont want to remove the - Confirmation Block tick mark
Please any one can help me if you have any solution to solve this problem.
Thanks and Regards. -
Authorization at Sales Order Change (Item level)
Hello Experts,
Is there any standard authorization object at sales order for adding new items? As I want to restrict some users to add new item lines at sales order change ( VA02 )
Regards,
AmrHello,
How can I use this object V_VBAK_AAT to disallow users to add
some item lines from VA02 but users can change any other functions
at the sales order (e.g. update pricing conditions)?
As I see on this object V_VBAK_AAT, If I revoked ACTVT = 02 'Change',
It will revoke all change functions from users.
I think the best solution for your requirment would be to seek the help of Basis folk to create a new User ID which would be having access to Change mode of Sales Order (VA02). Then you can restrict addition of Material line item with the help of Technical consultant by putting up code in following User exit.The logic in the code will be addition of Material line item will be restricted if the User Name is the newly created one...
1:- MV45AFZB -- USEREXIT_CHECK_VBAP
2:- MV45AFZZ -- USEREXIT_MOVE_FIELD_TO_VBAP
3:- MV45AFZZ -- USEREXIT_SAVE_DOCUMENT_PREPARE
Regards,
Sarthak
PS : On information note, you can refer the t-code SU24 to see the standard authorization object for change mode of Sales Order. -
Sales order details uploading using BAPI method in LSMW
Hi Guys,
Sales order details uploading using BAPI in LSMW, could you please suggest me, is any standard method or programs is available for this.
I have some queries about this.
1) One header line having multiple line items, in this case we able to upload use the LSMW method,
if possible please tell me the steps.
2) Do we need to do any config changes while uploading data?
3) Flat file should be which format.
4) Steps to process each step wise if possible.
Please help me
Thanks,
Gourisanakar.Hi Gouri Sankar,
would you be able to upload the sales orders with multiple line items using BAPI LSMW?
if so could you plz suggest?
Thanks in advance.
Suresh/ -
BDC Program to Set Reason for Rejection in VA02 in Sales Order Change
Hi i have a requirement i have to set "reason for rejection" in random line items of Change mode of sales order VA02.
I have to develope BDC for this task and i have the list of all open line items which displays in VA05, can any of them can guide me how to develop BDC which will randomly select line items and set reason for rejection in VA02 Sales Order Change transaction.
With Regards,
S.SaravananHi Saravanan,
As mentioned in the previous reply, you can use the FM:SD_SALESDOCUMENT_CHANGE and set the reason code for the line item like for eg: move '03' to IT_INPUT-REASON_REJ. and also set 'U' for update flag in the header structure,
move 'U' to HEAD_INPUT_INX-UPDATEFLAG
this will be best and easy method.
for this, FM,you need to pass the below parameters:
CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
EXPORTING
salesdocument = old_order
order_header_in = head_input
order_header_inx = head_input_inx
TABLES
return = return
item_in = it_input
item_inx = ii_input_inx
schedule_in = schedule_input
schedule_inx = schedule_inputx
declare all these structure and internal tables as per documentation of the FM.
hope this helps.let me know if you need more information.
Thanks,
Srini. -
Sales order change log problem
in sales order changes are visible in change log but if I want to enter the reason for those changes how to do it?
Hi,
If I understand you requirement right then you want to customize your system in that way,
For e.g If you are changing the payment term in order then there is some place where you mention why you are changing the payment term in order.
I dont think in change log you will get this facility but I can suggest you another way
Maintain the Text id at header and tell every user that whenever they change something in order then they have to mention the reson in Text (Header).
Anyways as per the change log id, senior manager will ask them directly.
So everybody take it seriouly and enter the reason for every change.
Hope this helps,
Regards,
MT -
Credit Check during Sales Order Change (VA02)
Hi,
We have implemented a credit management system, where the sales order will not get saved if the credit limit is exceeded. Now this check is working fine during sales order creation. But in VA02 during sales order change, the system is giving an information message that the credit limit is exceeded, but is allowing to save the order, which is not desirable. Could you all please help me in finding a solution to this problem..
Thanks & Regards,
Ritam BeraHi
Kindly check that you are using simple credit check or automatic credit check(Statis or Dynamaic) below settings
If Automatic credit check then go to OVA8 -automatic credit control area with combination of Credit control area/Risk category /credit group,Check in the reaction field you have mentioned the error or warning (B or A) .
Prerequisites for credit management to work in Sales and Distribution:
1.Assign credit control area to company code
2.Maintain the credit limit in FD32 with details of risk category and the credit limit value
3.Do the settings in OVA8 -automatic credit control area with combination of Credit control area/Risk category /credit group,Check in the reaction field you have mentioned the error or warning (B or A) .
4.Assign the credit groups to the sales and delivery document types.
5.Maintain the Subtotal 'A' in the pricing procedure against which value the sytem should check the credit limit.
If you have any further clarifications on above let me know
Regards
Damu -
Status Profile - Sales Order Change
Hi,
I have a issue regarding Status Profile in Sales Order.
I have a sales order with two status -
Awaiting Approval ( Initial at the time of creation of Sales Order )
Approved ( Approval by HOD after creation )
No changes has to be done in Sales Order once approved, if any changes to be done then, needs resetting of the status to initial.
How to control the same.
I have checked the transactional control in user status but change sales order control is not there.
Can be controlled through user exit then how can it be be done.... User Exit name and brief logic of possible.
Regards
SD Consultant.Hi
You can use MV45AFZZ include to find appropriate User exit for your requirement with the help of your ABAPer.
USEREXIT_SAVE_DOCUMENT would be suitable to you.
User status are maintained at JEST table, so you can write code to activate status 1 and deactivate status 2 if sales order changed. -
Hi All,
This is regarding the Sale Order Change where I am updating the reference document field.
In WE19,( taken one successful IDOC )When I am using the Standard Inbound ( IDOC_INPUT_ORDCHG) ,IDOC is failed and getting message as "There is no article description for Item".
But if I use Inbound Function Module ( IDOC_INPUT_ORDCHG) in Foreground mode,IDOC is successfully created.
Please let me know the cause for this issue.
Regards
B.DheepaCheck note 161744 helps you.
thanks
G. Lakshmipathi -
Hi,
We have a requirement that sales orders should no be able to be changed after a month that it has been created/opened. I would like to know if ithere is a standard way of blocking sales order change (include new items and quantity change) considering its creation date.
Thank you and regards,
Renata PratavieraHi,
I am not sure any standard settings can help with the requirement.
However you can use user exit, USEREXIT_SAVE_DOCUMENT in the include MV45AFZZ. to satisfy your requirement.
Regards, -
Dear Guru's
Is there any T-Code for verifying Sale Order changes (Step wise), as in my company Invoices are generated with lot of changes which not matching with Sale Order conditions. So I would like to moniter the Sale Order conditions changes. Kindly help me out.
Thanks in advanceHi
Sales order changes can be seen in the report only if the changes are made by any user(userid). If your problem is with changes in pricing conditons...then before comparing the sales orders and invoices, I advise you to check the copy controls and the price type used in the copy controls. If the price type selected is to redetermine the pricing, then you should check the validity of the conditon records. Sometimes, the conditon records may be different during sales order creation and invoice creation.
Thanks,
Ravi
Maybe you are looking for
-
How to assign the result value of a sql stmt to a variable in sql*plus
e.g. var v_date var v_test :=select hour from tablename where date=v_date
-
Force a user to enter a value for a parameter.
Hi, I have a report with a bunch of parameters and I want to force the user to enter values for two parameters amongst all of them. Like for example when the user doesn't select values for those 2 parameters he should get a dialog box saying "please
-
How do I scale strokes in Flash CC?
I know that in the "Properties" window there is a "Scale" drop-down, but it doesn't work. When I scale in free transform, the stroke doesn't scale unless its in a movieclip.
-
Hello, I have created a Pie Chart. I was wondering if anyone knows of a way to separate the slices. I believe Oracle may have a feature to explode (separate) one slice of the pie chart away from the other slices. However, I was wondering if there is
-
Help, how do I delete / undo the skin on iGoogle so I only have the theme showing?
I added a skin which I thought was just a colour onto my home page iGoogle and can't remember how I did it. Now I have 2 themes on top of the page and only want the iGoogle setting. How can I get rid of the top one?