UI API issue, clicking base document on sales order does not set ActiveForm
I have a sales order window open with a sales order loaded. When I right click and click on base document, the sales quotation window shows up properly, however in code when I get the ActiveForm, it is the sales order form and not the sales quotation form!
Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent
If BusinessObjectInfo.Type = bo_type.SALES_QUOTATION And BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.EventType = BoEventTypes.et_FORM_DATA_LOAD
SBO_Application.MessageBox(SBO_Application.Forms.ActiveForm.Type) 'shows 139 instead of 149?
End If
End Sub
If quotation data is loaded using the next/prev/first/last buttons on the menu bar, the activeform .Type is 149.
If quotation data is laoded using the Base Document shortcut on the sales order, the activeform.Type is 139.
Is that suppose to be correct? If so, how do I get the new sales quotation form that is created by using the base document shortcut?
Edited by: Dung Nguyen on Aug 24, 2011 2:12 AM
János Nagy wrote:
Hi Dung,
>
> Formdataevent is handling trhe data events, not GUI events. In form data load means that the form is data is loaded, not that the form is activated.
>
> You must handle menuevent, and in menuevent before_action = false case the active form will be the sales quotation (or child/parent in the document flow).
>
> You may use an SDN tool to determine the events. You can download it from:
> http://www.sdn.sap.com/irj/scn/businessone-tools
>
>
> Regards
>
> János
The problem with form activated is that it is triggered everytime the window is "activated'. Meaning that if a user clicks out of the form and clicks back in, the form activated event is triggered.
I need to perform an operation only on the first time the form and data is loaded and/or activated.
Similar Messages
-
Sales order does not allow make-to-order production
Dear Friends,
I am trying to do do planned order for sales order in MD50 it was showing the error message as
"Sales order does not allow make-to-order production"
Can any one solve this
ShakthiHi Shakthi,
It is also possible to set the priority for Requirement Type determination like
0 Material master strategy, then item category and MRP type
1 Item Category and MRP Type
2 as 1, with check for allowed requirement type.
The transaction for this is same as "Requirement Type Determination :
Sales and Distribution --> Basic Functions --> Availability Check and Transfer of Requirements --> Transfer of Requirements --> Determination Of Requirement Types Using Transaction
Look for "Source".
In this transaction, Please, check "Requirements".
Please, make sure of the following 2 things :
1. If you do not set an indicator for maintaining the requirements class: Transfer of requirements is not carried out, irrespective of the specification you make at schedule line level for the transaction.
So it is necessary to mantain the setting first at the Requirements Class. As mentioned in my earlier posts, the requirement class for the material can be found out from Planning Strategy / MRP3 view --> Main strategy (defined in the strategy group) --> Requirement Class for Customer Requirements.
The IMG path for "Define Strategy" is Production --> Production Planning --> Demand Management --> Planned Independent Requirements --> Planning Strategy --> Define Strategy.
2. Once the "Requirements" indicator is set in Requirement Class, the requirements indicator at the Schedule Line decides whether or not you require transfer of requirments for the relevant transaction.
I hope this should solve your problem.
Regards,
Sandeep -
Sales Order does not show up at the resource level.
Hi guys,
I have a flour mill of having 4 processs (resources)
1). Tempering (cleaning).
2). Milling.
3). Blending.
4). Packing.
I have two identical sales order. One has been through all the process (resources) and showed in the DS Planning board but, other one has not shown up there. It happens to me couple of times that such sales order do not show up at the resource level. Where should I check and correct? Aslo which way can I follow up these missing sales order? and What shoud I do if this situation happens?
Thanks
Shaan.
Edited by: Shaan313 on Sep 27, 2011 8:22 PM313,
https://service.sap.com/sap/support/notes/1406120
Since you asked the question, I can assume that you don't have an "S" number. speak to the person in your company who administers your SAP Service Marketplace account (this is usually someone on your Basis team), who can obtain one for you.
Or, you can try on your own. A few stars have to be in alignment for the second method to work.
https://service.sap.com/request-user
Best Regards,
DB49 -
Sales order does not extract plant information from material master data
Hi experts,
I have created a sales order. However, the plant in the shipping tab can only be manually entered.
I have made the check:
the customer material master data does not have the plant info.
the customer master data does not have it either.
It is defined in the material master data: sales:general/plant
But the sales order did not extract this information. Why does this happen?
Thank you in advance.
Best regards,
FanHello Friend,
As right stated by you,
The Plant will be copied from the master data to the sales order, if not it should be manually entered
The Sequence System will search for the Plant is as follow..
1. Customer material infor record, If it was not maintained then it will search in
2. Customer master, if the entre was not maintained in the SHIPPING TAB
3. Finally it will search in the Material master in the Sales organisation data 1 in the field DELVERING PLANT field.
So please search whether the entry was maintained in that field at the sales:sales organisation data 1.
This might be the issue.
Please revert if you want further details
regards,
santosh -
Sales order does not consumpt Independent requirement
Hi Gurus,
My material is as below:
MRP Type: M0
Stategy group:40 Planning with final assembly
Consumption mode :2 Backward and forward consumption
My independent Req is 'VSF Planning with final assembly'
My sales order item category is 'Zwac', rety is using ZWAC-M0-KSV 'Sales order with consumption'
but before i create sales order:
MRP element Received/Requirement quantity
stock
IndReq 100-
After that:
MRP element Received/Requirement quantity
stock
IndReq 100-
Sales order 90-
but i expected like this:
MRP element Received/Requirement quantity
stock
IndReq 10-
Sales order 90-
Do you know what i did wrong , thank you!
Regards,
dragskyDear,
If you have planning stategy 40 , then PIR qty will be consumed duirng MRP run if both PIR created with VSF and you have incomming Sales Order qty .Let say you have 100 pc PIR and also 150 pc of sales order , run MRP-MD03 , it will create 150 pc Planned order or PR .
If your using and Sales Order is not getting consumed upon while running MRP , then couple of checks in this case :
1.Is your PIR (created in MD61) "VSF"?
The requirement type should be KSV to consume with VSF. Please check OVZI to check why your item category in Sales Order get the requirement type 041.
Here you must have following set up :
Requirement Class : 041 , Availablity , Requirement Check box Marked and Allocation Indicator-1 .This Alocation indicator basically Controls the consumption of customer requirements with planned independent requirements whereby the customer requirements type is only allocated one consumption strategy.If it blank that means no consumption with customer requirement .
Please check If you want req. type 041 to consume with VSF, then you have the change the configuration of planning strategy. Use path Production -> Production Planning -> Demand Management -> Planned Independent Requirements -> Planning Strategy -> Define Strategy.
2. What is the schedule line category in your SO ?? Is it "CP"? You are using customised item categoery zWAC which may be inharited from WAC-Order /Delivery Requirement (OVZI)
Check and come back.Hope this will address the issue
regards
JH -
Sales order does not appear in MD04
Hello,
One of my sales order is not appearing in MD04. I found out that in the sales order, the requirment type is missing.Is this could be te resaon for sales order not to appear in MD04.
2nd question) why requiremment type is not there in sales order. In my case, there is no entry in the item cat and mrp type table but in the strategy group in material master, the requirment type exists. so why the system is not showing requirment type in sales order by picking it up from the strategy group. in the item cat +mrp type table, the source is kept as "0", which means the system should pick the requirment type from strategy group . so why it is not picking if it is defined in straetegy group ?/
Question 3) or is it that the sales orders appear in MD04 only after MRP run but then why other sales orders are apearing before MRP run.
regards
sachinHi sachin,
what planning strategy group is your are using.
I assume plan stg grop is 20.
Normal settings for 20 Paln stg grop in material master.
1.Item category group (such as NORM) on the Sales Organization screen
2. Set Plan stg = 20 at Mrp View.
Requierment type fo customer requirement = KE assigned for planning strategy 20 at customizing.
For 20 plg stg requiremnt type is customer requirement type only.
with above settingsif create sale order it will appear at Md04 before MRP run.
u can see the customer requ type at "procurement tab "of sale order.
For planning of material u have to maintain valid MRP type at Mrop view.
i am not clear about ur second question.
please comeback
Regards
Pradeep -
In sales order does not not show sales bom component
hi to all,
it is possible if i create one sales order and i connect one sales bom to order and do not display component of sales bom in sales order so pls tell me procedure.pls tell me how to set print layout of sales order without sales bom component
Regards
vishalHi,
To do not show the component items in Sales Order, you should use Assembly type of BoM.
Here I copied the differences between them which is from Online Help.
The sales bill of materials and the assembly bill of materials represent a finished product which is assembled at the sales stage.
The difference between the assembly bill of materials and the sales bill of materials is as follows:
· Assembly bill of materials; the finished product appears in the sales order document.
· Sales bill of materials; both the finished product and the components appear as separate items in the sales order document.
Hope this helps you.
regards,
maggie an -
New settlement parameters in sales order does not work
Hi
I have a sales order for service material. It is invoiced. I have to settle it. The existing settlement rule is wrong. So I have created a new allocation structure and changed settlement parameter in the sales order. I save the sales order.
But in VA88 the settlement does not work. I get error message ' receiver cost element not defined and thet cat. PSG not defined.'
But the same allocation structure work good for new sales order.
Pl advise how I can do the settlement for old sales orders, subsequently changed for settlement parameter ie allocation structure.
Thanks
kamalaHello Kamala
Not an expert on this subject, but here is what I suggest, Try and see if it works.
1) Firstly retract the changes you did in sales order and settle first with the wrong settlement parameter (Old data).
2) Now change the existing allocation structure, don't create NEW ONE. If you change an allocation structure, the changes only affect future settlements.
3) Then reverse the settlement.
4) Now re-do the settlement.
Let me know how it goes. Take care. -
Converting contract to sales order does not auto create schedule lines
Hi
When I convert quotation to sales order, then schedule lines get auto created.
But when I convert contract to sales order, then schedule lines don't be auto created. Instead, a confirmation screen for proposal delivery date pops up for every line item in the sales order.
Is there any suggestion how can I solve my problem ?
Thanks..Hi,
In standard SD module, system checks availability for each line item, gives you popup screen of confirmation.
If you don't want availability or popuscreen of confirmation,then
Go to VOV6 >>> Select schedule line which you are using in sales order for line item >>> Remove tick mark of availability check.
Else
Remove availability check rule from material master >>> Under tab Sales : ganral/plant
kapil -
Changes to financial document are only visible after reassign the financial document to sales order
Hello experts,
Whenever I am changing a financial document ( say validity date) in
vx12n, I want the same to get reflected in the sales documents to which
the financial document is already attached.
Currently to make the change visible I have to reassign the financial
document in the sales document.
Reassign is not possible in the cases where part delivery already been
happened (LC fields got grayed out ).
We dont want to run sensitive T CODES like VKM3 or VKM4 due to audit
related issues .
Is there any way so that any change in financial document is
automatically captured in the related sales document.
Regards
AvikHi Minhaj ,
Thanks for your reply . But the same is happening @IDES also. As per as my business scenario , in the time of creating the financial document by VX11N , user does not know when the sales order is going to be delivered. By the time of delivery , validity date or some other FD fields get changed in VX12N to accommodate the requirements . When they are trying to deliver the same from the sales order , credit check is throwing error for the same fields which are already changed . Now after reassign the same , credit check is allowing to deliver . But in worst possible scenarios ,it may happens validity date of the FD get expired when part delivery is already completed . Thus make the FD fields of sales document non-modifiable . You cant reassign the same any more.
As per as your reply relating to Basis , please share some specific information so that I can communicate them effectively .
Regards
Avik -
Create Billing Document from Sales Order (Without Delivery)
Dear Experts,
Pls note, presently we are creating Billing Document (VF01) from Outbound Delivery Number after Post Good Issue. All sales Document like Billing Document, Output Type, Invoice Type has been configured for this process and we are doing this without any error. Fyki, we have configured lots of Z Order, Billing & Delivery type to do this processes.
But for one of this order type we need not do any delivery. We want to create Billing Documents from sales order directly (without doing any Outbound Delivery).
So, would u pls advise the steps how can we configure and assign Order Type, Billing Type or any other type to meet above requirement.
Thanks in advance.
Best Regards.
RiponHi
There are two most important configuration:-
1) In VOV8 for your Order Type maintain the Order Related Billing Document
2) Maintain the Copy control setting in VTFA betwwen your Order Type and billing Type.
Also note that if your line item is not require to be delivered then for your Item category maintain (in VOV7) not relevant for delivery and not relevant for scedule line.
Regards
Amitesh Anand
Edited by: Amitesh Anand on May 24, 2010 5:09 PM -
Sales order number not copied to documents in accounting
Dear all,
I have created normal sales order ,delivery and billing and creation of excise billing invoice which i do for the sales which happens directly from factory.
now go to VF02, and click on 'accounting overview ' click on accounting document .Here sales order number (COBL-KDAUF) is not copied. where as accounting document generated for excise invoice sales order number is appearing .
The same is the case with STO through SD route ....
kindly suggest .
thanks,
ShankarDear Shankar
As you would be aware, four Accounting Documents would be generated for one billing document viz
- Accounting Document for Customer Debit
- Profit Center
- Controlling Document
- Profitability Analysis
Of the above four documents, in which you have seen. You can see the order reference in Profitability Analysis.
thanks
G. Lakshmipathi -
Outbound delivery document from Sales order
Hi ,
While creating the outbound delivery document from Sales order, all the line items of the Sales order are populated in the Delivery document. The line items where stock is not available, the line is still populated in the delivery document with zero quantity.
Pls suggest the way in config, so that at the time creation of the delivery document system to populate only the lines with the available stock.
ThnxHello Soumya
I could not able to find any std transaction or config via you could restrict it. However you also no till 'Picking' not completed user is not able to make postings... so i couldnt see any issue in this.
Still you need to restrict this, you to configure User Exit via you can restrich the lin items to come in delivery for no stock item.
Amol -
Create single billing document by sales order with division 00 and delivery with division 01
Hello,
I have a task to config the SAP system that would be possible create single billing document with different divisions.
Scenario:
1 doc: Create Sales order (division 00 - services) -> Create Billing doc
2 doc: Create Sales order (division 01 - materials) -> Create Outbound delivery and Post good issue -> Create Billing doc.
Sales order 1 and sales order 2 have the same:
dates;
custumers;
Sold-to-party;
payment terms;
incoterms;
and others;
When I create VF01 with documents Sales order and Outbound delivery system splits in two different billing documents due to different divisions.
I read www.scn.sap.com forums and test it DV system.
I use and change settings in these transactions:
VTFL
VTFA
VOFA
VOFM
But it doesn't work.
Please give me feedback or give advices how to config in antoher way.
Thanks a lot for your time and efforts.
RolandasYou need to do configurational change and customization as recommended in the following note:-
Note 50752 - Invoice combination for different divisions
G. Lakshmipathi -
Sales Order Number not flow to Finantial Document
Hi!!
I need help with the interface between SD and FI.
I´m doing the following process:
I create a sales order (Tx:VA01) and then I Billing it and generate a SD Document and a FI Document.
The problem it´s that in the FI Document, the Sales Order field it´s empty and the Position of the Sales Order is filled correctly.
(No message appeared when I save these documents)
Then when I want to run the F.50 for closing. The batch input show the following message:
SD document is not in the database or has been archived
Message no. V1302
Diagnosis
This message is issued if no document header (VBAK) can be found
(discrepancies in R/3) for a sales requirement single record.
System Response
In the initial sales order supply, the following error message appears
'Document xxxxxx not available' V1 302.
Procedure
If an error occurs in initial data supply in APO, discrepancies have
occurred between the requirements and sales documents in R/3. This
discrepance can be corrected in R/3 using report SDRQCR21.
Can anybody help me with this??
Thanks in advance
FranciscoHi
Kindly follow the below procedure .
First i would suggest that you check the short dumps using ST22 tranaction.
Second check if you notice any update terminates via transaction SM13.
Check these threads
UC_OBJECTS_NOT_CHARLIKE
Runtime error UC_OBJECTS_NOT_CHARLIKE
You can also check in table VBAK whether the quote references are exists.
or
This discrepance can be corrected in R/3 using report SDRQCR21.
Regards
Aravind
Maybe you are looking for
-
Can my family share purchased music from iTunes
We all have our own accounts with iTunes but it seems stupid that have to buy the songs 4 or 5 times. If I was to go out and buy a CD and import it, we could all use it. Is there a way that I can buy music from iTunes and my family can use it? Or the
-
This computer is not authorized to play filename .m4v
Hey all, First post so be gentle. I've attempted several times now to play my downloaded tv episodes from within itunes. When I click to play them I get a message saying "This computer is not authorized to play <filename>.m4v" It then gives me an opt
-
My documents are printing in Asian font. I have HP officejet6310 all in one. When I go into properties, then advanced, "Download Asian Fonts" is checked, but I'm unable to uncheck. Any ideas?
-
I am trying to view live TV and listen to live radio in Safari. The media is in a foreign language. Safari does not play it. Sometimes I get a message asking for Windows Media Player. Can Safari even play live media from the internet? If not how can
-
Somebody tell me what is wrong with this statement
CLEAR: V_NETPR. COMPUTE V_NETPR = ZZ_LS_KUMU-NETWR / ZZ_LS_KUMU-BASMENG. ZZ_LS_KUMU-NETWR: 362000.00 ZZ_LS_KUMU-BASMENG: 960000.000 and the result is V_NETPR: 0.00 Please let me know what should i do to get the value