Need help in using [RUN PROGRAM] Activity against a server in another domain
Hi Experts,
We have two domains with two way trust enabled. Orch server exists in DomainA and target server exists in DomainB.
We are trying to execute some scripts(g:IPCONFIG) from orch server to target server using RUN PROGRAM activity. This is running fine and give expected results, if I give Built-in Administrator credentials in Security Tab. But I'm getting some
strange values like chinese/japanese language strings, If I use a DomainB/DomainA user (Part of local admin of the target server) in security tab as well as Advanced tab-->Runas.
Things I tried:
- DomainA/DomainB user in Security Tab as well as RunAs tab ---> Strange Strings
- DomainA/DomainB user in Security Tab and BuiltIn Administrator in RunAs tab ---> Strange Strings
- BuiltIn Administrator in Security Tab ---> Expected result
- BuiltIn Administrator in Security Tab and DomainA/DomainB user in RunAs tab --> ProgramExitCode = -10xxxxxx
But our requirement is to run the script on the target server as Domain User(Part of local admin).
Thanks in Advance
Thanks and Regards, Narayana Babu
Hi Experts,
We have two domains with two way trust enabled. Orch server exists in DomainA and target server exists in DomainB.
We are trying to execute some scripts(g:IPCONFIG) from orch server to target server using RUN PROGRAM activity. This is running fine and give expected results, if I give Built-in Administrator credentials in Security Tab. But I'm getting some
strange values like chinese/japanese language strings, If I use a DomainB/DomainA user (Part of local admin of the target server) in security tab as well as Advanced tab-->Runas.
Things I tried:
- DomainA/DomainB user in Security Tab as well as RunAs tab ---> Strange Strings
- DomainA/DomainB user in Security Tab and BuiltIn Administrator in RunAs tab ---> Strange Strings
- BuiltIn Administrator in Security Tab ---> Expected result
- BuiltIn Administrator in Security Tab and DomainA/DomainB user in RunAs tab --> ProgramExitCode = -10xxxxxx
But our requirement is to run the script on the target server as Domain User(Part of local admin).
Thanks in Advance
Thanks and Regards, Narayana Babu
Similar Messages
-
Contacting workgroup server requires run program-activity?
Dear Technet-group
I am currently working on runbooks within our environment.
The current setup is that we have several Domain-joined servers and some Workgroup servers. The runbookserver is domain joined.
When contacting workgroup servers, I encountered an issue where I need to add the "Run Program" activity and fill in the local credentials in the "Run As" tab instead of filling in the security tab to make the runbook run succesfully.
Has anybody encoutered this bug before or does anyone have a possible fix for this?
KR,
MitchHello Stefan,
Thank you for replying.
I think I might have formed my question incorrectly. Let me explain my problem in detail.
My situation is as followed.
1 workgroup server as testpurpose.
My Orchestrator-environment in a domain.
As a form of testing, I created a very simpel runbook with the local admin credentials in the security tab, so that account has more than enough permissions.
The runbook contains 2 activities. 1 intialize data, which only contains the input of the server's IP to connect to and 1 get Disk Space Status, which gets data from the testpurpose-server. Inside the "Get Disk Space Status" I filled in the local
admin's account under the security tab, enabling him all permissions.
When I run this runbook, it fails giving me the message: "Failed to connect to disk"
However, I found out that when I add the "Run Program"-activity infront of the "Get Disk Space Status", clear out the security tabs and fill the account in under the Run As-tab and add a simpel "date" command to be executed,
I do manage to get a success.
This is however a workaround for the issue we are having. Have you ever encountered something like this?
Thank you for your time.
Kr,
Mitch -
Run Program activity not exiting
I'm running SCOrch 2012 R2 and am having trouble with a runbook hanging. Here are the facts
My runbook executes a script (the code for which, I have included below) that gets a list of AD users and exports that list to a .csv file.
When run manually, from a Powershell window, the script executes and returns the expected file, before returning to the prompt.
When run through the SCOrch, the script runs fine, with the output file created and the Powershell process exiting.
The commands I'm using to execute the script manually and through the runbook, are the same (see below) and the run-as accounts are the same.
The runbook never gets past the step that runs the Powershell script.
The activity looks like this:
Command execution
Command: cmd.exe /c | C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe –c "C:\it\getADUserProperties-Parameterized.ps1 -SearchPath 'ou=customer,dc=domain,dc=tld' -DomainName domain.tld | Export-Csv C:\it\userList.csv -NoTypeInformation"
Run as account credentials specified
The rest of the options are set to the default values
The question is, why doesn't the Run Program activity close when powershell.exe exits? I know it won't matter, but here is the script anyway:
<#
.Synopsis
Get Active Directory user list with a user-specified set of properties
.DESCRIPTION
Get a list of Active Directory users from a user-specified list of containers (or the root of the domain) and return a user-specified set of attributes.
This script can connect to non-native domains (domains that the executing computer is not a member of) if DNS is configured properly. If accessing a
non-native domain, the script will prompt for credentials.
.NOTES
Author: Mike Hashemi
V1 date: 15 August 14
.LINK
.PARAMETER DomainName
Defines which DNS domain to connect to.
.PARAMETER SearchPath
Default value = cn=users,dc=domain,dc=tld. This parameter represents the AD to search and can contain multiple values.
.PARAMETER OutputProperties
Default value = Name,Enabled. This parameter represents a comma-spearated list of AD attributes to return.
.EXAMPLE
.\getADUserProperties-Parameterized.ps1 -DomainName domain.tld
This example will output the name and enabled status of all users in "cn=users,DC=domain,DC=tld" and below.
.EXAMPLE
.\getADUserProperties-Parameterized.ps1 -OutputProperties name,telephoneNumber | Export-Csv C:\userList.csv -NoTypeInformation
This example will output the name and telephone number of all users in "cn=users,DC=domain,DC=tld" and below. Output will be sent to c:\userList.csv.
#>
[CmdletBinding()]
param(
[Parameter(Mandatory=$True)]
[string]$DomainName,
[string[]]$SearchPath = 'cn=users,DC=domain,DC=tld',
[string]$OutputProperties = 'Name,Enabled'
Import-Module ActiveDirectory
If ((Get-Module ActiveDirectory -ErrorAction SilentlyContinue) –eq $null) {
Write-Error "This script requires the Powershell Module: 'ActiveDirectory'. Please make sure you've got the correct tools installed."
Exit
Else {
Foreach ($ou in $SearchPath) {
Try {
Write-Verbose ("Getting users from {0}." -f $ou)
Get-ADUser -Filter * -SearchBase $ou -Properties $OutputProperties.Split(",") -Server $DomainName | Select $OutputProperties.Split(",")
Catch [System.Security.Authentication.AuthenticationException] {
Write-Output ("Connection failed. Prompting for credentials to {0}" -f $DomainName)
$cred = Get-Credential -Message "Enter credentials for $DomainName."
Write-Verbose ("Getting users from {0}. with user: {1}" -f $ou, $cred.Username)
Get-ADUser -Filter * -SearchBase $ou -Properties $OutputProperties.Split(",") -Server $DomainName -Credential $cred | Select $OutputProperties.Split(",")
Thanks.mhashemi,
I had a simliar issue as you did where my runbook would run until it got to the "Run .Net Script" Activity and then the Runbook would just stop. What I found was you can not have the command "Exit" in your script. The command "Exit"
will force the Activity to close and will not output any variables.
I am not the only one to find this issue.
Check out the article labeled
"Run .Net Script (powershell), "exit" and published data" on technet under
System Center Orchestrator > System Center Orchestrator - General
(not able to post the link, I am restricted)
Doesn't sound like there is going to be a fix anytime soon
Hope this helps
-Ozarkclay -
Winscp in Run Program activity
Hi,
The Run Program activity never ends when running winscp.com using these parameters; /command "option batch abort" "option confirm off" "open ftp_test_account" "put d:\data\* /VPT/*.TMP" "exit". The log file
shows the program ran and ended but the Run Program Activity stays active. < 2014-07-24 02:54:19.751 200 Command PORT okay.
> 2014-07-24 02:54:19.751 STOR test.001.TMP
< 2014-07-24 02:54:19.767 150 File status okay; about to open data connection.
< 2014-07-24 02:54:19.970 226 Transfer complete.
> 2014-07-24 02:54:19.970 MFMT 20140724005400 test.001.TMP
< 2014-07-24 02:54:19.986 213 ModifyTime=20140724005400; test.001.TMP
. 2014-07-24 02:54:19.986 Upload successful
. 2014-07-24 02:54:19.986 Got reply 1 to the command 4
. 2014-07-24 02:54:19.986 Session upkeep
> 2014-07-24 02:54:19.986 Script: exit
. 2014-07-24 02:54:19.986 Session upkeep
. 2014-07-24 02:54:19.986 Script: Exit code: 0
. 2014-07-24 02:54:19.986 Got reply 1004 to the command 4
. 2014-07-24 02:54:19.986 Disconnected from serverHello Abdul Karim,
You need TCP 445 for the installation of the service (which seems to work fine),
TCP 135 for communication with the endpoint mapper and after that comunication switches over
to the highport that was assigned by the endpoint mapper
for communication with the service manager (for controlling the Orchestrator Run Program Service).
By default the dynamic port range on Windows Server 2008 is 49152 to 65535
(refer to: The default dynamic port range for TCP/IP has changed in Windows Vista and in Windows Server 2008:
http://support.microsoft.com/kb/929851).
But since there is no firewall I doubt that to be the problem...
Oh, by the way: Is the "RPC Endpoint Mapper" Service running on your target server (and what about "Remote Procedure Call (RPC)")?
Regarding my question about the OS: There was a (meanwhile fixed) problem some time before with Win2003 but on that occasion the service was not installed at all.
Are you using Orchestrator SP1 or R2?
Regards,
PIfM -
Need help for writing extract program
hi
i need help for writing extract program to retriew data from legacy system.
i already developed bdc programs for me31k and me21.
my requirement is to write extract program s for those t.codes.
to retriew data from legacy system and stored in flat file.i need help with a java program. it is a program that allows the user to enter a student's GPA, number of extracurricular activities, and number of service activities. The user can not enter a gpa above 4.0 or below 0. The user can not enter a negative number for the number of both activities. If the student meets the following criteria: 1) GPA of 3.8 or above and at least one extracurricular activity and one service activity, 2) GPA below 3.8 but at least 3.4 and a total of at least three extracurricular and service activities, 3) GPA below 3.4 but at least 3.0 and at least two extracurricular activities and three service activities, the message "Scholarship candidate" should display. If the student does not meet the criteria above, then the message"not a candidate" should display. Can you help me, please?
You haven't posted ANY 'java program' for us to help with.
The forum is NOT a coding service. It is to help you with YOUR code.
Post the code you have written and SHOW us (don't just tell us) how you compile it and execute it and the results you get. Then we can help you with any problems you are are having.
If you need help understanding just what the program should be doing you need to ask your instructor to clarify the assignment. -
Telnet with Run Program Activity
Hello Experts,
I have a quick question with respect to the Run Program Activity. Is it possible to have a telnet session with the run program activity without loosing the connection ?
So my first activity will be the telnet connection. Once the connection is established I will then execute a command to get the output.
However, when I execute the runbook it establishes the connection and closes it immediately. As a result the next command does not get executed. When I throw the output to a text file, it says invalid command which means that the telnet session gets closed.
Is there any other way to do this ?
Regards,
Abdul Karim. (http://sites.google.com/site/scomblogs Twitter:@Abdul_SCOM)Hello,
Yes I tried the same with SSH and the activity still fails.
I also tried pwershell script, however the .Net Activity fails saying telnet is unrecognized command.
So how are we to achieve telnet commands using SSH or Run Program Activity.
Is it supported in the first place ? If I only have a run program activity to telnet and I try to capture the output in a text file, I see that the telnet session itself fails and the exit code is -1.
If I use something like dir or ipconfig/flushdns etc they all return exit code of 0.
Moreover, for telnet sessions since it will be based on a unique process ID, how can we configure the next set of command using the same ID ?
Regards,
Abdul Karim. (http://sites.google.com/site/scomblogs Twitter:@Abdul_SCOM) -
Powershell Hang when using Run Program (2012 R2)
I've seen a couple posts about this in the past but nothing recent. I am calling a powershell and passing through some variables to run program activity in orchestrator. The program runs (in this case the DB is created) and the script finishes, however the
activity does not. I've tried two solutions:
http://blog.coretech.dk/jgs/sco-2012-running-powershell-scripts-via-run-program-activity/
and
http://www.sc-orchestrator.eu/index.php/scoblog/67-running-powershell-with-the-run-program-activity-from-orchestrator
Neither of which seem to do the trick. Here is my command
Note: The script runs fine when called on the machine locally. For sake of cleanliness I've removed my <Nul 2>&1 attempts.I have found in these situations that having a non-stop error seems to get it from freezing (along with <Nul 2>&1). I use 'Get-Content "C:\Farce.txt"' as my last line.
-
Need help in using FM BAPI_MATERIAL_SAVEDATA
Gurus,
I need help in using the FM BAPI_MATERIAL_SAVEDATA. The FM is returning a message that says "The field MARA-MEINS/BAPI_MARA-BASE_UOM(_ISO) is defined as a required field; it does not contain an entry".
I have supplied the necessary details and yet the FM won't push through.
If possible, please post sample codes.
Below is my sample code:
===============================================
REPORT zmm_materialupload.
eject
$$******************************************************************************
$$ TYPES
$$******************************************************************************
eject
$$******************************************************************************
$$ INTERNAL TABLES (custom structure
$$******************************************************************************
eject
$$******************************************************************************
$$ RANGES
$$******************************************************************************
eject
$$******************************************************************************
$$ FIELD-SYMBOLS
$$******************************************************************************
eject
$$******************************************************************************
$$ PARAMETERS & SELECT-OPTIONS
$$******************************************************************************
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE text-001.
*SELECT-OPTIONS: s_matnr FOR mara-matnr.
SELECT-OPTIONS: s_mtart FOR mara-mtart.
SELECT-OPTIONS: s_mbrsh FOR mara-mbrsh DEFAULT 'P'.
SELECT-OPTIONS: s_werks FOR marc-werks DEFAULT '1000' OBLIGATORY.
SELECT-OPTIONS: s_lgort FOR marc-lgpro DEFAULT 'OPSL' OBLIGATORY.
PARAMETERS: p_path LIKE rlgrap-filename DEFAULT 'C:\Documents and Settings\training_11\Desktop\Book4 (2ITEMS).txt' OBLIGATORY.
SELECTION-SCREEN END OF BLOCK 1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
field_name = 'P_FNAME'
IMPORTING
file_name = p_path.
eject
$$******************************************************************************
$$ START-OF-SELECTION
$$******************************************************************************
START-OF-SELECTION.
PERFORM check_input.
PERFORM get_file.
PERFORM filter_input.
PERFORM populate_tabs.
PERFORM bapi_mat.
eject
$$******************************************************************************
$$ FORMS
$$******************************************************************************
FORM bapi_mat.
LOOP AT it_tab INTO wa_tab.
CALL FUNCTION 'BAPI_MATERIAL_GETINTNUMBER'
EXPORTING
material_type = wa_tab-mtart
industry_sector = wa_tab-mbrsh
required_numbers = 1
TABLES
material_number = it_matnr.
ENDLOOP.
LOOP AT it_matnr INTO wa_matnr.
READ TABLE it_tab INTO wa_tab INDEX sy-tabix.
wa_tab-matnr = wa_matnr-material.
MODIFY it_tab FROM wa_tab INDEX sy-tabix.
ENDLOOP.
PERFORM populate_tabs.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = it_headdata
clientdata = it_clientdata
clientdatax = it_clientdatax
plantdata = it_plantdata
plantdatax = it_plantdatax
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
valuationdata = it_valuationdata
valuationdatax = it_valuationdatax
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA =
SALESDATAX =
STORAGETYPEDATA =
STORAGETYPEDATAX =
flag_online = ' '
flag_cad_call = ' '
NO_DEQUEUE = ' '
NO_ROLLBACK_WORK = ' '
IMPORTING
return = it_return
TABLES
materialdescription = it_materialdescription
unitsofmeasure = it_unitsofmeasure
unitsofmeasurex = it_unitsofmeasurex
internationalartnos = it_internationalartnos
materiallongtext = it_materiallongtext
taxclassifications = it_taxclassifications
returnmessages = it_returnmessages
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF sy-subrc = 0.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = it_return.
ENDFORM. "bapi_mat
*& Form GET_FILE
text
FORM get_file.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = 'Getting data from file...'.
MOVE: p_path TO gv_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = gv_file
filetype = 'ASC'
has_field_separator = 'X'
read_by_line = 'X'
TABLES
data_tab = it_tab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. "GET_FILE
*& Form check_input
text
FORM check_input.
Material Type
IF s_mtart-low IS INITIAL AND s_mtart-high IS INITIAL.
s_mtart = 'IEQ'.
s_mtart-low = 'ABF'. "Waste
s_mtart-high = 'ZTRD'. "Stock Items
APPEND s_mtart.
ENDIF.
IF s_mtart-low IS NOT INITIAL AND s_mtart-high IS INITIAL.
MOVE: s_mtart-low TO s_mtart-high.
ENDIF.
Industry Sector
IF s_mbrsh-low IS INITIAL AND s_mbrsh-high IS INITIAL.
s_mbrsh = 'IEQ'.
SELECT mbrsh
FROM mara
INTO TABLE it_mbrsh.
s_mbrsh-low = wa_mbrsh-mbrsh.
LOOP AT it_mbrsh INTO wa_mbrsh.
s_mbrsh-high = wa_mbrsh-mbrsh.
ENDLOOP.
APPEND s_mbrsh.
ENDIF.
IF s_mbrsh-low IS NOT INITIAL AND s_mbrsh-high IS INITIAL.
MOVE: s_mbrsh-low TO s_mbrsh-high.
ENDIF.
Plant
IF s_werks-low IS INITIAL AND s_werks-high IS INITIAL.
s_werks = 'IEQ'.
s_werks-low = '1000'.
s_werks-high = '2000'.
ENDIF.
IF s_werks-low IS NOT INITIAL AND s_werks-high IS INITIAL.
MOVE: s_werks-low TO s_werks-high.
ENDIF.
Storage Location
IF s_lgort-low IS NOT INITIAL AND s_lgort-high IS INITIAL.
MOVE: s_lgort-low TO s_lgort-high.
ENDIF.
ENDFORM. "check_input
*& Form Filter_input
text
FORM filter_input.
SORT it_tab BY matnr mtart mbrsh werks lgort.
LOOP AT it_tab INTO wa_tab.
IF wa_tab-mtart NOT IN s_mtart.
DELETE it_tab WHERE mtart NOT IN s_mtart.
ENDIF.
IF wa_tab-mbrsh NOT IN s_mbrsh.
DELETE it_tab WHERE mbrsh NOT IN s_mbrsh.
ENDIF.
IF wa_tab-werks NOT IN s_werks.
DELETE it_tab WHERE werks NOT IN s_werks.
ENDIF.
IF wa_tab-lgort NOT IN s_lgort.
DELETE it_tab WHERE lgort NOT IN s_lgort.
ENDIF.
ENDLOOP.
ENDFORM. "Filter_input
*& Form populate_tabs
text
FORM populate_tabs.
LOOP AT it_tab INTO wa_tab.
MOVE: wa_tab-matnr TO wa_headdata-material,
wa_tab-mbrsh TO wa_headdata-ind_sector,
wa_tab-mtart TO wa_headdata-matl_type,
'X' TO wa_headdata-basic_view,
'X' TO wa_headdata-sales_view,
'X' TO wa_headdata-purchase_view,
'X' TO wa_headdata-mrp_view,
'X' TO wa_headdata-account_view.
wa_tab-matkl TO wa_clientdata-matl_group,
wa_tab-meins TO wa_clientdata-base_uom,
wa_tab-groes TO wa_clientdata-size_dim,
wa_tab-gewei TO wa_clientdata-unit_of_wt,
wa_tab-ntgew TO wa_clientdata-net_weight,
'X' TO wa_clientdatax-matl_group,
'X' TO wa_clientdatax-base_uom,
'X' TO wa_clientdata-size_dim,
'X' TO wa_clientdatax-unit_of_wt,
'X' TO wa_clientdatax-net_weight,
wa_tab-werks TO wa_plantdata-plant,
wa_tab-ekgrp TO wa_plantdata-pur_group,
wa_tab-prctr TO wa_plantdata-profit_ctr,
wa_tab-werks TO wa_plantdatax-plant,
'X' TO wa_plantdatax-pur_group,
'X' TO wa_plantdatax-profit_ctr,
wa_tab-werks TO wa_valuationdata-val_area,
wa_tab-bklas TO wa_valuationdata-val_class,
wa_tab-peinh TO wa_valuationdata-price_unit,
wa_tab-verpr TO wa_valuationdata-moving_pr,
wa_tab-stprs TO wa_valuationdata-std_price,
wa_tab-xlifo TO wa_valuationdata-lifo_fifo,
wa_tab-werks TO wa_valuationdatax-val_area,
'X' TO wa_valuationdatax-val_class,
'X' TO wa_valuationdatax-price_unit,
'X' TO wa_valuationdatax-moving_pr,
'X' TO wa_valuationdatax-std_price,
'X' TO wa_valuationdatax-lifo_fifo.
APPEND wa_headdata TO it_headdata.
APPEND wa_clientdata TO it_clientdata.
APPEND wa_plantdata TO it_plantdata.
APPEND wa_valuationdata TO it_valuationdata.
MODIFY it_tab FROM wa_tab TRANSPORTING matnr.
ENDLOOP.
ENDFORM. "populate_tabs
$$******************************************************************************Hai.
check the below example.
REPORT z34332_bdc_create_material .
data: la_headdata type BAPIMATHEAD,
la_clientdata type BAPI_MARA,
la_CLIENTDATAX type BAPI_MARAX,
la_return type BAPIRET2.
data: i_materialdescription type table of BAPI_MAKT,
wa_materialdescription like line of i_materialdescription.
la_headdata-MATERIAL = '000000000000000004'.
la_headdata-IND_SECTOR = 'M'.
la_headdata-MATL_TYPE = 'FERT'.
la_clientdata-BASE_UOM = 'FT3'.
la_CLIENTDATAX-BASE_UOM = 'X'.
la_clientdata-MATL_GROUP = '01'.
la_CLIENTDATAX-MATL_GROUP = 'X'.
wa_materialdescription = 'TEST'.
append wa_materialdescription to i_materialdescription.
clear: wa_materialdescription.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = la_headdata
CLIENTDATA = la_clientdata
CLIENTDATAX = la_CLIENTDATAX
PLANTDATA =
PLANTDATAX =
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
VALUATIONDATA =
VALUATIONDATAX =
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA =
SALESDATAX =
STORAGETYPEDATA =
STORAGETYPEDATAX =
FLAG_ONLINE = ' '
FLAG_CAD_CALL = ' '
IMPORTING
RETURN = la_return
TABLES
MATERIALDESCRIPTION = i_materialdescription
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
write: la_return-TYPE, ',', la_return-MESSAGE.
clear: la_headdata, la_return, la_clientdata, la_clientdatax.
regards.
sowjanya.b. -
Need help in using ActiveX to retrieve a VARIANT
Need help in using ActiveX to retrieve a VARIANT.
Variant is shown as var{VT_Ul1,1} in debug
Using the following
hr = CA_VariantGetShort (&var, &value);
I get 0 for my answer instead of 1.
Solved!
Go to Solution.Answered my own question.
VT_Ul1 is an unsigned char and not a short. -
I need help instantly on this program please
import java.util.*;
public class D3
private static int[] z = new int[100000];
private static int first=z[0];
private static int last=z[n-1];
private static int n=100000;
public static void main(String args[])
Scanner input=new Scanner(System.in);
for(int i=0;i<z.length;i++)
z=2*i;
int seqSearch(z;50000;n); //method call 4 key where key=mid
int binSearch(z;first;last;50000);
int seqSearch(z;35467;n); //method call 4 key where key in the left half
int binSearch(z;first;last;35467);
int seqSearch(z;89703;n); //method call 4 key where key in the right half
int binSearch(z;first;last;89703);
public int seqSearch(int z[];int key;int n)
long start = System.currentTimeMillis();
int count=0;
int ans=-1;
for(int i=0;i<n;i++)
if z[i]=key
count++
{ans=i
break;}
return ans;
long elapsed = System.currentTimeMillis() - start;
System.out.print("Execution Time:" + elapsed);
System.out.print("# of Basic Operations:" + count);
public int binSearch(int z[];int first;int last;int key)
long start = System.currentTimeMillis();
int count=0;
if(last<first){
count++;
index=-1;
else
count++;
int mid=(first+last)/2
if(ket=z[mid]{
index=mid;
else
if(key<z[mid]){
index = binSearch(z[];first;mid-1;key);
else
index=binSearch(z[];mid+1;last;key);
return index;
long elapsed = System.currentTimeMillis() - start;
System.out.print("Execution Time:" + elapsed);
System.out.print("# of Basic Operations:" + count);
// if anyone could tell me whats wrong with my code i'd be greatful...the program is supposed to perform binary and sequential search on a sorted array of 100000 numbers.once on an item in the middle of the array once on the right side of it and once on the left side...i also need to count the number of basic operations for the same number in both sequential and binary to see whats better.and i need to check the time...plz i need help now,,,"Guide to a first-time poster"
you need to add exclamation marks to signify how urgent it is
e.g.
i need help instantly on this program please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
capital letters is better
I NEED HELP INSTANTLY ON THIS PROGRAM PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
starting the italics on line 1, better again
import java.util.*;
public class D3
private static int[] z = new int[100000];
private static int first=z[0];
private static int last=z[n-1];
private static int n=100000;
public static void main(String args[])
Scanner input=new Scanner(System.in);
for(int i=0;i<z.length;i++)
z=2*i;
int seqSearch(z;50000;n); //method call 4 key where key=mid
int binSearch(z;first;last;50000);
int seqSearch(z;35467;n); //method call 4 key where key in the left half
int binSearch(z;first;last;35467);
int seqSearch(z;89703;n); //method call 4 key where key in the right half
int binSearch(z;first;last;89703);
public int seqSearch(int z[];int key;int n)
long start = System.currentTimeMillis();
int count=0;
int ans=-1;
for(int i=0;i<n;i++)
if z=key
count++
{ans=i
break;}
return ans;
long elapsed = System.currentTimeMillis() - start;
System.out.print("Execution Time:" + elapsed);
System.out.print("# of Basic Operations:" + count);
public int binSearch(int z[];int first;int last;int key)
long start = System.currentTimeMillis();
int count=0;
if(last><first){
count++;
index=-1;
else
count++;
int mid=(first+last)/2
if(ket=z[mid]{
index=mid;
else
if(key><z[mid]){
index = binSearch(z[];first;mid-1;key);
else
index=binSearch(z[];mid+1;last;key);
return index;
long elapsed = System.currentTimeMillis() - start;
System.out.print("Execution Time:" + elapsed);
System.out.print("# of Basic Operations:" + count);
and what about the dukes, offer 10 (never to be awarded, of course)
do this, then sit back and watch the replies roll in. -
Need help on Using Oracle Acces Manager 11g
Hi
I Need help on Using Oracle Acces Manager Admin console to configure for SSO.
I am new to Identity Management
I have installed OAM 11g and configured for OAM in new weblogic domain
Please help to proceed forward.
Thanks
SwapnilHi
Thanks for your reply
I am able to login to the console
I am unable to login the the weblogic server from another machine but abl eto do so from the machine where all this is installed
What i feel is there needs to be some configurataion maybe policy or Agent
IDMDomainAgent is configured and so is the OAM server configured .
Please advice some books or link how to do achieve logging into the weblogic em/console from a remote machine
Thanks in Advance -
I need help on using up Microsoft.
i need help on using up microsoft
Moderator's Note: Post was moved and changed the title into a subject-related title. This is to keep the forum organized and let other forum users easily see and respond to this post.Please, we need the error message word for word. If you do not get an error message, please, elaborate in greater detail …
Furthermore, which phone model do you use? -
How to copy a Module Pool Program from one SAP server to another SAP server
Hi Experts,
My requirement is to copy some Module pool programs from one SAP server to another SAP server which do not have any link.
Please advise on this.
Regards
Dipakput all relevant objects inside a transport request and release it. this will generate two files, a control file in /usr/sap/trans/cofiles/ and a data file in /usr/sap/trans/data/
you can take these two files, zip'em up and e.g. email them to your destination. There they have to be put into the same directories of that other server and can then be added to the import queue and finally imported.
These last steps would usually be done by an administrator.
Both systems should be on the same release, as far as I know.
Cheers
Thomas -
I have Iconia Tab A500 running 3.0, need help updating, I downloaded all updaes list in the acer supprt, all versions, 3.0, 3.1, 3.2, and 4.something, I read on the acer support somewhere I can use a microsd card to update my device, because acer no longer provides automatically, when i try it says "poor network connection, move to anthoer location.", Do I need to update all the listed updates, or can i only update, using the 4. 0? to get the last known update. I also downloaded, "Documents, Apllications, Drivers, Patches, and O.S..... How do i intsall all these updates, I think am running the very lowest version available, Please Help me... Thank you in advance.
the update listed on the acer website, that mentions the a500 update is 'kernal source code (for Android 4.0 Ice Cream Sandwich) it's 96.7MB's released 2012/05/08' is that the right one i need? There is also a list of 3 O.S updates, released in 2014/09/05, 391.5MB's, 394.3MB's, and 391.5MB's large, what are those updates, I clicked the model and followed the directions that the acer website asks, and i ended with a list of update released in 2014/09/05, and a Document update released in 2014/12/17, 112.7KB's large, list of updates reased in 2014/.... and in the Android 4.0 culumn, there is an update that says O.S update released in 2014/09/05, 434.2MB's large, and a Patch Update, that was released in 2013/03/21, what are these updates? listedin the aver website... http://www.acer.ca/ac/en/CA/content/drivers
-
Need help with using Email Activation Agent
Hi,
please, help me with using E-mail Activation Agent.
I used email activation agent to start business processes by email, but after that letter disappear from email-server.
Where letter was located?
Can I get and read letter for processing?Mail/Preferences/General - do you have Unibox set as your default e-mail application?
Maybe you are looking for
-
The back and forward buttons on Logitech mouse don't work
My logitech performance MX back and forward buttons don't work. I tried in safe mode and they still don't work. I tried creating a custom shortcut in logitech setpoint and that didn't work either. I tried using the native mouse driver and not logitec
-
How to directly print PDF file(which is stored in SAP) in ABAP report?
Hi experts, I searched SDN for printing PDF file but everything is about OTF to PDF and to use fm: CONVERT_OTF which is not the solution for my problem. I have to build ABAP report which will take the PDF file attached to SAP document (CV02N) and pri
-
I recently created a file in Illustrator CS6 (Creative Cloud version), and saved it as PDF with illustrator editing capabillities preserved. It saved fine, but when I opened the file in Illustrator CS6 again for more editing today, it gave me an earl
-
How to disable some HTML and CSS property's
Hello, I want to ask how I can disable or remove example: HTML: ice:editable="" ice:repeating="" ice:repeatinggroup="" (Each time I type "i" and want to have "id" DW suggesting me "ice") CSS: widows: (Each time I type "wi" and want to have "width" DW
-
Premier pro crashing again and again, Premier pro crashing again and again
Premier pro crashing again and again