UDF in item query form
Hi,
How to add a UDF to the ' item query' form.
(Inventory->Inventory Reports->Item query)
Thanks,
Smitha
Smitha,
If you are talking about the SELECTION screen where you enter Item Number, ...... it would not be possible. But if you want to add the UDF to the List of Items screen.
Click on Form Settings from this screen and in the Field Name drop down select your UDF
Suda
Similar Messages
-
Query about multiple selection of List item in forms 6
How can I select multiple elements from a list item in Forms 6?
the very simple strategy to do is to call removeAllItems() method for the 2nd combox box and then insert the contents. this is because the validate() method is not repeatedly called and so the contents are not updated immediately.
-
Query form in oravle forms builder 6i
i have two tables
the first one is master table it has many items (has twoitems primary key type number )
the second table has only three items (two items foreign key to the first block(master table )) and the last item is
is blob item
i build query form such as
first i build control block has two item (not database table )
then i build first master block
finally i build second table
i joined them with the two items
the picture not appeard when i execute query
how i can solve itDoes the query return records in your first block? In your second block?
-
Update multiple UDF from one query generator
Hi All,
I have Form1 with multiple UDF1 which have been key in by users
And another Form2 with multiple UDF2 which exactly same with Form1 UDF1
Is there a way that I can copy multiple UDF at Form2UDF2 from Form1UDF1 instead of creating query for each individual UDF, where in query generator I can select more the one column but only first column will be insert to the single UDF.
ThanksHi Firos,
I mean I have 7UDF in the Payment Form where the information to this UDF are come from 7UDF in the invoice form which already created previously so I would like to copy those UDF from invoice to UDF in payment by using single query to capture all the UDF information by doing:
SELECT T0.[DocNum], T0.[UDF1], T0.[UDF2], T0.[UDF3], T0.[UDF4], T0.[UDF5], T0.[UDF6], T0.[UDF7]
FROM OINV T0 WHERE T0.[CardCode] = $[ORCT.CardCode]
From above query can I pass the result directly to UDF in Payment Form? or I need to create one query for each individual UDF.
Thanks -
Could query form and result table display at seperate pages
we are new at html db, there are a few of questions we need to clear before we make decision to use HTML DB to develop our next version of application: (I seperate them at differenct topics).
* Could query form and query result table display at differenct pages?
Thanks
Leiyeah, this is surely possible...and quite easy. you'd just set your form page up as you'd like. put a button on that page with a branch to your report page. then have your report query refer to the items you defined on the form page. so if your form page had an item called P1_JOB and P1_DEPTNO you could have your report use those items with a query like...
select ename, job, sal, empno, deptno
from emp
where :P1_JOB = job
and :P1_DEPTNO = deptno
...hope this helps,
raj -
Misplaced publication item query of two different publication itens
Hi,
I’m creating a new publication on Oracle Database Lite 10g.
Almost all of the publication itens are ok, except two of then: when I publicate the “item1” ,the publication item query is rightly displayed on Mobile Manager page and in the administratives tables, as the C$ALL_PUBLICATIONS table. But, when I publicate the “item2”, that is rightly displayed on Mobile Manager site too, the query of the “item1” receives the same value of “item2” query.
I’ve just checked for wrong synonym creation of the two tables involved , but they are correct.
Has anybody ever seen something like that?
An example of my two queries:
Publication item1 : select field1 , field2 , field3 from table2 where field4 = 1
Publication item2 :; : select field1, field2 from table1;
It’s important : I have two different tables above.
When I synchronize the PDA , with this publication assigned to the user, I receive an error message on Mobile Manager page that some field is misplaced or required . In other words: for publication item2 the application tries to put the data returned from the query of publication item1 .
Thanks.Hi,
The publication was created successfully and the type is “WCE”. I created it using the “Mobile Manager” page, with an .xml file , compressed in the .jar format.
Here is the web.xml file:
<?xml version = '1.0' encoding = 'WINDOWS-1252'?>
<workspace>
<application name="WCE_REGRAS">
<app_info>
<directory>/WCE_REGRAS</directory>
<virtualpath>/WCE_REGRAS</virtualpath>
<defaultpage/>
<icon/>
<description>WCE_REGRAS</description>
<publication/>
<platform>Oracle Lite PPC2000 ARM;US</platform>
</app_info>
<app_db publication="AFV"/>
<snapshot name="REGIONS" owner="HR" order="1">
<snaplatform object="TABLE" platform="ORACLE LITE PPC2000 ARM;US" template="SELECT * FROM HR.REGIONS" updatable="Y" conflict="client" refresh="fast" virtualprimname="" virtualprimcolname=""/>
</snapshot>
</application>
</workspace>
The publication item with weight equals to 1 (default) was deleted . I’m using an Java application to publicate the items an add them to the publication ( in this case, “WCE_REGRAS”)
Some publication items will have the “conflict rule” set to “Client Wins” and the other ones will be set to “Server Wins”.
Here is the .xml code that my java application reads to create the publication items that are wrong:
Publicationitens.xml
<app>
<repository>
<connectionString><!--THE CONNECTION STRING--></connectionString>
<user><!--THE USER--></user>
<password><!--THE PASSWORD--></password>
</repository>
<remoteDB>
<connectionString><!--THE CONNECTION STRING--></connectionString>
<user><!--THE USER--></user>
<password><!--THE PASSWORD--></password>
</remoteDB>
<localDB>
<connectionString><!--THE CONNECTION STRING--></connectionString>
<user><!--THE USER--></user>
<password><!--THE PASSWORD--></password>
</localDB>
<publication>
<name>15571</name>
<virtualPath>/WCE_REGRAS</virtualPath>
<deviceType>WCE</deviceType>
<!--CLIENT WINS-->
<item>
<type>local</type>
<name>RGE_SAFV_ATIVIDADE</name>
<owner>SC_PDA</owner>
<object>AFV_ATIVIDADE</object>
<filter>SELECT "COD_TIP_ATIV","DAT_ATIV","COMENT_ATIV","STATUS_ATIV","COD_ATIV_PRIOR","DSC_ATIV","COD_FUNCIO","COD_FUNCIO_RESP","COD_ATIV_SIEBEL","COD_CLI","COD_ATIV","COD_FUNCIO_ENC" FROM SC_PDA.AFV_ATIVIDADE WHERE COD_FUNCIO_RESP = :COD_FUNCIO AND STATUS_ATIV IN ('A', 'E')</filter>
<weight>26</weight>
<action>create</action>
</item>
<!--SERVER WINS-->
<item>
<type>local</type>
<name>RGE_SAFV_ATIVIDADE_PRIO</name>
<owner>SC_PDA</owner>
<object>AFV_ATIVIDADE_PRIO</object>
<filter>SELECT "COD_ATIV_PRIOR","DSC_ATIV_PRIOR" FROM SC_PDA.AFV_ATIVIDADE_PRIO</filter>
<weight>8</weight>
<action>create</action>
</item>
</publication>
</app>
In this case the connection string, password and user were omitted form the .xml file.
In my Java application the following code creates and associate the publication itens to the publication :
Consolidator.createPublicationItem(connSie, item.getName(), item.getOwner(), item.getObject(), "F", item.getFilter(), null, null);
Consolidator.addPublicationItem(publication.getName(), item.getName(), null, null, "S", null, item.getWeight());
, where the object “item” is populated with the publicationitens.xml file with a loop statment .
This code works ok to the others publication items.
The problem is : in the administrative tables ( like C$ALL_PUBLICATIONS) the publication string (filter – sql statement) is right. But, when I access the “Mobile Manager” page they are misplaced:
the filter string from “RGE_SAFV_ATIVIDADE” receives the same filter of “RGE_SAFV_ATIVIDADE_PRIO”.
Curiously when I delete the “RGE_SAFV_ATIVIDADE_PRIO” publication item , the filter string of “RGE_SAFV_ATIVIDADE” publication item appears correctly in the Manager page.
I ‘ve just deleted the "RGA_SAFV_ATIVIDADE_PRIO" publication item using my Java application , or by database : I dropped tables, views and triggers that are created by “Consolidator” (java .jar) methods. I created this item again , but the same error occurs.
I think that it may be something with the data integrity in the database.
The mobile database is 10g, version 10.2.0.2 ;
Thanks. -
HI There,
I'm not good at ABAP coding and need some help from experts.
Working on Line Items Query and enhanced the 0FI_AP_4 to include fields from BSEG table, the fields are:
GEBER - Funds
FISTAL - Funds Center
KOSTL - Cost Center
GSBER - Business Area.
I used the below code to enhance the datasource 0FI_AP_4, and its taking toooo long to load the data, but its pulling the line item data into BW.
Please find another code after this....its very quick, either in extract checker or loading into BW, however its not loading all fields into BW. Specially line items like Cost Center, Fund center and Fund fields.
Please go through the below codes and suggest me what changes i have to make to work as it should be.
DATA: L_TABIX LIKE SY-TABIX.
DATA: ZADTFIAP_3 LIKE DTFIAP_3.
CASE I_DATASOURCE.
WHEN '0FI_AP_4'.
LOOP AT C_T_DATA INTO ZADTFIAP_3.
L_TABIX = SY-TABIX.
SELECT SINGLE GEBER FROM BSEG INTO ZADTFIAP_3-GEBER
WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
SELECT SINGLE FISTL FROM BSEG INTO ZADTFIAP_3-FISTL
WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
SELECT SINGLE KOSTL FROM BSEG INTO ZADTFIAP_3-KOSTL
WHERE BUKRS = ZADTFIAP_3-BUKRS AND GJAHR = ZADTFIAP_3-FISCPER+0(4).
MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
ENDLOOP.
ENDCASE.
Below code is extracting data very quickly but not bringing data for all fields specially line items like Fund Center, Cost center and Fund fields.
DATA: L_TABIX LIKE SY-TABIX.
DATA: ZADTFIAP_3 LIKE DTFIAP_3,
wa_bseg Like bseg.
CASE I_DATASOURCE.
WHEN '0FI_AP_4'.
LOOP AT C_T_DATA INTO ZADTFIAP_3.
L_TABIX = SY-TABIX.
Select single * from
bseg into wa_bseg
where BUKRS = ZADTFIAP_3-BUKRS
and GJAHR = ZADTFIAP_3-FISCPER+0(4)
and BELNR = ZADTFIAP_3-BELNR
and BUZEI = ZADTFIAP_3-BUZEI.
IF SY-SUBRC = 0.
Move: wa_BSEG-GEBER to ZADTFIAP_3-GEBER,
wa_BSEG-FISTL to ZADTFIAP_3-FISTL,
wa_BSEG-KOSTL to ZADTFIAP_3-KOSTL,
wa_bseg-GSBER to ZADTFIAP_3-GSBER.
ENDIF.
MODIFY C_T_DATA FROM ZADTFIAP_3 INDEX L_TABIX.
ENDLOOP.
ENDCASE
Thanks
VandanaHi,
You can try this.
USEREXIT_MOVE_FIELD_TO_VBEP
Use this user exit to assign values to new fields at the level of
the sales document schedule lines.
The user exit is called up at the end of the FORM routine
VBEP_FUELLEN.
Thanks
Krishna. -
Change UDF field on system form to enabled = false
When doing this, it works fine (on the item master form). The udfs that I don't want to be editable are disabled (grayed out). But as soon as anything is typed into ANY field on any pane in the main form or into any of my editable UDFs, the disabled fields immediately become enabled again! (If I listen for key-down on a field & redisable my UDFS it works, and further entry into any field does not affect the enabled status! This is obviously no solution, though. There might be over a hundred fields on this form and it's impratical to listen for key down on all of them!)
I'm doing this as a proof of concept, and if we get it right, we're likely to sell this customer SAP B1, so I'd really like to get this right!
So, searching the forum, I see something about SetAutoManagedAttribute & I try setting the editable attribute to false for these fields. That line of code crashes:
item2.SetAutoManagedAttribute(BoAutoManagedAttr.ama_Editable, SAPbouiCOM.BoAutoFormMode.afm_Ok, BoModeVisualBehavior.mvb_False)
with a message: "Exception from HRESULT: 0xFFFFE4A2."
(NO text with ANY of these HRESULT messages - where can i find info on them?)
I thought maybe the problem was that I can't use the SET feature for UDFS so I've tried it on the itemcode field itself and this bombs out too!
<B1Listener(BoEventTypes.et_MENU_CLICK, False)> _
Public Overridable Sub OnAfterMenuClick(ByVal pVal As MenuEvent)
Dim form As Form
form = B1Connections.theAppl.Forms.ActiveForm
Dim it As Item = form.Items.Item("5")
Dim pl As Integer = form.PaneLevel
If pl <> 1 Then
form.Freeze(True)
form.PaneLevel = 1
form.Freeze(False)
Try
it.SetAutoManagedAttribute(BoAutoManagedAttr.ama_Editable, SAPbouiCOM.BoAutoFormMode.afm_Ok, BoModeVisualBehavior.mvb_True)
Catch ex As Exception
End Try
End If
If form.PaneLevel <> pl Then
form.Freeze(True)
form.PaneLevel = pl
form.Freeze(False)
End If
(I saw another post on the forum about not being able to change the visible attribute unless the current pane contained the field being changed, so that's why I'm trying to switch it & switch it back and I've tried the SET command without the panelevel switch and I always get the same error)
PS I'm at p16 - THANK YOU!Hi John,
Do the UDFs have to be on the Item Master window itself (ie can they be left on the UDF tab)?
Would this work as a solution?...
Use the UDF settings to create 2 different UDF categories and assign the 2 different sets to these categories. Then, when the user selects a particular item, your add-on can check the item group and automatically change the UDF category to reflect the correct item group. Sure, it doesn't set the other fields to inactive but it does hide them from the user. Only issue would be if you have other UDFs that are generic (ie non-group specific) as you can only assign a UDF to a single category.
Kind Regards,
Owen -
Hi,
The UDF options in the menu bar for the Item Master Data are available in one database but NOT in another database.
Is this a known bug and/or related to conversion of a database from a previous version.
We're using SBO 6.5 SP:01 EF:07
ThanksHi,
UDF options in the menu bar are only visible if there are defined UDF for the active form. Are you sure that the seccond database has any UDF?
Regards,
Ibai Peñ -
Design a Query Form to display a particular form's filed's properties
Hello,
I need to design a Query form to see all the properties and its set values of each and every field (or may be any particular field) of any particular form.
So, is there any way to get the properties set and their values of a field?You don't use a query for changing the properties in the property palette. You can set and read many (but not all) of the properties in the property pallette at runtime by using these built-ins:
set_item_property
get_item_property
set_block_property
get_block_property
SET_ALERT_BUTTON_PROPERTY
SET_ALERT_PROPERTY
GET_CANVAS_PROPERTY
SET_CANVAS_PROPERTY
SET_APPLICATION_PROPERTY
GET_APPLICATION_PROPERTY
SET_FORM_PROPERTY
GET_FORM_PROPERTY
The help documentation describes how to use these.
Let say you want to let the user change the color of the item. Then you can create a list item with the list of available colors, and create a button that implements the color. When the user clicks the button, it reads the color selected in the list box and changes to that color using the set_item_property. -
How to add a column in Item Master form with chooselist
Hi Experts
I add a column in Item Master Form in Stock Data Tab. In this column I want to add Choose list. For this I use AfterFormLoad event. It gives Error "Matrix Line Exist" . My code is given below
If pVal.FormType = "150" Then
form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
form.PaneLevel = 3
oItem = form.Items.Item("28")
oMatrix = oItem.Specific
Dim chooseObj As ChooseListClass
chooseObj = New ChooseListClass
chooseObj.AddChooseFromListBinCode(form.UniqueID)
oColumns = oMatrix.Columns
oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
oColumn.Width = 100
oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
oColumn.TitleObject.Caption = "Def BinCode"
oColumn.Editable = True
oColumn.ChooseFromListUID = "CFL5"
oColumn.ChooseFromListAlias = "U_BinCode"
oColumn = oColumns.Item("U_BINCODE")
oColumn.Visible = False
End If
please give your suggestion
Regards
JitenderHi Noor
Thanks for reply
I tried your suggestion but problem still there. I am using after form load event. Here matrix has 9 lines (all warehouse). If remove the line then how can I reload warehouse data. Can you suggest in more detail.
my code is given below
form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
form.PaneLevel = 3
oItem = form.Items.Item("28")
oMatrix = oItem.Specific
MsgBox(oMatrix.RowCount)
oMatrix.DeleteRow(1)
Dim chooseObj As ChooseListClass
chooseObj = New ChooseListClass
chooseObj.AddChooseFromListBinCode(form.UniqueID)
oColumns = oMatrix.Columns
oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
oColumn.Width = 100
oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
oColumn.TitleObject.Caption = "Def BinCode"
oColumn.Editable = True
oColumn.ChooseFromListUID = "CFL5"
oColumn.ChooseFromListAlias = "U_BinCode"
oColumn = oColumns.Item("U_BINCODE")
oColumn.Visible = False
oMatrix.AddRow(1)
Thanks
Waiting for reply
Regards
Jitender -
How to populate the LOV with warehouse item in Item Roles form
Hi
Any one please tell me can we populate the list of values for warehouse items in the item roles form, if so please let me know how to do it.
Navigation
Go to OPM Inventory Control
Go to Workflow
Go to Item Roles
Opens a window Item Role Relation.
When I click on the LOV tab of Warehouse Item, it says list of values contains no entries.
Thanks in Advance
Prem.This applies for Release 11 or before. (Not for R12)
Warehouse items are the OPM Items. When you define new item there is field warehouse item and by default it gets populated with the same item name. You can manually changed it to previously defined item name. -
Dynamically create and remove TEXT items in forms
Hi Guys,
Is there a way to dynamically create and remove TEXT items in form. For example I have the EMP and DEPT table and when
I select the EMP table name from the LOV, rows of the EMP table with column name and data should get displayed on the screen and likewise a similar action for DEPT table and
so on. I have about 90 tables from where data could be required to view and edit. They all have varying number of columns.
Any suggestions ?
Thanks
KMD
nullUse OLE concept of developer and map Excel as an object
Nadeem
null -
Incorrect query forms in parent child relation
Hello
I am using jdev of RUP3 (Release 4) which is 11.1.1.6.2 and have following scenario
I have a ParentVO (ProfileVO) and a child VO(CreditReceiversVO) (child VO is basically extended from another VO not in this application and included as a jar library).
There a VL between ParentVO and ChildVO 1:* with two attributes ord_id and rule_id
On UI these two VO instances are dropped as parent child and I get exception on running page in logs saying RuleAssignementEO.ORG_ID invalid identifier.
Looking into the query formed by BC4J I see it as below which is clearly wrong as the alias RuleAssignmentEO is not visible for the outermost where clause. Please advise
"SELECT count(1) FROM (SELECT * FROM (SELECT /*+ FIRST_ROWS(10) */
RuleAssignmentsEO.RULE_ASSIGNMENT_ID,
RuleAssignmentsEO.OBJECT_VERSION_NUMBER,
RuleAssignmentsEO.RULE_ID,
RuleAssignmentsEO.ASSIGNED_OBJECT_ID,
RuleAssignmentsEO.ASSIGNED_OBJECT_TYPE,
RuleAssignmentsEO.ORG_ID,
RuleAssignmentsEO.ROLE_ID,
RuleAssignmentsEO.START_DATE,
RuleAssignmentsEO.END_DATE,
RuleAssignmentsEO.SPLIT_PCT,
RuleAssignmentsEO.REVENUE_TYPE,
RuleAssignmentsEO.ROLLUP_FLAG,
RuleAssignmentsEO.CREATED_BY,
RuleAssignmentsEO.CREATION_DATE,
RuleAssignmentsEO.LAST_UPDATED_BY,
RuleAssignmentsEO.LAST_UPDATE_DATE,
RuleAssignmentsEO.LAST_UPDATE_LOGIN,
RuleAssignmentsEO.ATTRIBUTE_CATEGORY,
RuleAssignmentsEO.ATTRIBUTE1,
RuleAssignmentsEO.ATTRIBUTE2,
RuleAssignmentsEO.ATTRIBUTE3,
RuleAssignmentsEO.ATTRIBUTE4,
RuleAssignmentsEO.ATTRIBUTE5,
RuleAssignmentsEO.ATTRIBUTE6,
RuleAssignmentsEO.ATTRIBUTE7,
RuleAssignmentsEO.ATTRIBUTE8,
RuleAssignmentsEO.ATTRIBUTE9,
RuleAssignmentsEO.ATTRIBUTE10,
RuleAssignmentsEO.ATTRIBUTE11,
RuleAssignmentsEO.ATTRIBUTE12,
RuleAssignmentsEO.ATTRIBUTE13,
RuleAssignmentsEO.ATTRIBUTE14,
RuleAssignmentsEO.ATTRIBUTE15,
RuleAssignmentsEO.GROUP_MEMBER_CREDIT_FLAG,
RuleAssignmentsEO.SUMMARY_FLAG,
ParticipantEO.PARTICIPANT_NAME,
ParticipantEO.PARTICIPANT_ID
FROM CN_RS_RULE_ASSIGNMENTS_ALL RuleAssignmentsEO, CN_SRP_PARTICIPANT_HDR_RO_V ParticipantEO
WHERE RuleAssignmentsEO.ASSIGNED_OBJECT_ID = ParticipantEO.PARTICIPANT_ID(+)) QRSLT WHERE RuleAssignmentsEO.RULE_ID = :Bind_RuleId AND RuleAssignmentsEO.ORG_ID = :Bind_OrgId) "
Edited by: Vik2 on Oct 23, 2012 11:30 AMinvalid identifier means ,it representating that field currently not available in db-table.
so please refer db-table. whether field avialable or not?.
edited lately:
djbo.debugoutput=console did you use this :) it will say the query is send to server.
Edited by: user707 on Oct 22, 2012 11:58 PM -
Link to query Form and auto-execute
What is the secret after creating a link from a report for example, to not only pass the link parameter to a query form, but to cause the form to execute the query.
Currently my query form shows the passed parameter but doesn't auto-execute..This is exactly the same question I have and there are lots of similar questions in this forum. None of them have replies. Is this question still unanswerable?
Maybe you are looking for
-
I have been having problems with 2 of my phones
i have a nokia 6085 and although i have had it a while i havent used it. i have put my vodaphone sim card in it and it recognises it but will not let me phone or text anyone. vodaphone are not to blame as my sim card works in any other phone. it just
-
How to read multiple files of different name using single file adapter
There are two inbound locations inbound1 and inbound2 , and the files structure present in these two inbound locations are same but the files start with different names example (1)files in inbound1 starts with file1,file2... (2)files in inbound2 star
-
"Imagine we're using this class from a WAR, but that this class is also used within an EJB Jar in the same EAR. This class will have been loaded by the EJB class loader, and will be unable to load classes within the WAR. The solution is to provide th
-
How to get the caller's name in a custom exit.
I am using the menu exit of ABAP Editor(SEUED001),but in the inclued program, how could I get the program name which is being editing in the editor? the sy-cprog returns the name of the include program. Edited by: yanluckly on Aug 23, 2010 7:58 AM
-
Creating a Windows installer for Java applications
Hello, I have a question about deployment: I have a pure Java desktop application. Obviously, it's in the form of a JAR file. I want to sell this to users who are "clueless" about Java, so I need to wrap it up in an installer file that does the follo