How to select the server when the ServerName field is disabled?
I am trying to run the tutorial "VB_Win_CRVObjMod_DBLogon". All references to the solution to the ENXP-50701E server have been removed. I have put this into the code:
Private Sub ConfigureCrystalReports()
Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
myConnectionInfo.DatabaseName = "Northwind"
myConnectionInfo.UserID = "creports"
myConnectionInfo.Password = "creports"
myConnectionInfo.ServerName = "BILLPC-64\SQLEXPRESS"
Dim reportPath As String = "C:\CR\crsdk_net_tutorials_115_en\crsdk_net_tutorials_115_en\DotNet2\VB_Win_Data_DataSets\VB_Win_Data_DataSets\NorthwindCustomers.rpt"
myCrystalReportViewer.ReportSource = reportPath
SetDBLogonForReport(myConnectionInfo)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ConfigureCrystalReports()
End Sub
Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo)
Dim myTableLogOnInfos As TableLogOnInfos = myCrystalReportViewer.LogOnInfo
For Each myTableLogOnInfo As TableLogOnInfo In myTableLogOnInfos
myTableLogOnInfo.ConnectionInfo = myConnectionInfo
Next
End Sub
Still when I run the project I get the request to login to ENXP-50701E and the server name can not be changed. How do I get it to run with my server?
A good solution - as long as the dataset is not longer than 2,000 or so records, there is one table (preferably one table as more than one table will cause performance hits) and so on.
For table location code see this thread:
Need assistance with SetDatabaseLogon
Also see the sample app vbnet_win_dbengine.zip from here:
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
The above is for the CR engine. InProc RAS will also do the trick for you. See KB [1553921 - Is there a utility that would help in writing database logon code?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do]
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
Similar Messages
-
How to make the custom field enable/disable in ME21n/ME22n/ME23n trans
Hi Experts,
I need help.
I have created one custom field in the transaction ME21n/ME22n/ME23n under customer data 2 tab. But my problem is the field is always in enable (means editable only) even in Display mode. How to make the field is non editable in display mode and editable in change mode.
I have tried by putting some logic to make that field to change alternatively according to change/display button. And it is working fine but if we click any othe button , this field is becoming editable even in display mode.
How to make this field to behave as standard fields?
Please reply me <removed by moderator>
Thank you in advance.
Best Regards,
Divakar.
Edited by: Thomas Zloch on Mar 2, 2012If you have BADI implimented for custom tabs then you can do this in method ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM
lv_changeable = im_header->is_changeable( ).
LOOP AT ch_fieldselection ASSIGNING <fs>
IF lv_changeable IS INITIAL.
<fs>-fieldstatus = '*'. " Display
ELSE.
<fs>-fieldstatus = '+'. " Change
ENDIF.
endloop. -
How to select the printer and select the ICC profile for printing with VBScript?
I try to automate my printing procedure in photoshop. The problem is that I don't know how to select the printer and select the icc profile for printing with vbscript like I manually do in the print-menu in photoshop?
Anyone has done this before?
Thanx!
jusClient/Server version:
- D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME -
How to select the "in columns" dimension on export all Command ?
Hello,
I'm trying to export data from an V6.5 Essbase database to a 9.2 one.
The easier and faster way I found is to use the 'Export database all data in Columns' from the 6.5 cube and load the data with a rule file in the 9.2 (The Export database command is MaxL command).
The Export All Command with the "in columns options", export all data and put one dimensions in columns. Previously, It was always the Time dimension (M01 .... M12). And all worked fine.
But someone changed the order of the dimensions in the V6.5 Essbase database. And now, there is another dimension (which changes more often) in columns and which have a lot of members (meanwhile my time dimension only have 12 members).
So do you know how to select the dimensions which is in columns when using the export database all data function ? I do not see any options in Maxl ?? Maybe there is a rule to follow, in the dimensions order ?
Do you have any idea about it ?
Thanks for your help
P.S : I'd prefer to avoid workaround such as using Reports Scripts or Calc Script (there are too slow).Why not use Essbase's native export format, bring it over onto your new environment, and reimport? Change to your heart's content on the target.
Yes, the dimensionality (names, order, members, etc.) will have to be the same, but this approach, not the columnar export, is the fastest and most efficient way.
Regards,
Cameron Lackpour -
How to select the first record?
Hi,
Could anyone tell me how to select the first record of every
group?
ex, I want to find out every customer their first purcaseDate.
CustomerID PurcaseDate Region
A00000001 2001/01/01 AA
A00000001 2001/02/02 AA
A00000002 2001/03/01 AC
A00000002 2001/05/07 AC
A00000003 2001/03/05 DD
result:
A00000001 2001/01/01 AA
A00000002 2001/03/01 AC
A00000003 2001/03/05 DD
ThanksVincent,
You could do it as Carl suggested, with a couple of
corrections. You would need to include the CustomNo column in
the order by clause of your cursor. You would also need to add
a where clause to your update statement, otherwise everywhere
Region in the table would be updated with the same value of the
last CustomNo in the cursor, regardless of the CustomNo in the
table. See corrected code below:
DECLARE
CURSOR cust
IS
SELECT DISTINCT CustomNo, Region, Purchase_Date
FROM my_table
ORDER BY CustomNo, Purchase_Date, Region;
c_customer VARCHAR2 (9) := '...';
c_region VARCHAR2 (2) := '..';
cntr NUMBER := 0;
BEGIN
FOR x IN cust
LOOP
IF x.CustomNo != c_customer
THEN
c_customer := x.CustomNo;
c_region := x.Region;
ELSE
UPDATE my_table
SET Region = c_region
WHERE CustomNo = c_customer;
cntr := cntr + 1;
IF cntr = 25
THEN
COMMIT;
cntr := 0;
END IF;
END IF;
END LOOP;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
Another option is that you could just use one update statement,
like this:
UPDATE my_table a
SET Region =
(SELECT DISTINCT Region
FROM my_table b
WHERE (CustomNo, Purchase_Date) IN
(SELECT CustomNo, MIN (Purchase_Date)
FROM my_table
GROUP BY CustomNo)
AND a.CustomNo = b.CustomNo)
Barbara -
How to select the data from a Maintainance View into an internal table
Hi All,
Can anybody tell me how to select the data from a Maintainance View into an internal table.
Thanks,
srinivas.HI,
You can not retrieve data from A mentenance view.
For detail check this link,
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
Regards,
Anirban -
how to select the download location? its automatically downloading to users folder in c drive.. i wanna change to my desktop...plz help me out...
Tools -> Options -> Save files to -> Click browse button and browse for folder where you want to save the file.
-
How to select the all object at a time while installing business content
Hi All,
how to select the all object at a time while installing business content Please let me know if nay document is there
Thanks Ahmed PashaHi,
Please check out the below links
[Business content Installation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?QuickLink=index&overridelayout=true ]
[BI Content|http://wiki.sdn.sap.com/wiki/display/BI/InstallingBusinessContent]
Hope it helps.
Regards,
AL -
How to select the Alt BOM in the Sub-Contract PO
Dear All,
please tell me how to select the alternative BOM in the sub -contracting purchase order.
for the above said requirement i have cretaed production versions and the BOMselction method also i have selcted in the material master data as "2" means BOM by produ ction version.
so how can i select the alt BOm in theSub-contracting PO.
Thanx in advanvce
regards
SrinivasHi,
SAP help says you have to write the production version in the subcontracting info record:
http://help.sap.com/saphelp_46c/helpdata/en/b2/fa1ed4d51d11d1a69e0000e83235d4/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/35/b0e96787a62488e10000009b38f9b7/frameset.htm
(I've checked a subcon-info record but sorrowfully I havent found a field for this...if you can find please let me know)
BR
Csaba -
How to select the vendor from the source list in the PO(me21n) screen ??
Hi
How to select the vendor from the source list in the PO(me21n) screen.
Is there any Sources of Supply tab in the PO just like we have in the PR.
I don't want a PO raised from a PR which has got the Vendor assigned to it already.
Or the SAP doesnot provide the option of Source list/Assign source/Sources of Supply .....in the PO.
Kindly replyThere is not any facility available for Source Determination in PO. Only you can select the line item and click Menu Environment > Source List and view the list of sources available for the material but you can not chooss and assign. If you wan to assign the vendor then change the vendor already entered in PO and put the desired vendor.
-
I am working in Numbers and can't seem to change the generic value assigned to the legend. Any advice on how to select the legend and save new values?
Ntenich,
If your table has a Header and your Legend text is in the header, it will be picked up by the table.
Jerry -
How to select the inklist items in the active document?
From the below code, i can get the inklist information. But i could not know how to select the spot(InkType.CUSTOMINK) color items in the illustrator activedocument.
var docRef=app.activeDocument;
var S1 = 0;
for(i=docRef.inkList.length-1;i>=0;i--)
var inkRef=docRef.inkList[i];
var inkRefName=inkRef.name;
if(inkRef.inkInfo.kind=="InkType.CUSTOMINK")
alert(inkRefName);
//Select the items?
Could You please advice me.Hi Giri
>> First define the Posting Period for 2010 and create the numbering series for documents for 2010.
Done.
>> set as default of numbering series for 2010.
Done.
so this series will come defaultyly,if u want to post some document in 2009 then select the numbering series in documents manually,
>> How?
I am trying with a FMS to update the invoice and it's ok, but the journal entry takes 2010 number series.
I have:
- one serie DEC09.
- other JAN10.
I want to record invoices with date in Dec 2009 now and the journal entries with DEC09 serie, and invoices with date in Jan 2010 and the journal entries with JAN10 at the same time.
Is this possible?
Kind regards.
Agustin Marcos Cividanes -
Windows Explorer - How to select the first item once we open the explorer?
Hi,
In Windows Explorer - How to select the first item once we open the explorer using keyboard shortcut. I typically use downward arrow, it goes to the 2nd item in the list, then I again have to use upward arrow to go up.
Is there a shortcut to select the first item in the list using keyboard? This is not specific to Windows 7, it has been the behavior even in previous Windows OS versions.
Thanks,
MallikOpening a Microsoft Ticket is probably your best option. Unfortunately the change will not happen immediately and it will require multiple users to send in a ticket. I hope this ends up being resolved though.
Good luck Mallik
Also, don't forget to mark the post as answered so that it does not show up as unanswered to help others who search the forums.
Agreed, MS wont change it easily. :)
Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
the thread. -
Urgent : how to select the rows in the ALV Grid Control
How to select the rows in the ALV Grid control,
I am facing the situation where i need to select the row/rows in the Grid control and then to lock the entries,
If anyone have the solution please help me out
<b>Its very Urgent</b>Hi Bharath,
Go through this hope u can understand.
SEL_MODE. Selection mode, determines how rows can be selected. Can have the following values:
A Multiple columns, multiple rows with selection buttons.
B Simple selection, listbox, Single row/column
C Multiple rows without buttons
D Multiple rows with buttons and select all ICON
Setting and getting selected rows (Columns) and read line contents
You can read which rows of the grid that has been selected, and dynamic select rows of the grid using methods get_selected_rows and set_selected_rows. There are similar methods for columns.
Note that the grid table always has the rows in the same sequence as displayed in the grid, thus you can use the index of the selected row(s) to read the information in the rows from the table. In the examples below the grid table is named gi_sflight.
Data declaration:
DATA:
Internal table for indexes of selected rows
gi_index_rows TYPE lvc_t_row,
Information about 1 row
g_selected_row LIKE lvc_s_row.
Example 1: Reading index of selected row(s) and using it to read the grid table
CALL METHOD go_grid->get_selected_rows
IMPORTING
et_index_rows = gi_index_rows.
DESCRIBE TABLE gi_index_rows LINES l_lines.
IF l_lines = 0.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
textline1 = 'You must choose a valid line'.
EXIT.
ENDIF.
LOOP AT gi_index_rows INTO g_selected_row.
READ TABLE gi_sflight INDEX g_selected_row-index INTO g_wa_sflight.
ENDIF.
ENDLOOP.
Example 2: Set selected row(s).
DESCRIBE TABLE gi_index_rows LINES l_lines.
IF l_lines > 0.
CALL METHOD go_grid->set_selected_rows
exporting
it_index_rows = gi_index_rows.
ENDIF.
Reward points if helpful.
Thanks
Naveen khan -
In BSP how to give the input field as mandatory?
Hi friends,
In BSP how to give the input field as mandatory?
In BSP i want to validate the input field (example checking the material no is valid or not)
if this material no doesnot exit means i want to pass error message.What is the code for that.
Moosahi
try this
in LAYOUT
<htmlb:inputField id = "vname" disabled = "False" value = "<%= v_visitor %>"/> <font color="red" size="2"><b><%= page->messages->assert_message( 'vname' ) %></b></font></td>
in DO_HANDLE_EVENT
in oninputprocessing
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
DATA: event TYPE REF TO CL_HTMLB_EVENT.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
IF event->name = 'button' AND event->event_type = 'click'.
DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
button_event ?= event.
ENDIF.
case event->id.
when 'select'.
if v_visitor = ''.
page->messages->add_message(
condition = 'vname'
message = 'Visitor Name can not be blank'
severity = page->messages->CO_SEVERITY_ERROR ).
ELSE.
here u can write ur when ur field getting filled
endif.
endcase.
endif.
give marks if it is helpful
thanks
Maybe you are looking for
-
I want to download Firefox on a flashdrive so I can then download it to my home computer which is not connected to the internet. When I download Firefox, it won't let me change the path and so tries to download on a public computer, which isn't allow
-
went to put new podcasts on it--it would only play one. I tried to delete the podcasts and add them again--it still would only play 1. It then was flashing an orange light at me. I've tried resetting it. I did the reset utility--which i thought had w
-
Calculation of overtime amount
Hello everybody, I have done overtime by giving number of hours in the 2010 infotype and assigned the /001 valuation bases to it bcoz it gives the wage per hour.. but the valuation bases is calculating on the whole of gross amount w
-
Windows Domain - Joining of Ubuntu Systems
Dear Team, Now i would like to joing my ubuntu systems in the domain, and also to apply the group policy to give access for wifi connectivity. Server : 2008 R2, client : ubuntu 12.04 (wifi network). Regards, Ravi Kumar
-
Hi! I got my new Ipod classic 80g today and have been playing around with the different things which my old ipod mini and ipod nano couldn't do. Synchronizing my playlist was no problem, nor was downloading and syncing podcasts. The only thing that w