How to reschedule the sales orders
Dear All,
I have more than 50 Sales order which are back dated (with past date).
How to change their delivery to the current date. I am not interested to correct each and every order manually.
Kindly suggest.
Regards,
Mullairaja
hi,
there are two ways of doing it but both needs technical person's help:
1. switch off back ward scheduling - find out the program which is triggering back ward scheduling and make it inactive.
2. write a code in MV45AFZZ, SDTRM001 stating that when ever system is proposing back date at that point of time it should trigger todays date as Material Availbility Date.
then no need to change manually to todays date.
hope this should help you.
please check the same with ABAPER and update the forum
regards,
balajia
Similar Messages
-
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 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 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 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 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 check the sales order that has been PGI from a range of dates.
Hi SAP Gurus,
I have a query on how can I check the sales order that has been PGI from a range of dates in SAP?
Thanks,
MadelynDear Madelyn
Go to VA05, give the date range and execute. List of sale orders will be generated. There you can see a tab "Status" in which, the status would be like
- Not delivered
- Partially delivered
So based on this, you can decide whether the order is still open or completed.
thanks
G. Lakshmipathi -
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 -
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 -
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 populate the sales order as a cost object in cost element posting
When posting sales to a cost element the error comes up stating Account ******** requires an assignment to a CO object.
This comes from the sales (repair) order and I would like to pass the sales order and line as a cost object.
Could someone please tell me where I would make the configuration to pass that into the accounting document?
Thank you,
SergiySnavaneetha,
unfortunatelly I don't have access to any CO consultants that could help me on this one. We are a small company so I am an unofficial CO consultant for time being
Anyway, maybe I should post this one on the CO forum as well.
I looked at the material master and I don't see the field for the GL account or cost element anywhere like you said. I do see the account assignment group and that's where my account determination procedure determines the right one to use, and it is trying to post to the account I need it to post but I get the above error, for some reason the sales order that I am billing for does not get passed at a cost object to this cost element account during billing.
Sergiy
Edited by: Sergiy Mysyk on Jul 26, 2010 3:25 PM -
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
-
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.
Maybe you are looking for
-
Qosmio E10: Is it possible to upgrade the graphic adapter?
Hello there, I have a question regarding a Qosimio E10. Is it possible to upgrade the graphics Adapter to a more recent one. (Now : Geforce FX 5200 Go 64 Mb) Because the one i use now is ot of date and I dont want to buy a new notebook just because o
-
IMessage applies an incorrect contact to a message
I'm running the latest version of Yosemite (10.10.2) and when I receive a message in iMessage, the contact name applied to it is incorrect. I've had this problem in previous version of Yosemite. I checked the contents of both the correct and incorrec
-
whilst doing some online shopping earlier, i noticed that http://www.dabs.com now sell the Mega TV Tuner for the Mega PC series barebones, might be of use to UK users as this is the first time i have seen these cards available in the UK http://www.da
-
What plugin do I need to view video's on websites
new computer imac with os x lion 10.7.2 (11c74) not sure as to what plug in or software that I need to view news video's the screen is just blank(black) where video is to be shown help thanks
-
Can I set up a wifi router to receive an internet signal by connecting it to a computer?
Can I set up a wifi router to recieve an internet signal by connecting it to a computer? It seems to me that routers are designed to connect directly to the internet by programming their firmware with connection info. I'd like to connect a computer t