SAP Program Status Attribute
Hi All,
I have a question?
When we create an ABAP program (using SE38), why we have 4 different types of option in the Attribute called Status ?
SAP Standard Production program
Customer Production program
System Program
Test Program
hi
as this is very much clear from the names
<b>SAP Standard Production program</b>: for creating standard SAP prog
<b>Customer Production program</b>: for use of customer
<b>System Program</b>: for internal system program
<b>Test Program</b> : for test cases
regards
ravish
<b>plz dont forget to reward points if useful</b>
Similar Messages
-
SAP dispatcher status is stopped in Console how can i start it
Hi All
Help me out
*SAP dispatcher status is stopped in Console how can i start it
Dispatcher turns green to yellow suddenly and status changes to stopped and all WP elemets shows status as ended.
Alert from Syslog : SAP Basis System: Message server disconnected
Tracert : Disp+work.exe
trc file: "dev_disp", trc level: 1, release: "640"
Thu Oct 02 12:32:52 2008
kernel runs with dp version 128(ext=102) (@(#) DPLIB-INT-VERSION-128)
length of sys_adm_ext is 312 bytes
systemid 560 (PC with Windows NT)
relno 6400
patchlevel 0
patchno 21
intno 20020600
make: multithreaded, ASCII
pid 736
***LOG Q00=> DpSapEnvInit, DPStart (00 736) [dpxxdisp.c 1100]
shared lib "dw_xml.dll" version 21 successfully loaded
shared lib "dw_xtc.dll" version 21 successfully loaded
shared lib "dw_stl.dll" version 21 successfully loaded
shared lib "dw_gui.dll" version 21 successfully loaded
Thu Oct 02 12:32:58 2008
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 3886]
MtxInit: -2 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: JAVA is not active
DpShMCreate: sizeof(wp_adm) 6624 (828)
DpShMCreate: sizeof(tm_adm) 2219848 (11044)
DpShMCreate: sizeof(wp_ca_adm) 18000 (60)
DpShMCreate: sizeof(appc_ca_adm) 6000 (60)
DpShMCreate: sizeof(comm_adm) 192000 (384)
DpShMCreate: sizeof(vmc_adm) 0 (320)
DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
DpShMCreate: SHM_DP_ADM_KEY (addr: 05270040, size: 2505416)
DpShMCreate: allocated sys_adm at 05270040
DpShMCreate: allocated wp_adm at 052717A8
DpShMCreate: allocated tm_adm_list at 05273188
DpShMCreate: allocated tm_adm at 052731B0
DpShMCreate: allocated wp_ca_adm at 054910F8
DpShMCreate: allocated appc_ca_adm at 05495748
DpShMCreate: allocated comm_adm_list at 05496EB8
DpShMCreate: allocated comm_adm at 05496ED0
DpShMCreate: allocated vmc_adm_list at 054C5CD0
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 054C5CF8
DpShMCreate: allocated wall_adm at 054C5D00
MBUF state OFF
EmInit: MmSetImplementation( 2 ).
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation std
<EsNT> Memory Reset enabled as NT default
<EsNT> EsIUnamFileMapInit: Initialize the memory 2450 MB
<ES> 2449 blocks reserved for free list.
ES initialized.
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG Q0K=> DpMsAttach, mscon ( home) [dpxxdisp.c 9719]
CCMS: Initalizing shared memory of size 40000000 for monitoring segment.
CCMS: start to initalize 3.X shared alert area (first segment).
DpMsgAdmin: Set release to 6400, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]
DpMsgAdmin: Set patchno for this platform to 21
Release check o.K.
Thu Oct 02 12:33:38 2008
ERROR => W0 (pid 1500) died [dpxxdisp.c 12170]
ERROR => W1 (pid 3796) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W2 (pid 3548) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W3 (pid 1464) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W4 (pid 3368) died [dpxxdisp.c 12170]
ERROR => W5 (pid 3400) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W6 (pid 2620) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W7 (pid 380) died [dpxxdisp.c 12170]
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
killing W0-1500 (SIGUSR2)
ERROR => DpWpKill(1500, SIGUSR2) failed [dpxxtool.c 2468]
killing W1-3796 (SIGUSR2)
ERROR => DpWpKill(3796, SIGUSR2) failed [dpxxtool.c 2468]
killing W2-3548 (SIGUSR2)
ERROR => DpWpKill(3548, SIGUSR2) failed [dpxxtool.c 2468]
killing W3-1464 (SIGUSR2)
ERROR => DpWpKill(1464, SIGUSR2) failed [dpxxtool.c 2468]
killing W4-3368 (SIGUSR2)
ERROR => DpWpKill(3368, SIGUSR2) failed [dpxxtool.c 2468]
killing W5-3400 (SIGUSR2)
ERROR => DpWpKill(3400, SIGUSR2) failed [dpxxtool.c 2468]
killing W6-2620 (SIGUSR2)
ERROR => DpWpKill(2620, SIGUSR2) failed [dpxxtool.c 2468]
killing W7-380 (SIGUSR2)
ERROR => DpWpKill(380, SIGUSR2) failed [dpxxtool.c 2468]
NiWait: sleep (10000 msecs) ...
NiISelect: timeout 10000 ms
NiISelect: maximum fd=1593
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu Oct 02 12:33:48 2008
NiISelect: TIMEOUT occured (10000 ms)
dump system status
Workprocess Table (long) Thu Oct 02 07:03:48 2008
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 1500 Ended no 1 0 0
1 DIA 3796 Ended no 1 0 0
2 UPD 3548 Ended no 1 0 0
3 ENQ 1464 Ended no 1 0 0
4 BTC 3368 Ended no 1 0 0
5 BTC 3400 Ended no 1 0 0
6 SPO 2620 Ended no 1 0 0
7 UP2 380 Ended no 1 0 0
Dispatcher Queue Statistics Thu Oct 02 07:03:48 2008
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
3
2000
8
8
--------++++--
+
DIA
5
5
2000
5
0
--------++++--
+
UPD
0
0
2000
0
0
--------++++--
+
ENQ
0
0
2000
0
0
--------++++--
+
BTC
0
0
2000
0
0
--------++++--
+
SPO
0
0
2000
0
0
--------++++--
+
UP2
0
0
2000
0
0
--------++++--
+
max_rq_id 13
wake_evt_udp_now 0
wake events total 9, udp 7 ( 77%), shm 2 ( 22%)
since last update total 9, udp 7 ( 77%), shm 2 ( 22%)
Dump of tm_adm structure: Thu Oct 02 07:03:48 2008
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Thu Oct 02 07:03:48 2008
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000 msecs) ...
NiISelect: timeout 5000 ms
NiISelect: maximum fd=1593
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu Oct 02 12:33:53 2008
NiISelect: TIMEOUT occured (5000 ms)
Shutdown server ...
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIModState: change state to SHUTDOWN
DpModState: change server state from STARTING to SHUTDOWN
Switch off Shared memory profiling
ShmProtect( 57, 3 )
ShmProtect(SHM_PROFILE, SHM_PROT_RW
ShmProtect( 57, 1 )
ShmProtect(SHM_PROFILE, SHM_PROT_RD
DpWakeUpWps: wake up all wp's
Stop work processes...
Stop gateway
killing process (676) (SOFT_KILL)
Stop icman
killing process (924) (SOFT_KILL)
Terminate gui connections
[DpProcDied] Process lives (PID:676 HANDLE:1564)
waiting for termination of gateway
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=1593
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu Oct 02 12:33:54 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process died (PID:676 HANDLE:1564)
[DpProcDied] Process died (PID:924 HANDLE:1556)
DpHalt: cancel all lcom connections
MPI CancelAll 2 -> 0
MPI DeleteAll 2 -> 0
NiIMyHostName: hostname = 'home'
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
DpConvertRequest: net size = 163 bytes
NiBufSend starting
NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 562 bytes
send msg (len 110+452) to name -, type 4, key -
detach from message server
***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 9945]
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiSelClear: removed hdl 3 from selectset
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)
MBUF component DOWN
NiBufClose: clear extensions for hdl 3
NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
NiICloseHandle: shutdown and close hdl 3 / socket 1572
MsIDetach: detach MS-system
EsCleanup ....
Thu Oct 02 12:33:55 2008
***LOG Q05=> DpHalt, DPStop ( 736) [dpxxdisp.c 8478]
Good Bye .....
Trace from WP table DIA 1
trc file: "dev_w0", trc level: 1, release: "640"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, M
B
B Thu Oct 02 12:32:59 2008
B create_con (con_name=R/3)
B Loading DB library 'C:\usr\sap\SUD\SYS\exe\run\dboraslib.dll' ...
B Library 'C:\usr\sap\SUD\SYS\exe\run\dboraslib.dll' loaded
B Version of 'C:\usr\sap\SUD\SYS\exe\run\dboraslib.dll' is "640.00", patchlevel (0.19)
B New connection 0 created
M systemid 560 (PC with Windows NT)
M relno 6400
M patchlevel 0
M patchno 21
M intno 20020600
M make: multithreaded, ASCII
M pid 1500
M
M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 1500) [dpxxdisp.c 1160]
I MtxInit: -2 0 0
M DpSysAdmExtCreate: ABAP is active
M DpSysAdmExtCreate: JAVA is not active
M DpShMCreate: sizeof(wp_adm) 6624 (828)
M DpShMCreate: sizeof(tm_adm) 2219848 (11044)
M DpShMCreate: sizeof(wp_ca_adm) 18000 (60)
M DpShMCreate: sizeof(appc_ca_adm) 6000 (60)
M DpShMCreate: sizeof(comm_adm) 192000 (384)
M DpShMCreate: sizeof(vmc_adm) 0 (320)
M DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
M DpShMCreate: SHM_DP_ADM_KEY (addr: 05A70040, size: 2505416)
M DpShMCreate: allocated sys_adm at 05A70040
M DpShMCreate: allocated wp_adm at 05A717A8
M DpShMCreate: allocated tm_adm_list at 05A73188
M DpShMCreate: allocated tm_adm at 05A731B0
M DpShMCreate: allocated wp_ca_adm at 05C910F8
M DpShMCreate: allocated appc_ca_adm at 05C95748
M DpShMCreate: allocated comm_adm_list at 05C96EB8
M DpShMCreate: allocated comm_adm at 05C96ED0
M DpShMCreate: allocated vmc_adm_list at 05CC5CD0
M DpShMCreate: system runs without vmc_adm
M DpShMCreate: allocated ca_info at 05CC5CF8
M DpShMCreate: allocated wall_adm at 05CC5D00
X EmInit: MmSetImplementation( 2 ).
X <ES> client 0 initializing ....
X Using implementation std
M <EsNT> Memory Reset enabled as NT default
X ES initialized.
M calling db_connect ...
C Got ORACLE_HOME=C:\oracle\ora92 from environment
C Client NLS settings: AMERICAN_AMERICA.WE8DEC
C Logon as OPS$-user to get SAPSUD's password
C Connecting as /@SUD on connection 0 ...
C Attaching to DB Server SUD (con_hdl=0,svchp=040D325C,svrhp=040D3E34)
C Starting user session (con_hdl=0,svchp=040D325C,srvhp=040D3E34,usrhp=040DC614)
C *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1033
[dboci.c 3721]
C Detaching from DB Server (con_hdl=0,svchp=040D325C,srvhp=040D3E34)
C *** ERROR => CONNECT failed with sql error '1033'
[dbsloci.c 9753]
C Try to connect with default password
C Connecting as SAPSUD/<pwd>@SUD on connection 0 ...
C Attaching to DB Server SUD (con_hdl=0,svchp=040D325C,svrhp=040D3E34)
C Starting user session (con_hdl=0,svchp=040D325C,srvhp=040D3E34,usrhp=040DC614)
C *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1033
[dboci.c 3721]
C Detaching from DB Server (con_hdl=0,svchp=040D325C,srvhp=040D3E34)
C *** ERROR => CONNECT failed with sql error '1033'
[dbsloci.c 9753]
B ***LOG BV3=> severe db error 1033 ; work process is stopped [dbsh#2 @ 1195] [dbsh 1195 ]
B ***LOG BY2=> sql error 1033 performing CON [dblink#1 @ 419] [dblink 0419 ]
B ***LOG BY0=> ORA-01033: ORACLE initialization or shutdown in progress [dblink#1 @ 419] [dblink 0419 ]
M ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c 1271]
M in_ThErrHandle: 1
M *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 9379]
M
M Info for wp 0
M
M stat = 4
M reqtype = 1
M act_reqtype = -1
M rq_info = 0
M tid = -1
M mode = 255
M len = -1
M rq_id = 65535
M rq_source = 255
M last_tid = 0
M last_mode = 0
M int_checked_resource(RFC) = 0
M ext_checked_resource(RFC) = 0
M int_checked_resource(HTTP) = 0
M ext_checked_resource(HTTP) = 0
M report = > <
M action = 0
M tab_name = > <
M
M *****************************************************************************
M *
M * LOCATION SAP-Server home_SUD_00 on host home (wp 0)
M * ERROR tskh_init: db_connect
M *
M * TIME Thu Oct 02 12:32:59 2008
M * RELEASE 640
M * COMPONENT Taskhandler
M * VERSION 1
M * RC 13
M * MODULE thxxhead.c
M * LINE 9555
M * COUNTER 1
M *
M *****************************************************************************
M
M PfStatDisconnect: disconnect statistics
M Entering TH_CALLHOOKS
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 730]
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 246]
M Entering ThSetStatError
M Entering ThReadDetachMode
M call ThrShutDown (1)...
M ***LOG Q02=> wp_halt, WPStop (Workproc 0 1500) [dpnttool.c 357]
Thanks in advance please help me out
Edited by: sudhakar aleti on Oct 2, 2008 12:54 PM
Edited by: sudhakar aleti on Oct 2, 2008 12:56 PMHi All please find the result r3trans -d
4 ETW000 r3trans version 6.09 (release 640 - 28.04.04 - 16:14:00).
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 03.10.2008 - 11:02:35
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: r3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Fri Oct 03 11:02:36 2008 5494 0.005494
4 ETW000 [dev trc ,00000] db_con_init called 40 0.005534
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 26 0.005560
4 ETW000 [dev trc ,00000] Loading DB library 'dboraslib.dll' ... 33 0.005593
4 ETW000 [dev trc ,00000] load shared library (dboraslib.dll), hdl 0 139566 0.145159
4 ETW000 [dev trc ,00000] using "C:\usr\sap\SUD\SYS\exe\run\dboraslib.dll"
4 ETW000 22 0.145181
4 ETW000 [dev trc ,00000] Library 'dboraslib.dll' loaded 7 0.145188
4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library dboraslib.dll
4 ETW000 13 0.145201
4 ETW000 [dev trc ,00000] Version of 'dboraslib.dll' is "640.00", patchlevel (0.19)
4 ETW000 2501 0.147702
4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library dboraslib.dll
4 ETW000 12 0.147714
4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library dboraslib.dll
4 ETW000 18 0.147732
4 ETW000 [dev trc ,00000] New connection 0 created 13 0.147745
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , con_max = 255, con_opt = 255, occ = NO
4 ETW000 15 0.147760
4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 12391 0.160151
4 ETW000 [dev trc ,00000] find_con_by_name found the following connection for reuse:
4 ETW000 12 0.160163
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , con_max = 255, con_opt = 255, occ = NO
4 ETW000 14 0.160177
4 ETW000 [dev trc ,00000] Found ORACLE_HOME=C:\oracle\ora92 in Registry 796 0.160973
4 ETW000 [dev trc ,00000] -->oci_initialize 400 0.161373
4 ETW000 [dev trc ,00000] Client NLS settings: AMERICAN_AMERICA.WE8MSWIN1252
4 ETW000 34020 0.195393
4 ETW000 [dbsloci. ,00000] *** ERROR => Cannot connect: TNS-name missing 11 0.195404
2EETW169 no connect possible: "DBMS = ORACLE --- TWO_TASK = ''"
Thanks
Sudhakar A -
How to use a function key on keyboard for executing a non SAP program
Hello Gurus.
My client want to run a non SAP program selecting the specific function key on keyboard during the entering data on SAP.
i knew that it is possible to execute a non sap program after adding special program each by SAP program. but, it is huge jobs.
client wants to run a non sap program wherever he is on SAP program. Is it possible ?Hi,
1. Create a ".exe" file for the .NET application.
2. Create a PF-STATUS and assign the Function Code for the desired Function Key in the SAP program.
3. In the USER COMMAND code inside program, when the respective function code is triggered, write the below code with the path to the .NET exe file.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = '.NET exe file path'
EXCEPTIONS
OTHERS = 1. -
CPH Reports for Status Attribute.
Using Central performance History (RZ23n), is it possible to create reports for Status attributes?
Eg: I want to create for number of abap dumps, dead locks for each day.
As per documentation it says we can create for performance values and we are able to create CPH reports for R3Dialog Response time...
http://help.sap.com/saphelp_nw70/helpdata/en/c2/49773dd1210968e10000000a114084/content.htm
Any help or ideas are appreciated.
Thanks,
Venkat.Thank you Shyam for so prompt reply,
We are using the same report. But its bit uneasy to go to change document of each and every ticket. Also in this report we could not find how much days the notification lay in New status or in In-process status. We require somewhat in following format.
Ticket number New Customer action In-process
000001 1Day 1.3 Days 1 Day
000002 1.3 Days 2.3 Days 1 Day
000003 3 Days 3.4 Days 1 Day
We are not bothered about days, week or hours etc. The purpose is to indentify how much time every ticket took stage wise. May be through ABAP this possible but we are looking for standard reports.
Thanks
Anand Rao -
RZ20: how to create status attribute for monitoring object ?
Hello,
I am brand new into RZ20 maintenance and my question may be silly.
Anyway, SAP supplies monitoring objects customized with performance attribute (such as MTE class SAPconnect Error). Instead of having such performance attribute, I would prefer to have a MTE class with status attribute in order to trigger an alert each time a there is a SAPconnect message with error.
Is it possible to define such status attribute ? If so, how could it be achieved ?
Thank you for your help.
Regards,
FabriceHello Fabrice,
the monitoring object and its attributes are defined by the data collector. This means the attributes are hard coded (in the function module or report in case of data collection method (a passive data collector) of directly in the kernel (an active data collector).
And as long as the data collector is delivered by SAP, changing the coding is not a good idea
So only way would be to create your own monitoring objects using your own data collector. A documentation how to do this is available in the Service MarketPlace: "<a href="http://service.sap.com/~sapidb/011000358700001752571999E/SUPPLIER_46A_EN_Neu.pdf">How to Write a Data Supplier for the Alert Monitor</a>".
Regards, Michael -
What is the meaning of Status Attribute
Hello All,
Can anybody explain about Status attributes?
is it related to display or navigational attributes?
regards,
RaviHi Ravi,
Status attributes are just a concept, not a technical setting. You can read very good info in this doc:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6ce7b0a4-0b01-0010-52ac-a6e813c35a84
Page 37 for Status Attributes.
Hope this helps... -
Fetching of multiple files from Application Server into SAP Program
Hi All,
I have a issue related <b>Fetching of multiple files from Application Server into SAP Program</b>.
Actual issue is as below.
In the <b>selection screen</b> of <b>my program</b> i will give <b>Application Server Path</b> as :
<b>/PW/DATA/SAP/D1S/PP/DOWN/eppi0720*</b>
Then the based on above input it should pick up all the files that are matching <b>eppi0720*</b> criteria.
Suppose if i am having <b>5</b> files with above scenario, i have to fetch all those <b>5</b> files at a time and place in my SAP Program.
All those 5 file's data should come into SAP at a time.
Can anybody tell me how can we solve above issue.
If any body has come across same issue please provide me with solution.
Thanks in advance.
Thanks & Regards,
Rayeez.If you want to get around the authorization check, you can do something like this.
report zrich_0001 .
parameters: p_path type epsf-epsdirnam
default '/usr/sap/TST/SYS/global'.
parameters: p_file type epsf-epsfilnam default 'CO*'.
start-of-selection.
perform get_file_list.
* FORM get_file_list *
form get_file_list.
types: name_of_dir(1024) type c,
name_of_file(260) type c,
name_of_path(1285) type c.
data: begin of file_list occurs 100,
dirname type name_of_dir, " name of directory. (possibly
" truncated.)
name type name_of_file, " name of entry. (possibly
" truncated.)
type(10) type c, " type of entry.
len(8) type p, " length in bytes.
owner(8) type c, " owner of the entry.
mtime(6) type p, " last modification date, seconds since 1970
mode(9) type c, " like "rwx-r-x--x": protection mode.
useable(1) type c,
subrc(4) type c,
errno(3) type c,
errmsg(40) type c,
mod_date type d,
mod_time(8) type c, " hh:mm:ss
seen(1) type c,
changed(1) type c,
end of file_list.
data: begin of file,
dirname type name_of_dir, " name of directory. (possibly
" truncated.)
name type name_of_file, " name of entry. (possibly
" truncated.)
type(10) type c, " type of entry.
len(8) type p, " length in bytes.
owner(8) type c, " owner of the entry.
mtime(6) type p, " last modification date, seconds since 1970
mode(9) type c, " like "rwx-r-x--x": protection mode.
useable(1) type c,
subrc(4) type c,
errno(3) type c,
errmsg(40) type c,
mod_date type d,
mod_time(8) type c, " hh:mm:ss
seen(1) type c,
changed(1) type c,
end of file.
call 'C_DIR_READ_FINISH' " just to be sure
id 'ERRNO' field file_list-errno
id 'ERRMSG' field file_list-errmsg.
call 'C_DIR_READ_START' id 'DIR' field p_path
id 'FILE' field p_file
id 'ERRNO' field file-errno
id 'ERRMSG' field file-errmsg.
if sy-subrc <> 0.
sy-subrc = 4.
exit.
endif.
* Read the file list and add to internal table.
do.
clear file.
call 'C_DIR_READ_NEXT'
id 'TYPE' field file-type
id 'NAME' field file-name
id 'LEN' field file-len
id 'OWNER' field file-owner
id 'MTIME' field file-mtime
id 'MODE' field file-mode
id 'ERRNO' field file-errno
id 'ERRMSG' field file-errmsg.
if sy-subrc = 1.
exit.
endif.
append file to file_list.
enddo.
* Write out the file list
loop at file_list.
write:/ file_list-name.
endloop.
endform.
Regards,
Rich Heilman -
Need to start a program in Oracle System (External) from sap program
Hi guys,
I need to start a program in another oracle based system from sap program by writing native sql statements.
Does anyone have idea how to do this.
Rgds,
RamHi,
Here is another sample for procedures.Kindly reward points by clicking the star on the left of reply,if it is useful.
Code Sample for writing a procedure with input and output parameters
REPORT zzz_jaytest.
* Getting the regno and total as input parameters
PARAMETERS : p_regno(10) TYPE c DEFAULT 'R1000',
p_total TYPE i.
data : v_total type i.
* In this procedure, we are updating the total of a regno given as input.
* Here two parameters used in the procedure are input parameters.
* We are updating the record of regno entered in selection screen and
* adding the total entered to the already existing total. We have to give semicolon
* for the statement inside procedure.
exec sql.
CREATE or replace PROCEDURE PROC1 ( p_regno in char, p_total in number )
IS
BEGIN
UPDATE stu_det SET total = total + p_total where regno = p_regno;
END;
endexec.
* This is the code to execute the procedure for update.
* While executing the procedure, the parameter variable should be
* preceded with colon :
EXEC SQL.
EXECUTE PROCEDURE PROC1 ( in :p_regno, in :p_total )
ENDEXEC.
* In this procedure, we are selecting the details for the regno entered
* as input. Here p_regno is input parameter and v_total is used as output
* parameter. So that we can use the retrieved value of v_total in our
* ABAP program
exec sql.
CREATE or replace PROCEDURE PROC2 (p_regno in char, v_total out char)
IS
BEGIN
select total into v_total from stu_det
where regno = p_regno;
END;
endexec.
* This is the code to execute second procedure.
EXEC SQL.
EXECUTE PROCEDURE PROC2 ( in :p_regno, out :v_total )
ENDEXEC.
write : / 'Total of ', p_regno, ' is ', v_total. -
Loading records from .csv file to SAP table via SAP Program
Hi,
I have a .csv file with 132,869 records and I am trying to load it to an SAP table with a customized SAP program.
After executing the program, only 99,999 records are being loaded into the table.
Is there some setting to define how many records can be loaded into a table? Or what else could be the problem?
Pls advice.
Thanks!!!hi Arun ,
A datasource need a extract structure to fetch data .It is nothing but a temp table to hold data.
First you need to create atable in SE11 with fields coming from CSV file.
Then you need to write a report program to read you CSV file and populate your table in BW .
Then you can create a datasource on top of this table .
After that replicate and load data at PSA and use to upper flow.
Regards,
Jaya Tiwari -
How to find out Which SAP programs are affecting Which Z programs?
Do we have a program/tool that can tell us the following:
How to find out Which SAP programs are affecting Which Z programs in the entire development server?
We have a list of SAP programs and a list of custom u2018zu2019 programs, which ones impact each other? I know we have a u201Cwhere usedu201D functionality, however that is at the object by object level.
We need are looking for something a little larger u2013
thanks in advance
VishnuDo we have a program/tool that can tell us the following:
How to find out Which SAP programs are affecting Which Z programs in the entire development server?
We have a list of SAP programs and a list of custom u2018zu2019 programs, which ones impact each other? I know we have a u201Cwhere usedu201D functionality, however that is at the object by object level.
We need are looking for something a little larger u2013
thanks in advance
Vishnu -
Z search field in standard sap program
Hi,
I would like to ask if Z search field can be created in the standard SAP program.
Basically I need modify the search field used when searching for Business area in creation of asset master data (tr. AS01).
It shows the list of table tgsbt. But I would like to exclude by default some rows of the table and also would like to sort it in different way (by text).
Is that possible, if so, could anyone give me a hint how to do that?
Many thanks,
HonzaHi Jan,
Please go thorugh the below link.
http://wiki.sdn.sap.com/wiki/display/Snippets/ImplementingSearchHelp+Exits -
How to uncomment code in Standard SAP Programs
Hi Experts,
how to uncomment entire code of standard SAP programs which is commented .
Standard SAP Program is fully commented,i have to uncomment it ,to work it as normal.
i saw that some lines * / * like this are there in the commented code .
what is the way to un comment this ?
Thanks in advance,
Regards,
HituWell, if it is commented by your company - This doesnt ask for access key but if it is commented by SAP and you want to uncomment, you need access key.
You can ask basis guys to get access key for the object. you need to provide the program name and other information.
Other information: - go to the GOTO on application tool bar and select object direct entry.... you need to provide the full object key.
To uncomment the code - select the lines and right click - uncomment . This can only be done in editable mode. -
Getting run time errors while executing the copied SAP programs
Hi folks,
i want to copy an sap program.after coping i need to change some coding there.then i have to create a new transaction for that.
i am just copying the sap program RQEEAL10(transaction-QA32) to Z_RQEEAL10. it has 4 include programs.i am copying them to z programs like
RQ00MF10 copied to z_RQ00MF10
RQALVF14 copied to z_RQALVF14
RQALVF16 copied to z_RQALVF16
RQALVTOP copied to z_RQALVTOP.
now i am executing that program Z_RQEEAL10.but i am getting run time errors as given below.
<b>runtime error---</b>
The termination occurred in the ABAP program "Z_RQEEAL10" in
"SELECT_FIELDS_MANIP2_F16".
The main program was "Z_RQEEAL10 ".
The termination occurred in line 257 of the source code of the (Include)
program "RQALVF16"
of the source code of program "RQALVF16" (when calling the editor 2570).
--Error in ABAP statement when processing an internal table.
--When changing or deleting one or more lines of the internal table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS" or when inserting in the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS", 0 was used as
the line index. An index less than or equal to zero is not
allowed.
The error can occur when using the following options:
1. "INDEX idx" for specifying the line number in the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS"
where you want to change, insert or delete.
2. "FROM idx" for specifying the start index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".
3. "TO idx" for specifying the end index when deleting a line
area from or inserting a line area into the table
"\PROGRAM=Z_RQEEAL10\DATA=SELECT_FIELDS".
When the program terminated, the table had 2 lines.
these r the runtime errors what i am getting.where is the problem?i have activated all interface & includes.plz advice.
Thanks & regardsHi Madhu,
I will give you one more check point where you have to give your concentration while copying the standard programs....
Call Customer-Function (Function Exists) if any in the Program when copied will not get executed. Instead you need to call the FM Directly.
one more is also here
You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.
~~Guduri -
How to call a Standard SAP Program in Zprogram.
Hi,
how to call a SAP Standard program in SAP Program?
Do we have to use any funtion module and pass paramters?
I want to call a Standard SAP prg in to my prgram? can anyone explain me or give the piece of code to call standard prg.
Thanks & RegardsAgain, ABAP related questions should be asked in the ABAP forum.
To answer you question, if the standard program is a report program, you can use the SUBMIT statement and pass parameters using the WITH Extention.
Submit <report>
with p_fld = 'X'
and return.
Please make sure to award points for helpful answers and mark your posts as solved when solved completely. Thanks.
Regards,
RIch Heilman -
How to change standard SAP program SAPLFSKB to add custom fields...?
Hi Gurus,
I have to change the standard SAP program SAPLFSKB screen 100 to add custom fields...i looked into OSS notes and there is a note: 174413 that provides steps to add custom fields...but when i try to do this it doesnt let me do it...it says that request cannot be changed....do i have to use modification agent...if that is the case then how shud i proceed with this....so please provide me some inputs....
your help will be appreciated...
Any inputs for me....
cheers:sam
Message was edited by:
Sam williamstry going into edit->enhancement operations->create. this will allow up to add your customized field.
Maybe you are looking for
-
Unable to open links in email accounts on xoom after loading firefox moblie
I hav my email accounts on xoom homescreen when I read email from icon on screen not through browser and try to open link it will not work this started after i loaded firefox or firefox mobile can u help me....? firefox web browser is not open when t
-
G/l accounts in import process
hi sap gurus, Pl tell me which accounts are generated while doing miro for cvd, customs duty & clearing. also while doing migo and miro for the actual vendor. PL .TELL ME WHERE DO WE CUSTOMIZE THESE G/L ACCOUNTS. Regards. Sandeep
-
CIF of material classification data
Dear Experts, Since a recent technical upgrade to our systems, I have seen a change in behavior of the integration of material classification data from ECC to SCM. Before the upgrade, classification data transferred with the initial CIF of the mater
-
When to use Tables, which are defined as u0093No Objectu0094?
Generally, in which situations should we use a <b>no object type</b> table ? Theres not much explanation about that type in help files.
-
How do I change permissions for West Dig USB HD, how said "read only" and can't use it.
I have a West Did Hard drive from my PC that want to use on my Macbook. Looking at the permissions said "read only". I tried to move files on the drive and could not when attached to my Macbook. Where do I change these settings that will allow me