How to read the Sales Order( Item ) System status?
Hi All,
My requirement is to display the System status of the sales order item*. When we go to the sales order display, if i double click on the line item , ii will lead to the next screen.Click on status tab,here we can see the Sytem staus. I would like to know the logic to read this sytem status ?
Thanks,
Suresh.
read tables VBUK, VBUP for SD document status indicators
Similar Messages
-
Sales Order - Returns change the sales order item delivery status
Hi All,
we have the following requirement from our users:
after creating a return, the original sales order should have the
delivery item status changed.The system should permit that a new
delivery can be created for sales order item already delivered / billed (a new delivery with the quantity that has being returned) but has a return document,
without increasing the sales order quantity.
Does any body got the same requirement ?
Thanks in advance,
MarcusHi Marcus,
After creating return order you have to do the goods receipts.But this doesn't mean that you will be able to create a delivery with the old order itself.
You have to create the order again and ahve to create a new delivery,goods issue and billing.
Another option is as Roberto said that you have to reverse the goods issue thru VL09 and then cancel(delete) your delivery and then you can create a new delivery wr.t to your original sales order.
Reward points if it helps.
Regards
Karan -
Is the Sales Order Item User Status available in user exit MV45AFZZ
Hello,
Does anyone know if a sales order line item user status is available within user exit MV45AFZZ (USEREXIT_SAVE_DOCUMENT)?
I need to send an email when the status changes from one specific value to another specific value but I don't seem to have access to what the latest value is in this user exit.
I have found a table XTVSTAT which cntains some user status' but it's not clear which status maps to which line item.
If anyone has any suggestion please let me know.
Thanks,
RubyHi,
I do need to access the values as I need to check for a specific change to the user status from value A to value B.
I have already tried debugging the user exit and searching through the available variables but the status information doesn't seem to be available.
I guess I will have to try the output determination route. Can you explain this in a bit more detail please.
Thanks,
Ruby -
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 -
How to create the sales order using BAPI's ....?
Hi Guru's,
could you please provide how to create the sales order using BAPI's .....i need step by step process and please provide the details from scratch....basically i don't have basic knowledge on this....please provide required inputs ....:)
thanks in advance
Srinivas......Hi Guru's thanks for your inouts and your valuble time...
please find the program logic below...
*& Report ZAREPAS30
REPORT zarepas30.
DATA : gs_vbeln TYPE vbak-vbeln,
gs_order_header_in TYPE bapisdhd1,
gs_order_header_inx TYPE bapisdhd1x,
gt_order_items_in TYPE STANDARD TABLE OF bapisditm,
gwa_itab1 TYPE bapisditm,
gt_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
gwa_itab2 TYPE bapisditmx,
gt_order_partners TYPE STANDARD TABLE OF bapiparnr,
gwa_itab3 TYPE bapiparnr,
gt_return TYPE STANDARD TABLE OF bapiret2,
gwa_itab4 TYPE bapiret2.
Sales document type
PARAMETERS: p_auart TYPE auart OBLIGATORY.
Sales organization
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
Distribution channel
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
Division.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
Requested Delivery Date
PARAMETERS: p_edatu TYPE edatu OBLIGATORY.
Sold-to
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
Ship-to
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
Material
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
Quantity.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
Plant
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
Start-of-selection.
START-OF-SELECTION.
Header data
Sales document type
gs_order_header_in-doc_type = p_auart.
gs_order_header_inx-doc_type = 'X'.
Sales organization
gs_order_header_in-sales_org = p_vkorg.
gs_order_header_inx-sales_org = 'X'.
Distribution channel
gs_order_header_in-distr_chan = p_vtweg.
gs_order_header_inx-distr_chan = 'X'.
Division
gs_order_header_in-division = p_spart.
gs_order_header_inx-division = 'X'.
Reguested Delivery Date
gs_order_header_in-req_date_h = p_edatu.
gs_order_header_inx-req_date_h = 'X'.
gs_order_header_inx-updateflag = 'I'.
Partner data
Sold to
gwa_itab3-partn_role = 'AG'.
gwa_itab3-partn_numb = p_sold.
APPEND gwa_itab3 TO gt_order_partners .
ship to
gwa_itab3-partn_role = 'WE'.
gwa_itab3-partn_numb = p_ship.
APPEND gwa_itab3 TO gt_order_partners .
ITEM DATA
gwa_itab2-updateflag = 'I'.
Line item number.
gwa_itab1-itm_number = '000010'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
Line item number.
gwa_itab1-itm_number = '000020'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = gs_order_header_in
ORDER_HEADER_INX = gs_order_header_inx
IMPORTING
SALESDOCUMENT = gs_vbeln
tables
RETURN = gt_return
ORDER_ITEMS_IN = gt_order_items_in
ORDER_ITEMS_INX = gt_order_items_inx
order_partners = gt_order_partners.
Check the return table.
LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error occured while creating sales order '.
ELSE.
Commit the work.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Document ', gs_vbeln, ' created'.
ENDIF. -
The sales order item & contains a different material
Hi,
Converted requisition into purchase order and now getting the following error: "The sales order item & contains a different material"
Any advice?Hello Marianne,
Your PO seems to be created already, didn't you modify anything in it?
Did you already check in VA03 your post 380?
Génia. -
How to pull the Sale order number(sales document) to Accounting document
Hi Gurus,
How to pull the sale order number to the accounting document.
Is any configuration needed to this.
When i run the FBL5N Repoprt ,Sale order number (Sales document) is not getting updated to accounting document.It is diplaying as blank field.
Thanks you.Hi Shivaji,
In order to display the Sales document in the customer line item report, you need to add it as a special field thorugh customizing settings.
Path - SPRO - FA-GL Accounting - GL Accounts - Line Items - Define special fields for finding and sorting data and in that select the table BSEG-and field VBEL2 (Sales document) and save/
This will work. hope this helsp
regards,
radhika -
Changing the status of the sales order item based on reason for rejection
Hi All,
When a Sales order item is rejected then the status at the item level is changed as 'TECO'.When the reason for rejection is removed the status 'Teco' is reset.This status change can be achieved using the user exit 'MV45AFZZ'.But the exit does not allow re-atp calculation whenver a blocked item is release.I have use the exit 'MV45AFZB' ,through this the status change as well as re-atp calculation takes place.But the status changed(Based on reason of rejection) does not appear in the same screen.The change gets reflected only when the sakes order is saved and i open it again.
I want the status change to appear in the same screen.I am doing my code in the form 'userexit_check_vbap' of the exit 'MV45AFZB'. Please let me know if there are any user exits or BADI's available for the same(Changing the status of the sales order item based on reason for rejection ).
Regards,
S.SubasreeHi subburamaiah
If you want the report you can create a separate SIS report . In that take the input field as a Reason for rejection.. and ask for the output the list of sales orders .Now when you check this user defined report you will give the reason for rejection and check what all orders got rejected on that reason for rejection.
Regards
Srinath -
Profit center is missing in the Sales Order Items
Hello,
I would like to ask why a profit center field in the sales order item data is blank but in the material master, the profit center is maintained. Why was it not populated during order entry?
Hoping for your support.
Thanks.Hi Cynthia,
Please check if you have maintained Profit Center at correct place in Material Master. It is maintained at Mat master: Sales: gen/plant view (MARC-PRCTR)
If it is maintained here, it should get populated at Sales Order Item -> Account Assginment tab. This is Standard SAP behavior.
Regards,
Rianka -
How to check the sales orders that have been created with an Rebate Agreeme
Dear Experts,
Do you know how to check the sales orders that have been created with an Rebate Agreements?
Thanks!!Hi Hoo Laa,
I have one way but little lengthy.
Rebate condition always appears in the billing document.
So 1st you extract the sales order list from Table VBAK.
once you have the sales order list then you can put your order list in Table VBFA --> Extract the billing document list.
Now put that list in the table VBRK.
In VBRK you will get the "Doc. condition" --> put that doc condition in table KONV with your rebate condition type.
It will show the result.
Later, through VLOOKUP you can identify in which order you have given rebate to your customer.
Already said, Little lengthy
Regards,
MT -
How to settle the sales orders
Hi experts,
Can anyone tell me how to settle the sales orders? What is the transaction code?
regards
vkHi VK ,
Being production consultant I think production order which is created with reference to sale order will be settled in ko88 or co88 after calulating variance ( and settling in variance a/c ) , Work in progress .
Prod order should have TECO indicator before you settle .
Neal -
How to cancel the sales order - header and line status are in Entered Stage
Dears,
I have some sales order to be cancelled in which the header and line status are in *"Entered"*. I am not able to cancel these sales order.
Also note that these orders are for maintenance service.Once i book these orders the lines will change to closed status.
So it is not possible to book and cancel the lines.
Kindly me to resolve this.926530 wrote:
Boss,
If i do Action-->cancel on header, it just makes the qty to zero.But the header and line status still showing as entered.It will not cancel the order.
The problem for me is that these lines are coming in my monthly reports. This is what your question says...be more specific as what is your issue..which in turn is your problem
How to cancel the sales order - header and line status are in Entered Stage
Coming to your Action-->cancel...as far as i know ...the header status will change to canceled..
unless until you have some processing constraints in place...which is stopping you...
HTH
Mahendra -
How to find the header and item level status of a CRM contract ?
Hi,
Few questions
A. How to find the header and item level status of a CRM contract ? My req is to select all the contract line items which are in CLOSED status.
B. How to get the BPs associated with a contract ?
Anyone have the list of CRM tables and the relation amongst them. Please mail me in [email protected]CRMD_ORDERADM_H Contains the Header Information for a Business Transaction.
Note:
1. It doesnt store the Business Partner
responsible for the transaction. To
get the Partner No, link it with
CRM_ORDER_INDEX.
2. This table can be used for search
based on the Object Id(Business
Transaction No).
CRMD_CUSTOMER_H Additional Site Details at the Header Level of a Business Transaction
CRMD_LINK Transaction GUID set for all the Business Transactions
CRMD_ORDER_INDEX Contains Header as well as Item details for a Business Transaction.
Note:
1. It doesnt store the Business
Transaction No (Object ID).
To get the Business Transaction No
link the table with
CRMD_ORDERADM_H
2. This table can be used for search
based on the Partner No
CRMD_ORDERADM_I Stores the Item information for a Business Transaction. The scenarios where we have a Contract Header and within contract we have Line Items for the contract, this table can be useful.
E.g. Service Contracts
CRMD_CUSTOMER_I Additional Site Details at the Item Level of a Service Contract
Pl.reward points....... -
How to display the sales order in the line item in FB03
Hi Experts,
I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
Thanks in advance.
RP.>
S. Rajesh Paul wrote:
> Hi Experts,
>
> I have a requirement to display the sales order in the line item of t-code FBO3, could anybody suggest an userexit or BADI for the same.
>
> Thanks in advance.
>
> RP.
I assume, you want to display sales order number in accounting document..... .
This is not something you can do it through the BADI..
You will have to change the G/L account field group (if it is already not there). you can then assign sales order number when posting to FI. In the field group, better choose sales order number and item number as optional fields.
If you can see the sales order field (may be empty) - you have to enter the sales order number when you post it.
Good luck -
How to block the sales order for not creating requirement
Dear All,
My client want that whenever a sales order is raise, that should not go create requirement for production unless until account department check whether the prices etc are correctly put or not
how can i do this
thanksI suggest you can try to use the functionality of Status Profile.
Create one Status Profile with 2 line items-
1: First line : Pricing Approval or PR and check what all you want to block if this status is assigned to the order type.
2: Second line : Released and check what all you want to be released once the Approval is done.
So by default the status profile - Pricing Approval will be assigned to the Sales Order during order creation. Then after your accounts department check the pricing and approves , they can change the status to Released and the order can be processed further.
Regards
Sai
Maybe you are looking for
-
Adding New Fields to a BEx Query does not show up in the CR field explorer
This could be a silly question. I have a CR report based on a BEx query. I had to add a couple of new fields to the BEx query, and when i want to add those fields to the CR report, I don't see them even after I do a refresh in the field explorer. H
-
I don't regularly use any apps beyond Windows Live, Facebook, Skype etc. but app crashes are becoming frequent and this recent blackout was disturbing. What are the potential causes of this and how can I avoid them in the future?
-
Thread 1 cannot allocate new log sequence. All online needs archiving
Hi, Everyday in the morning at around 3:30 to 3:31 i see this error message in the alert log. Rest of the data there are no traces of this error in the alert log. There is a job which runs at that time.But would like to make sure which sql statement
-
I haave a bunch of mp4's for which the sound is too soft. I would like to import, normalized, increase db by 12, and save to an mp4 or avi (a file type that Mac and Windows computer users both could view.) Is there a way to do this with a batch file
-
I want to update a table with data extracted from a xmltype. But Oracle extracts only the first value from the subquery. Am I missing something or this is the expected output... drop table t create table t(id number, val varchar2(20)); insert into t(