'Strange' naming restrictions none databound items in search
I have a none databound item, which I want to use for an advanced search
I want this to map to a variable in the ViewObject. I provided the query bind parameters for this in the JHS group under bindparameters.
The attribute on the ViewObject is called ‘weekNummer’.
Now what I did was create a group in JHS which is called ‘Weekoverzicht’
I added a new item on the JHS group (WeekNr), since the attribute is not databound I don’t fill the attribute name. The attribute is a choice populated by a domain.
Now when I first tried this page it failed, claiming the attrribute ‘WeekoverzichtWeekNr’ Does not exist.
Which is true ofcourse, I was looking for a way to point the none databound item to the attribute weekNummer. I could not find this option, so I decided to run it and see what happend.
What I did next is rename the attribute on the ViewObject to ‘WeekoverzichtWeekNr’ and reflect this in the query and bind parameters.
Now it works fine but the naming convention is a bit weird, It has to be named <groupname><itemname> which is a form of tight coupling I’m not really happy with.
Basically an option to ‘bind’ none databound items to an attribute directly would be very nice.
Was this intended or do I just fail at using JHS?
Anton
The generated jspx is the following:
Note that I added the binding post gen for supplying a dynamic default search value which I mentioned in another thread on this forum.
<af:selectOneChoice id="SearchWeekoverzichtNummer" value="#{searchWeekoverzicht.criteria.WeekoverzichtNummer}" binding="#{WeekoverzichtBacking.currentWeekYear}">
<af:forEach var="row2" items="#{bindings.WeekData.rangeSet}" >
<af:selectItem id="SiAsWeekoverzichtNummer" label="#{row2.Weekstring}" value="#{row2.Weeknummer}"/>
</af:forEach>
</af:selectOneChoice> The corresponding generated bean code is the following.
<managed-bean>
<managed-bean-name>searchWeekoverzicht</managed-bean-name>
<managed-bean-class>oracle.jheadstart.controller.jsf.bean.JhsSearchBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>bindings</property-name>
<value>#{data.WeekoverzichtPageDef}</value>
</managed-property>
<managed-property>
<property-name>searchBinding</property-name>
<value>#{data.WeekoverzichtPageDef.advancedSearchWeekoverzicht}</value>
</managed-property>
<managed-property>
<property-name>searchItem</property-name>
<value>WeekoverzichtNummer</value>
</managed-property>
<managed-property>
<property-name>dataCollection</property-name>
<value>CasWeekOverzicht</value>
</managed-property>
<managed-property>
<property-name>autoquery</property-name>
<value>false</value>
</managed-property>
<managed-property>
<property-name>findModeIters</property-name>
<list-entries>
<value>#{data.WeekoverzichtPageDef.WeekoverzichtIterator}</value>
</list-entries>
</managed-property>
<managed-property>
<property-name>operators</property-name>
<map-entries>
</map-entries>
</managed-property>
</managed-bean>Where the searchItem tag holds the value which I need to name my bind variable on the view object.
I think I called it attribute on the ViewObject earlier which is wrong ofcourse, its bind variable.
I know where to find them, but I always forget the names...
I can live with it, although its not 'pretty'
Similar Messages
-
Hi everyone,
I am modifying a form and have a concern,
is it possible for the user to do a search if he is in a non-based item?
I don't want to base this item but if needed, i would base it as user need to do a search from this item.
Thanks and any help would be appreciated.you can use a based table item then forms use it in the query if the user populate this item
but you can use this item as non-based table and the user populate and you can use to create the query, in the pre-query or changed the where clause conditin property in the block
the usual is the field based on table is very easy, but if you need depending the value populate for the user do other things and not use the value exactly, you can use non based item -
Formatted Search - Calculate GP Base Price for Non Inventory Items
Hi Experts,
On one of our customer's 8.8 PL 15 installation, requirement was to calculate GP for Non Inventory Items (on SO screen). Since SAP does not automatically calculates it we proposed and implemented following solution.
1. Have all Non Inventory Items to be costed at Standard cost so that you can manually enter the cost in the Item Master.
2. Write following formatted search on GP Base Price field so as to calculate the GP Base Price for the Non Inventory Items only. The formatted search must not make any changes to Inventory Items as we want system to calculate the GP automatically (just in case cost changes from SO to Delivery or Invoice).
DECLARE @II AS nVarchar(1)
DECLARE @COST AS Numeric(19,2)
SET @II = (SELECT OITM.InvntItem FROM OITM WHERE OITM.ItemCode = $[RDR1.ItemCode])
SET @COST = (SELECT (OITW.AVGPrice * $[RDR1.NumPerMsr]) FROM OITW WHERE OITW.ItemCode = $[RDR1.ItemCode] AND
OITW.WhsCode = $[RDR1.WhsCode])
IF (@II = 'N')
BEGIN
SELECT @COST
END
3. Formatted search achieves what was originally required however if a user overwrites the Item Code (Inventory Item) in the SO then above formatted search clears the GP Base Price field and sets the GP basis for the item as "Manual". By obverwrite means user first selected item A0001 on line 1 and then entered A0002 on same line i.e. Line 1.
My question here is what is wrong in the formatted search that is resulting in this behaviour.
Any questions please let me know.
Thanks in advance.
Regards
DevinderHi Gordon,
Thanks for taking out time to help me however Key requirement here is
Write formatted search on GP Base Price field so as to calculate the GP Base Price for the Non Inventory Items only.
Your query sets the base price for GP Base Price for Inventory Item to ZERO and Base Price By to Manual.
Note that my Formatted search has a problem only when an Inventory Item line is overwritten. I am not sure if this is a problem with SAP itself rather than my query.
Any other ideas please?
Regards
Devinder -
Searching in non-database items
Hi,
I have a block of which the source is a table.
There are some non-database item in the block.
Actually these fields are from another table.
In the post-query, I populate the non-database items with the table.
My question is : normally I can use 'Enter Query' to seach the records in
the database column. How can I perform seaching with non-database items ?
Thanks
IvanIn a pre-query trigger alter the where clause of the main block to query the main table based on non-database values...
Use the set_block_property procedure and the 'DEFAULT_WHERE' clause or the 'ONETIME_WHERE' property...
example...
set_block_property('MYBLOCK', ONETIME_WHERE,
'where main_table.id in (
select id from my_non_db_block_table where mycol = :my_non_db_field)');
To accept wild cards you will probably have to change the = to a "like" above..
You will have to build your where clause by adding a "and" condition for each non-db field.
Message was edited by:
Mark Reichman -
Non-stockable items - Error of G/L Account - ( Error No - ME45 )
Hi MM Experts,
While creating PO for Non-stockable items I am getting one error which says that - " You can not enter G/L account directly for the controllling area/ Co. Code".
Can u pls. help on this issue..
Thanks & Regards,
MaheshDear Karthik,
There was an logic in the idoc processing for the text segment of the idoc.
If some text/number avaialble in this segment (text) then system will check for the first 4 characters as chart of accounts and next 3 characters as transaction and look for the GL account in the T030 table of the OBYC.
In my case there was a space (more than 4+3=7) and system was taking 4 spaces as COA and 3 spaces as transaction key and looking for the GL account in T030 table. And unfortunately there was an blank entry in T030 table and due to this system unable to find the GL account for this combination (Spaces).
To resolve this issue go to SE16 and give table name EDID4 and give the segment name (segment of text field) and idoc number and search. You will get all the text related segments and try to find the segment having Space before the text/numeric filled in that segment.
There after edit the IDOC and remove the space from the text field of the segment and try to re-process the IDOC from BD87 transaction code.
Regards,
Syed Abdul Mazid -
Clearing Non Open Item Managed documents
Hello,
we have an existing G/L account where it was previously set to non open item managed. after some time, they have switched it to OI managed. since the balance of this account is 0, they were able to switch it successfully.
problem is, during FBL3n, these documents (that were posted when the account is still non open item managed) is listed in the open items. can this items be "cleared"?
thanks
Moderator: Search SDN and certainly don't post threads, which were locked before, under different names. This is violation of SDN rulesHI,
When u have created the GL and if you have not activate or deactivate the OPEN ITEM mmanagement.
You have to use the follow SAP std progrom. ther are four std program SAP has provide for this these
RFSEPA01
RFSEPA02
RFSEPA03
RFSEPA04
you have to check the documentation of the program to know which one u have to used here for your case .
hope this is clear assign the points.
with regards
krishna -
Converting a GL account from Open Item Mgnt to Non-Open Item Mgnt
Hi All,
I have a GL account which needs to be switched from being an open item managed account to a non-open item managed account. The account has already been posted to. I have therefore posted a document to bring the balance of the account in local currency to zero and have also cleared the account so there are no open items showing (via transaction FBL3N).
However, when I try to untick the 'open item management' box in the master record (via transaction FS00), I get an error message saying that the balance is zero but open items still exist. I'm abit confused as the balance of the account is zero and there are no open items that I can see, even though the system is telling me there are!
Am I missing any steps? Could someone take me through exactly what I need to do to be able to untick the box and set the GL account correctly.
I've already searched on the forum and found advice about changing the settings via OBA5, but when i look at that transaction there are no messages with class FH in there.
Any help would be appreciated.
Many thanks
JamesHello,
In your case, though balance is ZERO, they are not cleared against each other. It is the reason you are still facing the problem.
If ther is no open item management check box, then copy program RFSEPA02 to ZRFSEPA02 and append the initialization control.
If there is already open item management but you want to remove then copy RFSEPA03 to ZRFSEPA03 and append the initialization control.
Do the following steps:
1. Block the account for postings (all check boxes) in FS00
2. Run the customized Z program (Give the company code and account number)
3. Unblock the account for postings (remove all check boxes) in FS00
Take help from your ABAPer to stopping the initilization error check.
Hope this solves your issue.
Regards,
Ravi -
How to Change Open item into Non open item for GL
Dear All,
I have created a GL in FS00 and clicked the open item management for it. 1 entry is posted to that account.Then i have reversed the entry and want to change the Gl from open item to non open item .The message appears as the balance is zero but open item exists.Please suggest how to make it non open
Moderator: Please, search SDNHi,
Check the below threads which are useful.
Open item management status change
How to change Line item to open item management in G/L transaction?
Thanks
Aravind -
Hidden Database Items - Using Non-database Items
I am making my first form. It is based on a table having three columns, two are IDs (primary keys) for other tables ( org_organization_definitions and po_vendors ), and one is an enabled_flag containing either Y or N. In my form I need to hide the IDs of the underlying table, but display the organization_code and vendor_name from the IDs of the records from their respective home tables, and be able to query records by organization_code and vendor_name.
I have tried two methods:
In the first I created a block from the table with the ID and enabled_flag columns, and manually created text items for organization_code and vendor_name that are not database items and manually fill them in the post-query trigger of the block. The problem I ran into with this method was that I did not know how to use the manual text items for searching, and I could not get the LOVs to behave as expected as with database items.
In the second method, I created a view with all of the data that I needed to display, and based the block on that. Of course I cannot update or insert into the view, so I wanted to handle the updates and inserts manually with my own DML statements. With this method I have two problems, I don’t know how to bypass the form runtime not wanting to let me update values, and once I do, I am not sure how to manually go through each record to check to see if it has been changed or not.
I am not sure if either of my methods are the only two options or the best ways. Any help you can provide me with in this matter is appreciated.
Thank You,
Ryanhi,
I have a requirement where I have to use existing database(OLTP) as my source to the SSAS cubes and then to build the reports.
Where for Cubes and Reports I uses SQL Server BI edition. But my existing source data will be in non BI database.
My questions are
1) Can I create Fact and Dimension Model in Non BI Db and connect the same to SSAS and SSRS? What you suggest?
2) Can I use cubes and reports without modifying the existing OLTP DB structure to fact and Dimension?
Thanks
Naveen
1. Yes. you can
It doesnt necessary need to set up a OLAP system. However making design inline with OLAP would be easier to implement in SSAS
2. Again yes
But using OLTP designed tables in SSAS/SSRS would require some additional overheads at querying level like referenced lookups in SSAS vs lots of joins in backend queries in SSRS.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Direct GRN (non order items) to cost center for Non Stackable Materials
Hi All,
We can do direct GRN (non order items) to cost center for Non Stackable Materials.
If it is possible.Please advice me
Thanks In adanceHi,
Your question is not clear.
Ok.
If you want to issue goods to cost center you can use 201 movement type.
If you want do create automatic PO in back ground during goods receipt, you can do it with customization. For automatic PO creation during goods receipt, you can search in SDN, you can get the answer.
Regards,
Biju K -
How to restrict number of items in billing documents
hi,
is there any procedure for restricting number of items in sales order level or any document level.
regards,
balaHi,
You have to maintain the following in addition to our Guru,s reply
You must also go to copying control for order/delivery to billing document at item level under "Data VBRK/VBRP" and maintain routine 006 "individual invoice limited" or a similar routine that accesses the data maintained here.
then it will work.
Regards,
Ravi Duggirala -
Restriction of number items in sales order
hi,
how can i restrict no of items in sales order?
eg:
sales order has been created for 10 items and all the 10 items
quantity should be 72 not more than that and system should
not allow to enter the quantity.where we can configure for
this.
regards,
balajitYou have to try with User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT or USEREXIT_SAVE_DOCUMENT in the same program
thanks
G. Lakshmipathi -
How to restrict vendor open items to be picked to 45 during F110 process
Hi experts,
My client want to restrict vendor open items to be picked to 45 max during F110 payment run for each vendor.
For example: If vendor " xyz" is having 60 open items at the time of payment run, it should allow max to pick only 45 open items and generate one clearing document during payment run F110.
Kindly give me any suggestions weather it is possible or not.
Thanks & regards,
Raghulhi ,
Thanks for your quick reply.
Actually we are using only payment method C- check.
We have developed ZFORM and ZPROGRAM by copying standard form F110_PRENUM_CHCK and std prog RFFOUS_C.
In My ZFORM only single page is there with invoice details in main window ( upper side ) and check in the below page.
when i had taken print on pre printed stationary sample i came to know in main window at maximum 45 items details can be dispalyed in first page with total amt check in below for each vendor.
Its works fine if each vendor has open items below 45 during payment run.
If any of the vendor is having more than 45 open items then 2 pages are printing.
For ex: if vendor having 60 open items.
For Ex : In first page 45 invoices details with say total invoice amt 30,000 is printing check with same amt.
in second page remaining 15 invoices with say total invoice amt of this 15 inovices is 5000 amt is printing check with 35,000 Instead of 5,000.
We are not using void check concept here as my client dont want to waste checks.
thansk & regards,
Raghul. -
Purchasing - A/P Transaction Processing for Services and Non Inventory Item
On of the main areas of concern that businesses have is in the area of Purchasing, Goods Receipts and AP Invoices Processing - There is a requirement that businesses have widely referred to as 3-way matching.
While SAP Business One has this functionality covered quiet well via the following, there is still some need for enhancements so that the application can correctly reflect the AP Accruals:
- Purchase Order processing with Approval Process (if configured)
- Ability to perform Goods Receipts for Services.
- Matching of AP Invoices to Goods Receipts with AP Invoice Approval Process (if configured)
The above transactions serve the 3-way matching quiet well for all purchases however when it comes to accuring for Services that have been provided, the application does not do this. The Goods Receipt transaction processing to acknowledge the service delivery is allowed however the related posting to the allocation account is missing.
The process that is followed by the application is same for Items that have not Inventory Items in Item Master.
As a result of the above, the business have to manually work out what the Accurals for services provided but not invoiced should be.
With little enhancement to the product this shortfall could very easily be overcome.Hi,
Once there are transactions, we cannot make existing Inventory type item to Non Inventory type item.
Check SAP note:937297 which states as follows :
Symptom
Changing the status of the Inventory Item checkbox (in Item Master Data) for items with inventory transactions and documents, might lead to inaccuracies in the calculations of inventory value.
Other terms
Inventory Item, Non-inventory Item, Item Master Data, Continuous Stock, Perpetual Inventory, Inventory Valuation, 2004, 2005, 2005 A SP01
Reason and Prerequisites
Consulting Note
Solution
The status of an item (Inventory Item/Non-Inventory item as selected in the Inventory Item checkbox in the Item Master Data window), cannot be changed once an A/P, A/R, or Inventory document is posted for the item.
Regards,
Jitin Chawla -
Restrict Vendor line items display by Vendor authorization group
Hi Gurus,
I have a requirement to restrict Vendor line item diplay for Tcode FBL1N, I have updated the Authorization object F_LFA1_BEK, its work fine if all the vendors have authorization, However it also display vendors whose auth. group is "BLANK" or "SAPCE",
Is there a way that I can slove this issue, is there any SAP notes of other object which needs to be updated ?Hi,
this problem has been discussed on this forum last week. Basically, SAP does not perform authorization check if the authorization group is blank. Hence you need to assign authorization object to all vendors.
Cheers
Maybe you are looking for
-
Why will a Leopard backup DVD not work on G5.
A couple of Leopard issues: 1, When I a make a dvd backup of my Leopard dvd using either Disk Utility or Toast it will work fine on the intel but will be spit out of the G5. The G5 cannot make double layer so I must rely on a computer that does! My G
-
I can't figure out to print any webpage.
I do not see any print button and the pull down menu (after clicking the mouse) does not include a printing option. Thank you!
-
How to define alt text for an anchored frame in FrameMaker 11?
What is the procedure in FrameMaker 11 to include alt text for anchored frames? We need to produce tagged PDF output that is accessibility compliant; this output must include alt text for each image in the document that a screen reader can read out.
-
Desktop Manager 5.0 searches for device upgrades
Hi...yesterday, in my infinite wisdom, I decided to upgrade the Desktop Manager from 4.5. I started by upgrading to 4.7and I let it "check for upgrades." When it finished, it found 5.0,so, I upgraded again to 5.0--again, letting it check for upgrades
-
Hello. Has anyone experienced this issue where as when trying to launch a 30 day trial of Adobe CS3 products (in my case Fireworks and Flash) the following message error occurs: "A problem was encountered while trying to load the trial period for Ado