Scripts for SAP mappings
To generate the scripts for SAP mappings:
- From the Warehouse Module Editor menu, choose Module then Generate.
- The Generation Mode dialog
hi i don't find the "generation mode dialog". where i find it?
robson
thanks.
hi,
the reboot of a system can be of broadly two types.
1) done by the user
2) abrupt shutdown say due to power failure.
if you closely look at the file inittab under /etc/ you will find different files are executed for different run levels. For powerfailure also there is a script called powerfail under /etc/init.d/. with different options.
under init.d directory you can find all the scripts for different run levlels starting from rc0-rc6, halt named script , and reboot named script.
. So to solve your problem you can write a script and execute it under this files. Changing all these files are not at all recommended as any mistake can lead to a system halt state. But still we can make the changes if we know what are we doing and definitely you can try if are having a test system with you.
the logic will go something like this:-->
1) for shutdown
respawn a new shell
login as <sid>adm
execute the command i.e stopsap
exit from that user
same goes for startup also.
now only you have to run this script in the appropriate files at appropriate places(most important).
but the main problem comes when system goes down as sap system takes time to stop so you have to make your OS wait uptill that which may be a tedious task.
. the above discussion was keeping SUSE linux enterprise server in mind.
Please do not make any changes in the above mentioned file if you are running a crucial
system on that OS. try only on a test system.
revert back in case of any query..
cheers,
yatindra
null
Similar Messages
-
HACMP Clustering Script for SAP ECC 6.0 (SR1) - Automatic Failover-Oracle10
Hello,
I have installed the SAP ECC 6.0 (SR1) under AIX 5.3 / Oracle 10g with HACMP Clustering environment. Manual Failover is working fine. ASCS and Database instances are loaded in share drive with Virtual IP and Virtual name. Central Instance and Dialog Instance are loaded locally in Node A and Node B. I want to get HACMP Clustering script(automatic failover script) for Automation. Please help me if you have.
Thanks
Gautam PoddarHere are HA stop & start scripts that you should be able adapt for your particular circumstances. Based on earlier versions of SAP / Oracle but assume should be a reasonable guide
Script to start SAP is start_sap_prd
#!/bin/ksh
Script: /usr/local/bin/cluster/start_sap_prd
Comments: HACMP Application START script for PRD
Show me obvious information in hacmp.out
banner "Starting"
banner "PRD SAP"
Set the oracle and sap owner.
ORASID="PRD"
SAPADM="prdadm"
ORAUSR="oraprd"
VIRTUALHOST="vhost"
DEVHOST="vhostdev"
Get the volume groups for this resource group
RG=$( /usr/es/sbin/cluster/utilities/cllsgrp | grep -i $ )
VG_LIST=$( /usr/es/sbin/cluster/utilities/cllsres -g $ | \
grep "VOLUME_GROUP=" | \
awk -F\" '{ print $2 }' )
Check the transport directory is mounted.
if mount | grep -w "/usr/sap/trans"
then
print "Transport directory is already mounted."
else
cd /tmp
print "Attempting a background mount of the transport directory."
nohup mount -o intr,bg,soft :/usr/sap/trans1 /usr/sap/trans &
fi
#Start SAP and Oracle
#Start listener
su - $ -c /rprd/oracle/PRD/920_64/bin/lsnrctl start
rc=$?
if [ $? != 0 ]
then
echo "ERROR: Listener failed to start\n"
fi
#Start Database
su - $ -c "/rprd/oracle/PRD/bin/start_database_PRD.sh"
sleep 20
Standard sapstart script
su - $ -c startsap $
Script: /usr/local/bin/cluster/stop_sap_prd
Dated: 01/11/06
Application: Oracle/SAP
Comments: HACMP Application STOP script for SAP / Oracle PRD
Show me obvious information in hacmp.out
Set the oracle and sap owner.
rc=$?
if [ $? != 0 ]
then
echo "ERROR: Failed to start SAP\n"
fi
exit 0
Script to stop SAP is stop_sap_prd
#!/bin/ksh
set -x
banner "stopping"
banner "PRD SAP"
ORASID="PRD"
SAPADM="prdadm"
ORAUSR="oraprd"
VIRTUALHOST="vhost"
#Stop SAP/Oracle
su - $ -c stopsap $
rc=$?
if [ $? != 0 ]
then
echo "ERROR: Failed to stop SAP and Oracle\n"
break
fi
Stop SAP collector and Oracle listener.
su - $ -c /usr/sap/PRD/SYS/exe/run/saposcol -k
rc=$?
if [ $? != 0 ]
then
echo "ERROR: Failed to stop SAPOSCOL \n"
fi
su - $ -c /rprd/oracle/PRD/920_64/bin/lsnrctl stop
rc=$?
if [ $? != 0 ]
then
echo "ERROR: Listener failed to stop\n"
fi
if mount | grep -w "/usr/sap/trans"
then
print "Transport directory is mounted."
/usr/es/sbin/cluster/events/utils/cl_nfskill -k -u /usr/sap/trans
sleep 1
/usr/es/sbin/cluster/events/utils/cl_nfskill -k -u /usr/sap/trans
sleep 1
umount -f /usr/sap/trans &
else
print "Transport directory is not mounted."
fi
exit 0 -
Disaster Recovery server for SAP and HACMP Cluster script for SAP ECC 6.0
Hi,
I need document for Disaster Recovery server for SAP? I have to configure the DR Server If you have, please share this document if possible.
Have you any cluster script ( HACMP Cluster script for SAP ECC 6.0 ) ?
Thanks & Regards,Hello, I'm doing a "Plant ECC6 to do a test disatre / Recovery.
During the installation, I would use the same <sidadm> existing as it is in the PRD.
If I tell you to install it during the same <sidadm> it will overwrite what already exists, or do I just enter the password of existing <sidadm>? -
Basic SQL query scripts for SAP B1
hi guys,
do you have any documents, guides or reference links regarding basic SQL query scripts for SAP B1?
thanks and have a nice day!
blake p.Hi
You can also check SBONotes.com.
For sql understanding , you can search in websearch - tsql and it will pop up with informations you need.
You can also refer to forum once you understand the basic techniques
Hope this helps
Bishal -
HACMP Clustering Script for SAP ECC 6.0 (SR1) - Automatic Failover
Hello,
I have installed the SAP ECC 6.0 (SR1) under AIX 5.3 / DB2 V8 FP12 with HACMP Clustering environment. Manual Failover is working fine. Central System has been installed in share drive with Virtual IP and Virtual name inNode A. Dialog Instance is loaded locally in Node B. I want to get HACMP Clustering script(automatic failover script) for Automation. Please help me if you have. It is single package clustering. If Node A fails, Node B will take care ( Central System and Dialog instance will run in Node B)
Thanks
Gautam Poddarthis post is duplicated at Upgrade to ERP 2005/ECC 6.0 from R/3 4.72/Basis 640 on Z/OS 1.4 DB2 8.1
-
Creating a Perl script for SAP sytem profile parameter
Hi,
I need to create a perl script for all th eprofile parameter to check as a security directive ,so that whenever the system is started it checks for this profile parameter.
As per my company sap directive ,these are the profile parameter i need to set.
Can anyone let me know how to write the scripts.
login/min_password_lng Minimum password length for user password 320 Min.
8
login/password_expiration_t
ime
Number of days between forced password change. 0 Max.
35
login/fails_to_session_end Number of invalid logon attempts allowed before the
SAP GUI is disconnected.
3 Max.
3
login/fails_to_user_lock Number of invalid logon attempts before the user id is
automatically locked by the system.
12 Max.
6
rdisp/gui_auto_logout Time, in seconds, that SAPGUI is automatically disconnected
because of in-activity.
0 60-
7200
21
auth/test_mode Jump into report RSUSR400 at every authority check N N22
auth/system_access_check_
off
Switch off automatic authority check for special ABAP
commands
0 0
auth/no_check_in_some_ca
ses
Special authorization checks turned off by customer.
Enabling of Profile Generator
N/Y23 Y
login/ext_security Security access controlled by external software. N N24
auth/rfc_authority_check Permission for remote function calls from within ABAP
programs
0 1
login/failed_user_auto_unlo
ck
Enable system function for automatic unlock of users
at midnight. (0 = locks remain)
0 0
login/
no_automatic_user_sapstar
(as of 3.1h)
login/no_automatic_user_sa
p* (prior to 3.1h)
Disable ability to logon as SAP* with PASS as password
when SAP* deleted.
0 125,26
auth/tcodes_not_checked TCode checking for SU53 & SU56 analysis disabled (empty
"SU5
3
Regards,
Chetan.Here's a simple perl script that should help you get what it is you're looking for - you can add all the parameters you want to search for, I just took a few of them:
#!/usr/bin/perl -w
use strict;
use sapnwrfc;
SAPNW::Rfc->load_config;
my $rfc = SAPNW::Rfc->rfc_connect;
my @parms = ( "login/min_password_lng",
"login/password_expiration_time",
"login/fails_to_session_end",
"login/fails_to_user_lock" );
for my $x (0 .. $#parms) {
my $rcc = $rfc->function_lookup("SXPG_PROFILE_PARAMETER_GET");
my $slr = $rcc->create_function_call;
$slr->PARAMETER_NAME($parms[$x]);
$slr->invoke;
print "Value for $parms[$x] is: ".$slr->PARAMETER_VALUE."\n";
$rfc->disconnect();
And running it, you'll get:
[dhull@397 scripts]$ ./read-profile.pl
Value for login/min_password_lng is: 7
Value for login/password_expiration_time is: 90
Value for login/fails_to_session_end is: 3
Value for login/fails_to_user_lock is: 6
[dhull@397 scripts]$
If you need to get your perl environment read to make RFC calls to your SAP system, check my series of blogs on how to do so here:
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/251752730
Cheers,
David. -
SAP HA failover script for RHCS
Hi Guys,
We have built a SAP HA system on RHCS and the services are not automated due to scripts un-availability. So everytime when the server node goes down we
are manually moving the services and starting the SAP and DB.
So can anyone help me by providing or suggesting on the failover scripts for SAP HA on RHCS.
Best Regards,
ShreeHello,
the SAPInstance resource agent must be configured for SAP services and SAPDatabase must be configured for the database so that they can be managed by cluster. these resource agents will take care of starting/stopping the SAP/DB related services
the sapstartsrv also will be managed by the cluster automatically. incase if this service is running in both nodes for ASCS/SCS instances stop them so that it will started by the cluster framework in the appropriate node
also check if SAPHOSTAGENT in installed in both the nodes
check the below link for further help
ocf_heartbeat_SAPInstance
if these Resource agents are not configured then you need to only start/stop them manually
regards, Chandru -
Where can i find start/stop scripts for all SAP instances
Hi,
I installed CI, DB and Dialog instance on a standalone S10 machine and i could see start scripts under /sapmnt/RAM/profile
START_DVEBMGS09_hostSAP
START_D24_hostSAP
But i cann't see stop scripts for the above and also i cann't see start and stop scripts for SAP DB instance. Could some one point me where i can find them when everything is installed on a single box.
Thanks,
RamUSAGE: STARTSAP.EXE name=<SID> nr=<SYSNR> SAPDIAHOST=<host>
FURTHER INFORMATION:
- The executable sapstart.exe must be in the same directory
when you start sap instacne, it will check db instance first, if db instance not start , it will automatic start db instance then sap instance.
vice visa :
stopsap is alos can be used. -
Purpose of RSTXTRAN program for SAP-Script ?? ??
Purpose of RSTXTRAN program for SAP-Script ?? ??
when it is required to run that program ?Hi sarit,
Purpose of RSTXTRAN program for SAP-Script Transfer of SAP script Texts to a Correction.
The report RSTXTRAN allows a set of SAP script texts (or the text key) to be transferred to a correction or repair of the transport system. The name of the correction/repair can either be transferred as a report parameter, or the correction/repair can be selected later in a selection window. The text key can be qualified generically using the asterisk character (*).
When the report has been executed, the list of selected texts appears. Individual texts can be deselected in this list. When the function "Continue" is executed, the final list of texts which are to be transferred is displayed. The transfer of texts to the correction/repair can now be activated by the appropriate function, and must be confirmed in a dialog box.The requirements for this as follows.
There is a correction/repair in which the selected text keys can be entered, if it is not being processed. The report can only insert text keys in corrections or repairs, not however in transport requests. However, the objects contained in a correction can be transferred to a transport request with the correction and transport system transaction.
It should also be noted that the report selects texts in the current client, but that the transport system generally exports texts from client 000.
When the report has been executed,the output can be a list of the selected texts. Information about whether transfer to the correction/repair was possible is displayed for each text key.
Reasons for failed transfer include
o the correction/repair is currently being processed
o the correction/repair does not exist
For Example
All German standard texts with the ID ST, whose names begin with SAPSCRIPT, are to be entered in the correction B20K009999. The report parameters are then assigned values as follows:
o Correction: B20K009999
o Text object: TEXT
o Text name: SAPSCRIPT*
Thanks,
Usha -
Advantages of using laster printers for SAP SCRIPTS
Dear Friends,
Here client is saying use scripts for Dotmatrix printer, for all graphics. can i know
<b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
Thanks & Regards
HussainDear Friends,
Here client is saying use scripts for Dotmatrix printer, for all graphics. can i know
<b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
Thanks & Regards
Hussain -
Advantages of using laser printers for SAP SCRIPTS compare to Dot matrix
Dear Friends
<b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
Thanks & Regards
HussainDear Friends
<b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
Thanks & Regards
Hussain -
Search functionality for SAP script
All,
I am looking some of kind utility or report like RPR_ABAP_SOURCE_SCAN for sap script.
This is my requirement
One of the country code has been hardcoded in various forms (sapscripts) i like to scan all custom sapscripts and find all these form names so that i can easily change.
Is there any way to do this ?
a®REPORT ztextscan.
TABLES stxh.
SELECT-OPTIONS:
object FOR stxh-tdobject DEFAULT 'FORM',
name FOR stxh-tdname,
id FOR stxh-tdid DEFAULT 'TXT',
spras FOR stxh-tdspras.
PARAMETERS text TYPE string.
DATA gt_lines TYPE TABLE OF tline WITH HEADER LINE.
SELECT * FROM stxh
WHERE tdobject IN object AND
tdname IN name AND
tdid IN id AND
tdspras IN spras.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = stxh-tdid
language = stxh-tdspras
name = stxh-tdname
object = stxh-tdobject
TABLES
lines = gt_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
CHECK sy-subrc = 0.
LOOP AT gt_lines.
SEARCH gt_lines-tdline FOR text AND MARK.
CHECK sy-subrc = 0.
WRITE:/ stxh-tdid, stxh-tdspras, stxh-tdname, stxh-tdobject, gt_lines-tdline.
ENDLOOP.
ENDSELECT. -
Translating for SAP Script in ECC 6.0
Hi All ,
How we can do the transalations for SAP Script in ECC6.0? . I was not able to do as we do in 4.7 version where we follow the following path
Translations -> Long texts -> forms .
Can any ody help me inthis regard ?
Thanks ,
Dharma .Hi Anirban,
I tried that way . When I entered Scripti name in the filed " Object Name" , it is giving warning message "Object not found"( actaully it is existing ) . Even i tried to select by F4, No thing I Could find .Transactional area defaultred to 999999( tried wiht blank also) .
Can any body help for any alternative ?
Thanks ,
Dharma . -
Dear ABAPer's ,
I am working on a SAP Script for Delivery.The requirement is I need a print out for each line item in a delivery in a seperate page.
For example if the delivery has 3 line items.I should print each line items details in 3 seperate pages.
I have modified the routine RVADDN01 according to my requirements.
How to do this...Hi Sapient,
In order to create a page for each line item what you have to do is in the script part where you have written the values.
for eg: if the line item details(VALUE) are in an internal table "<b>I_DETAILS</b>"
<b>Script:</b>
/E DET
P1 &I_DETAILS-VALUE&
/: NEW-PAGE
<b>Driver program:</b>
Loop at i_details.
CALL FUNCTION 'WRITE_FORM'
ELEMENT = 'DET'
TYPE = 'BODY'
WINDOW = 'MAIN'.
Endloop.
Try this it would work.
Reward if helpful.
Regards,
Tushar -
How to attach print program and sap script for F150 transaction
How to attach print program and Z sap script for F150 transaction
Hi,
you can find the customization for dunning in transaction SPRO under this path: Financial Accounting->Accounts Receivable and Accaounts Payable->Business Transactions->Dunning.
Kostas
Maybe you are looking for
-
Why does my signin ID and password work to download a file I created?
Why does my signin ID and password work to download a file I created?
-
Desk top manager stopped working
I recently had some window 7 updates, Since then my desktop manager won't work. I have uninstalled it and cleared everything out and re-installed to no avail. I have checked the compatibility and checked that it is on window 7. When I launch the Blac
-
What Are the Different Versions, Models, etc. of iPhones?
Hey- I want to get some gifts for friends with iPhones. One just got the latest one, and one has the first one that came out but just got it too. if I want to get a gel type of case does it matter that I know which iPhone they have? How many differen
-
SMB-problem: can see/manage files, but cannot open from Windows 8.1
I have some files shares on a Mavericks server (clean install, including OSX Server). I can connect and see the shared files from my Windows clients (both 7 and 8.1). I can even create files, rename them, etc. From Windows 7 i can also open and edit
-
Hi Gurus, I don't see exactly what is the difference between cumulation type 1 and 2 in the routing when there are suboperations. I don't see any differences in routing nor in order itself. Could you help me please ??? Regards