How to know the sales order closed using right click menu -Close ???
I have an sales order with ten item, I have copied the same to delivery and before adding the Delivery I have deleted some items. After adding the Delivery, I manually closed the sales order by using the "right click menu close".
The Open Quantity of those lines are already closed while i Close it manually.
Now i need a report regarding the sales orders which i have closed manually. Any Options??
Check the below result
DocNum DocDate CardCode CardName Row# ItemCode Dscription Price Quantity LineTotal
2 2012-02-04 00:00:00.000 ED-C-102 AI HUDHA BOOK STALL 2 1010 150.000000 10.000000 1500.000000
3 2012-02-04 00:00:00.000 ED-C-103 AL AMEEN ENGLISH SCHOOL-MANKADA 2 1011 ZINC ROD HIGH GRADE PURE ZINC 140 X 9 MM 59.790000 10.000000 597.900000
this is the result i get while i execute your query
but look at the db result
DocEntry LineNum TargetType TrgetEntry LineStatus ItemCode Quantity OpenQty
1 0 15 2 C 1010 10.000000 0.000000
2 0 15 3 C 1010 10.000000 0.000000
2 1 -1 NULL C 1010 10.000000 0.000000
3 0 15 4 C 1010 1.000000 0.000000
3 1 -1 NULL C 1011 10.000000 0.000000
3 2 15 4 C 1012 15.000000 0.000000
3 3 15 4 C 1013 20.000000 0.000000
4 0 15 5 O 1010 10.000000 5.000000
See the last line data...it have open quantity of 5 and it also have the target type 15, If I close the sales order with docentry 4 manually using right click, the open quantity will be Zero..
I need that last line result also as my output..
Hope you understand my problem.
Thank You
Similar Messages
-
How to get know the Sales Order IDOC#, if I know the created Sales Order#?
Hi Experts,
Let me know that, How to get know the IODC #, if I know the Sales Order#?
Scenario is that, sales order(say 12345678) was created from Inbound EDI. I also Know the MATERIAL too.
So, How to pull the associated Inbound ORDERS idoc, which is created this Sales order-12345678?
Is it from EDID4 table? or EDIDC? or any thing else?
reples r appreciated.
thanq
Edited by: SAP ABAPer on Sep 8, 2008 5:29 AMHello
This can be done much easier using fm SREL_GET_NEXT_NEIGHBORS:
Input:
OBJECT-OBJKEY = <number of sales order> " with leading zeros!!!
OBJECT-OBJTYPE = 'BUS2032'
MAX_HOPS = '01'
Result:
NEIGHBORS-OBJKEY = <IDoc number with leading zeros>
NEIGHBORS-OBJTYPE = 'IDOC'
NEIGHBORS-ROLETYPE = 'INIDOC'.
Regards
Uwe -
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. -
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 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 -
Want to know the sale order report for Delivery bclok at header level
Dear,
i would like to know some reports
1). I would like to know is ther any SAP std report is available for Sale order if Blocked for delivery(VBAK-LIFSK)??
2). is ther any report for knowing the Sale order if header/item text is maintained??
Pl advice if any std report is available.
Thanks in advanceDear Pradyumna,
Thanks for your reply, I did't find any Header r item text in the report.
Pl suggest is there any other report is availble???
Thanks in adv. -
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 -
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 -
Hi Experts,
I hv a sales order #, say, my_order.........its created from a IDOC via FM of IDOC_INPUT_ORDERS and message is ORDERS.
So, let me know that, If I know the slaes order #, my_order, How to get its associated IDOC #?
In SE37, I searched with key word NEIGHBOUR .........but, did not find any result!!
thanqi went to WE05, and did looked all, in the 60days!!
thanq -
How production peoples will know the sales order quantity?
Hi,
In our business we are getting orders from our customer in advance (ie before stock production). Is there any notification to send the Ordered item, Quantity and Dispatch date to the production department to produce the stock? Is there any setup for the same?
Thanks in Advance,
Regards,
Prabhu.S.JYour MRP / APS will create wip jobs based on the sales order demand. The shop floor may / maynot care about which sales order they are building it for.
If you want to create one-to-one relationship between the jobs and the sales orders, you can either make your items as ATO items and autocreate the wip jobs or check the LOT FOR LOT option in your ascp plan. -
How to create the sales order using excell sheet thru BAPI's?
Hi Guru's,
In my excell sheet i had 11 sales order details ..now i wanted to create the sales order's sing BAPI's...?
could please guide me step by step.....that would be greatly helpfull to me...
Thanks in advance
Srinivas....Hi,
follow below steps.
1. Get the excel data into internal table, Build a internal table whcih fields are in bapi same order
2. call the Bapi and pass the table data to the bapi
3. after calling the bapi, call the commit bapi.
then only it will careates.
Regards
Ganesh -
How to send the Sales Order to another user id within SAP
Gurus,
I have created a sale order through VA01. Sales order number is generated. Now that sales order I want to send it to another user.
Is is possible, if how.
I know we can send the reports like FBL3N, by selecting list and send there we can give the user id to whom we have to send. Like that i want to send the sales order, how.Hi,
For the standard report you can use the sending function from the menu, but sales order is a document, there is not the sending function in the maintenance view with t-code VA01 or VA02. Because the document should be printed out, you can define a condition type and create a condition record in background, let it send out a copy of sales order automatically when document saving.
Hope it's helpful to you!
Regards
Tao -
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 -
How to find the Sales Order Overall Status (VBUK-GBSTK) modified Date?
Hi Experts,
A Sales Order could get automatically closed at the point of Packing or Invoicing, At this point the field GBSTK in table VBUK turns to status 'C' means Closed. This could also happen when Sales Order Line Items Rejection Reason is filled.
I want to find the Date when GBSTK got modified in this way I would know the exact Date of the Sales Order Close. At the moment this is not shown in Sales Order (VA02, VA03) or in the table VBUK. I have searched everywhere to locate the Date. I need you help.
Thanks,
SriAlthough VBUK is mentioned (Tx SCDO, Tab TCDOB) for the ChangeLog Object VERKBELEG, you won't find anything in CDHDR due to the fact that Data element GBSTA's Log-Frag (DD04D-LOGFLAG) is not switched on.
For Workaround you might try Audit Trail
Audit Trail (electronic records) / Tx AUT10, AUT01, XX-PROJ-ELR, OSS 564743,517613,564645
OSS 1058984 - FAQ: Audit Trail (Transaktionen AUT01-AUT10)
http://help.sap.com/erp2005_ehp_03/helpdata/DE/fc/89683c1b5fb712e10000000a114084/frameset.htm
Cheers
carsten -
How-to extend the Sales Order with the Project ID?
Hello ByD Community,
My problem is the following:
I want to add an extension field to the Sales Order Header, which would be the Project ID assigned to this Sales Order.
My use case only involve one Project ID per Sales Order, and the task will be the same from a Line Item to another. So I can only use the GetFirst() to retrieve only the first Line Item.
Past week, I asked a similar question for the Purchase Orders and I succeeded to do it after a hint from Dan!
As for the Purchase Order, I thought the Project Assignment was built through the SalesOrder.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.ProjectReference, but it seems that it is different.
So as soon as I try to check if this Association IsSet() it just returns me that it is not!
I succeeded to bluntly push the TaskUUID in my Extension field for testing purpose, without any check and verification, but not the Project ID neither with good validations.
I also tried to see with the SalesItem Association instead of the Item Node, but it is the same. Any time I try a different check it returns me the N/A for my field, which is my last condition if the association is not set! What is driving me crazy is that you have the Project ID is shown on the top of the Sales Order, but I just cannot find how to retrieve it in the Studio!!!
Here is my sample code in my After-Modify event (I also tried with a On-Save) where the ProjectIDSalesOrder is my extension field in the Cloud Solution:
import ABSL;
if (this.Item.GetFirst().ItemAccountingCodingBlockDistribution.IsSet())
if (this.SalesItem.GetFirst().ItemProduct.ProductCategoryHierarchyProductCategoryIDKey.ProductCategoryInternalID.Matches("130"))
this.ProjectIDSalesOrder = this.SalesItem.GetFirst().ItemServiceTerms.ProjectTaskUUID.content.ToString();
/*what I need actually is : this.ProjectIDSalesOrder = this.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.GetFirst().ProjectReference.ProjectID.content;*/
else {this.ProjectIDSalesOrder = "No project assigned";}
else {this.ProjectIDSalesOrder = "N/A";}
If anybody could help me on this, it would be greatly appreciated.
Thank you community!
Best regards.
Jacques-AntoineHello all,
To follow up on this issue, I found that a QueryByElements is available in the SalesOrderOverview node. And we can Query the SalesOrder by ProjectID.
Fine! However, we cannot retrieve the ProjectID. It is never proposed as a result in the Query. We can query againt a ProjectID but not retrieve it.
As the ItemAccountingblockDistribution association seems to never be set, we can't retrieve the ProjectID from it neither.
I will post an incident to see if the ProjectID can be released as an entity in the SalesOrderOverview. QueryByElements results, so as to be able to use it.
Thanks for your attention.
Jacques-Antoine
Maybe you are looking for
-
Windows and Mac with same iPod
I have an iPod I have been using for over a year on my Mac with iTunes. I wanted to be able to connect it to my girlfriends PC so she can use it when she is working on her 'puter. She downloaded iTunes, then the iPod software from the Apple site, ins
-
FILE- EMAIL with pdf as an attachment and message body.
I have a scenario where FILE to EMAIL with PDF as an attachment; I also need to send to have Email body with some text. For this i have tried using Mail Package then i wont be receiving any attachment. If I use both Mail package + Keep attachments i
-
after installing the new OS X Yosemite, i've found some bug when open appstore the screen turn like that but on the other apps didn't have problem like that. Hope Apple fastly solve this problem. MacBook Pro - Retina Display 15" (2013)
-
The message on my iphone 4s delivered late and I can't receive any calls for some time
It's almost 6 months since I've encountered this problem. I already requested my carrier to have my iphone 4s replaced and a series of testing was done to my iphone 4s before they found out this it was defective. Now, I have my new iphone 4s but the
-
Replacing a G5 with a MB?
I'm almost at the point of replacing my old G5, but have a few reservations. I am a fairly average user of photo editing software, a bit of Aperture, some iPhoto and other apps on occasion (such as PSE4 or Gimp). I only add about 2000 images a year t