Adding Quantity in Sales Order form in 11i
I am trying to use forms personalization (under 11i) to add-up order quantity of multiple item lines to check against certain value. if it is less then let the order be booked, if it isn't then give error and stop processing. Will appreciate if someone can help, urgently.
I am able to check the quantity and preform the check at each line level but not able to figure out how to add up the quantity if there are multiple lines.
This is to be done in Sales Order form under Order Management.
Thnx
Suhail
Hi;
For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
Regard
Helios
Similar Messages
-
Doubt in the sales order form - Technical
Hi Frenz,
i have a small doubt in custom.pll.
we have a requirement to give a pop up message, wenever we do scheduling action in the sales order form (Oracle 11i).
i have written the code like below
if
((block_name = 'LINE') AND ( event_name = 'SPECIAL14'))
then the pop up message.
the problem im facing is, the pop up is working fine, when we schedule action is done by(Tools--> scheduling)
but it is not working whenever i right click on the sales order line and do scheduling.
what code do i need to include for the right click scheduling?
please advice.
thanks,
LpHi All,
Does any1 have any suggestion for my question...
Thanks,
Lp -
Issue while updating(Changing) quantity on line at quick sales order form
Hi,
I am facing a issue while changing quantity ordered on the order line in quick sales order form. (R12.1.3)
Although the same logic works exactly as required in 11.5.9.
There is a custom logic, post booking line status is Awaiting Shipping.
Now when quantity is changed +(Saved), the status changes to a custom state but at the same time a new row is created with the same line id but different reservation id in the MTL_RESERVATIONS.
The quantity here is the difference between the original quantity and the new entered quantity.
And post completion of the custom logic the original row is updated, but being there a additional row the quantity reserved at the shipping tab comes wrong.
Our requirement is of update which is happening but not the additional insert which is going into MTL_RESERVATIONS.
The logic is perfect in 11.5.9 and no additional insert is being made.
Kindly help and give some ideas for the possible reason the issue.
Please ask for more information if required.
Thanks,
VishalHi Mahendra,
I have gone through the note id that you have given. sorry to say that, that is refering to diffrent issue.
Actually what i did is, At form header level, I have hide the fileds using the folder options. once after changes I have closed the form and re-opened it. by that time I can see that Button names got changed in bottom of the "Quick sales order form". Not sure how it become changed. there five buttons over the form, only two button names got changed.
Kindly suggest any other options. -
Item & Discount added in the Sales Order
Dear All,
I have a requirement where in once a Sales Order is created with approved Quotation, then no new extra items to be added in the sales order.
Quantity in the existing line item can be decreased to the lower side but no addition in quantity to be done.
Also no change in discount condition types to be done.
Please suggest the approprite Config. If there is no standard config, then please suggest the code which needs to be written in the approprite Userexit.
Best solution will be rewarded.
Thanks and regards,
Dilip Kumar RaoHi,
To restrict creation of new items and to restrict addition of quantity to existing items, use following user-exits and coding.
Program : MV45AFZB
FORM USEREXIT_CHECK_VBAP USING US_DIALOG.
*{ INSERT D50K904678 1
if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
check vbap-vgbel <> space and vbap-vgpos <> space.
read table vvbap with key vbeln = vbap-vgbel
posnr = vbap-vgpos.
if sy-subrc eq 0.
if vbap-kwmeng gt vvbap-kwmeng.
message e499(sy) with
'Quantity entered is greater then referenced'.
endif.
endif.
endif.
*} INSERT
ENDFORM.
Program : MV45AFZZ
FORM USEREXIT_MOVE_FIELD_TO_VBKD.
if sy-tcode eq 'VA01' or sy-tcode eq 'VA02'.
loop at xvbap where vgbel eq space
and updkz eq 'I'.
exit.
endloop.
if sy-subrc eq 0.
message e499(sy) with 'New Item is not allowed'.
endif.
endif.
ENDFORM.
-Alpesh -
Change in an LOV query of Sales Order Form not working
Hi,
I wish to change the the Order Type (in the Sales Header) displayed in the Sales Order Form when viewed from a particular Responsibility.(11i Instance)
To be specific only certain order types should be displayed in the LOV when the User tries to create Order from that Responsibility.
In that process I created an FP with Action --> Builtin -->Create Record Group From Query
Then in Property-->Object Type-->LOV and Target Object -->ORDER_TYPE Value-->Name of my Query Group
I downloaded the Sales Order Form and modified the Query of the Group keeping the columns selected and the view used same and added in the Group I created.
But it didn't work out.
I tried out by changing my Target Object to SRV_ORDER_TYPE and its corresponding query from the Oracle Form.
But still it didn't work.
Please tell me where I'm going wrong.
Am I not choosing the correct target record group LOV?Hi Robert,
I have successfully accessed a matrix using Visual Basic .Net. It has been quite a challenge while I was at it.
One important thing to understand is that (unless you access the datasource) in order to access a particular control in a matrix object, this control needs to be visible and enabled. It is like simulating a user accessing the matrix via GUI... if a control is not enabled, you cannot access it (as said via control). That might explain question 1.
Short sample on matrix handling is here:
http://www.itwiki.net/ow.asp?SboHowToReadFromAndWriteIntoMatrix
<b>Q2 - Cell count:</b>
I have personally never used the Cells count method. It should always return the number of rows. My only guess here is that you are using an old reference on the matrix object in which the rows are not there yet.
Dim oMatrix As SAPbouiCOM.Matrix
Dim oColumn As SAPbouiCOM.Column
Dim oEditText as SAPbouiCOM.EditText
oMatrix=YourSboForm.Items.Item(38).Specific
oColumn=oMatrix.columns.item(strColumnname).specific
oEditText=oColumn.items.Item(1).specific
Msgbox(oEditText.String)
The above code should get you the first cell of the first row of the given matrix.
HTH Lutz Morrien
P.S.: If you need any more sample code, check with the SAP matrix sample or send me a mail (adress see Http://www.itwiki.net) -
Open quantity in Sales Order did not update after cancelling Reserve Invoice
Client created Credit Memo with reference to Reserve Invoice but this did not update the open quantity in Sales Order. Client is using SAP B1 8.82 PL9. I tested this in SAP 9.0 and still same behavior. Is there a work around other than creating another SO?
I checked Document Settings and "Reopening Doc by creating credit memo based on Doc" is enabled.
Thanks in advance.Thanks for the reply. How will the client be able to make new reserve invoices from the SO? They are trying to make partial reserve invoices from the sales order. I already suggested to just change the quantity in the reserve invoice before adding. But I have doubt because the SO might close prematurely before they complete the quantity in the SO because open quantity is much less then the quantity in SO.
SO Quantity: 100
Open Quantity: 40
Reserve Invoice 1: 60
Reserve Invoice 2: 40
SO closes before they can make Reserve Invoice 2 -
So, I have basically tried to take a paper form we have and convert into a fillable form, but I have a few questions.
1.) Someone on here had a marvelous, MARVEOUS form that had a button that just basically added a new row for each item, rather than limiting it to a specific number (7 on my sheet) is there an adobe script way of going about that -- or was that just a propietary thing to that form? (I've attached the file)
2.) I have a password activate lock/unlock button that is used to lock the form prior to sending it as an un-editable attachment in e-mail, so the order processor can't accidently open it and change the values. The mousedown command hides the buttons. I was wondering if there was a way to just have the form lock/unlock without a password prompt -- just actually do it upon clicking?
3.) Is there a way to put a space between values that pop up in a js box? For instance, when a user tries to print a form without filling out required fields, there is a box that will get the number of required fields and the list them -- but they are kinda jumbled. I'd like to space them out
4.) Is there a way to actively change the name of the file based upon the data in a particular field? For instance, the name of the form is "Rhode Island Showroom - Sales Order Form", but when a value is placed in the name field -- the form is changed to whatever is in that field.
5.) Is there a way to render some fields non-taxable or taxable. For instance, if we are shipping an item to a zipcode where we have a store, we have to charge sales tax for that zipcode. If we are shipping to zipcode without a store, we don't charge tax. If they buy something from our store to take out with them, we charge state sales tax, but the rest of their items will be exempt if they are shipped to a non-store location zipcode...etc. Basically, a checkbox or a radiobutton that will prevent/allow taxability of a field.
I think that's everything! I would definitely appreciate feedback, criticism, suggestions or ways to trim-down on script!
Thanks!
I have attached a link to the super-awesome sales form and my form as well.
http://dl.dropbox.com/u/37155721/TCB%20Sales%20Sheet%20Final%20Beta.pdf
http://dl.dropbox.com/u/37155721/Lock%20All%20Fields_Purchase%20Order.pdfFor #1, that's a form created in LiveCycle Designer, which comes with the Windows version of Acrobat Pro. XFA forms can be set up to be dynamic, which allows additional lines to be added.
For #2, if you don't want to bother with the password, the code can be reduced to just:
var f = getField("secure.Date");
var readonly = !f.readonly;
getField("secure").readonly = readonly;
For #3, you could change the line of code to:
//tool tip is the field's 'userName' property;
var tt = " " + f.userName;
Although it would be better to rewrite the routine that you're using to provide a better output. If I were doing this, I'd put each field on a different line.
For #4, no, unless you create a folder-level JavaScript routine that saves the document with a file name based on data in the form. You would have to create a button on the form that when clicked executes the code to save the file. This means that each user would have to manually install the JavaScript file in the correct locationon their machine.
For #5, yes, but to you want to control individual items or the total order? -
Hi,
Sales order form takes lots of time to get closed on r12.0.4 vison instance why?
RegardsHi,
Can you reproduce the issue on some other instance (same release)?
Was this working properly before? If yes, any changes have been done recently?
Try to generate the form via adadmin, and run the "Gather Statistics" concurrent program and see if this helps.
Also, enable trace and generate the tkprof file, this may help in getting details about the issue -- (Note: 296559.1 - FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12).
The following documents may be applicable, go through it and see if it helps.
Note: 845014.1 - Saving Of Sales Order Reservation Too Slow With Lots
Note: 739486.1 - Performance Issue When Querying Sales Order From Sales Order Form
Regards,
Hussein -
Problem binding a matrix in the Sales Order Form
Hi everybody!
I am working in an Add-On. What I do is modify the sales order form in runtime. I catch the event when the form is loading and then I add a new folder with some fields and a matrix.
I've got a matrix in this form with the employees that participate in an order and when I go through all the orders by using the next and previous record buttons I have to rebind it to show the participants in a specific order. The code for the event is the following:
If (pVal.ItemUID = "57") And pVal.Before_Action = False And pVal.EventType = et_ITEM_PRESSED Then
BindParticipantGrid
BubbleEvent = False
End If
After bind the grid, BO shows a System message indicating that the form has been changed and asking me if I want to save the changes to the order. Looks like, whenever the bind function finds rows to add to the matrix it changes the mode of the form by adding rows to the matrix. How can I prevent that when I'm in view mode?
This is the code for the binding function
Sub BindParticipantGrid()
Dim myForm As SAPbouiCOM.Form
Dim oMatrix As SAPbouiCOM.Matrix
Dim rs As sapbobsCOM.Recordset
Dim strSQL, OrdreNr As String
Dim oText As SAPbouiCOM.EditText
Set myForm = SBOApplication.Forms.GetFormByTypeAndCount(139, 1)
Set oText = myForm.Items("8").Specific
If oText.Value <> "" Then
OrdreNr = oText.Value
Else
OrdreNr = "0"
End If
Set oMatrix = myForm.Items("matrix").Specific
oMatrix.Clear
Set rs = myCompany.GetBusinessObject(sapbobsCOM.BoObjectTypes.BoRecordset)
strSQL = "SELECT [@HL_PART].Code as Code, [@HL_PART].U_DocNum as DocNum, [@HL_PART].U_EmpId as EmpId, [@HL_PART].U_EmpName as EmpName, [@HL_PART].U_Message as Message, [@HL_PART].U_MessRead as MessRead, [@HL_PART].U_MainPart as MainPart, [@HL_PART].U_StartDt as StartDt, [@HL_PART].U_StartHr as StartHr, [@HL_PART].U_FinishDt as FinishDt, [@HL_PART].U_FinishHr as FinishHr, [@HL_PART].U_Finished as Finished FROM [@HL_PART] WHERE [@HL_PART].U_DocNum = " & OrdreNr
rs.DoQuery strSQL
While Not rs.EOF
myForm.DataSources.UserDataSources.Item("EmpId").Value = rs.fields("EmpId").Value
myForm.DataSources.UserDataSources.Item("EmpName").Value = rs.fields("EmpName").Value
myForm.DataSources.UserDataSources.Item("Message").Value = rs.fields("Message").Value
myForm.DataSources.UserDataSources.Item("MessRead").Value = rs.fields("MessRead").Value
myForm.DataSources.UserDataSources.Item("MainPart").Value = rs.fields("MainPart").Value
myForm.DataSources.UserDataSources.Item("StartDt").Value = rs.fields("StartDt").Value
myForm.DataSources.UserDataSources.Item("StartHr").Value = rs.fields("StartHr").Value
myForm.DataSources.UserDataSources.Item("FinishDt").Value = rs.fields("FinishDt").Value
myForm.DataSources.UserDataSources.Item("FinishHr").Value = rs.fields("FinishHr").Value
myForm.DataSources.UserDataSources.Item("Finished").Value = rs.fields("Finished").Value
oMatrix.AddRow
rs.MoveNext
Wend
oMatrix.SelectionMode = ms_Auto
End Sub
I will apreciate all king of help
Thanks in advance.You have a property of the form which allows you to change the mode
myForm.Mode = fm_ADD_MODE
myForm.Mode = fm_EDIT_MODE
myForm.Mode = fm_VIEWMODE_MODE
You may change it after you modify you matrix data to fm_VIEWMODE_MODE and I guess you won't have the system question again.
Sebastien -
When reducing qty in quick sales order form, reason field is non enterable
Hi,
When I am reducing the quantity of a booked sales order, its giving me message that "You must specify reason for the change" but reason field in quick sales order form is not editable. The same functionality is working fine in standard sales order form.Check if 'Audit Trail' is setup in OM Parameters for the OU.
Also check if "Processing Constraints" are setup correctly.
For Qty reduction we need to add a new row called "delete".
Thanks
-Arif. -
Blocking Quantity in Sales order
Hi,
We have a requirement to block Quantity in sales order.
PP is not integrated with Sales order, its a MTO ( but actually client does not follow MTO in SAP)
Once the production is completed for that sales order......he want to block the sales order quantity either manually or automatically ( they use a z transaction to declare production complete against sales order ) but this should not stop him doing delivery and billling.
Please let me know how can we do this.
Thanks
Venkata Rama Reddy.KHi,
The Process goes this Way
Sales order is created and confirmed ( by mail ) to PP that production should be started.
PP completes the production and they update the qty against sales order number in a z transaction once production qty matches work order qty. the z transaction stops adding qty in this z t.code.
What customer wants is once they update this ztransaction with complete Qty ( which equals sales order Qty) , the sales order item quantity should be locked automaticallly so that quantity can not be modified once this z transaction is completed.
Hope this information provides clarity.
Please suggest a solution.
Thanks
Venkata Rama Reddy.K -
Automatically populate sales order form
I am trying to automate data population on a sales order form. Can I populate items (will come from a UDT) and concerned Batch No (Batch No have a UDF with customer code to identify that a specific lot is dedicated to the customer. Is there a way on SO that if I choose item, Can I assign the Batch# from code so that user do not have to manually select it?
AbhishekHi Abhishek,
Technically speaking, using the UI-API object, you can almost simulate any thing that a user can do on the application. This include the opening of a Batch Form, filling up the batch form and so on.
example :
To open up the batch form, you need to send the Ctrl+Tab key when the focus is in the Quantity column using the Application.SendKeys method.
Then catch the event of form load of this Batch Selection screen, and fill in all the required data by coding.
It is tedious though that you need to know before hand all the events that are going to trigger when performing this job.
And the last thing is that the user would see (at least) the form opening and closing - this would be a bit ugly to the user.
Regards
Edy -
On Sales Order form Validation for selection tax category as Form C
Hi All Experts,
Please help me out for the Validation on Sales Order Form that if CST (Central Sale Tax) Sales Tax code Selected in the transaction form should not get added (Posted into the system) till the Tax Category in the Tax Tab is not selected with Form C.
Thanks in advance...
Arinjay Shahhi,
In sales order,you can manually update transaction category even after adding document,
Why there is need for validaion,If u requires validation use approval procedure,since it
can be activated only at header level.
Use this query to trigger approval procedure
Select DISTINCT 'True' Where $[RDR12.TransCat] IS NULL OR $[RDR12.TransCat] = ' '
Jeyakanthan -
How to Restrict Confirmed Quantity in Sales Order (Based on Batch Expiry)
Dear SD Experts,
Currently our sales order confirms any amount of quantity if stock is available. And only during delivery it checks for the expiration of the batch and reduces the delivery quantity to batches available in stock within expiry.
But since we are doing a bulk creation of deliveries at the end of the day, the check for expired batches is happening too late and no visibility for the data entry operators of stock that cannot be delivered during creation of the sales orders.
So I am looking for solution to restrict the confirmed quantity in sales order to actually confirm only stock what can be delivered. i.e. based on expiry of the batch.
Thanks!hi
in Logistic general - batch mangement - batch determination allocation and check activation - maintain allocate SD search Procedure/ activate check
check this for your sales area and sales document type and then in the search procedure maitain the strategy to check the Expiration date.
regards,
Sudhir -
Free goods determined in Delivery over Order Quantity in Sales Order Item
Hi Gurus,
I've a problem about using free goods determination.
First I created free goods master record with following information
ZG1010012060075 From 100 PC -> Free good ZG1040012060075 2 PC
Free goods Category = '2' (Exclusive)
Free goods delivery control = 'E' (Delivery proportional to quantity in main item)
Then I've created Sales Order with
Item 10 ZG1010012060075 4,000 PC.
Item 11 ZG1040012060075(Free good) has been automatically determined for 80 PC
Then I've splitted Item 10 into 4 deliveries. The result of free goods determine in each delivery are as follow:
Delivery#1)
Item10 ZG1010012060075 = 1,176 PC
Item20 ZG1040012060075 = 24 PC
Delivery#2)
Item10 ZG1010012060075 = 1,176 PC
Item20 ZG1040012060075 = 24 PC
Delivery#3)
Item10 ZG1010012060075 = 1,176 PC
Item20 ZG1040012060075 = 24 PC
Delivery#4)
Item10 ZG1010012060075 = 472 PC
item20 ZG1040012060075 = 9 PC
*Remark : Total quantity of 'ZG1040012060075'(free goods) = 92424+24 = 81 PC
(Greater than 80 PC)*
I think the system determined free goods in Delivery#4 correctly due to rounding up. But It might not be over the order quantity in Sales Order Item 11. Even though I've set the item category in delivery with Check overdelivery = 'B' (Situation rejected with an error message), the free goods are determined over order qty. BUT if I change delivery qty in delivery#4 Item20 from 9 PC -> 8 PC -> 9 PC, the error message occurred.
My point is to fix the system not determine free goods in delivery items over order quantity in sales order item.
Has anyone met this situation before? Do you have any idea about this issue?
Best Regards,
Prachya LalitnorasateDear Sai,
Thank you for your advice, but it didn't solve my problem.
I would like the system to determine free goods with proportional to main item AND In the last delivery main item delivered completely free goods must be determined equal to remaining open delivery item.
Do you have any idea about configuration/customization?
Maybe you are looking for
-
Looking for remote control App (iPhone) to use with iMovie
I just got a Macbook Air, and my infrared Apple remote control doesn't work with it. I wanted to be able to do presentations (in this case using iMovie) and be able to have a remote so that I could pause, go back, fast forward, i.e. the usual things
-
IPhoto 6.0.5 Crashes when opening after asking to import photos not in lib
Hi, I wonder if any one can help me with this. Each time i open iPhoto (6.0.5) I get a message stating "67 photos have been found in the iPhoto Library folder that were not imported. Would you like to import them?" if I click yes the program starts t
-
HT1725 Itunes download failure
I downloaded a song and the download completed but when I play the song it stops afer 30 seconds when the song is 3:39 long. I believe my internet connection was messed up so how can I get the full song without re purchasing it?
-
Hi, I've a problem while saving the waveform to a spreadsheet. The problem that I'm facing is that I'm not able to save/change the time-axis of the waveform graph into the excel spreadsheet. The attachments below are what I've programmed on. 1st file
-
The battery on my HP Pavillion G Series (running Windows 7), went out so I ordered new one. I placed the battery in and and it opened to show a screen telling me to either choose "Launch Repair" or "Start Windows Normally". Either way, the screen fr