How to create define new?
i have taken combo box in form . i want to select define new option in combo box.
is it possible....?
Imports SAPbobsCOM
Imports SAPbouiCOM
Public Class Class1
'// At the begining of every UI API project we should first
'// establish connection with a running SBO application.
Private WithEvents SBO_Application As SAPbouiCOM.Application
Private oForm As SAPbouiCOM.Form
Dim oButton As SAPbouiCOM.Button
Dim oOptionBtn As SAPbouiCOM.OptionBtn
Dim oCheckBox As SAPbouiCOM.CheckBox
Dim oComboBox As SAPbouiCOM.ComboBox
Dim oItem As SAPbouiCOM.Item
Dim oStatic As SAPbouiCOM.StaticText
Dim oEdittext As SAPbouiCOM.EditText
Dim oEditItem As SAPbouiCOM.EditText
Dim oFolder As SAPbouiCOM.Folder
Private oMatrix As SAPbouiCOM.Matrix
Private Matrix2 As SAPbouiCOM.Matrix
Private oLink As SAPbouiCOM.LinkedButton
Private oColumns As SAPbouiCOM.Columns
Private oColumn As SAPbouiCOM.Column
Private sPath As String
Private oDBDataSource As SAPbouiCOM.DBDataSource
Private oCompany As SAPbobsCOM.Company
Private rs As SAPbobsCOM.Recordset
Private oLineRec As SAPbobsCOM.Recordset
Private rs1 As SAPbobsCOM.Recordset
'// declaring a User data source for the "Remarks" Column
Private oUserDataSource As SAPbouiCOM.UserDataSource
Public sErrMsg As String
Public lErrCode As Long
Public lRetCode As Long
Private Sub SetApplication()
'// Use an SboGuiApi object to establish connection
'// with the SAP Business One application and return an
'// initialized appliction object
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
'// by following the steps specified above, the following
'// statment should be suficient for either development or run mode
'sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056" 'Environment.GetCommandLineArgs.GetValue(1)'
Try
SboGuiApi.Connect(sConnectionString)
'// connect to a running SBO Application
'// get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
Catch ex As Exception
MsgBox("Make Sure That SAP Business One Application is running!!! ", MsgBoxStyle.Information)
Exit Sub
End Try
End Sub
Private Function ConnectToCompany() As Integer
'// Make sure you're not already connected.
If oCompany.Connected = True Then
oCompany.Disconnect()
End If
'// Establish the connection to the company database.
ConnectToCompany = oCompany.Connect
End Function
Private Function SetConnectionContext() As Integer
Dim sCookie As String
Dim sConnectionContext As String
' Dim lRetCode As Integer
'// First initialize the Company object
oCompany = New SAPbobsCOM.Company
'// Acquire the connection context cookie from the DI API.
sCookie = oCompany.GetContextCookie
'// Retrieve the connection context string from the UI API using the
'// acquired cookie.
sConnectionContext = SBO_Application.Company.GetConnectionContext(sCookie)
'// before setting the SBO Login Context make sure the company is not
'// connected
If oCompany.Connected = True Then
oCompany.Disconnect()
End If
'// Set the connection context information to the DI API.
SetConnectionContext = oCompany.SetSboLoginContext(sConnectionContext)
End Function
Public Sub New()
MyBase.New()
Try
SetApplication()
' Set The Connection Context
If Not SetConnectionContext() = 0 Then
SBO_Application.MessageBox("Failed setting a connection to DI API")
End ' Terminating the Add-On Application
End If
If Not ConnectToCompany() = 0 Then
SBO_Application.MessageBox("Failed connecting to the company's Data Base")
End ' Terminating the Add-On Application
End If
'SBO_Application.MessageBox("DI Connected To: " & oCompany.CompanyName)
Catch
System.Windows.Forms.MessageBox.Show("SBO application not found")
End Try
diplay_DNEWform()
End Sub
Private Sub diplay_DNEWform()
Dim oForm As SAPbouiCOM.Form
Try
oForm = SBO_Application.Forms.Item("SM_DNFM")
SBO_Application.MessageBox("Form Already Open")
Catch ex As Exception
Dim fcp As SAPbouiCOM.FormCreationParams
fcp = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
fcp.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
fcp.FormType = "SM_DNFM"
fcp.ObjectType = "SM_DNEW"
fcp.UniqueID = "SM_DNFM"
oForm = SBO_Application.Forms.AddEx(fcp)
oForm.AutoManaged = False
DrawDNEWForm(oForm)
End Try
oForm.Visible = True
End Sub
Public Sub DrawDNEWForm(ByVal oform As SAPbouiCOM.Form)
Dim oItem As SAPbouiCOM.Item
Dim oButton As SAPbouiCOM.Button
''Form specifications
oform.Title = "define new"
oform.Left = 335 '340
oform.ClientWidth = 550 '350
oform.Top = 55
oform.ClientHeight = 200 '500
'oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
ShowAllItems(oform)
'// Adding a OK button
oItem = oform.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 27
oItem.Width = 65
oItem.Top = 175 '300
oItem.Height = 20
oButton = oItem.Specific
'// Adding a Cancel button
oItem = oform.Items.Add("2", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 101
oItem.Width = 65
oItem.Top = 176 '300
oItem.Height = 20
oButton = oItem.Specific
End Sub
Private Sub ShowAllItems(ByVal oForm)
oDBDataSource = oForm.DataSources.DBDataSources.Add("@TESTDNEW")
Dim oEditordr As SAPbouiCOM.ComboBox
oItem = oForm.Items.Add("amtTxt", SAPbouiCOM.BoFormItemTypes.it_STATIC)
oItem.Left = 5
oItem.Width = 100
oItem.Top = 10
' oItem.AffectsFormMode = False
oItem.LinkTo = "amtVal" '"Vndval"
oStatic = oItem.Specific
oStatic.Caption = "location"
oItem = oForm.Items.Add("amtVal", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
oItem.Left = 110
oItem.Width = 160
oItem.Top = 10
' oItem.LinkTo = "OrdrTxt"
oItem.AffectsFormMode = True
oEditordr = oItem.Specific
'' Adding Choose From List
oEditordr.DataBind.SetBound(True, "@TESTDNEW", "U_name")
Dim scombo As String = "Define New"
Call InitializeMCombo(oForm, scombo, "@TEST_TABLE", "<Default_Value>")
End Sub
Public Sub InitializeMCombo( _
ByRef oForm As SAPbouiCOM.Form, _
ByVal sCombo As String, _
ByVal sLinkedTable As String, _
Optional ByVal sDefaultValue As String = "" _
Try
oForm.Freeze(True)
Dim oCombo As SAPbouiCOM.ComboBox
oCombo = oForm.Items.Item(sCombo).Specific
Try
' Add 1-st value if database field accept NULL
oCombo.ValidValues.Add("", "")
Dim oRS As SAPbobsCOM.Recordset
oRS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Dim sSql As String = "SELECT Code, Name FROM [@" & sLinkedTable & "] ORDER BY 1"
oRS.DoQuery(sSql)
oRS.MoveFirst()
While oRS.EoF = False
oCombo.ValidValues.Add(oRS.Fields.Item("Code").Value, _
oRS.Fields.Item("Name").Value)
oRS.MoveNext()
End While
' Add DEFINE NEW value +++++++++++++++++++++++++++++++
' Note: Code can have length up to 8 caracters
oCombo.ValidValues.Add("Redefine", "Redefine")
If Not oRS Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(oRS)
oRS = Nothing
End If
System.GC.Collect() 'Release the handle to the table
' Select dafault value if not null
If Not sDefaultValue.Equals("") Then
If oCombo.ValidValues.Count > 0 Then
oCombo.Select(sDefaultValue, SAPbouiCOM.BoSearchKey.psk_ByValue)
End If
Else
If oCombo.ValidValues.Count >= 1 Then
oCombo.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
End If
End If
Catch ex As Exception
' log exception
Finally
oCombo = Nothing
End Try
Catch ex As Exception
Finally
oForm.Freeze(False)
System.GC.Collect()
End Try
End Sub
Private Sub SBO_Application_ItemEvent( _
ByVal FormUID As String, _
ByRef pVal As SAPbouiCOM.ItemEvent, _
ByRef BubbleEvent As Boolean _
) Handles SBO_Application.ItemEvent
Dim oForm As SAPbouiCOM.Form
oForm = SBO_Application.Forms.Item(FormUID)
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT _
And pVal.FormUID = "SM_DNFM" _
And pVal.ItemUID = "amtval" _
And pVal.BeforeAction = False _
And pVal.ItemChanged = True _
Then
SBO_Application.MessageBox("30")
Try
Try
Dim oCombo As SAPbouiCOM.ComboBox
Dim sValue As String = ""
oCombo = oForm.Items.Item("amtval").Specific
sValue = oCombo.Selected.Value
If sValue.Equals("Redefine") Then
Try
oCombo.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
oForm.Refresh()
Catch ex As Exception
'log exception
End Try
SBO_Application.Menus.Item("51207").Activate()
End If
BubbleEvent = False
Catch ex1 As Exception
' log exception
End Try
Catch ex As Exception
' log exception
End Try
End If
' Other events +++
End Sub
End Class
its not working , please check it why this is hapening.
please help me.....
Similar Messages
-
Hai , How to create 'Define New ' ?
hai,
How to create 'Define New ' in Combo box and then Enter the value in the user defined table how to get the value from the database table and display combo box ?Hi.
I used this example for the matrix column. It's work and open a form for defining new values.
Your need to add an event to refresh values in combobox.
Think I help you.
Best regards
Sierdna S.
P.S. How to proceed.
1) Fill the combobox with valid values:
Try
' Add first value to combobox
oCombo.ValidValues.Add("", "")
Dim oRS As SAPbobsCOM.Recordset
oRS = SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
Dim sSql As String = "SELECT Code, Name FROM [@" & sLinkedTable & "]"
oRS.DoQuery(sSql)
oRS.MoveFirst()
While oRS.EoF = False
oCombo.ValidValues.Add(oRS.Fields.Item("Code").Value, oRS.Fields.Item("Name").Value)
oRS.MoveNext()
End While
' Last value
oCombo.ValidValues.Add("Define","Define")
If Not oRS Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(oRS)
oRS = Nothing
End If
System.GC.Collect() 'Release the handle to the table
Catch ex As Exception
' log exception
Finally
oCombo = Nothing
End Try
2) In Item event handler
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT _
And pVal.FormUID = sFormUID _
And pVal.ItemUID = sMatrixUID _
And pVal.ColUID = sColUID _
And pVal.BeforeAction = False _
And pVal.ItemChanged = True _
Then
Try
Dim oMatrix As SAPbouiCOM.Matrix
oMatrix = oForm.Items.Item(MatrixID).Specific
If oMatrix Is Nothing Then Throw New Exception("ERROR: matrix object is nothing"))
Try
Dim oCombo As SAPbouiCOM.ComboBox
Dim sValue As String = ""
oCombo = oMatrix.Columns.Item(sColUID).Cells.Item(pVal.Row).Specific
sValue = oCombo.Selected.Value
If sValue.Equals("Define") Then
Try
oCombo.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
oForm.Refresh()
Catch ex As Exception
' log exception
End Try
SBO_Application.Menus.Item("<menu id to activate>").Activate()
End If
BubbleEvent = False
Catch ex1 As Exception
' log exception
End Try
Catch ex As Exception
' log exception
End Try
End If -
How to create a new field for Q3 - QM notification in Header and item level
Dear All,
l
Sub: How to create a new field for Q3 - QM notification in Header and item level
Ref. the link --> Quality Notification
We want to create a new field in header level and item level.
As per the thread the solution is given below.
In the IMG Config: Quality Management -> Quality Notification -> Notification Types -> Define screen areas for notification types Then Choose 'Define screen areas' Then Click on 'New entries' button Now, select the relevant Notification Type and click in 'Enter'. Select the 'Iten Cases' register and remember to setup the Tabstrip Header, Icon, etc. Set the 'Tabstrip active' flag. Then Save.
Quality Notification -> Notification Types -> Define screen areas for notification types
WE ARE UNABLE TO FIND IN CUSTOMIZATION PATH --> DEFINE SCREEN AREAS FOR NOTIFICATION TYPES.
Please help.
Question No. 2 :
THE REQUIREMENT IS GIVEN BELOW.
We want to hide the field in Q3 - QM Notification
In header --> Reference tab --> Item (sub heading) --> "DEFECT LOCATION" FIELD TO BE ELIMINATED (HIDE)
Ref the link --> Quality notification
The solutiion is given below.
Hi Sami,
We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
Hope this will suffice your requirement.
Kindly ask me if you need any other details.
Thanks & Regards,
Srinivas.D
Hi Sami,
We can hide the collumns using the Transaction OQM1 and Program Name SAPLIQS0.
Lets say Defect location need to be hidden, the field TXTCDOT need to have the radio button HIDE.
Hope this will suffice your requirement.
Kindly ask me if you need any other details.
Thanks & Regards,
Srinivas.D
By double clicking the "DEFECTIVE QUANTITY (EXTERNAL), WE COULD NOT GET --> field TXTCDOT .
Plese do the needful.
We are using ECC6.0 Ehp3 and Ehp4.
With Best Regards,
Raghu SharmaDear Pushpa,
Transaction Code :SHD0 is working fine.
Please accept my sincere thanks for your sharing your Knowledge.
I am able to fulfill my
Regarding the enhancement, I have not tried.
Once I will complete, I will award the fulll marks to you.
With Best Regards,
Raghu Sharma -
How to create a new place in iPhoto 11 without doing any harm?
Yes, I know how to create a new place for a photo -- theoretically:
Select the photo.
Make sure the Info icon in the lower right portion of the iPhoto window is clicked and the too-tiny-for-any-but-the-youngest-eyes map is displaying.
Click in "Assign a Place..." and begin typing a place that iPhoto will search for. It searches in both "your places" (i.e., those that you have already defined) as well as in Google Maps.
When you see a place in the search results list that you think might be close to the one you mean, select it.
A pin appears on the itsy-bitsy map. Move it to the exact place you mean. You can make controls appear on the map by moving the mouse over the bottom of the map. The controls allow you to zoom in and out, and to change views (Terrain, Satellite, Hybrid). When the pin is where you want it, click it. The current name of the location appears. Modify it to the name you want, then click the check mark.
That's "all" there is to it ... except for a couple of "gotchas."
There's a difference between what happens when you select a place that you've defined and when you select a place that Google found in the search results. If it's a place that you've defined, and you then move the pin to a new location and/or change its name, this will affect all photos assigned to the custom place. In effect, you are modifying the place.
All places have a radius associated with them, thereby making them circles. You can adjust the radius only in the Maintain My Places window. In the itsy-bitsy map it doesn't even appear. However, if the newly defined place overlaps existing ones, all the photos assigned to the overlapped places will be assigned to the new one. Their pins will remain where they were.
Now, before anybody suggests sending feedback to Apple, let me emphasize that I have been sending Apple feedback on the wrong-headed implementation of Places since iPhoto 9.0. New versions have come and gone (the current one is 9.1.2), but these "features" have remained. So my purpose in opening this thread is to consolidate work arounds to these "features" in one place. My work around:
Whenever I define a new place, I select only a single photo. I try to name my places so that I can distinguish them from those that Google finds. In order to avoid Gotcha 1 I select a place that Google finds and try to place the pin close enough to where I want it, but far enough from any other places that I've defined. I give it a name that I can easily find it Manage My Place.
I immediately open Manage My Places and select the new place. I first note the pins near it, then decrease its radius, move the pin to the desired location, note the nearby places, and give it its final name.
I then view Places and navigate to the new place to view the photos assigned to it. If I'm lucky, there's only one. Otherwise, I have to reassign the other photos to their correct places.
RichardSo... in the hope it will not confuse folks more, let me be more specific of a procedure that works for me...
Procedure to create a new My Places location.
OK there is more you can do with a non-GPS Coord linked photo.
Click Info and then click Assign a Place in the lower right of screen. (if your photo has a location linked to it already the Assign a Place will NOT show up.)
Choose a location name near the actual location that Google Maps can find.
Click that location in the Google Maps list that appears and your photo will be temporarily assigned to that location.
Now type over that location name in order to make sure to give that location a unique name that will show up in your My Places list and click that name after you have typed it to be sure it is accepted.
Now in iPhoto click Window/Manage My Places and go the that newly named location in the large My Places map. There's no easy search. You have to run down through the alphabetical list.
Drag the flag to the location you want this place to be and click Done.
The location name is now in your My Places list at the location you dragged the flag to!
It is important to note that only your unique named locations show up in your Places list, so if you want to modify the location coordinates you have to establish a unique name for it.
This is much more complicated that previous iPhoto versions!
But Yeah!!!!!!!!!!
It really works!!!!!!! -
How to create a new tag in page properties in the sidekick of geometrrix page
how to create a new tag in page properties in the sidekick of geometrrix pagesame as basic, advanced, blue print??
Hi prachi,
Is it tag OR Tab ? Seems like you are looking for Tab. Look at [1] & overlay to custamize per your need. Or define at your page component.
[1] /libs/foundation/components/page/dialog/items/tabs/items
Thanks,
Sham -
How to create a new field in a sub screen in material master. ?
How to create a new field in a sub screen in material master. ?
Kindly help us.
LIke wise tell me how to create a new sub screen as per my desiredFollow the documentation of Logistics - General->Material Master->Configuring the Material Master->Create Program for Customized Subscreens to add the new field in material master.
Create Program for Customized Subscreens
In this IMG activity, you can create a function group of your own by copying function group MGD1 (for industry) or function group MGD2 (for retail). The subscreens are not copied, except for two subscreens which are copied for technical reasons. You can use this copy to create subscreens of your own which you can assign to a data screen in the activity Define Structure of Data Screens for Each Screen Sequence.
Requirements
Be sure to read the program documentation first.
Activities
1. Create a function group of your own by choosing Execute.
2. Enter a name containing up to 25 characters, beginning with the letter Y or Z, and choose Save.
3. Access the Object Navigator.
You do this from the SAP standard menu by choosing Tools -> ABAP Workbench, and then Object Navigator.
4. Display either program SAPLMGD1 (industry) or SAPLMGD2 (retail) as required.
5. Copy the subscreens as required, ensuring that they already contain as many as possible of the field names you want to use in your function group. You do this as follows:
a) Choose Screens, position the cursor on the corresponding subscreen, and choose Copy in the context menu.
b) Enter the program to which you want to copy the subscreen, prefixing it with SAPL, and enter a screen number. Use the screen number of the original subscreen where possible. If the F1 help is specific to a particular subscreen, this ensures that this context-specific help continues to be displayed.
Example
You have called your function group YENTERPRISE, to which you want to copy subscreen SAPLMGD1 2301. Enter SAPLYENTERPRISE as the program to which the subscreen is to be copied, and enter (preferably) 2301 as the screen number.
6. Return to the initial screen of the Object Navigator and display your program. In the example above, you would enter SAPLYENTERPRISE.
7. Choose Update object list.
8. Select the subscreen you have copied and activate it by choosing Activate in the context menu.
Using the Screen Painter, you can remove fields you do not require on the subscreen or include additional fields from other subscreens (see the ABAP Dictionary). For information on the Screen Painter, see the SAP library documentation BC ABAP Workbench Tools.
Points to consider when removing or adding fields
Make sure that a field statement exists for each field on the subscreen since data may not otherwise be transported correctly. You can use subscreen SAPLMGD1 2002 as an example.
For the fields you have added, include any check modules and modules for self-programmed F4 help that are called up for these fields on the original subscreen. You can do this by displaying the flow logic for the original subscreen and searching for such modules. They normally have the same names as the fields themselves. When you find a module, copy the corresponding module call to your subscreen.
If you change the order in which fields are transported that are checked together in the flow logic (such as the safety stock and minimum safety stock), you must deactivate the check module for the first field and activate it for the second. The system would otherwise transport the first field, and carry out the check before the second field is transported.
Any error messages that fields are unknown when activating the subscreen are due to the fields still being included in checks, even though you have removed the fields from the subscreen. Search for the fields in the source code and make the lines in which they appear comment lines. Then reactivate the screen.
9. Assign the subscreen to a data screen as required.
Note on transport
Use the Workbench Organizer to transport the copy you have created.
Proceed -
How to create a new database in SUP
Hi,
Iam using SUP 2.1 ESD#1 licensed version
How to create a new database other than the default sampleDB.
Thanks,
B.UshasriHi B.Ushasri,
This is actually pretty easy.
1) open the Unwired Workspace (SDK in eclipse).
2) Bottom right, add a new Database connection with the following details:
Sybase ASA v12.x,
host=Your Sup box,
port=5500,
user=dba
password= Your password (default = dba)
3) Once you connect successfully, right click on the connection and choose the "Create database" option.
That should do it for you. It is the same connection as the sampleDB connection so if you already have that defined then its a simple, right click on it once connected and hit create database.
Hope that helps,
Brenton. -
How to create a new variant and a job sheduled to use it for the exisisting programs
Hi
1. The ALV Grid Control is a tool with which you can output non-hierarchical lists in a
standardized format. The list data is displayed as a table on the screen.
The ALV Grid Control offers a range of interactive standard list functions that users need
frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,
export list (in different formats), and so on. These functions are implemented in the
proxy object class. You as the programmer have the possibility to turn off functions not
needed. In most cases the implementations of the standard functions provided by the
control are sufficient. However, if required, you can adjust these implementations to
meet application-specific needs.
You can add self-defined functions to the toolbar, if necessary.
The ALV Grid Control allows users to adjust the layout of lists to meet their individual
requirements (for example, they can swap columns, hide columns, set filters for the
data to be displayed, calculate totals, and so on). The settings (list customizing) made
by a specific user are called a display variant. Display variants can be saved on a userspecific
or on a global basis. If such display variants exist for a list, they can be offered
to the user for selection. If a display variant is set as the default variant, the associated
list is always displayed based on the settings of this variant.
2. REUSE_ALV_LIST_DISPLAY
REUSE_ALV_GRID_DISPLAY
REUSE_ALV_FIELDCATALOG_MERGE
REUSE_ALV_COMMENTARY_WRITE
3. Use of Field Catalog is to determines the technical properties & add formating information of the column.
6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.
7.fieldcat-fieldname
fieldcat-ref_fieldname
fieldcat-tabname
fieldcat-seltext_m
5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
The report output can contain up to 90 columns in the display with the wide array of display options.
<b>The commonly used ALV functions used for this purpose are;</b>
1. REUSE_ALV_VARIANT_DEFAULT_GET
2. REUSE_ALV_VARIANT_F4
3. REUSE_ALV_VARIANT_EXISTENCE
4. REUSE_ALV_EVENTS_GET
5. REUSE_ALV_COMMENTARY_WRITE
6. REUSE_ALV_FIELDCATALOG_MERGE
7. REUSE_ALV_LIST_DISPLAY
8. REUSE_ALV_GRID_DISPLAY
9. REUSE_ALV_POPUP_TO_SELECT
Purpose of the above Functions are differ not all the functions are required in all the ALV Report.
But either no.7 or No.8 is there in the Program.
<b>
How you call this function in your report?</b>
After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB.
Then use follwing function module.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = 'Prog.name'
I_STRUCTURE_NAME = 'I_ITAB'
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = I_ITAB.
IF SY-SUBRC <> 0.
WRITE: 'SY-SUBRC: ', SY-SUBRC .
ENDIF.
ENDFORM. " GET_FINAL_DATA
The object F_IT_ALV has a field, the activity ACTVT, which can
contain four permitted values: 01, 02, 03 and 70. Each of the
activities 01, 02 and 70 controls the availability of particular
functions (in the menu and the toolbar) of the ALV line item list:
a) 01: "Settings -> Display variant -> Save..."
b) 02: "Settings -> Display variant -> Current..." and
"Settings -> Display variant -> Current header rows "
c) 70: "Settings -> Display variant -> Administration..."
Activity 03 corresponds to the minimum authorization, which is the
most restricted one: The user can only select layouts which have
been configured already. In particular, all of the other functions
named above are inactive with activity 03.
Now if you want to permit a user to change the column selection and
the headers as well as to save the layout thus created, for example,
but if you do not want to permit the user to administrate the
layouts, you grant him or her the authorization for activities 01
and 02.
Check this link it will be mosty usefull for u
http://www.sap-img.com/fu017.htm
Reward all helpfull answers
Regards
Pavan -
How to create a new Business Unit
Hello,
I have problem.
Can anyone tell me
1 : How to create a new Business Unit, New Company from Jd Edwards screen means webpage.
2 : Can i find the User Defined Codes means UDC in jd edwards screen.
Thanks,
Shakti Prasad Priyakumar.First, let me confirm that you are on JDE World, and not JDE Enterprise One/One World. They are very different environments. JDE World is normally a green screen, IBM Client Access based system.
If you are on a JDE World menu and you have the proper security access, just type in UDC on the command line and hit <ENTER>. You hopefully are in a test environment when you do this, since it sounds like you have very little knowledge of JDE. The UDC screen will come up. If you know the system code and code of the UDC table you want to look at, you can key them in and bring up that table. Otherwise, do F5. That will let you search by system code and see what table codes are available in each system. If you are not sure what UDC table you need, you can look at the JDE data dictionary for the data item you are interested in and that will tell you the UDC table, if the data item is UDC based.
As for setting up new business units and company, get to the main general ledger menu. Don't remember the exact path, but you want to get into the setup/define menu for general ledger accounts. There will be separate options there for maintaining companies and for maintaining business units. You want to play with this in a test environment before you do anything for real.
Hope this helps a bit.
John Dickey -
How to create a new UoM and assigning it to characteristic?
Hi,
How to create a new UoM and assigning it to characteristic?
i want to enter cost ( in rupees and laks) against a counter
but for that counter charecteristic required and for taht charecteristic unit of measure Rs and Laks are not defined in the system.
So please help me ....Hi,
Use T Code CUNI
Enter Unit of Measurement as RS and Text as Ruppes
Commercial and Technical Display is same as RS
Numerator is 1
Denominator 1
Exponent 0
Save
Thanks
Raj -
How to create a new custom tag in JSF 1.2
Hi there,
In JSF 1.2, all the classes (CommandButtonTag, CommandLinkTag, DataTableTag,...) in package com.sun.faces.taglib.html_basic are defined as final class. In JSF 1.1, we can create a custom tag that extends the tag in JSF taglib; it save us lots of time.
Could anybody know how to create a new custom tag in JSF 1.2?
Many thanks,
EmilyIf I recall, it was done because how tags were to be handled in 1.2 was very different from 1.1 and it was felt that developers shouldn't rely on implementation specific classes (unless they were SPI) for several other reasons (application portability being the big one here).
If it's felt that this was the wrong decision, please feel free to log an issue [1] against the RI (to date, no one has).
As to the 'borked' dependency URLs, please log an issue [1] if you find these. We have nightly builds going that work from a clean workspace and checking today's result, it seems ok.
[1] https://javaserverfaces.dev.java.net/issues -
How to create a new System Data
Hi guys.
I need to create a new System Data with which to filter a list output using a field derivated from siebel marketing. This data isn't between the standard system data like CampaingCode, SegmentId .....
Now i discover one .XML file (someting like Marketing....xml), in the OracleBIData/web/config directory, in which there are defined all the standard System data like:
<WebExpression>
</WebExpression>
Can I try to modify this file and add a new system data? if the answere is YES, hao i can do this? My real problem is how take a system value, from siebel marketing, to assign at this new systme data.
Thanks in advance
Best reguardsHi
thanks for your solution,
i created a new Data carrier type AC for viewing auto cad files and given the path as, C:\Program Files\AutoCAD 2006\acad.exe"
and at Define serveres and files or folders,
defined the data carrier as Autocad type was default as AC,
at Identify frontend computers i could not enter any thing it is only in display form and no values were there and niether could be entered.
and my datacarrier created is not there to be selected while creating documents.
through CV01N create documents.
i suppose this is because i have already defaulted PC as the data carrier type. default system as my data carrier.
please clarify my Below douts also
as in my configuration i have defined only one Datacarrier ie Default PC, will this do all the need full, or will lead to to any complication in any aspect,
i want to know what is the Advantages of defining many datacarriers or the Limitation of a single Datacarrier.
iam facing a situation where a particular software say PDF reader or AutoCAD, is not installed in all the System. and iam thinking of installing this Software in a particular System or say in the Content Server system.
can this software be made used to view these cad and Pdf files on the front end system where this software is not installed,
Say in a particular PC the software AutoCAD is not installed and if he wants to View the AutoCAD file,
another problem iam facing is
while Creating a New AutoCAD file in my system through DMS Create, it gives a message "Drawing file is not Valid"
while i can create a Word Doc File, but it is not possible to create a new AutoCAD file throuh DMS, (AutoCAD is Installed in my system)
also i have no idea of how to create a New Data carrier type,
what exactly have to be filled in
1, define data carrier type
2, define server and files or folder
3, identify frontend computers
please provide configuration details or if possible screen shot details
points will be awarded for sure.
Thanks and Regards
Sathish -
How to Create the new Field ( Table - Row) in SAP B1
I have a scenario in which the Purchase calculation is based on LR, so for that we have to add new field in Purchase Document. that filed is not available in form setting. kindly let me know how to Create a new field in Purchase document.
ThanksHi,
I have adding new & existing forms and creating User Defined Field in row. example on adding a field in an existing Form and its corresponding to the database, including user input validations?
I want to add a new field in the detail section ( row area ) of a Production Document, and save it to database and read it back when the document is opened.
Thanks.
Syed Waqar Khurshid -
How to create a new AP invoice type? (R12)
Hi Experts,
I'm trying to create a new AP invoice type, I wonder why there is no functions where to create a new one.
Could you please tell how to create a new AP invoice type in R12?
Thanks in advance,
NuelHi
We also have a requirement which can be fulfilled only by creating a new invoice type, because its a system defined am unable to change the access type to User. So what i have done is i have created a DFF in invoice header with new invoice type and doing a customization based on that.
Regards,
Vicky -
how to create a new category
The Category field seems to be used exclusively within the Podcasts section where it acts in a similar way to Genre. Podcast producers can define the category for their podcast in their feeds, however they don't always do so. There is no direct ability to edit this field in iTunes but it be changed using a script such as this one: ChangeCategory.
tt2
Maybe you are looking for
-
Generation of XML file from Java objects using castor
I have the following java file(Customer.java). public class Customer private String ID; private FirstName firstName; private MiddleName middleName; private LastName lastName; private ArrayList address; public ArrayList g
-
Error in Creating New Web Application SharePoint 2013
Everything was working fine but today when i try to create a new web application i am getting the following error.It's happening whenever i am trying to create a new web application. The directory C:\inetpub\wwwroot\wss\VirtualDirectories\26060 is a
-
Pasted lightboxes do not show when uploaded but do on browser preview
I created the lightbox display on the first page and then as i worked from page to page i would paste the original lightbox to the new page and replace the images and the captions but when i upload the site it doesn't show the lightboxes on the pages
-
Hey, I'm trying to use a mdx function on the business model using Evaluate_AGGR. Any idea why this is not working? EVALUATE_AGGR('Descendants( \[%1], 1, AFTER)', "ES_FIN_BGATE_BIRE"."BGATE".."Pnl"."Gen6,SITES" ) I've got the following error: Syntax e
-
Help, How to view the error log of oracle Job
Hi all, I created a job in my database, which clears the archivelog. After the job is executed, it occurs error.Such as : RMAN清理归档日志 1 问题 2010-3-19 下午03时11分00秒 GMT+08:00 PTDB 数据库实例 SYSTEM RMAN 脚本 How to view the error log of oracle Job? Thank you. Er