How to find Spool number for a 2 steps background job.
Hi All,
How to find spool number (and also the background job name ) for a 2 steps background job.
in the table TBTCO i can see step numbers but i dont get the spool number. Is there any link between TBTCO and TSP01.
Also after getting the spool number i need to drill down on ALV report. I hard coded the spool number and was able to drill down using BDC and call transaction but when i press back button it is not returning to the ALV report.
Thanks,
Shiva.
Which one creates the spool? (first one I guess)
What kind of spool? (WRITE, sapscript, smartform, pdf...)
Do you use special statements like NEW-PAGE, or other things?
Are you sure that the spools are generated by these jobs? (did you compare the spool generation times and job run dates to be sure...)
Similar Messages
-
How to find serial Number for BCC Plugin?
Hi,
How to find serial number for Bcc plugin on FCP?
I need format my Mac so before that I to find the serial number?
Please anyone can help me....The serial number has the format like E-111-aaa-222-bbb-333-ccc-444-ddd-5ee-ffff, it can be found on a piece of paper which has 3 stickers with it inside the box.
-
HT4061 how to find sirim number for i phone 5
How to find sirim number for i p
Please don't double post. Read here:
http://support.apple.com/kb/ht4061 -
How to find Change number for a Material
Hi,
If we know the material number and Revision level then how can we find the Change Number of that material.
Is there any table in which i can find Change number for a revision level or is there any Function module available.
Regards,
VaibhavHi Vaibhav,
Is there any table to find the change number and revision level of a material. I have change number and material and revision level coming from external system. But i need to check that with SAP whether it exists or not.
Is there any table link to find whether a material has change number. -
How to recover spool number for a sapscript
Hi!
I'm using the standard function ' REPRINT_DUNNING_DATA_ACCOUNT' for printing dunning.
I need to send by email instead of print the sapscript that this FM generates.
After changing h_itcpo to do that my problem is that I'm not able to recover the number of spool that it generates (for conversion to pdf and email attachement).
- syst variable have not this number
- GET PARAMETER ID 'SPI' FIELD l_spool_c. don't work
- change this variables to recover later spool with them don't work because standard asigns their own values on them
h_itcpo-tddataset = 'test'.
h_itcpo-tdsuffix1 = gt_mhnk-bukrs.
h_itcpo-tdsuffix2 = gt_mhnk-kunnr.
Any idea?
ThkI am not sure if I have got you right,but let me try..
there are couple of ways to get the spool number.. try if any helps you.
- by writing a Select query from TSP01, which will give you the lust and then select the latest one
- use of the below FM
RSPO_FIND_SPOOL_REQUESTS
RSPO_OPEN_SPOOLREQUEST'
RSPO_RINIT_SPOOL_SP01
Hope one of them helps. -
Need to know how to find out the Variant associated with a background job
Hello,
Plz help me in finding out how to find the variant associated with a background job. I need to know which variant does the program picks up when it runs the scheduled background job. There are so many variants that exist. How do I figure out which one is being picked up by the program. When I go and see into the job that are already finished it shows the parameter as "&00000000645354" which I do not understand what it corresponds to. I was expecting a variant name instead of this number in the parameter field. Is there a way I can find out the name of teh variant the program is using automatically in the background job ??
Thanks in anticipationYes it is possible which is variant, input fields are choosen
- go to SM37 and locate the background job which was processed using proper selection criteria
- select the Job and click on 'Step' button availabe in the screen
- the new screen is 'step list overview'. now, place the cursor on selected variant avaialble on the screen, then from Menu >> Goto>> variant
which gives the list of input values.
hope this helps
Thanks
JK -
Hello all.
My requirment is to convert a spool object to an XLS file in the background (and send it via mail).
Is it possible?
If so, please help!
please attach a code sample if you have one...
Thanks allot.
Barak.hi ,
this might healp you ought
TABLES: TBTCP, T024D.
*PARAMETERS TEST(5).
DATA: TJOBNAME LIKE TBTCP-JOBNAME VALUE 'REJ_COMP_MAIL_TO_MRP',
SPOOLID LIKE TSP01-RQIDENT,
V_LGORT LIKE MSEG-LGORT,
V_DISPO LIKE T024D-DISPO,
V_REPORT TYPE RSVAR-REPORT,
V_VARIANT TYPE RSVAR-VARIANT.
DATA: BEGIN OF VVALUES OCCURS 0.
INCLUDE STRUCTURE RSPARAMS.
DATA END OF VVALUES.
DATA : BEGIN OF T_RECEIVERS OCCURS 0.
INCLUDE STRUCTURE SOMLRECI1.
DATA END OF T_RECEIVERS.
DATA: BEGIN OF T_TBTCP,
jobname like tbtcp-jobname,
jobcount like tbtcp-jobcount,
LISTIDENT LIKE TBTCP-LISTIDENT,
SDLDATE LIKE TBTCP-SDLDATE,
SDLTIME LIKE TBTCP-SDLTIME,
VARIANT LIKE TBTCP-VARIANT,
END OF T_TBTCP,
ITAB_SPOOL LIKE STANDARD TABLE OF T_TBTCP,
WA_SPOOL LIKE T_TBTCP.
DATA: PLIST LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: DOCUMENT_DATA LIKE SODOCCHGI1.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: SO_ALI LIKE SOLI OCCURS 100 WITH HEADER LINE,
REAL_TYPE LIKE SOODK-OBJTP,
SP_LANG LIKE TST01-DLANG, LINE_SIZE TYPE I VALUE 255,
V_NAME LIKE SOEXTRECI1-RECEIVER.
DATA: GD_EVENTID LIKE TBTCM-EVENTID,
GD_EVENTPARM LIKE TBTCM-EVENTPARM,
GD_EXTERNAL_PROGRAM_ACTIVE LIKE TBTCM-XPGACTIVE,
GD_JOBCOUNT LIKE TBTCM-JOBCOUNT,
GD_JOBNAME LIKE TBTCM-JOBNAME,
GD_STEPCOUNT LIKE TBTCM-STEPCOUNT,
GD_ERROR TYPE SY-SUBRC,
GD_RECIEVER TYPE SY-SUBRC.
START-OF-SELECTION.
PERFORM GET_SPOOL_REQNUMBER USING TJOBNAME. " CHANGING SPOOLID.
PERFORM SEND_MAIL.
PERFORM REMOVE_BLANK_SPOOLS.
*& Form GET_SPOOL_REQNUMBER
text
-->P_0111 text *
<--P_UU text *
FORM GET_SPOOL_REQNUMBER USING P_0111.
SELECT ALISTIDENT BSTRTDATE BSTRTTIME AVARIANT
FROM TBTCP AS A INNER JOIN TBTCO AS B
ON AJOBNAME EQ BJOBNAME AND
AJOBCOUNT EQ BJOBCOUNT AND
ASTEPCOUNT EQ BSTEPCOUNT
INTO TABLE ITAB_SPOOL
WHERE AJOBNAME = P_0111 AND BSTRTDATE EQ SY-DATUM.
ENDFORM. " GET_SPOOL_REQNUMBER
*& Form send_mail
text
--> p1 text
<-- p2 text
FORM SEND_MAIL .
Get the spool data.
LOOP AT ITAB_SPOOL INTO WA_SPOOL.
REFRESH : SO_ALI, PLIST, T_RECEIVERS.
CLEAR : SO_ALI, PLIST, V_NAME, DOCUMENT_DATA, T_RECEIVERS, SPOOLID,
V_REPORT, V_VARIANT, V_DISPO.
IF WA_SPOOL-LISTIDENT <> '0'.
MOVE WA_SPOOL-LISTIDENT TO SPOOLID.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
RQIDENT = SPOOLID
FIRST_LINE = 1
LAST_LINE = 0
DESIRED_TYPE = ' '
IMPORTING
REAL_TYPE = REAL_TYPE
SP_LANG = SP_LANG
TABLES
BUFFER = SO_ALI
EXCEPTIONS
NO_SUCH_JOB = 1
JOB_CONTAINS_NO_DATA = 2
SELECTION_EMPTY = 3
NO_PERMISSION = 4
CAN_NOT_ACCESS = 5
READ_ERROR = 6
TYPE_NO_MATCH = 7
OTHERS = 8.
Check the return code.
IF SY-SUBRC <> 0.
MESSAGE S208(00) WITH 'Error'.
LEAVE LIST-PROCESSING.
ENDIF.
DATA : DATE LIKE SY-DATUM,
DATE1(10) TYPE C.
Prepare the data.
CLEAR OBJTXT.
REFRESH OBJTXT.
DATE = SY-DATUM - 1.
CONCATENATE DATE6(2) '-' DATE4(2) '-' DATE+0(4) INTO DATE1.
CONCATENATE 'PLEASE CHECK THE LIST OF REJECTED MATERIALS POSTED ON :' DATE1 INTO OBJTXT.
APPEND OBJTXT.
SELECT SINGLE DSNAM FROM T024D INTO T024D-DSNAM WHERE WERKS = '1000' AND DISPO = WA_SPOOL-VARIANT.
CONCATENATE 'MRP CONTROLLER :' WA_SPOOL-VARIANT '-' T024D-DSNAM INTO OBJTXT.
APPEND OBJTXT.
OBJTXT = ''.
APPEND OBJTXT.
CLEAR PLIST.
REFRESH PLIST.
PLIST-TRANSF_BIN = SPACE.
PLIST-HEAD_START = 1.
PLIST-HEAD_NUM = 0.
PLIST-BODY_START = 1.
DESCRIBE TABLE OBJTXT LINES PLIST-BODY_NUM.
PLIST-DOC_TYPE = 'RAW'.
APPEND PLIST.
CLEAR PLIST.
PLIST-TRANSF_BIN = 'X'.
PLIST-HEAD_START = 0.
PLIST-HEAD_NUM = 0.
PLIST-BODY_START = 0.
PLIST-BODY_NUM = 0.
PLIST-DOC_TYPE = 'RAW'.
PLIST-OBJ_DESCR = WA_SPOOL-VARIANT.
APPEND PLIST.
PLIST-TRANSF_BIN = 'X'.
PLIST-HEAD_START = 0.
PLIST-HEAD_NUM = 0.
PLIST-BODY_START = 1.
DESCRIBE TABLE SO_ALI LINES PLIST-BODY_NUM.
PLIST-DOC_TYPE = REAL_TYPE.
Get the size.
READ TABLE SO_ALI INDEX PLIST-BODY_NUM.
PLIST-DOC_SIZE = ( PLIST-BODY_NUM - 1 ) * LINE_SIZE + STRLEN( SO_ALI ).
APPEND PLIST.
***get the values of the variant
MOVE : WA_SPOOL-VARIANT TO V_VARIANT.
SELECT * FROM TBTCP WHERE JOBNAME EQ TJOBNAME ORDER BY SDLDATE.
MOVE TBTCP-PROGNAME TO V_REPORT.
ENDSELECT.
CALL FUNCTION 'RS_VARIANT_VALUES_TECH_DATA'
EXPORTING
REPORT = V_REPORT
VARIANT = V_VARIANT
SEL_TEXT = ' '
MOVE_OR_WRITE = 'W'
SORTED = ' '
EXECUTE_DIRECT =
IMPORTING
TECHN_DATA =
TABLES
VARIANT_VALUES = VVALUES
EXCEPTIONS
VARIANT_NON_EXISTENT = 1
VARIANT_OBSOLETE = 2
OTHERS = 3.
LOOP AT VVALUES.
CASE VVALUES-SELNAME.
WHEN 'S_DISPO'.
MOVE VVALUES-LOW TO V_LGORT.
MOVE VVALUES-LOW TO V_DISPO.
ENDCASE.
ENDLOOP.
SELECT SINGLE USRKEY FROM T024D INTO T024D-USRKEY WHERE WERKS EQ '1000' AND DISPO EQ V_DISPO.
IF SY-SUBRC EQ 0.
T_RECEIVERS-RECEIVER = T024D-USRKEY.
T_RECEIVERS-REC_TYPE = 'U'.
APPEND T_RECEIVERS.
IF V_DISPO = '3' OR V_DISPO = '5' OR
V_DISPO = '21' OR V_DISPO = '48' OR
V_DISPO = '51' OR V_DISPO = '231' OR
V_DISPO = '512' OR V_DISPO = '921'.
T_RECEIVERS-RECEIVER =
T_RECEIVERS-REC_TYPE = 'U'.
T_RECEIVERS-COPY = 'X'.
APPEND T_RECEIVERS.
ENDIF.
IF V_DISPO = '14' OR V_DISPO = '86' OR
V_DISPO = '515' OR V_DISPO = '704' OR
V_DISPO = '711' OR V_DISPO = '712' OR
V_DISPO = '713'.
T_RECEIVERS-RECEIVER =
T_RECEIVERS-REC_TYPE = 'U'.
T_RECEIVERS-COPY = 'X'.
APPEND T_RECEIVERS.
ENDIF.
T_RECEIVERS-RECEIVER = * T_RECEIVERS-REC_TYPE = 'U'.
T_RECEIVERS-COPY = 'X'.
APPEND T_RECEIVERS.
T_RECEIVERS-RECEIVER = * T_RECEIVERS-REC_TYPE = 'U'.
T_RECEIVERS-BLIND_COPY = 'X'.
APPEND T_RECEIVERS.
ENDIF.
IF NOT SP_LANG IS INITIAL.
DOCUMENT_DATA-OBJ_LANGU = SP_LANG.
ELSE.
DOCUMENT_DATA-OBJ_LANGU = SY-LANGU.
ENDIF.
V_NAME = SY-UNAME.
Subject.
CONCATENATE 'List of Rejected Materials, MRP Controller:' WA_SPOOL-VARIANT
INTO DOCUMENT_DATA-OBJ_DESCR.
Send the email.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOCUMENT_DATA
SENDER_ADDRESS = V_NAME
SENDER_ADDRESS_TYPE = 'B'
TABLES
PACKING_LIST = PLIST
CONTENTS_BIN = SO_ALI
CONTENTS_TXT = OBJTXT
RECEIVERS = T_RECEIVERS
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
MESSAGE E208(00) WITH 'Error in sending email'.
ENDIF.
COMMIT WORK.
Send the email immediately.
SUBMIT RSCONN01
WITH MODE = 'INT'
AND RETURN.
IF SY-SUBRC EQ 0.
WRITE 'To get the spool no'.
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
EVENTID = GD_EVENTID
EVENTPARM = GD_EVENTPARM
EXTERNAL_PROGRAM_ACTIVE = GD_EXTERNAL_PROGRAM_ACTIVE
JOBCOUNT = GD_JOBCOUNT
JOBNAME = GD_JOBNAME
STEPCOUNT = GD_STEPCOUNT
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE : / 'Spool id of the job that is sent', SPOOLID,
GD_EVENTID,
GD_EVENTPARM,
GD_EXTERNAL_PROGRAM_ACTIVE,
GD_JOBCOUNT,
GD_JOBNAME,
GD_STEPCOUNT.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM. " send_mail
*& Form remove_blank_spools
text
--> p1 text
<-- p2 text
*FORM REMOVE_BLANK_SPOOLS .
LOOP AT ITAB_SPOOL INTO WA_SPOOL.
MOVE WA_SPOOL-LISTIDENT TO SPOOLID.
CALL FUNCTION 'RSPO_ISELECT_TSP01'
EXPORTING
RFCSYSTEM = SY-SYSID
RQIDENT = SPOOLID
FORUPDATE = ' '
IMPORTING
TSP01_ELEM = W_INFO
EXCEPTIONS
ERROR = 1
OTHERS = 2.
CALL FUNCTION 'RSPO_IRETURN_RAW_DATA'
EXPORTING
RQ = W_INFO
TABLES
LINE_BUFFER = W_DATA
PAGE_INDEX = W_PAGES
LINE_BUFFER2 =
EXCEPTIONS
ERROR = 1
OTHERS = 2.
IF W_INFO-RQDOCTYPE = 'LIST'.
CALL FUNCTION 'RSPO_R_GET_TOC_SPOOLREQ'
EXPORTING
RQIDENT = SPOOLID
TABLES
TOCDESC = W_TODESC
EXCEPTIONS
ERROR = 1
OTHERS = 2.
CALL FUNCTION 'RSPO_SPOOLDATA_WRITE_INIT'.
READ TABLE W_DATA WITH KEY DATA_LINE = 'List contains no data'.
LOOP AT W_DATA.
IF W_DATA-DATA_LINE CP 'List contains no data'.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
*ENDFORM. " remove_blank_spools -
How to find next number range for project definition in tcode CJ20N
Hai Experts,
Please help me 'How to find next number range for project definition in tcode "CJ20N". I was trying in function module NUMBER_GET_NEXT. Is it right function module? If its right what input i need to give for this tcode and for the field project definition?
Note: I searched in forum before posting, but couldn't find the solution.
Thanks
Regards,
Prabu S.Hi,
For project defination internal number is assigned by system.
When you saves's project then system allocate one number to project defination, you can view it,
SE11 >>> table PROJ >> Click on contents >>> execute,
here you will get your project defination & number is assigned to project defination.
kapil -
How to find maximum number of users we can assign for Hyperion Planning.
HI,
How to find maximum number of users we can assign for Hyperion Planning.i.e., how to find license limit in hyperion planning 11.1.2.1.
In Essbase propreties, the system is showing maximum planning users could be 65535.
what would be the number for concurrent scenario?
Thanks
Giri
Edited by: Giriprasad on Jun 18, 2012 2:18 AMThe number of users would be based on your license agreement with Oracle, the system is not aware of your license agreement so it is up to you to stick to it.
Cheers
John
http://john-goodwin.blogspot.com/ -
How to find the number of idocs generated for a customer on the basis of his purchase order in a day ?
Dear Friends,
I am absolutely agree with your answer .
But my question is,
Lets say.....
One customer sending X number of purchase orders in a day , so how many IDocs generated on that specific day for that specific customer .
So, Question is , How can we find the no of sales orders(IDocs) generated for the customers on the specific day ?
Hope you all understood my requirement .
Thanks & Regards,
Aditya -
How to find the number of references created for a given object ??
How to find the number of references created for a given object in a big application environment.
That means, if i give any object name (of my application) as input, then how can i find the[b] number of references created for that particular object ??Please do not post the same question multiple times.
As for your original question, there is no direct way to do it.
Especially not the way you phrased it,
since objects don't have "names".
Applications also don't have "names".
They have classes and instances.
Also, there are 2 related issues, and I'm not sure which one is the one you asked.
#1. Finding the number of references to the same object.
Eg.
Map<String,String> a = new HashMap<String,String>();
Map<String,String> b = new HashMap<String,String>();
Map<String,String> c = a;In this case, there are only 2 objects.
The first object has (at least) 2 references pointing to it.
The second object has (at least) 1 reference pointing to it.
(There may be more, if the HashMap library keeps
references to these things, or if the HashMap object has
some internal cyclic references...)
If you're asking this, then it can't be done.
It's an active research topic in universities
and software research labs, called "alias analysis".
Type it in google, and you'll see people are working hard
and having little success so far.
#2. Finding the number of instances created from a class.
In this case, what you have to do is to add a counter to
the constructor of the class. Every time an object is constructed,
you increment the counter. Like this:
class MyClass
public static int counter = 0;
public MyClass( ) { counter++; }
// Then later in your program, you can do this:
MyClass a = new MyClass();
MyClass b = new MyClass();
System.out.println(MyClass.counter); // It should show 2Note: you won't be able to do this to every class in the system.
For every class you care about, you have to modify its constructor.
Also: when an object is deleted, you won't always know it
(and thus you won't always be able to decrement the counter).
Finalizers cannot always work (read Joshua Bloch's
"Effective Java" book if you don't believe me), but basically
(1) finalizers will not always be called, and
(2) finalizers can sometimes cause objects to not be deleted,
and thus the JVM will run out of memory and crash -
How to crate a spool number for the abap program
hi
how to create a spool number for the abap programHi,
Check this thread
how to create a spool requset for 'z program'.
Regards,
Satish -
How To Generate Spool request for a SAP-Script form
How To Generate Spool request for a SAP-Script form
Hai Rahaman,
After getting the print preview of the SCRIPT.
Click On PRINT.
Buttom of the page one spool request will be generated by system.
Go to SP01.
You Can Find SPOOL Reqest Number.
Regards.
Eshwar. -
How to find the number of entries in a master data table
Hi Experts,
I am trying to find the entries in 0CUSTOMER master data.
BW>LISTCUBE>Data target: 0CUSTOMER and selected the fields that I need.
I would like to know how to find the "number of entrees". I tried to run the SUM for a count field, but it is taking forever as there are huge number of records .Hi Dev,
Go to the change/display mode of the info object (0CUSTOMER) in your case. Go to the Master data/Text tab. Here you will find the master data tables according to your settings (P orQ or X or Y). Double click on the table name and it will take you to the SE11 display. From there, you can check the number of records as you do in any transparent table.
Hope this helps.
Thanks and Regards
Subray Hegde -
How to find the number of links in a website
hi every body
can any one clear my doubt
my doubt is that
in a website how to find the number of links the hole website contains
is there any navigation tool to find that
plz help me yar
i am waiting for the replyIf you're talking about commercial sites (sites you don't have the source code for) I'm not sure.
If you want to count the links in site that you have the source code for, it should be relatively easy to write a Java application to do it. All you really need to do is have a list of the files you want to count links in, read each file line by line and check for the existance of the <a> tag in each line. Anywhere their is an <a> tag there is a link.
Hope this helps.
Maybe you are looking for
-
My iPod Classic 80gb will not transfer purchases to my iTunes library. When I click the "Transfer Purchase" button, it says it's working, but then I get a pop-up which reads 'Attempting to copy the disk "OS" failed. An unknown error occurred (-6
-
Is it possible to open a book in Adobe Reader instead of Adobe Digital Editions?
Is it possible to open a book in Adobe Reader instead of Adobe Digital Editions?
-
Sound from front speakers only
I am using optical audio with Sony DAV-DZ810 home theater and my Apple TV2. The system is new and I am not very familiar. When I watch a trailor (have not watched a movie yet) on ATV2, I notice that sound only comes from two front speakers only. No s
-
Podcasts in itunes but not in ipod
Have recently moved my music to an external drive. When I open itunes now, it shows that my podcasts are there, and I can play them in itunes, but they are not syncing into my ipod, which is blank when I navigate to the podcasts submenu in the ipod i
-
How to recover unsaved document in Word 2011 for Mac?
I had a document that I saved under the name Travel Journals, and there's about 4 pages there. I added onto those four pages later but I guess I accidentally hit "do not save" or something. I can find the first 4 pages, but nothing else. Help please?