How to find the job is in which server
HI ,
In Process chains , are assighned to server want to know the chain is in which server , please let me know
Thanks
Ahmed Pasha
Hi
follow the below steps
goto SM37 --> find out your job
double click on job ---> click on job details(you will find this option in top)
In the next screen --> you will get application server name and Work process ID
This two are required if you want to cancel any running job.
Note: You will find the server name and WPID only for active jobs(which are runnig at present)
In Your case if you don't know the server name which you have, just select "Home(this is the first option)" system will run the job based on server availability.
If you want to know all the servers in your system, goto SM50
Regards,
Venkatesh
Similar Messages
-
How to find the job and job status from RSPCM
hi all,
suppose we got an error and in rspcm the process was failed.i want to know the status of that particular job.and if any i want to stop that job in SM37.
plz tell me how to find the job and job ststus from RSPCM...and how to stop that job in SM37
thanks,
jackHi Jack,
RSPCM: T.Code
This transaction is used to monitor the process chains
First:
here you need to add the process chains into the sheet
Second:
Then you can monitor the process chains in this transaction code
Like you can see the : status ,proces chain ,Last run date ,Last run time ,Log ID
Status : Green when sucessful,Yellow when running & Red when you get errors
Now when yoy click on any of the process chain in RSPCM you will go to the LOG VIEW as you see in RSPC transaction
SM37:T.code
This transaction is used for Job Overview
you can see many options in SM37
like Released,active,cancelled,finished,etc
Just select the ACTIVE jobs and also pass STAR in JOB ID & USER ID
here you can only see the active jobs
Goto Step in toolbar
select the program displayed
then chose option GOTO - Variant in main menu bar
in the variant you can see the job belong to which Process chain
if you want to cancel this job come back to SM37 Display screen
Select the Job and select the JOB DETAILS tab in Tool Bar
Collect the WIP ( Work Permit ID)
Go to SM50 T.code and find the WIP
in Main Menu Bar you find the option Cancel with Core choose this it will cancel the Job
Regards
Hari -
How to find the job details?
Hi,
Can any one pls tell me how to find the job details.
Im getting the following error.
ORA-12012: error on auto execute of job 2523287
ORA-01031: insufficient privileges
but, when im connecting as sysdba adn do following it was showinfg no rows selected.
SQL> select * from dba_jobs where job=2523287;
no rows selected
SQL> select * from all_jobs where job=2523287;
no rows selected
How to find the job details of the job 2523287?
Thanks in advance.
Jishnuyeah, trc file is there
I found the following info in that
*** ACTION NAME:(EDX_PURGE) 2009-11-08 22:00:00.411
*** MODULE NAME:(DBMS_SCHEDULER) 2009-11-08 22:00:00.411
*** SERVICE NAME:(SYS$USERS) 2009-11-08 22:00:00.411
*** SESSION ID:(683.4258) 2009-11-08 22:00:00.411
*** 2009-11-08 22:00:00.411
ORA-12012: error on auto execute of job 2523287
ORA-01031: insufficient privileges -
How to find the webclient in SAP MDM server
How to find the webclient in SAP MDM server
Thanks In Advance
GuruvaReddyHi Guruva,
If you are talking about MDM APIs, then you will get them from Service place when you download the complete MDM 5.5 Suite. You need to choose the API which is appropriate to you. MDM comes with 2 different APIs - Java API and COM API as of SP1(The news is.. ABAP API is under development).
Pre-requisite for building applications using Java APIs is basic Java skills.
Regards,
Rajani Kumar K -
How to find the group ids from which the mail has been sent
Hi,
We are able to see the list of mails have been sent to respective mail ids with the help of tcode SOST.
Is there any way to find through which group ids the mails have been sent.
Tehe details showing as the mail has been sent by Batchusr.
Please suggest how to find the group id from where the the mails have been triggered.
Regards,
Jena.Hi
This is not helpfull
If you open any notification QM03, there you will get tab " Action Log"
If you click on action log , there are two fileds
Date and time for task release
I want to fetch these fileds in one of Z report.
I am unable to find table name for these two fileds
Task release Date
Task release Time
Can we add 'QN CHANGE DATE' parameter in the selection screen (just like QN creation date) w/ range? The user want to run the report by QN change date as well. -
How to find the Job Name in the debugging from the SM37
Hi All,
Here my problem is i want to update the Actual UOM into MM02 and if new material is coming i need to create the material and UOM in MM01.
for this requirement i am using RMDATIND standard Direct Input program and I am using Background JOB Schduling by giving name MRP_MATERIAL_MASTER_DATA_LOAD
I am getting the data into my internal table and i am successfully getting the message "JOB started" once i execute the program.
then i gone into SM37 there i found my job is completed.
but when i try to find the data has updated in MM02 or MM01, here i could not found the updated data.
Can any one can help me in this.
Thanks & Regards,
Venkat Nhi,
When ever you schedule any job, it gives the name of the job in the screen.
Now after going to SM37 filter the screen for the time period you did the job and put the user id as your user id, so that it show only your jobs which started from the given time interval
regards,
Omkar. -
How to find the mails triggered by which user from SOST or other transac.
Hi Experts,
How to find out mails triggered from SAP system by which user from SOST or some other means of mail triggering from SAP.
Regards,
IFFHi Buddy,
Make the question clear. You can check in SCOT transaction.
Cheers,
Sanil -
How to find the table name on which integrity constraint not found
Hi All
How to acheive this
I have a lot of tables with lot of primary key - foreign key
relationship.
In plsql
when any inserts happen in the child table & the corresponding row is not present in the parent table, we get an exception
ORA-02291: integrity constraint (user1.ppk) violated - parent key not found
On this exception , in the exception block i want to trap teh name of the parent table on which the primary key for the particular child table was not there
Is it possible to retrieve the parent table in this way. I am looking for a generic plsql code block which can help to acheive this
Regardsscott@ORA92> SET SERVEROUTPUT ON
scott@ORA92> DECLARE
2 e_no_parent_key EXCEPTION;
3 PRAGMA EXCEPTION_INIT (e_no_parent_key, -2291);
4 v_fk_cons VARCHAR2 (61);
5 v_owner VARCHAR2 (30);
6 v_parent_table VARCHAR2 (61);
7 v_pk_cons VARCHAR2 (30);
8 v_parent_column VARCHAR2 (30);
9 BEGIN
10 INSERT INTO emp (empno, deptno) VALUES (99, 60);
11 EXCEPTION
12 WHEN e_no_parent_key THEN
13 -- extract schema.constraint_name from sqlerrm:
14 v_fk_cons:= SUBSTR (SQLERRM,
15 INSTR (SQLERRM, '(') + 1,
16 INSTR (SQLERRM, ')') - (INSTR (SQLERRM, '(') + 1));
17 DBMS_OUTPUT.PUT_LINE ('Foreign key constraint violated: ' || v_fk_cons);
18 -- extract parent schema.table and parent key:
19 SELECT owner, table_name, constraint_name
20 INTO v_owner, v_parent_table, v_pk_cons
21 FROM user_constraints
22 WHERE (owner, constraint_name) =
23 (SELECT r_owner, r_constraint_name
24 FROM user_constraints
25 WHERE owner || '.' || constraint_name = v_fk_cons);
26 DBMS_OUTPUT.PUT_LINE ('Parent table: ' || v_owner || '.' || v_parent_table);
27 DBMS_OUTPUT.PUT_LINE ('Parent key: ' || v_owner || '.' || v_pk_cons);
28 -- extract parent table columns:
29 FOR rec IN
30 (SELECT column_name
31 FROM user_cons_columns
32 WHERE owner = v_owner
33 AND table_name = v_parent_table
34 AND constraint_name = v_pk_cons)
35 LOOP
36 DBMS_OUTPUT.PUT_LINE
37 ('Parent table column: ' || rec.column_name);
38 END LOOP;
39 END;
40 /
Foreign key constraint violated: SCOTT.FK_DEPTNO
Parent table: SCOTT.DEPT
Parent key: SCOTT.PK_DEPT
Parent table column: DEPTNO
PL/SQL procedure successfully completed. -
Hi,
I got this doubt, when searching logs on the servers. I have 2 WFE's in my farm, I got an error from enduser. So in which WFE server i need to check the logs.
How to configure logs path. Is it is possible to specify logs path on our own instead of 14 hive folder.
BadriThat is a really bad idea, especially with idle disconnects and other unreliability of CIFS.
You should instead check out the command
Merge-SPLogFiles which will allow you to combine ULS logs from multiple servers into a single file.
You can certainly specify your own path, but the path must be available on all servers. For example, if you specified D:\Logs, D:\Logs must exist on all SharePoint servers within the farm.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
How to find the job has failed in back ground
Hi All,
I have a requirement where i will be running a report online and background.
If my job has failed in Background, then i have to trigger a mail to the user stating that the job has been terminated.
Now, How will i know the Job has failed and how should i handle this in my report so as to trigger a mail.
Hope i am clear with my requirement.Kindly clarify if possibe with any func modules or sample codings.
Thanks in advance
NandaHi try that:
try:
1) fm job_open
2) submit report
3) fm job_close
4) finally select table TBTCO
example:
DATA: jobcount_test LIKE tbtcjob-jobcount,
job_released LIKE btch0000-char1,
rcode(2),
strtimmed LIKE btch0000-char1 VALUE 'X'.
DATA jobname LIKE tbtcjob-jobname.
CONCATENATE 'TEST_' sy-repid '_' sy-datum INTO jobname.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = jobname
IMPORTING
jobcount = jobcount_test
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE x000(yp) WITH 'JOB-START ' jobname ' failed !!!'.
ELSE.
*--Step insert
SUBMIT rsbdcsub
USER sy-uname VIA JOB jobname NUMBER jobcount_test
WITH mappe = map
WITH von = pdatum
WITH z_verarb = 'X'
AND RETURN .
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = jobcount_test
jobname = jobname
strtimmed = strtimmed
targetsystem = sy-host
IMPORTING
job_was_released = job_released
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc > 1.
MESSAGE x000(yp) WITH 'JOB-CLOSE ' jobname ' failed!!!'.
ENDIF.
ENDIF.
Andreas -
How to find the list of patches which are applicable to DS 5.2
Hi;
Is there any web page which lists the list of the patches which are released for Directory Server 5.2.
I appreciate your assistanceRead:
http://docs.sun.com/source/817-7611/index.html#wp33336
And also all the release notes.
� SUN ONE Directory Server 5.2 release notes:
http://docs.sun.com/source/816-6703-10/index.html
� SUN Java System Directory Server 5.2 / 2005Q1 release notes:
http://docs.sun.com/source/817-7611/index.html
� SUN Java System/Directory Server 5.2 / 2005Q4 release notes
http://docs.sun.com/source/819-2405/index.html
� SUN Java System/Directory Server 5.2 / 2005Q1 release notes for Compressed Archive
http://docs.sun.com/source/819-1815/index.html
� SUN Java System/Directory Server 5.2 / 2005Q4 release notes for Patchzip
http://docs.sun.com/source/819-4290/index.html
You may find the following script useful.
#! /bin/sh
# chk_patches_sjes_ds52.sh
# Gary Tay, 1-Apr-2005 written
# Pls customize the patches you are checking, use blank to separate
# multiple patch ids, eg: 5.9:112345 113456
# Pls refer to:
# http://docs.sun.com/source/817-7611/index.html#wp33336
#114677-08 SunOS 5.9: International Components for Unicode Patch
#117724-10 SunOS 5.8: NSPR 4.5.1 / NSS 3.9.5 / JSS 4.0
#115342-01 SunOS 5.9: Simple Authentication and Security Layer (2.01)
#115610-18 SunOS 5.9_sparc: Administration Server 5.2 patch
#115614-20 SunOS 5.9: Directory Server 5.2 patch
#117015-16 Patch for localized Solaris packages
#116837-02 LDAP CSDK - SUNWldk, SUNWldkx
# Solaris 8: (DS 5.2 Patch3 for the package version)
#115610 SunOS 5.9 : Sun Java(TM) System Directory Server 5.2 patch 3 (Adminserv)
#115614 SunOS 5.9 : Sun Java(TM) System Directory Server 5.2 patch 3 (DS)
#117722 SunOS 5.8: NSPR 4.5.1 / NSS 3.9.5 / JSS 4.0...
#118615 LDAP Java Development Kit 4.17 SunOS 5.8 5.9 _x86: genesis patch
# Solaris 8: LDAP-Client
#108993 LDAP-Client for Solaris 8 (phase II)
#108808 LDAP-Client for Solaris 8 (man-pages)
# And at your choice for for JES 114045
cat >/tmp/chk_patches$$.tmp <<EOF
5.8:108993 115610 115614 117722 118615 108808 114045
5.9:114677 117724 115342 115610 115614 117015 116837
EOF
SOLARIS_VER=`uname -r`
PATCH_IDS=`grep "$SOLARIS_VER" /tmp/chk_patches$$.tmp | cut -d: -f2`
for i in `echo $PATCH_IDS`
do
RESULT=`showrev -p | grep "^Patch: $i-"`
[ -n "$RESULT" ] && echo $RESULT
[ -z "$RESULT" ] && echo PATCH $i not found...
done
/bin/rm -f /tmp/chk_patches$$.tmp
Example of running chk_patches_sjes_ds52.sh:
# ./chk_patches_sjes_ds52.sh
Patch: 114677-08 Obsoletes: Requires: Incompatibles: Packages: SUNWicu, SUNWicux
Patch: 117724-10 Obsoletes: 115926-10 Requires: Incompatibles: Packages: SUNWtls, SUNWtlsx, SUNWpr, SUNWjss, SUNWprx
Patch: 115342-01 Obsoletes: Requires: Incompatibles: Packages: SUNWsasl, SUNWsaslx
Patch: 115610-17 Obsoletes: Requires: Incompatibles: Packages: SUNWasvc, SUNWasvu, SUNWasvr, SUNWasvcp
Patch: 115614-19 Obsoletes: 117907-02 Requires: 115610-17 Incompatibles: Packages: SUNWdsvr, SUNWdsvcp, SUNWdsvh, SUNWdsvhx, SUNWdsvu, SUNWdsvx, SUNWdsvpl
PATCH 117015 not found...
Patch: 116837-02 Obsoletes: Requires: Incompatibles: Packages: SUNWldk
Gary -
How to find the client number of xMII server i m running
Hi experts,
Here i am simply providing the URL in my browser and it shows the login page of xMII server.But i want to find under which client i am currently running this xMII ,how can i find that client number?
Thanks ,
S.Ramesh Kumar.The term "client" does not neccessary apply with xMII. A "client" is an organization level in ECC. If you are looking for the system information open the url
http://server:port
and select system information.
Jamie -
How to find the Values of SAP Gateway Server Host and Gateway Service Valu
Hi All,
I installed SAPR/3 4.7 EE on Windows. For configuring SLD and LDAP i am unable to give the SAP Gateway Server Host and Gateway Service values.
Can any one plz suggest me how to find these values.
Regds
PhanikumarHello, SAP Gateway Server Host and Gateway Service are used to set up rfc connectivity, that is the host name and the system number where your sld and ldap is responding, if you have no sld and no ldap , just simply uncheck that options while installing.
Have a nice week end, Luciano. -
How to find the patch & version of directory server
How to find version & patch of Sun JES Directory Server.
What does 2005Q4 mean to?Just look at your errors log file after you start up the directory server. If you are running Directory Server 6.0 you will find a line that looks like this:
Sun-Java(tm)-System-Directory/6.0 B2007.030.1546 (32-bit) starting up
Depending on the version you have it will show something slightly differently. -
How to find the job which created the session with errors ?
Hi,
I am going to transaction SM35 to see the sessions which has errors. Now if I want to see, what Job was responsible to create that session, how can I see that ?
Regards,
Rajesh.hi Rajesh,
Refer to this code to create a session for the erroreneous records
REPORT ztest_report
NO STANDARD PAGE HEADING
LINE-SIZE 255
MESSAGE-ID ZRASH.
* Internal Table Declarations *
*--Internal Table for Data Uploading.
DATA : BEGIN OF IT_FFCUST OCCURS 0,
KUNNR(10),
BUKRS(4),
KTOKD(4),
ANRED(15),
NAME1(35),
SORTL(10),
STRAS(35),
ORT01(35),
PSTLZ(10),
LAND1(3),
SPRAS(2),
AKONT(10),
END OF IT_FFCUST.
*--Internal Table to Store Error Records.
DATA : BEGIN OF IT_ERRCUST OCCURS 0,
KUNNR(10),
EMSG(255),
END OF IT_ERRCUST.
*--Internal Table to Store Successful Records.
DATA : BEGIN OF IT_SUCCUST OCCURS 0,
KUNNR(10),
SMSG(255),
END OF IT_SUCCUST.
*--Internal Table for Storing the BDC data.
DATA : IT_CUSTBDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
*--Internal Table for storing the messages.
DATA : IT_CUSTMSG LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
DATA : V_FLAG1(1) VALUE ' ',
"Flag used for opening session.
V_TLINES LIKE SY-TABIX,
"For storing total records processed.
V_ELINES LIKE SY-TABIX,
"For storing the no of error records.
V_SLINES LIKE SY-TABIX.
"For storing the no of success records.
* Selection screen *
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS : V_FNAME LIKE RLGRAP-FILENAME,
V_SESNAM LIKE RLGRAP-FILENAME.
SELECTION-SCREEN END OF BLOCK B1.
* Start-of-selection *
START-OF-SELECTION.
*-- Form to upload flatfile data into the internal table.
PERFORM FORM_UPLOADFF.
* TOP-OF-PAGE *
TOP-OF-PAGE.
WRITE:/ 'Details of the error and success records for the transaction'
ULINE.
SKIP.
* End of Selection *
END-OF-SELECTION.
*-- Form to Generate a BDC from the Uploaded Internal table
PERFORM FORM_BDCGENERATE.
*--To write the totals and the session name.
PERFORM FORM_WRITEOP.
*& Form form_uploadff
* Form to upload flatfile data into the internal table.
FORM FORM_UPLOADFF .
*--Variable to change the type of the parameter file name.
DATA : LV_FILE TYPE STRING.
LV_FILE = V_FNAME.
*--Function to upload the flat file to the internal table.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = LV_FILE
* FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
TABLES
DATA_TAB = IT_FFCUST
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC = 0.
*--Deleting the headings from the internal table.
DELETE IT_FFCUST INDEX 1.
*--Getting the total number of records uploaded.
DESCRIBE TABLE IT_FFCUST LINES V_TLINES.
ENDIF.
ENDFORM. " form_uploadff
*& Form Form_bdcgenerate
* Form to Generate a BDC from the Uploaded Internal table
FORM FORM_BDCGENERATE .
*--Generating the BDC table for the fields of the internal table.
LOOP AT IT_FFCUST.
PERFORM POPULATEBDC USING :
'X' 'SAPMF02D' '0105',
' ' 'BDC_OKCODE' '/00' ,
' ' 'RF02D-KUNNR' IT_FFCUST-KUNNR,
' ' 'RF02D-BUKRS' IT_FFCUST-BUKRS,
' ' 'RF02D-KTOKD' IT_FFCUST-KTOKD,
'X' 'SAPMF02D' '0110' ,
' ' 'BDC_OKCODE' '/00',
' ' 'KNA1-ANRED' IT_FFCUST-ANRED,
' ' 'KNA1-NAME1' IT_FFCUST-NAME1,
' ' 'KNA1-SORTL' IT_FFCUST-SORTL,
' ' 'KNA1-STRAS' IT_FFCUST-STRAS,
' ' 'KNA1-ORT01' IT_FFCUST-ORT01,
' ' 'KNA1-PSTLZ' IT_FFCUST-PSTLZ,
' ' 'KNA1-LAND1' IT_FFCUST-LAND1,
' ' 'KNA1-SPRAS' IT_FFCUST-SPRAS,
'X' 'SAPMFO2D' '0120',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0125',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0130',
' ' 'BDC_OKCODE' '=ENTR',
'X' 'SAPMF02D' '0340',
' ' 'BDC_OKCODE' '=ENTR',
'X' 'SAPMF02D' '0360',
' ' 'BDC_OKCODE' '=ENTR',
'X' 'SAPMF02D' '0210',
' ' 'KNB1-AKONT' IT_FFCUST-AKONT,
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0215',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0220',
' ' 'BDC_OKCODE' '/00',
'X' 'SAPMF02D' '0230',
' ' 'BDC_OKCODE' '=UPDA'.
*--Calling the transaction 'fd01'.
CALL TRANSACTION 'FD01' USING IT_CUSTBDC MODE 'N' UPDATE 'S'
MESSAGES INTO IT_CUSTMSG.
IF SY-SUBRC <> 0.
*--Populating the error records internal table.
IT_ERRCUST-KUNNR = IT_FFCUST-KUNNR.
APPEND IT_ERRCUST.
CLEAR IT_ERRCUST.
*--Opening a session if there is an error record.
IF V_FLAG1 = ' '.
PERFORM FORM_OPENSESSION.
V_FLAG1 = 'X'.
ENDIF.
*--Inserting the error records into already open session.
IF V_FLAG1 = 'X'.
PERFORM FORM_INSERT.
ENDIF.
*--Populating the Success records internal table.
ELSE.
IT_SUCCUST-KUNNR = IT_FFCUST-KUNNR.
APPEND IT_SUCCUST.
CLEAR IT_SUCCUST.
ENDIF.
*--Displaying the messages.
IF NOT IT_CUSTMSG[] IS INITIAL.
PERFORM FORM_FORMATMSG.
ENDIF.
*--Clearing the message and bdc tables.
CLEAR : IT_CUSTBDC[],IT_CUSTMSG[].
ENDLOOP.
*--Getting the total no of error records.
DESCRIBE TABLE IT_ERRCUST LINES V_ELINES.
*--Getting the total no of successful records.
DESCRIBE TABLE IT_SUCCUST LINES V_SLINES.
*--Closing the session only if it is open.
IF V_FLAG1 = 'X'.
PERFORM FORM_CLOSESESS.
ENDIF.
ENDFORM. " Form_bdcgenerate
*& Form populatebdc
* FOrm to Populate the BDC table.
FORM POPULATEBDC USING VALUE(P_0178)
VALUE(P_0179)
VALUE(P_0180).
IF P_0178 = 'X'.
IT_CUSTBDC-PROGRAM = P_0179.
IT_CUSTBDC-DYNPRO = P_0180.
IT_CUSTBDC-DYNBEGIN = 'X'.
ELSE.
IT_CUSTBDC-FNAM = P_0179.
IT_CUSTBDC-FVAL = P_0180.
ENDIF.
APPEND IT_CUSTBDC.
CLEAR IT_CUSTBDC.
ENDFORM. " populatebdc
*& Form FORM_OPENSESSION
* Form to Open a session.
FORM FORM_OPENSESSION .
*--Variable to convert the given session name into reqd type.
DATA : LV_SESNAM(12).
LV_SESNAM = V_SESNAM.
*--Opening a session.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = LV_SESNAM
HOLDDATE = '20040805'
KEEP = 'X'
USER = SY-UNAME
PROG = SY-CPROG
* IMPORTING
* QID =
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11
IF SY-SUBRC <> 0.
WRITE :/ 'Session not open'.
ENDIF.
ENDFORM. " FORM_OPENSESSION
*& Form FORM_INSERT
* fORM TO INSERT ERROR RECOED INTO A SESSION.
FORM FORM_INSERT .
*--Inserting the record into session.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'FD01'
* POST_LOCAL = NOVBLOCAL
* PRINTING = NOPRINT
* SIMUBATCH = ' '
* CTUPARAMS = ' '
TABLES
DYNPROTAB = IT_CUSTBDC
EXCEPTIONS
INTERNAL_ERROR = 1
NOT_OPEN = 2
QUEUE_ERROR = 3
TCODE_INVALID = 4
PRINTING_INVALID = 5
POSTING_INVALID = 6
OTHERS = 7
IF SY-SUBRC <> 0.
WRITE :/ 'Unable to insert the record'.
ENDIF.
ENDFORM. " FORM_INSERT
*& Form FORM_CLOSESESS
* Form to Close the Open Session.
FORM FORM_CLOSESESS .
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
NOT_OPEN = 1
QUEUE_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
ENDIF.
ENDFORM. " FORM_CLOSESESS
*& Form FORM_FORMATMSG
* Form to format messages.
FORM FORM_FORMATMSG .
*--Var to store the formatted msg.
DATA : LV_MSG(255).
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = SY-MSGID
LANG = SY-LANGU
NO = SY-MSGNO
V1 = SY-MSGV1
V2 = SY-MSGV2
V3 = SY-MSGV3
V4 = SY-MSGV4
IMPORTING
MSG = LV_MSG
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
WRITE :/ LV_MSG.
ENDIF.
ULINE.
ENDFORM. " FORM_FORMATMSG
*& Form form_writeop
* To write the totals and the session name.
FORM FORM_WRITEOP .
WRITE :/ 'Total Records Uploaded :',V_TLINES,
/ 'No of Error Records :',V_ELINES,
/ 'No of Success Records :',V_SLINES,
/ 'Name of the Session :',V_SESNAM.
ULINE.
ENDFORM. " form_writeop
Maybe you are looking for
-
As stated, my contacts are present and correct on all my iOS devices and on iCloud.com but they do not show up in contacts on my new iMac. The accounts details are the same and the password has been accepted so I assume it is correct (I have re-enter
-
How to sync hotmail calendars and ICal using exchange/ active-sync.
I have just recently updated my hotmail account to the exchange setting in my iPhone and I have synced my mail,calendar and contacts. I'm just wondering if it's possible to sync my hotmail Calendar with my iCal on Mac os x using the exchange program.
-
Hey guys, i'm having some trouble with a program i've been working on. Im a bit of a newbie so do forgive me if I seem as though i'm being a bit thick. I'm trying to split a boolean formula into it's sub formulas and parse the results into an array.
-
Intermedia Image Analysis cant find DLL
Win2k, Oracle 8.1.6EE. Fresh installations. With a new installation of Oracle, create a SHARED database using connection pooling etc. On another identical machine also create a standard default database from the CD. On both the standard default datab
-
Encore CS6 always transcodes 1440x1080 h264 video imports
If I encode an interlaced 1920x1080 files with x264 I can import it into encore and it will not transcode. If I import a 1440x1080 file into encore it always wants to re-transcode. The only clue I have is that it does not get the pixel aspect ratio r