Forms - query for certain order type
HI
We have a requirement
WE have customized the quick sales order form.
We need to give the ability to users to only query based on certain Order type
Since its at a OU level how exactly to achieve this.
Can we do personalization in this case?
Please help
Thanks
You can achieve this in many ways but at FORM level u can do this by setting programing Default_where clause in your form on the master block which mainly queries the data (other child tables already linked with master)
All u have to do
- Create procedure at FORM level which takes a parameter of Company type sets the default where of the block based on it
set_block_property('Master_block',default_where,' comp_id = '||:paramter.comp_id);- Then execute query based on it
Setting up parameters u can create table with all User names with Company ID
whenever user logins u can save its company id in a global variable and when user opens a query form pass that global variable to Parameter.
Hope it helps
Baig
[My Oracle Blog|http://baigsorcl.blogspot.com/]
Similar Messages
-
VA01 Item category display only for specific order type
Hi,
I have a requirement to deactivate(display only) item category field in VA01 table item for certain order type . I tried the user exit MV45AFZZ(USEREXIT_FIELD_MODIFICATION). This is working only if the table item has a value. i.e I could able to enter an item category first and then enter the material and quantity.
So please suggest any alternative how to make the item category field(VBAP-PSTYV) column display only for centrain order type.
Regards
Aromal RHi,
Create a Custom Authorization Object so that you can control it for certain users. 2. Write implicit enhancement spot in the include TCS MV45AF0T_TCTRL_U_ERF_AUFTRAG_I,
FORM TCTRL_U_ERF_AUFTRAG_INIT
AUTHORITY-CHECK OBJECT 'ZITMCAT'
ID 'ACTVT' FIELD '02'.
IF SY-SUBRC NE 0.
* DATA: WA_COLS LIKE LINE OF TCTRL_U_ERF_AUFTRAG-COLS.
LOOP AT TCTRL_U_ERF_AUFTRAG-COLS INTO WA_COLS.
IF WA_COLS-SCREEN-NAME = 'VBAP-PSTYV'.
WA_COLS-SCREEN-INPUT = 0.
WA_COLS-SCREEN-OUTPUT = 1.
MODIFY TCTRL_U_ERF_AUFTRAG-COLS FROM WA_COLS.
ENDIF.
ENDLOOP.
ENDIF.
Regards
Aromal R -
Hide values for certain condition types in Quotation Saleorder and Invoice
Hi All,
I have written code to hide values for certain condition types in LV69AFZZ,
this works fine in the ITEM LEVEL.
But for the same condition types, I could not hide the values in the HEADER LEVEL.
Unless I hide it at header level also, this is useless.
Please guide me how to do it.
Thanks & Regards
PradeepHi,
We have been using FORM USEREXIT_FIELD_MODIFICATION of LV69AFZz for item level & FORM USEREXIT_FIELD_MODIFIC_KOPF of LV69AFZZ for hiding heade level conditions.
I hope this helps,
Regards
Raju chiutale. -
Pricing Error in certain Order types,
Hai Guys,
I am facing a peculiar error. I had created a pricing procedure and assigned it to the Sales area, CustPP, DocPP.
Whenever I make a SO, the pricing flows fine and I can save and process the document.
But for certain document types - Quotation / Third Party Sales, the pricing procedure flows fine but shows an incompletion procedure with incomplete data - "Net Value". I am unable to enter to any new condition type in the condition and complete it. Even if I save this incomplete document, I am unable to deliver it.
Can somebody help me why it is so?
RegardsHi,
I think your problem is Incompletion Procedure, but not Pricing.
When you run pricing are you not getting a value in the document. That is why the incompletion procedure makes it incomplete.
Here are couple of things you can do.
1. Check Transaction VUA2 for your "quote "document type and its incompletion procedure then goto OVA2 and check for all the fields marked for incompletion in that procedure.
Do this for items (Item category) VUP2 and OVA2. See if you find Net value as one of those fields. Once you remove net value from incompletion procedure you will not get this error.
(OR)
2. Make sure your quote or 3rd party order has a price in the document. You won't get this error then.
Hope this helps !! -
Block Production Order Creation for Particular Order Type
Hi Experts,
I want to disable the production order creation for a particular order type XX01 however there are some existing orders for this order type which should be processed further.
In other words my objective is to -
1. Block new Production order XX01 creation -
2. Processing of order type XX01 should be possible.
Is there standard setting available to achieve this or user exist is the only option..
Regards,Hi
You can use the user exit PPCO0006 and its function mdoule EXIT_SAPLCOZF_003 to archive that. That function module is called when the user click enter after inputting the material/plant/order type in CO01 then you just need to check the imported value CAUFVD_IMP-AUART which contains the inputted order type then rasise an error message to tell user that the order type cannot be used due to certain reason. The source code need to be written there is very simple.
Regards.
Leon. -
Query for Sales Order Analysis
Dear Experts
I have written a Query for Sales Order Analysis and would like to have help on this.
The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum] ORDER BY T0.[DocNum]
where U_Total_GP is a UDF for storing the GP of each order.
After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. However, the query does not calculate column total for total amount and total GP. Although I know the total for each column can be displayed by pressing "Ctrl" + Click on the column title, it would have to be done from time to time.
Therefore, I would like to modify my query in order to calculate the column totals when executed. Are there any suggestions for this?
Thank you
Regards
EltonHi Elton,
Try this:
SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
Union ALL
SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
FROM ORDR T0 WHERE T0.[DocDate] =[%0]
ORDER BY T0.[DocNum]
Thanks,
Gordon -
Can I use automatic Free goods determination for QT order types.
however i am using it for OR right now and i have done the related configuration for QT as well but system is not detmining Free Goods for QT order types.
I have also maintained the below entry in "Determine Item Category for Free Goods Item"
Sa Type ItCGr Usg. HLevelItCa DfltC
QT NORM FREE AGN AGNNHi
Std SAP itself doesnt support Free Goods at quotation level
Standard SAP supports Free Goods at quotation level and hence the item categories AFNN and AGNN are provided in the standard SAP. But, the Automatic determination of Free Goods is not possible for SD documents under category other than 'C'.
In your scenario...since the automatic determination is not possible, think about handling the functionality manually or through user exits.
Thanks,
Ravi -
Different movement types for Goods Issue for different Order Types
Hello Experts,
Can we maintain different movement types for Goods Issue for different Order Types at the time of automatic creation of reservations?
Thanks and regards,
SatyajitSatyajit,
Folow the link given,
Re: How to add new movement types when creating reservation?
Hope this helps you.
SmanS -
Multiple Document Types For Purchase Requisition For Different Order Types
Dear SAP Gurus,
I want to have different document types of Purchase Requisition for different Order types.
For Example:
for Order Type ZT01- Document Type used should be YR01
for Order Type YA01- Document Type used should be ZR01
How could this be achieved?
Regards.hi
Kindly check the user exit for the same
COZF0001 or COZF0002
regards
thyagarajan -
Where can I get a list of available selection for certain dict type?
Where can I get a list of available selection for certain dict type in code? For instance, when I use SE16 to view VBFA table, I am presented with many filter criteria. One of them would be "VBTYP_N". When I click on the square next to the option, I am presented with a list of possible values to select from. Where can I get the list of this possible values for any given dict type in code?
Hi Frank,
The list of possible selection you see can be from diferent sources
1) Search helps defined either programatically or search helps defined at table level.
If it is a Z Selection screen check the program, then the data declaration of the parameter
2)Check tables provided at field level. They can be through use of foreign keys. The proposal generated could be simple compund ..
3) Fixed values at Domain level ()
Please refer to this link as well for detailed explanation
[http://help.sap.com/saphelp_470/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm] -
Hi,
I want to FMS Query for Purchase Order.
I want to display the weight * price in one user define field.
Please suggest meHi Tushar.......
Try this.......
declare @var1_wt as varchar(255)
declare @var2_Pr as varchar(255)
declare @var3 as float
declare @var4 as float
set @var1_wt=$[$38.58.0]
set @var2_Pr=$[$38.14.0]
set @var3=cast( substring(replace(@var1_wt,',',''),0,len(replace(@var1_wt,',',''))-1) as float)
set @var4=cast(substring(replace(@var2_Pr,',',''),0,len(replace(@var2_Pr,',',''))-3) as float)
select @var3 * @var4
Regards,
Rahul -
When i tried to make confirmation for Production Order through CO15 transaction , i receive the following error message “ Production scheduling profile for production order type 10 does not exist – SAP Message No.10085 “
In Work Scheduling view, Production Scheduling Profile is maintained as per OPKP only.
How to check whether production scheduling profile is maintained for relevant order type 10.
To do this , i went to OPKP & KOT2_OPA transactions but i don’t know how to check. I guide me through with a screen shot.
Also, pls explain about “Order Type 10” and how it is linked with material and order execution.
Looking for a detailed explanation with screen shots , since i am new to SAP.
Thanks With Regards,
Dinesh Kumar V.Hello Dinesh,
Please check the order type dependent parameter in OPL8 here you will get the Substitute Scheduler
Then go to OPCH and check valid production scheduling profile assign here as per OPKP to your production scheduler for your plant.
Production order have Order category as 10 Process Order 40 in standard SAP you can check this in OPJH.
Best Regards,
R.Brahmankar -
Change pointer triggers for one order type but not for other with LOIPRO
Hi all,
We have old production order type ZP01 since last 3 years. Idoc LOIPRO are triggered properly. Now we introduced new production order type ZP02, but idocs are not triggereing for these prod. orders. They both are production orders with different order types but same message type LOIPRO
I noticed that change pointers are not getting written to CDHDR and CDPOS for this new order type. For old order type they are getting written to CDHDR/CDPOS. Does any one know where is the issue in config.
Currently BD52 contains following entries for LOIPRO
ORDER-AFKO-AUFNR
ORDER-AFKO-KEY.
Thanks in advanceAnyone with an idea.
The project went live by using RCCLORD or RCCLTRAN, but still the same orders keep triggering. How do we restrict the already processed production orders. -
Seperate Adobe Form printing for each order
Hi,
I have a scenario where i need to print Adobe Form for each order.
Right now i am handling this from print program(Executable) by looping at the Adobe form FM for each order.
So it will print seperate Adobe form for each order with corresponding Header & Item Data.
To get next order i need to hit on right & last arrows etc...
So right now i am handling it through Print Program.
Is there any way it can be handled directly at Adobe Form level.
By passing all orders to Adobe FM at a time (Intsead of looping) and handling Adobe Form printing for each order at Adobe Form level itself!
Thanks in advance.
Thanks,
Kumar.simple,
create one new program not driver program . Then u have to call that FORM
1.Get all the data created during the dates.
split the data into , based on the date ranges.
2.
loop at itab1.
perform open_form
write_form
close_form
endloop.
loop at itab2.
endloop.
1) I need to print the form automatically when an Order is created.<b>---->COnfig</b>
2) Every June 15th and Dec 15th I need to print the form for that Order
automatically with some other data.
<b>---> what ? what u split ?</b>
*--Similarly I need to trigger the form in this way automatically for all Orders.
<b>---> Config+ABAP</b>
How can I trigger the Form automaticall for the above requirement
Regards
Prabhu -
Production scheduling profile for production order type 10 does not exist
Kindly suggest me how to resolve this error
Production scheduling profile for production order type 10 does not existHi Archana,
Go to material master-work scheduling view and check what is the production scheduling profile maintained for the same materisl -plant combination.
then go to OPKP and check if production scheduliong profile is maintained for relevent order type 10 in custmizing. If not maintain one and it should resolve the error.
Maybe you are looking for
-
I need some assistance on stopping my backspace key from "sticking" on my iPad 2?
I have reset, restored, and rebooted. Nothing is working. My backspace key goes rogue even if I only hit it once. I've had this pad for 3 days and I'm a bit frustrated. I've noticed that the backspace key goes haywire in almost all third party apps b
-
Apple mobile device support cannot install. rolling back action.
I cannot uninstall amds. also cannot repair. I am using windows vista home premium x32. After uninstall itunes and its components, still the same instruction by apple. itunes 10.4.
-
Since purchase of my macmini (2011 model) I have been able to wake it from sleep by hitting the (wired) keyboard space bar. However, I recently updated the OS to 10.7.4 using the combo (1.4Gb) update, since when I cannot wake the macmini in that way.
-
I know my Apple ID and password is correct, but then I enter them to activate FaceTime it says one of them is wrong. Can anyone help?
-
Mounting USB 2.0 thumb drive
I can't get my iMac running OS X (10.5.6) to mount a USB 2.0 thumb drive. It appears in System Profiler but can't see it on Finder or Desktop. I've already reset the SMC.