One doubt in script
hi guru,
in my script
form GET_VALID_CONDTYPES tables in_tab structure itcsy
ex_tab structure itcsy.
data : lc_datbi(10),
lc_datbi_ext(10),
lc_date(10).
loop at in_tab.
case in_tab-name.
when 'DATBI'.
move in_tab-value to lc_datbi.
in form i wrote &EKOMD-DATBI&(VALUE IS FETCHING FROM ekomd STRUCRE)
the probleam is in_tab-value = 29.06.2009 (develovment system)
in_tab-value = 2009.06.29 (quality system)
why the deviation is coming in different clients.my user setting is same for bothe the clients.
please let me know
Hi
In Script all u do is after u get the value is use
/: Perform ........
/: Endperform
/: SET DATE MASK = 'DD.MM.YYYY'
P1 &lc_datbi& WHERE P1 is the Paragraph format
For more information Check the below link
http://it.toolbox.com/wiki/index.php/Sap_script#6.6.09Formatting_Date_Fields:_SET_DATE_MASK
surya
Edited by: suryareddy on Aug 11, 2009 10:54 AM
Similar Messages
-
One doubt in VL03N transaction/
Hi All,
I have one doubt in VL03N transaction.I am an ABAPer.I don't iknow much about the SD process.My SD consultant has changed the Ship-To-Party addressin customer master but it is not reflecting in the document in VL03N.But when I see in the Environment -> Ship-To-Party i can see the address which we changed.Can anyone suggest the reason behind this difference?Hi Saket,
if u have different ship to party, while creating the sales order u have to sellect the ship to party. while creating delivery document WRT sales order sys automatically specifies that ship to party. ( i think they have not selected new ship to party at sales order level)
Regards,
Gopi -
Looking for a One to Many script to extend the system partition for Windows 7 machines
Looking for a One to Many script to extend the system partition for Windows 7 machines
Pre-written scripts can be found in the repository:
http://gallery.technet.microsoft.com/scriptcenter
If you can't find what you need, you can request a script (no idea if anyone ever bothers to fulfill these requests though, I know I don't):
http://gallery.technet.microsoft.com/scriptcenter/site/requests
Let us know if you have any specific questions.
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing) -
hi experts
i have one doubt while running dunning where can i see previous dunning notices. vendor /customerhi
thanks for you answer
regards
naveenkumar -
Actually i have one doubt in message class
Actually i have one doubt in message class. I want create message for following logic.
If the records already exits in database table ,
whatever input i will given in input fields like entry type and material no ,it will need in message.
i want rise the error message in my code like "Record entry type B Material no 029585888 already exits in database table".
I done the coding like.........
in SE80.
IF sy-subrc = 0.
MESSAGE e039 with zdbt-enttyp
zdbt-matnr.
ENDIF.
in SE91.
Record entry type &1 Location &2 already exits in database table.
is it correct? it s not working properly..
could you advice me.......Hello Raju
The only possible problem I see is that in your report you send a message of the wrong message class. Assuming that your message class is ZMSG then assure that your report begins with:
REPORT zreport MESSAGE-ID zmsg.
IF sy-subrc = 0.
MESSAGE e039 with zdbt-enttyp
zdbt-matnr.
ENDIF.
Regards
Uwe -
CAn any one supply this script
Hi can any one supply this script for
installing Oracle 11i...
adautostg.pl
In order to create a staging area...
Help me guys...I had check the version of perl in linux
perl -v
output is
this perl is, v5.8.0
but in the StartCD/Disk1/rapidwizard/...the adautostg.pl
file is not available...
so it could not able to start
still I tried by ./rapidwiz -
Hi Group
I have one doubt in smartforms. I have following requirement.
I want to print 14 labels on one A4 size page using smartforms. Can somebody please tell me how to go about it.
Please reply ASAP as it is a bit urgent requirement.
Thanks & Regards
Deeptihi Deepti,
Check out the thread
Re: LABEL Printing in SMART FORMS
Re: Goods Receipt Label
Regards,
Richa -
Experts:-
In SAP HR ( i n telephone reimberce ment which section we can show this) plz tell about this one because, we are co ordinated with the SAP HR it is related issue for me.. plz help.....
<MODERATOR: please read the rules of engagement first. thread locked.>You've already asked this on your other thread and the answer is NO. But as you were told there, you can edit them using the edit icon amongst the other icons (top right of your post).
Next time, please use more meaningful subject titles because "One Doubt" isn't descriptive about what your problem is. -
Hi,all i'm murali,i have one doubt
hi,all i have one doubt most of the times repeated in the interview ,plz solve me.
1. how will u raise exception management in function modules?
2. how to create a check box?
3. in a invoice how can i find the sales order
these r the questions plz give me the perfect answers for these .
waiting for reply.
murali.Murali,
1.
Exceptions
Our function module needs an exception that it can trigger if there are no entries in table SPFLI that meet the selection criterion. The exception NOT_FOUND serves this function:
Source Code
Having defined the parameter interface and exceptions, we can now write the source code of our function module. To do this, choose Source code in the Function Builder. This opens the ABAP Editor for the include program L of the exception or OTHERS occurs in the EXCEPTIONS addition of the CALL FUNCTION statement, the exception is handled by the calling program.
If the calling program does not handle the exception
The RAISE statement terminates the program and switches to debugging mode.
The MESSAGE ..... RAISING statement display the specified message. How the processing continues depends on the message type.
If the calling program handles the exception, both statements return control to the program. No values are transferred. The MESSAGE ..... RAISING statement does not display a message. Instead, it fills the system fields SY-MSGID, SY-MSGTY, SY-MSGNO, and SY-MSGV1 to SY-MSGV4.
Source Code of READ_SPFLI_INTO_TABLE
The entire source code of READ_SPFLI_INTO_TABLE looks like this:
FUNCTION READ_SPFLI_INTO_TABLE.
""Local interface:
*" IMPORTING
*" VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
*" EXPORTING
*" VALUE(ITAB) TYPE SPFLI_TAB
*" EXCEPTIONS
*" NOT_FOUND
SELECT * FROM SPFLI INTO TABLE ITAB WHERE CARRID = ID.
IF SY-SUBRC NE 0.
MESSAGE E007(AT) RAISING NOT_FOUND.
ENDIF.
ENDFUNCTION.
The function module reads all of the data from the database table SPFLI where the key field CARRID is equal to the import parameter ID and places the entries that it finds into the internal table SPFLI_TAB. If it cannot find any entries, the exception NOT_FOUND is triggered using MESSAGE...RAISING. Otherwise, the table is passed to the caller as an exporting parameter.
Calling READ_SPFLI_INTO_TABLE
The following program calls the function module READ_SPFLI_INTO_TABLE:
REPORT DEMO_FUNCTION_MODULE.
PARAMETERS CARRIER TYPE S_CARR_ID.
DATA: JTAB TYPE SPFLI_TAB,
WA LIKE LINE OF JTAB.
CALL FUNCTION 'READ_SPFLI_INTO_TABLE'
EXPORTING
ID = CARRIER
IMPORTING
ITAB = JTAB
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
CASE SY-SUBRC.
WHEN 1.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO.
WHEN 2.
MESSAGE E702(AT).
ENDCASE.
LOOP AT JTAB INTO WA.
WRITE: / WA-CARRID, WA-CONNID, WA-CITYFROM, WA-CITYTO.
ENDLOOP.
The actual parameters CARRIER and JTAB have the same data types as their corresponding interface parameters in the function module. The exception NOT_FOUND is handled in the program. It displays the same message that the function module would have displayed had it handled the error.
2. PARAMETERS p_check AS CHECKBOX .
3.You can find the information in table VBFA.
VBELV - Your Sales Order Number
VBTYP_N - 'M'
VBELN is the invoice number.
Don't forget to reward if useful..... -
I have one doubt on Checkbox Conditions
Hi Friends,
I have one doubt on Checkbox Conditions. I had download data into Excel Format. My requirement is suppose I have select 4 checkbox into table click on Download I want to download 4 records into Excel Format.
Now I have Select 4 Checkbox click on download button total records is downloaded
My Req:: I have select 4 checkbox into table click on Download I want to download 4 records into Excel Format.
So I had done Coding also. What I am doing that coding is
1. I have to create one Value Node(IPoDetails_ExcelData)
2. Now Data is available in this Value Node (PoDetails_OutTab)
3. what I am doing here Get the data from this value node (PoDetails_OutTab) and set that data to this Value Node (IPoDetails_ExcelData). Finally add the data to this Value Node (IPoDetails_ExcelData).
Could you check my code. If any problem in that code pls help me.
public void onActiondownloadToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActiondownloadToExcel(ServerEvent)
IPrivatePO_Details_ResultView.IPoDetails_ExcelDataNode ExcelNode = wdContext.nodePoDetails_ExcelData();
IPrivatePO_Details_ResultView.IPoDetails_ExcelDataElement ExcelEle;
wdComponentAPI.getMessageManager().reportSuccess("ExcelNode:"+ExcelNode);
IPrivatePO_Details_ResultView.IPoDetails_OutTabNode StockNode = wdContext.nodePoDetails_OutTab();
wdComponentAPI.getMessageManager().reportSuccess("StockNode:"+StockNode);
IPrivatePO_Details_ResultView.IPoDetails_OutTabElement StockEle ;
//wdComponentAPI.getMessageManager().reportMessage(IMessageCO_EnterStockDetails.SF_UPLOAD, null ,false);
for(int i = 0 ;i<StockNode.size();i++)
{ //wdComponentAPI.getMessageManager().reportSuccess("StockNode.size:"+StockNode.size());
StockEle = StockNode.getPoDetails_OutTabElementAt(i);
//wdComponentAPI.getMessageManager().reportSuccess("StockEle:"+StockEle);
if(StockEle.getCheckBox()== true)
{ wdComponentAPI.getMessageManager().reportSuccess("StockNodeCheck:"+StockEle.getCheckBox());
ExcelEle = ExcelNode.createPoDetails_ExcelDataElement();// Create Element
wdComponentAPI.getMessageManager().reportSuccess("ExcelEle:"+ExcelEle);
ExcelEle.setConf_Shp_Date(StockEle.getConf_Shp_Date()); wdComponentAPI.getMessageManager().reportSuccess("Conf_Shp_Date:"StockEle.getConf_Shp_Date()); wdComponentAPI.getMessageManager().reportSuccess("ExcelEleConf_Shp_Date:"ExcelEle.getConf_Shp_Date());
ExcelEle.setMaterial(StockEle.getMaterial());
ExcelEle.setMatl_Desc(StockEle.getMatl_Desc());
ExcelEle.setOa_Quantity(StockEle.getOa_Quantity());
ExcelEle.setOpn_Quantity(StockEle.getOpn_Quantity());
ExcelEle.setPo_Item(StockEle.getPo_Item());
ExcelEle.setPo_Number(StockEle.getPo_Number()); wdComponentAPI.getMessageManager().reportSuccess("Po_Number:"StockEle.getPo_Number()); wdComponentAPI.getMessageManager().reportSuccess("ExcelElePo_Number:"ExcelEle.getPo_Number());
ExcelEle.setPo_Status(StockEle.getPo_Status());
ExcelEle.setUom(StockEle.getUom());
ExcelEle.setStat_Date(StockEle.getStat_Date());
ExcelEle.setQuantity(StockEle.getQuantity());
ExcelEle.setDeliv_Date(StockEle.getDeliv_Date());
ExcelEle.setExpt_Shp_Date(StockEle.getExpt_Shp_Date());
ExcelEle.setVendor_Material(StockEle.getVendor_Material());
ExcelNode.addElement(ExcelEle); wdComponentAPI.getMessageManager().reportSuccess("H:::ExcelData::::"+ExcelNode.currentPoDetails_ExcelDataElement());
wdComponentAPI.getMessageManager().reportSuccess("H:::ExcelData::::"+ExcelEle.getPo_Item());
// wdThis.wdGetCO_POPendingController().downloadToExcelFile();
// wdThis.wdGetCO_POPendingController().DownLoadToExcel();// Popup Window
//wdThis.wdGetCO_POPendingController().downloadToExcelFile();
//wdComponentAPI.getMessageManager().reportSuccess("Giiiiii");
///wdThis.wdGetCO_POPendingController().DownLoadToExcel();
if(ExcelNode.size()>0)
//wdThis.wdGetCO_POPendingController().downloadToExcelFile(wdContext.nodePoDetails_ExcelData(),getReportingDelays());
//wdThis.wdGetCO_POPendingController().Downlaod();
//wdThis.wdGetCO_POPendingController().downloadToExcelFile();// This is Download Excel Data
IThis is method in CC-downloadToExcelFile and This is Open Popup window DownLoadToExcel(). This method also in CC
wdThis.wdGetCO_POPendingController().DownLoadToExcel();
wdContext.nodePoDetails_ExcelData().invalidate();
else {
wdComponentAPI.getMessageManager().reportException("Please select any one po item from the table",true);
//@@end
Regards
Vijay KalluriHi Vijay,
Please try to use this to implement your scenario:
public void onActiondownloadToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActiondownloadToExcel(ServerEvent)
IPrivatePO_Details_ResultView.IPoDetails_ExcelDataElement ExcelEle = null;
for(int i = 0; i< wdContext.nodePoDetails_OutTab().size(); i++)
ExcelEle = wdContext.createDetails_ExcelDataElement();
Here check condition for selected table checkbox column in nodePoDetails_OutTab()
if (wdContext.nodePoDetails_OutTab().getPoDetails_OutTabElementAt(i).get<Table Column Attribute>.getMdoNo
().equalsIgnoreCase("TRUE")
// Here you need to code for setting table row value in the node Details_ExcelData. Like same as below
ExcelEle.set<Table column Name>(wdContext.nodePoDetails_OutTab().getPoDetails_OutTabElementAt(i).get<Table
Column Attribute>.getMdoNo())
wdContext.nodeDetails_ExcelData().addElement(ExcelEle);
Hope it helps
Regards
Arun -
Why can't cron run one of my scripts [SOLVED]
I'm confused why cron can't run one of my scripts which runs just fine interactively. I see no errors in messages.log or crond.log.
My crontab:
$ crontab -l
# * * * * command to be executed
#| | | | |
#| | | | +----- day of week (0 - 6) (Sunday=0)
#| | | +------- month (1 - 12)
#| | +--------- day of month (1 - 31)
#| +----------- hour (0 - 23)
#+------------- min (0 - 59)
#MAILTO=""
25 20 * * * ~/bin/cpuz s
Here is the code to that script:
run() {
tmpfile=/tmp/.sensors_unique.txt # temp output
verbose=/tmp/.verbose_unique.txt # verbose temp output with three decimals
logfile=/scratch/unique.csv # data file to write
sensors >$tmpfile && sensors -u >$verbose
phys=$(grep Physical $tmpfile | cut -c 18-21)
c0=$(grep "Core 0" $tmpfile | cut -c18-21)
c1=$(grep "Core 1" $tmpfile | cut -c18-21)
c2=$(grep "Core 2" $tmpfile | cut -c18-21)
c3=$(grep "Core 3" $tmpfile | cut -c18-21)
vcc=$(grep in0_input $verbose | cut -c14-18)
fan1=$(grep fan1 $tmpfile | cut -c24-27)
pwm1=$(cat /sys/class/hwmon/hwmon3/device/pwm1)
per1=$(echo "scale=2; $pwm1/2.55" | bc)
fan3=$(grep fan3 $tmpfile | cut -c24-27)
pwm3=$(cat /sys/class/hwmon/hwmon3/device/pwm3)
per3=$(echo "scale=2; $pwm3/2.55" | bc)
fan4=$(grep fan4 $tmpfile | cut -c24-27)
pwm4=$(cat /sys/class/hwmon/hwmon3/device/pwm4)
per4=$(echo "scale=2; $pwm4/2.55" | bc)
fan5=$(grep fan5 $tmpfile | cut -c24-27)
pwm5=$(cat /sys/class/hwmon/hwmon3/device/pwm5)
per5=$(echo "scale=2; $pwm5/2.55" | bc)
dts=$(date +"%m-%d-%y %r")
[[ ! -f $logfile ]] && echo "dts,vcc,temp,core0,core1,core2,core3,120mm_rpm,120mm_pwm,140mm_rpm,140mm_pwm,comment" > $logfile
echo "$dts,$vcc,$phys,$c0,$c1,$c2,$c3,$fan4,$pwm4,$fan5,$pwm5,$comment" >> $logfile
if [ -n "$output" ]; then
echo "Vcore : $vcc"
echo "back : $fan1 ($pwm1/255) = $per1 %"
echo "top : $fan3 ($pwm3/255) = $per3 %"
echo "120mm : $fan4 ($pwm4/255) = $per4 %"
echo "140mm : $fan5 ($pwm5/255) = $per5 %"
fi
case "$1" in
s)
limit=600 # number of times to run
wait=2 # delay in sec before taking a new reading
echo running in silent mode...
x=0
while [ "$x" -lt "$limit" ]; do
x=$(( $x + 1 ))
run
sleep "$wait"s
done
v)
export output="not null"
export -f run
/usr/bin/watch run
echo "usage $0 {s|v}"
echo
echo "s) silent mode/logfile only"
echo "v) verbose mode/logfile + output"
exit 0
esac
Last edited by graysky (2012-08-01 00:44:16)I hate to suggest something obvious to someone with 4000 posts (and such a scary avatar), but have you tried it with the full path: /home/user/... ?
Are you sure the script is not being run at all?
(edit -- never mind, I see the file lines in there)
Last edited by 2ManyDogs (2012-08-01 00:33:03) -
One doubt on CRM Workflow.
Hi All,
I have a clarification to be made.
Below are some requirements from a CRM project. Now we are planning to train some one to handle this part and essentialy his role is on Workflow. Now my doubt is whether this person should take CRM training or workflow training? One thing to note here is that the person does not have any CRM background also. So my question is whether this person needs to take Workflow training or CRM training( I am not sure whether CRM training has workflow in it) or something else(meaning first CRM and then Workflow, since the project is on CRM)?
The requirements are in bold.
<b>1. Ability to define a Customer Program, including, but not limited to:
will adhere to role based security
informational program characteristics
program eligibility rules
technical prerequisites (e.g. equipment)
program specific options (e.g. bill protection)
enrollment related work flow steps and prerequisites
funding accounts
<i>Comments : Standard SAP functionality. May need workflow</i>
2.Ability to automatically enable or disable program functions.
<i>Comments : Workflow or Actions can be used.</i>
3.Ability to generate automated notifications/ticklers when program steps need to be taken.
<i>Comments : Workflow or Actions can be defined to trigger Notification on certain events.</i>
4. Notify appropriate Program Manager if measure factors or incentive rates are changed.
<i>Comments : Need workflow or Actions to trigger this.</i>
5. Associate the completed audits to actual programs and when applicable tie to a programs workflow requirements.
<i>Comments : Link is Standard SAP Functionality and needs to define workflow.</i>
6. Ability to generate customer communications based on triggers such as; dates, changes to customer information, work flow steps, etc.
<i>Comments : Needs to develop workflow or actions to trigger Notifications on pre-defined rules.</i>
7. Based on program, allow for multiple incentives or timed incentives based on workflow process completion steps.
<i>Comments : Need to be configured in Rebate Processing</i>
</b>
Thank you,
Regards,
ManeshHi,
The steps which u have done al are correct
Find the information below for BWA1,BWA5 and BWA7
BWA1:
1.BW adapter which will give you meta data information and if you want to chnage any settings relatede to mapping or if you want add any BDOC mapping you can do by using this Tcode
2. We c an copy BW adapter data source and we can create custom BW adapter data data source by using copy function
3. We can change the selection conditions for the data source
4. we can bdoc mapping information under mapping tab,if you want to add any new field to map with new bdoc segment ,we have to map here;for ex if you want to extract Extractnal reference number from 0CRM_SRV_PROCESS_H data source
we have to follow below steps
1.enhance Extract structure
2.Add bdoc mapping in BWA1 with perticular BDOC segment for example Sales bdoc segment mapped with Extractnal reference number
3.Add code in Mapping module of data sourc eto fetch data or write code in Badi CRM_BWA_MFLOW to fetch data for newly added fields
BWA5:it will show all activated BW adapter data source information under ACTIVE tab
BWA7: it will have all BW adapter delta enabled data source information,if your data source is not available under BWA7 ,that means you didnt enable delta for the same (not intialized )
Table information:
SMOXAFLD: Field List: Key Attributes for BWA Master Data Delta Queue
for example : DISTR_CHAN, PRODUCT_GUID, SALES_ORG are key fields for data source 0CRM_PRODSL_ATTR
SMOXRELP:BWA: Use of Segments and Fields in DataSources
BDOC segment mapping information fro the data source (which u have used in BWA1 under mapping tab)
SMOXRELP_S: Shadow Table for Table smoxrelp
which will give information about BW selection whether we can use this field for BW selection for data loading iof its marked for selection u can see in rsa3 selections. -
How to execute one sap gui script in different SAP system component versions.
Hi Experts,
I am having a task to write a script which can be executed in different SAP systems , explained as below.
I have created a script to do password reset for mass users in one system (TC6) & it's working fine. But when i load same script in other system(QR5) to do the same activity , the system unable to execute the same script.
One thing i found that by comparing in the two systems that the screen-ids in QR5 system is different than TC6 system.
My question
1-> why it is different even though the scripting language is same.
2-> How can i overcome it & make a common script for all the systems.
Please help me to resolve this.
Thanks in Advance,
KhagendraHi Holger & Stefan,
Sorry for late response first.
Now i have attached the recorded program-me for two systems for SU01 (simple user maintenance) with highlighted the text. I have highlighted both for easy understanding .
In system QR5 (upgraded one)
session.findById("wnd[0]").maximize
session.findById("wnd[0]/tbar[0]/okcd").text = "/nsu01"
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/ctxtSUID_ST_BNAME-BNAME").text = "test"
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/tbar[1]/btn[18]").press
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME-NAME_LAST").text = "rest"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME-NAME_LAST").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME-NAME_LAST").caretPosition = 4
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME-NAME_FIRST").text = "user"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME-NAME_FIRST").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_PERSON_NAME-NAME_FIRST").caretPosition = 4
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_COMM_DATA-SMTP_ADDR").text = "[email protected]"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_COMM_DATA-SMTP_ADDR").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSUID_MAINTENANCE:1900/txtSUID_ST_NODE_COMM_DATA-SMTP_ADDR").caretPosition = 21
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO").select
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUID_MAINTENANCE:1101/cmbSUID_ST_NODE_LOGONDATA-USTYP").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUID_MAINTENANCE:1101/cmbSUID_ST_NODE_LOGONDATA-USTYP").key = "A"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUID_MAINTENANCE:1101/pwdSUID_ST_NODE_PASSWORD_EXT-PASSWORD").text = "********"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUID_MAINTENANCE:1101/pwdSUID_ST_NODE_PASSWORD_EXT-PASSWORD2").text = "********"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUID_MAINTENANCE:1101/pwdSUID_ST_NODE_PASSWORD_EXT-PASSWORD2").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUID_MAINTENANCE:1101/pwdSUID_ST_NODE_PASSWORD_EXT-PASSWORD2").caretPosition = 9
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG").select
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUID_MAINTENANCE:1106/cntlG_ROLES_CONTAINER/shellcont/shell").modifyCell 0,"AGR_NAME","Z:T5_UK_WIPRO_DEV_NONBASIS"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUID_MAINTENANCE:1106/cntlG_ROLES_CONTAINER/shellcont/shell").currentCellColumn = "AGR_NAME"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUID_MAINTENANCE:1106/cntlG_ROLES_CONTAINER/shellcont/shell").pressEnter
session.findById("wnd[0]").sendVKey 11
In system DR0 (Not upgraded)
session.findById("wnd[0]").maximize
session.findById("wnd[0]/tbar[0]/okcd").text = "/nsu01"
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/ctxtUSR02-BNAME").text = "test"
session.findById("wnd[0]/usr/ctxtUSR02-BNAME").caretPosition = 4
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/tbar[1]/btn[18]").press
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSZA5:0900/txtADDR3_DATA-NAME_LAST").text = "test"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSZA5:0900/txtADDR3_DATA-NAME_LAST").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSZA5:0900/txtADDR3_DATA-NAME_LAST").caretPosition = 4
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSZA5:0900/txtADDR3_DATA-NAME_FIRST").text = "user"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSZA5:0900/txtADDR3_DATA-NAME_FIRST").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSZA5:0900/txtADDR3_DATA-NAME_FIRST").caretPosition = 4
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSZA5:0900/txtSZA5_D0700-SMTP_ADDR").text = "[email protected]"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSZA5:0900/txtSZA5_D0700-SMTP_ADDR").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpADDR/ssubMAINAREA:SAPLSZA5:0900/txtSZA5_D0700-SMTP_ADDR").caretPosition = 21
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO").select
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUU5:0101/cmbUSLOGOND-USTYP").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUU5:0101/cmbUSLOGOND-USTYP").key = "A"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUU5:0101/pwdG_PASSWORD1").text = "********"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUU5:0101/pwdG_PASSWORD2").text = "********"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUU5:0101/pwdG_PASSWORD2").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpLOGO/ssubMAINAREA:SAPLSUU5:0101/pwdG_PASSWORD2").caretPosition = 9
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG").select
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUU5:0106/tblSAPLSUU5TC_AGR/ctxtUSAGR-AGR_NAME[1,5]").text = "Z:T5_UK_WIPRO_DEV_NONBASIS"
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUU5:0106/tblSAPLSUU5TC_AGR/ctxtUSAGR-AGR_NAME[1,5]").setFocus
session.findById("wnd[0]/usr/tabsTABSTRIP1/tabpACTG/ssubMAINAREA:SAPLSUU5:0106/tblSAPLSUU5TC_AGR/ctxtUSAGR-AGR_NAME[1,5]").caretPosition = 26
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]").sendVKey 11
From the above it's clear that the screen IDs in both the systems are different as the program-me name is different for the same TA (SU01) in both the systems.
Now can you please advise how i will go with both to handle in one script (I can't put a check condition to call different scripts for the specific systems as in my landscape there are more that 100 systems).
Please help me on this.
Thanks in Advance,
Khagendra -
In a single line - More than one value in script
Hi,
In script, I have to print 3 materials in each line. For example, if I have 10 entries in an internal table GT_MARA. I need to print as below.
1. Material A 2. Material B 3. material C
4. Material D,,,,,,
10. Material K
At the moment I am printing one by one.
LOOP AT GT_MARA.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'MATERIAL'
window = 'MAIN'.
ENDLOOP.
How to achieve this? Please suggest.Better create a new internal table with the following stucture
BEGIN OF ITAB,
matnr1 type matnr,
matnr2 type matnr,
matnr3 type matnr,
END OF ITAB,
then populate this itab from GT_MARA
data: l_flag.
loop at gt_mara.
if itab-matnr1 is initial.
clear flag.
itab-matnr1 = gt_mara-matnr.
exit.
endif.
if itab-matnr2is initial.
itab-matnr2 = gt_mara-matnr.
exit.
endif.
if itab-matnr3 is initial.
flag = 'X'.
itab-matnr3 = gt_mara-matnr.
append itab.
endif.
AT LAST.
IF flag <> 'X'.
append itab.
ENDIF.
ENDAT.
endloop.
Then use itab while calling ur script -
Problem in printing the amount in one line in script
Hi friends,
iam facing a problem in scripts
1st line: fifteen lakh thirty th
2nd line : ousand three hundred
instead i need in this way
1st line: fifteen lakh thirty thousand
2nd line : three hundred
ie if the line is not suffienct and if its breaking the word, it should not do that.
it should not break the word it should print in next line.
I dnt want the text in one line..
I want to split when the there is a space before 35 chars in first line
How can i do that.
Regards
Priyanka
Edited by: priyanka jain on Feb 19, 2009 11:10 AMHi,
try giving the offset for the line.
refer to this link:
[Offset|http://help.sap.com/saphelp_47x200/HELPDATA/EN/d2/cb3d07455611d189710000e8322d00]/frameset.htm
regards
sarves
Maybe you are looking for
-
'Jump to' a particular slide in adobe captivate using edge animate.
I would like to 'jump to' a particular slide in adobe captivate using interactions created in an edge animate file. Is anyone able to help me with the javascript needed to do this?
-
Hi, I am extracting data into a 7.0 system from Export Datasources based on Cubes and ODS objects in a 3.5 system. A couple of questions: 1. Are all the export datasources delta capable? What kind of delta do they provide. The ROOSOURCE table gives t
-
Combo Box initial font/colour
Hello - so i'm making a simple email form in flash and am having problems with my combo box. I have managed to make is to the drop-down list is the embedded font I want and have been able to change the font colour, select colour, drop-down border - b
-
Error while extracting 0rt_pa_tran_control
Hi, I am in BI 7 retail arae. I want to load data for POS related cubes, all the cubes are dependant on data source 0RT_PA_TRAN_CONTROL. While extracting this data source in RSA3 it is saying "error occured while extraction". I check the message in d
-
Do we still have the mask button that was in PS 5
In PS 5 their was a mask button but cannot find it in PS CC is it still their.