Help needed in SAP Scripts
Hello all,
I am trying to learn SAP Scripts. I have created one form named as 'zfm1' using SE71.
Using SE 38 I have created a PRINT PROGRAM also which contains FM's like Open_form,Start_form,Write_form etc. When activated it is not displaying any error.
But in o/p it is asking for a device and by def.it is showing LP01 in o/p device.
Can anybody please guide me in this ahead?
How can I see the Windows created by me?
Thanks and regards,
Harish
hi,
just give device as LP01 and press print preview.
Similar Messages
-
Hi
This is Lahari...Iam going to attend interviews...cud u pls give real time questions n answers on SAP Scripts? i didn't attend interviews before...I'd be thankful to u guys.
My id is [email protected]
Lahari.Hi Lahari,
Check these links.
http://www.sappoint.com/abap/ssintro.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/sscript.pdf
http://www.sappoint.com/abap/lsetssap.pdf
http://www.sappoint.com/abap/sscrtpex1.pdf
http://www.sap-img.com/sapscripts.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
http://www.henrikfrank.dk/abapuk.html
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
http://www.sap-img.com/sapscripts.htm
http://sappoint.com/abap/
http://www.henrikfrank.dk/abapuk.html
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
http://www.sap-basis-abap.com/sapabap01.htm
http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
http://www.sap-basis-abap.com/sapabap01.htm
http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
Hope this resolves your query.
Reward all the helpful answers.
Regards -
Hi friends,
I`ve assigned the script name and driver program in NACE tcode for ME21N transaction.
When I print preview from ME21N tcode and keep script debugging active it goes into debugging mode ...Here it shows script name same as what has been assigned in NACE but the contents which are being debugged are different than the actual script contents .. means the code which we can see while debugging the script are not matching with the code of the same named script in SE71.
Can anybody help me out regarding this issue .. ?
thanks .Hi,
I think this is because your the transaction ME21N is calling the language version of the script based on the language maitained in the communication tab(header) of the document. To ensure this, when your script is going into debugging mode just check whther it is calling the same language version of script that you are intending.
Regards,
KK -
Help needed in SAP script....urg pleaseee
Hello Experts,
I am working on a script. The script has two pages page1 and page2. Both of them have main windows. I have added a new page (page3) with 3 windows and only constant text in them. This should be printed at the last. But I am unable to call the new page.
Can you please suggest me some thing here..
Thankyou...Hi..,
At the end of the Second page i.e after all the data has been output in the second page write in the script editor as
/: NEW-PAGE <PAGE-NAME>.
Then it triggers the page <PAGE-NAME> SAY LAST..
( /: NEW-PAGE LAST )..
thats it !! it triggers the new page as LAST here !!
reward if it helps u,
sai ramesh -
EXPERTS PLZ HELP ME IN SAP SCRIPT URGENT
Hi experts
plz help me
i m very new in sap scripts
i have a script WESCHEINVERS1 and the driver prog is SAPM07DR
i ill have to copy this script and have to add two more feild in the text element W1LGMAT
fields are :
CAWNT-ATWTB
EKPO-REVLV
now wat i think i cannot make changes to standard driver prog so it wud be better to call a subroutine 4 it
so plz guide me how i ill have to fetch data nd pass to the script
plz write the code if possible 4 u
FYI:
MSEG : Document Segment Material
MANDT Client
MBLNR Number of material Document
MJAHR Material Document Year
ZEILE Item in Material Document
MATNR Material Number
LIFNR Account number or vendor
EBELN Purchase order number
EBELP Item number of PO
EKPO : Purchasing document item
MANDT Client
EBELN Purchase order number
EBELP Item number of PO
MATNR Material Number
REVLV Revision Level
LFA1 : Vendor Master (General section)
MANDT Client
LIFNR Account number of vendor or creditor MSEG-LIFNR
SPRAS Language key
AUSP : Characteristic Values
MANDT Client
OBJEK Key of object to be classified MSEG-MATNR
ATINN Internal characteristic ZO-QUALITY-LEVEL
ATZHL Internal counter
ATWRT Characteristic Value
CAWNT : Value texts
MANDT Client
ATINN Internal characteristic ZO-QUALITY-LEVEL
ATZHL Internal counter AUSP-ATZHL
SPRAS Language Key LFA1-SPRAS
ATWTB Characteristic Value Description
thanks in advanceRefer the links to know about calling subroutines ins cript -
subroutine in script
How to call a subroutine in a script ?
EXTERNAL SUBROUTINE IN SAP SCRIPT
Regards,
Amit
Reward all helpful replies. -
Help needed for SAP Tables Relationships
Hi All,
I am new to ERP and need help regarding standard SAP Tables.
Please share the document that contains the details of SAP Tables and Standard SAP FM that are provided by SAP.
All helpful answers will be rewarded.
Regards,
Udaya.Hi,
Please go to the following link.
http://www.erpgenie.com/abap/tables.htm
http://www.erpgenie.com/abap/tables_sd.htm
http://www.erpgenie.com/abap/tables_mm.htm
http://www.erpgenie.com/abap/tables_fi.htm
Regards
Jean -
Moved to correct forum. Please use an informative subject in future.
Hi,
can some one help in knowing whether can we write the text elements from sub routine being called from Sap script.
Actually i have to develop a script for check printing and in the table data i have to print 3 colums:REGUP-BUDAT,REGUP-XBLNR,REGUP-DMBTR in two section on the same window with 25 line each so that total 50 lines can be printed,Standard print prg is RFFOUS_C.can some one help in the same..
Thnxs
Edited by: Matt on Apr 9, 2009 10:06 AMHi Hemant,
use like this
<B0>Three Thousand only</>,, <B4>&Name& </> <B8>&TOTAL& </>
HR Dept.
Thanks & regards,
Dileep .C -
Hi guys,
I need you help in creating rman scripts.
my plan is the following:
- at night i would like to make a backup of the database, archivelogs, control file and spfile. then delete the archivelogs on disk.
- during the day i would like to make every hour, a backup level 1, archivelogs and crontrol file.
my questions are:
for the night backup is the following script ok?
run {
set command id to 'xxx';
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
BACKUP INCREMENTAL LEVEL 0 DATABASE;
sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
change archivelog all;
backup archivelog all delete input;
backup current controlfile;
BACKUP SPFILE;
release channel t1;
release channel t2;
and for the daily backup (run on every hour) what do you think about this? is it ok?
run {
set command id to 'xxx';
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE;
sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
backup archivelog all not backed up 1 times;
backup current controlfile;
release channel t1;
release channel t2;
please help.
Message was edited.Hi Alanm,
Right now the DB is generating many archives, that doesn't mean that we cant adapt the script in the future if less archives are generated.
By saying "You don't have to make the archive log script an incremental 1 backup" you mean that, since we are already making a backup at night to the archives, theres no need to make them also during the incremental 1?
and for the rest, do you thing the script is ok? -
Hi All,
I am adding one new script on IPCCX 7.0. Can some help to understand the function of the following:
DateList=Create File Decument "C:\Program Files\wfavvid\Documents\user\en_US\" + calendar + ".xml")
When I run reactive bedug I can see the following error output:
Can some please help me how this script work.
Apprecaite your quick response.
Regards,
NirmalHi Brian,
This seems to be I am missing Calender string value. If I set this to business, now look good.
Once again thanks for your support.
Regards,
Nirmal -
Help needed in SAP BO Implementation
Hi,
I am very new to SAP Business Objects.
I have a requirement to Install SAP BO on Windows environment or HP UNIX with integration to BI 7.0. When I read certain documents over the web, I am getting
confused with the requirement of MS SQL Server or Oracle Server for the BO installation.
We require the following applications in SAP BO
BusinessObjects Edge Series XI Release 3.1
Xcelsius Enterprise 2008
Live Office XI Release 3.1
Integration Kit for SAP Solutions XI Release 3.1
iView
Desktop Intelligence
Web Intelligence
Please help me in understanding the System Requirements (Server and Client), Software Requirements and the procedure of the SAP BO Installation. I have
currently added the following SAP Media to the download basket, please mention whether the following will be sufficient or will I have to make additional
requirements.
BOBJ XCELSIUS ENGAGE & ENTERPRISE 2008 WINDOWS (32B)
BOBJ XCELSIUS PRESENT 2008 WINDOWS (32B)
BOBJ INTEGRATION FOR SAP SOLUTIONS XI 3.1 WINDOWS
Integration Kit License Keys
Expecting your help.
Thank you
Regards,
Vineeth DamodarHello Wineth,
you will find a lot of Informationes to theese Questions here in the Forum.
Lets start with some Documents regarding the Requirements of Hardware and OS for your Edge installation.
Requirements Windows:
https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/60cdb229-d874-2b10-18ac-ed2f46873753&overridelayout=true
Requirements HP-UX(IA64/PA-RISC):
https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/00cfd8a7-d874-2b10-00bc-926c5793673d&overridelayout=true
https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/10f8b3bb-d874-2b10-7588-fb62836ac37f&overridelayout=true
Installation Documentation you will find under http://help.sap.com -> Choose "SAP BusinessObjects" -> "Choose "All Products" -> Select your Product -> Download your Guide
Regarding your Package you can de- select the Xcelsius Engage package. You need also the EDGE Instlallation Package.
Regards
-Seb. -
Urgent help need on eCATT script
Hi
How to use eCATT script tool with transaction SECATT.
urgent please help.
regards,
R KHello Rao
If you are using a "normal" transaction without any controls (like ALV lists, trees) then you can use the recording pattern <b>TCD REC</b> <i>(TCD (Record)</i>).
In transaction SECATT give a name for your test script (e.g. Z_XD01 or Z_CREATE_CUSTOMER). Within the test script choose pattern TCD REC and enter the transaction you want to record (e.g. XD01).
After finishing the recording you will see the following line in the eCATT editor:
<b>TCD ( XD01 , XD01_1 ).</b>
Meaning:
- TCD = recording pattern
- XD01 = recorded transaction
- XD01_1 = eCATT interface for the transaction
Next double-click on the eCATT interface name (here: XD01_1). Next to the editor you will see the interface displayed as tree and as ALV list. Here you can parameterize your transaction.
Please note that you should preferably <b>use the highest available SAP release for eCATT recording</b>. If, for example, your business system has release 6.20 and you have a 6.40 system available record the eCATT on the 6.40 system via RFC.
Regards
Uwe -
I need a little help with Apple Script. I have been using a script for several months now, and all of a sudden it just stopped working. Here's the script"
============
with timeout of 9999 seconds
tell application "Finder"
activate
(* copy target file to another disk - to create a backup *)
duplicate file "Daily.dmg" of folder "File Backups" of disk "HD Mirror" to folder "Data Backup-Daily" of disk "MacHD 1" replacing yes
(* copy a 2nd target file to another disk - to create a backup *)
duplicate file "Personal.dmg" of folder "File Backups" of disk "HD Mirror" to folder "Data Backup-Daily" of disk "MacHD 1" replacing yes
(* now copy the 2nd target file to my iDisk *)
duplicate file "Personal.dmg" of folder "Data Backup-Daily" of disk "MacHD 1" to folder "Documents" of disk "xxxxxx" replacing yes
end tell
end timeout
============
In the above script, xxxxxx represents the name of my iDisk that is mounted in the Finder.
Here's my issue - the above script worked fine until just recently. However, now the first two steps work fine, but I get this error message while trying to copy the file to my iDisk:
"The operation could not be completed because some items had to be skipped. 'Personal.dmg'"
Does anyone have any ideas on how I can fix this? I'm wondering if Mac OS 10.4.5 might be the culprit since this problem seems to have occurred shortly after I upgraded???
Thanks,
-AstraPointHi,
Assumptions :-
uuencode command exits
mailx command exits
File name is "vas.txt".
Mail id is "[email protected]"
# START OF SCRIPT
#!/bin/ksh
vasFileName="$1"
vasRecordsDirFile=/etl/dev/work/wellness/enrl_rej/records/${vasFileName}
vasMetatdataDirFile=/etl/dev/work/wellness/enrl_rej/metadata/${vasFileName}
vasHeaderDirFile=/etl/dev/work/wellness/enrl_rej/header/${vasFileName}
vasHeaderRejDirFile=/etl/dev/work/wellness/enrl_rej/hdrrej/${vasFileName}
vasFieldsDirFile=/etl/dev/work/wellness/enrl_rej/fields/${vasFileName}
if [[ -e ${vasRecordsDirFile} ]]
then
uuencode ${vasRecordsDirFile} ${vasRecordsDirFile} | mailx -s "process complete and attached are the rejected records" [email protected]
elif [[ -e ${vasMetatdataDirFile} ]]
then
uuencode ${vasMetatdataDirFile} ${vasMetatdataDirFile} | mailx -s "Metadata Mismatch no of fields in detail didn't match" [email protected]
elif [[ -e ${vasHeaderDirFile} ]]
then
uuencode ${vasHeaderDirFile} ${vasHeaderDirFile} | mailx -s "Problem with header file - File Rejected" [email protected]
elif [[ -e ${vasHeaderRejDirFile} ]]
then
uuencode ${vasHeaderRejDirFile} ${vasHeaderRejDirFile} | mailx -s "the Percentage of rejects more than 3 percent File rejected" [email protected]
elif [[ -e ${vasFieldsDirFile} ]]
then
uuencode ${vasFieldsDirFile} ${vasFieldsDirFile} | mailx -s "The header and detail count didn't match File rejected" [email protected]
else
echo "File doesn't exist in any of the directories mentioned."
fi
# END
Vijay Bheemineni. -
Hi all, I am a novice in scripting...
Could someone help me writing script for the following....
Assume that there are 5 folders
1 /etl/dev/work/wellness/enrl_rej/records
2 /etl/dev/work/wellness/enrl_rej/metadata
3 /etl/dev/work/wellness/enrl_rej/header
4 /etl/dev/work/wellness/enrl_rej/hdrrej
5 /etl/dev/work/wellness/enrl_rej/fields
need to check if there is a file created in any of the above five locations,
If the file Exists in Location 1 then
send message with Subject 'process complete and attached are the rejected records' with the file in that folder as attachemt
if file exists in Location 2 then
send message with Subject 'Metadata Mismatch no of fields in detail didn't match' With the file in that folder as attachment
If file exists in 3 then
send message with Subject 'Problem with header file - File Rejected' With the file in that folder as attachment
If file exists in 4 then
Send message with subject 'the Percentage of rejects more than 3 percent File rejected' With the file in that folder as attachment
If file exists in 5 then
Send message with subject 'The header and detail count didn't match File rejected' With the file in that folder as attachment
Thanks in advance !!!Hi,
Assumptions :-
uuencode command exits
mailx command exits
File name is "vas.txt".
Mail id is "[email protected]"
# START OF SCRIPT
#!/bin/ksh
vasFileName="$1"
vasRecordsDirFile=/etl/dev/work/wellness/enrl_rej/records/${vasFileName}
vasMetatdataDirFile=/etl/dev/work/wellness/enrl_rej/metadata/${vasFileName}
vasHeaderDirFile=/etl/dev/work/wellness/enrl_rej/header/${vasFileName}
vasHeaderRejDirFile=/etl/dev/work/wellness/enrl_rej/hdrrej/${vasFileName}
vasFieldsDirFile=/etl/dev/work/wellness/enrl_rej/fields/${vasFileName}
if [[ -e ${vasRecordsDirFile} ]]
then
uuencode ${vasRecordsDirFile} ${vasRecordsDirFile} | mailx -s "process complete and attached are the rejected records" [email protected]
elif [[ -e ${vasMetatdataDirFile} ]]
then
uuencode ${vasMetatdataDirFile} ${vasMetatdataDirFile} | mailx -s "Metadata Mismatch no of fields in detail didn't match" [email protected]
elif [[ -e ${vasHeaderDirFile} ]]
then
uuencode ${vasHeaderDirFile} ${vasHeaderDirFile} | mailx -s "Problem with header file - File Rejected" [email protected]
elif [[ -e ${vasHeaderRejDirFile} ]]
then
uuencode ${vasHeaderRejDirFile} ${vasHeaderRejDirFile} | mailx -s "the Percentage of rejects more than 3 percent File rejected" [email protected]
elif [[ -e ${vasFieldsDirFile} ]]
then
uuencode ${vasFieldsDirFile} ${vasFieldsDirFile} | mailx -s "The header and detail count didn't match File rejected" [email protected]
else
echo "File doesn't exist in any of the directories mentioned."
fi
# END
Vijay Bheemineni. -
Hi
I need to create a script that will play back the name of the selected agent to the caller before being connected to the user. I have a simple queueing script setup ,just need the portion to play back the name
Any help will be appreciatedHi,
Play Prompt Step
Use the Play Prompt step to play back specified prompts to the caller.
Note :When any previous escalating prompt in the script enters the Play Prompt step, it is reset to the first
prompt in its list.
The customizer window of the Play Prompt step contains three tabs:
• General tab (Play Prompt step)
• Prompt tab (Play Prompt step)
• Input tab (Play Prompt step)
Prompt tab (Play Prompt step)
Use the Prompt tab of the Play Prompt customizer window to specify the prompt to be played back, and
to set the Barge In and Continue on Prompt Errors options.
Figure 2-99 1Play Prompt Customizer Window—Prompt Tab
Table 2-83 Play Prompt Properties—Prompt Tab
Properties / Buttons Description
Prompt Variable or expression indicating which prompt is to be played.
Please refer page 129 in the Cisco Unified Contact Center Express Editor Step Reference Guide,
http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_5/programming/guide/uccx851_step_ref.pdf
Hope it helps.
Anand
Please rate helpful posts !! -
Help needed with diskpart script
Hello all,
I'm in the process of writing a diskpart script for formatting and partition a harddrive outside of the standard method provided with SCCM.
The reason why I'm doing this as we need to create the following disk layout: as Bitlocker is used a partition has to be foreseen with 350MB. Next to that we want to offer to our users a data partition of 40GB. The system partition can then take up the rest
of the diskspace.
We partition the disks as follows:
- Partition 1: 350MB
- Partition 2: 40GB
- Partition 3: Rest of the disk (system drive)
The script is as here below:
SELECT DISK 0
CLEAN
CREATE PART PRI SIZE=350
SELECT PART 1
FORMAT FS=NTFS LABEL=<"System Reserved"> QUICK
CREATE PART PRI SIZE=40960
SELECT PART 2
FORMAT FS=NTFS LABEL=<"Data"> QUICK
ASSIGN Letter=d
CREATE PART PRI
SELECT PART 3
FORMAT FS=NTFS LABEL=<"Windows"> QUICK
ASSIGN Letter=c
ACTIVE
EXIT
The problem is that eventough we don't assign a drive letter to the system reserved partition, it gets assigned the next available drive letter automatically and is shown to the users.
How can I make sure that the system reserved partition remains hidden and doesn't receive a drive letter?
Thanks!
FilipIn addition to what Peter has said which i agreed with, SCCM is not very good at assigning drive letters - At least, it doesn't behave the same as Windows.
This article explains in detail, and gives solutions/workarounds.
Since using method 3 from this article, we get consistent and reliable behaviour and has resolved drive letter assignment issues. It might be useful in your case (after you use the built in SCCM step for the partitioning of course!).
http://blogs.technet.com/b/system_center_configuration_manager_operating_system_deployment_support_blog/archive/2014/04/28/how-to-ensure-that-windows-installs-on-c-during-a-system-center-2012-configuration-manager-osd-task-sequence.aspx
Hope this helps!
Maybe you are looking for
-
How to post a acquisition entry in Dep area 30 (for Non Leading ledger)
How to post a acquisition entry in Dep area 30 (for Non Leading ledger N1) In our scenario, following configuring is being set up: 1 Book depreciation IAS/IFRS 1 0L 30 LOCAL 3 N1 51 Property Tax 0 60 DELTA 6 N1
-
Podcasting / Zencasting - a step by step account
I'm very happy generally with my Zen 32GB. For music and photos it's great. But when it comes to podcasting virtually every step is a shambles: . The Zencast organiser offers no way of automatically deleting old podcasts from my PC; surely this is st
-
I connected my iPod to my new computer and only half the songs transfer.
How do i move all the songs that were on my iPod to the new computer?
-
Loading data into HANA DB (using hdbsql client) with Control file.
Hi, I am working on a Project where the requirement is to load data from a csv file into HANA Database. I am using HDBSQL, command line client on a windows machine to upload the data into HANA DB on a linux server. I am able to successfully use the H
-
Is there a full text mode in Java?
Hi everyone. I'd like to write a java application for running exclusively on the command line. I know how to use system.out for printing basic texts, but i'd like to have a greater control over the output. I need just to clear the terminal window in