ME21N - Get output messages spool number
Hi,
I need some user exit or BADI that allow me to get the number of the spool object that will be available for output messages on TSP01 table after saving the PO in ME21N.
I've tried to implement ME_PROCESS_PO_CUST method POST but have no idea is the spool is already available at this moment and how to get it number.
Does anyone has already experienced something that could help me on this?
Thanks in advance.
Best regards,
Hugo Braz
Hi Dude,
Try this..
1. Go to txn. NACE...
2. Choose the Application "EF" then clcik on "Output Types" button,
3. Choose your output Type "NEU".. then double click on "Mail title and Text"
4. Here please maintain "&EKKO-EBELN&" under title field.
From now onwards if you do print out the system will store the PO number in this field "RQTITLE" of table TSP01. So you can get the details of Spool no. against PO number.
Regards
GK.
Similar Messages
-
Get the last spool number created
Hi,
I need to get the last spool number that the system has assigned to an output ABAP list.
I know that the SO_SPOOL_READ function give the information I want but I do not find the way to obtain the code. I thought that this function is an internal function of SAP, but it does not exist.
Could anyone facilitate that code?
Do anyone know other way to obtain that last spool number?
Thank you very much for your timeThanks Ram,
Your instructons were just what I needed.
Finally, I use the sy-uname restriction to select the last spool number created for the user:
DATA: BEGIN OF it OCCURS 0,
RQIDENT LIKE TSP01-RQIDENT,
RQCRETIME LIKE TSP01-RQCRETIME,
END OF it.
SELECT * FROM TSP01
APPENDING CORRESPONDING FIELDS OF TABLE it
WHERE
RQOWNER = SY-UNAME
ORDER BY RQCRETIME DESCENDING.
LOOP AT it.
spool_num = it-rqident.
EXIT.
ENDLOOP.
Thanks a lot. -
I am trying to activate our adobe in-design and we are getting a message "serial number you provided is valid but a qualifying product could not be found on this computer"
Hi there!
Are you certain that the serial number is for InDesign? And the correct version?
Please feel free to PM me if you wish to verify the serial number.
Thanks,
Amy -
When attempting to send text message from iPad I get error message "phone number not registered with iMessage REMOVE" the number is for iPhone an includes area code and country code. How do u register a number with iMessage?.
TestnTag wrote:
When attempting to send text message from iPad I get error message "phone number not registered with iMessage REMOVE" the number is for iPhone an includes area code and country code. How do u register a number with iMessage?.
The iPad is not capable of sending an SMS message so texts, pictures, etc., must go through iMessage. The destination device must be registered with the Apple servers by turning on iMessage. Therefore, the user with the iPhone must enable it for iMessage. -
Why am I getting the message 'serial number you entered in invalid'?
When I start up Photoshop CS6 I'm getting the message: 'serial number you entered is invalid'. (I'm typing in the correct serial number). I'm been using the programme since March 2014. Why has this message started to pop up?
Error "The serial number is not valid for this product" | Creative Suite
-
Getting only one spool number for every print out
hi guys,
when i execute my customize program i suppose to get a form in my screen, showing customer statement, when I exicute customer A out put as expected with 5 pages but after that if i exicute customer B which is supposed to be 3 pages but I am getting 8 pages which is including first out put also, its repeating same spool number for every thing and keep on adding every page , please let me know where to see for this ??
for spool request RS38L_FNAM
and to display 'COM_SE_SPOOL_DISPLAY'Change ur table declaration as shown below, replace the word <b>TYPE</b> with <b>LIKE</b>
DATA: BEGIN OF i_final OCCURS 0,
srno TYPE i, " Serial no
anln1 LIKE anla-anln1, " asset code no
txt50 LIKE anla-txt50, " Brief Description of Assets
txa50 LIKE anla-txa50, " Further Description
ktogr LIKE anla-ktogr, " Asset Class No.
ktgrtx LIKE t095t-ktgrtx, " Asset Class Name
sernr LIKE anla-sernr, " Serial Number
invnr LIKE anla-invnr, " Assets Identification No
menge LIKE anla-menge, " Qty
meins LIKE anla-meins, " UOM
raumn LIKE anlz-raumn, " Location
lifnr LIKE anla-lifnr, " Vendor
liefe LIKE anla-liefe, " Capitalisation Date
aktiv LIKE anla-aktiv, " Date put to use
g_kansw LIKE anlc-kansw, " Opening Gross Block
b_kansw LIKE anlc-kansw, " Additions during the period
b_answl LIKE anlc-answl," Deductions/ Adjustmentsduring d period
g_total LIKE bsis-dmbtr, " Closing Gross Block
d_open LIKE anlb-afabg, " Dep on opening block
d_sold LIKE anlb-afabg, " Dep on assets sold/written off
d_add LIKE anlb-afabg, " dep on additions during the period
afabg LIKE anlb-afabg, " Total dep for the period
cd_sold LIKE bsis-dmbtr, " *** Dep on assets sold
cd_asst LIKE bsis-dmbtr, " *** Dep on assets written off
cd_dep LIKE bsis-dmbtr, " Total *** dep on deductions
ccd_dep LIKE bsis-dmbtr, " Closing Acc Dep
a LIKE bsis-dmbtr, " WDV of assets sold
b LIKE bsis-dmbtr, " Selling Price
c LIKE bsis-dmbtr, " Profit / (Loss) on sale
d LIKE bsis-dmbtr, " Loss on write off
e LIKE bsis-dmbtr, " Opening WDV
f LIKE bsis-dmbtr, " Closing WDV
END OF i_final. -
Get output messages in invoice creation
Hi all,
in invoice creation, how can i get all the output messages for that invoice? In the NAST table there is no record because the invoice is not yet created.
Regards
RobertoHi;
Goto T-code NACE, choose the Billing Output and choose the Condition records on top of the screen and there you go.... you will have all the records once you fill in the parameters. If you do not have the parameters, press the Condition Info tab and execute this will list all the records maintained. for a particular output type.
Regards,
Mani -
How can I install PS Elements 10 when get error message, serial number not valid
I have a new computer (PC Windows) and want to install my PS Elements 10 and Light Room 5.2. When I try to do so I get the error message that my serial number is not valid. I have used the help/support and have done what suggested but nothing seems to work. (The copies were registered.) Please help me solve this so that I can't get my pix edited. Thanks so much for any help you can give me.
Cathylof did you receive your installation files for Photoshop Elements 10 on CD? If so are you installing from the CD provided with your purchase? Please also make sure to utilize the registered serial number at http://www.adobe.com/. You can find additional details on how to locate the registered serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.
-
Some inbound callers receive the message "call cannot be completed as dialed" , "unavailable number", or "non-working number" when trying to call on my iPhone5. Has anyone else experienced this, and what was solution? AT&T is my carrier, they have network engrs. working on it, but no fix yet. Had problem since day one of phone receipt, Apple has replaced phone once, same problem.
You could be having a drive collision with another device on your computer. Connect your Shuffle to a rear port on your computer, then connect your keyboard and mouse. Disconnect ALL other USB devices including printers, thumb drives, scanners, modems, digital cameras, external hard drives, infinite improbability drives, etc. If you are on a network, disconnect from the network.
Now change the drive letter on your iPod. Use something much higher like M or P or Z, unless you have another device that uses this letter:
http://docs.info.apple.com/article.html?artnum=93499 -
GET spool number according to Message type (nast-kschl)
hi all ,
i want to get the oldest spool number for a message type and PO number via abap program
thinks in advancs.
karim .hi,
field dsnam of the table nast can give spool request name..
may be this field can help u in solving ur issue ..
regards,
prashanti -
How to display the Output messages on LabVIEW
Hi,
I'm building a simple user interface on LabVIEW and I have the following question:
- TestStand has an Output Tab where I display some messages using Engine.OutputMessage; How can I do the same thing on my UI?
I've attached a printscreen of my TestStand sequence as an example of what I want do do on LabVIEW.
I apreciate all the help.
Thanks in advance.
Regards,
Daniel Coelho
Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
Attachments:
TS PrintScreen.JPG 137 KBSorry, from your post in the LabVIEW board I did not understand that it was the Output message that you were looking for.
I thought you wanted the results from your test steps displayed on the user interface.
It is the “Output Panel” in the sequence editor that displays your output message, but I do not know if there is default Output panel activeX indicator for user interface that the TestStand engine would update automatically like it does the execution view.
Maybe someone else knows
As also pointed out, the UI messages is your other option.
The Output Message event number is 40
http://zone.ni.com/devzone/cda/epd/p/id/3879
UIMsg_OutputMessages–(Value: 40) TestStand sends this message at periodic intervals when it holds references to output messages that calls to the OutputMessage.Post method queue. TestStand transfers the queued messages to an OutputMessages collection attached to the UIMessage.ActiveXData property for this event. An application that processes output messages should copy the output message references from the collection in UIMessage.ActiveXData to its own private OutputMessages collection by passing its private collection to the OutputMessages.CopyMessagesToCollection method. An application calls the Engine.NewOutputMessages method to create a private OutputMessage collection. TestStand generates this event only if the Engine.OutputMessagesEnabled property is True. Because there can be more than one handler for this event, the application should not modify the OutputMessages collection the UIMessage.ActiveXData property holds.
Omar
Message Edited by OmarGator on 10-09-2008 10:12 AM -
Spool number of sumitted program
Hello,
does somebody know, how I can get the generated spool number of a submitted program?
Unfortunately, the system variables sy-spono or sy-sponr will be deleted, when the submitted program will be left.
Is it possibly feasible to get the spool number between the function modules 'JOB_OPEN' and 'JOB_CLOSE'?
Thanks a lot and regards.
SergejHello Sergej,
Yes, you can get the Spool Number from the Job created.
1. Use the FM: 'GET_JOB_RUNTIME_INFO' to get the Background Job Runtime Data.
2. Then use the table TBTCP to get the Spool Number.
* get the job details
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.
* Get the spool number
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident '0000000000'
ORDER BY jobname
jobcount
stepcount.
IF sy-subrc = 0.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
gd_spool_nr = wa_tbtcp-listident. "gd_spool_nr --> contains spool no.
ENDIF.
Hope this helps.
BR,
Suhas -
Hwo to get the spool number from report output
Hi,
I am displaying some output in the report using write statements and within my program I need to collect the output written by write statements and send it as an email.So for that I need to generate the spool number and I am using the below code to do that
CONSTANTS:
l_linsz TYPE sy-linsz VALUE 201, " Line size
l_paart TYPE sy-paart VALUE 'X_65_132'. " Paper Format
l_uname = sy-uname .
l_repid = sy-repid .
*-- Setup the Print Parmaters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
authority = space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
new_list_id = k_x
no_dialog = k_x
user = l_uname
IMPORTING
out_parameters = l_mstr_print_parms
valid = l_mc_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
IF l_mstr_print_parms-pdest = space.
l_mstr_print_parms-pdest = k_lp01.
ENDIF.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
l_mstr_print_parms-linsz = l_linsz.
l_mstr_print_parms-paart = l_paart.
l_variante = sy-slset.
* submitting the spool request
*SUBMIT (l_repid) TO SAP-SPOOL*
*SPOOL PARAMETERS l_mstr_print_parms*
*WITHOUT SPOOL DYNPRO*
*AND RETURN.*
*Calculating the lenth of report name
lv_len = STRLEN( l_repid ) .
*consutrucing the database variable rq2name to search the spool
*request
IF lv_len >= 9 .
CONCATENATE l_repid+0(9)
l_uname+0(3) INTO lc_rq2name .
ELSE.
lv_len = 9 - lv_len .
DO lv_len TIMES .
CONCATENATE lv_temp '_' INTO lv_temp .
ENDDO.
CONCATENATE l_repid lv_temp
l_uname INTO lc_rq2name .
ENDIF.
*selecting the spool request using the above consructed varibale
SELECT * FROM tsp01 INTO TABLE lt_tsp01
WHERE rq2name = lc_rq2name .
*sorting the interbla table
SORT lt_tsp01 BY rqcretime DESCENDING .
*reading the first spool request
READ TABLE lt_tsp01 INTO ls_tsp01 INDEX 1.
but the problem with the above code is I am using variants to execute the report but when the above piece of code is getting executed it is clearing all the variant values on the selection screen and it is defaulting the values on the selection screen.
Is there any way i can execute the above code without any problem in the selection screen.
Thanks
Bala DuvvuriHello Bala,
I wouldn't SUBMIT the same program to get the Spool number. You can achieve the same by [NEW-PAGE PRINT ON|http://help.sap.com/abapdocu_702/en/abapnew-page_print.htm#!ABAP_ADDITION_1@1@] command.
Check the code snippet i've provided below:
DATA: spfli_wa TYPE spfli,
print_parameters TYPE pri_params,
valid_flag TYPE c LENGTH 1.
START-OF-SELECTION.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
no_dialog = 'X'
IMPORTING
out_parameters = print_parameters
valid = valid_flag
EXCEPTIONS
invalid_print_params = 2
OTHERS = 4.
IF valid_flag = 'X' AND sy-subrc = 0.
* 1. Write the output to the output list(no spool is generated)
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF spfli_wa.
WRITE: / spfli_wa-carrid, spfli_wa-connid.
ENDSELECT.
* 2. Write the output to SAP spool(no list is displayed)
NEW-PAGE PRINT ON PARAMETERS print_parameters NO DIALOG.
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF spfli_wa.
WRITE: / spfli_wa-carrid, spfli_wa-connid.
ENDSELECT.
NEW-PAGE PRINT OFF.
MESSAGE i000(zibi027) WITH 'Spool' sy-spono 'is generated!!!'.
"You can use the spool number (SY-SPONO) to email the list output
ENDIF.
Hope this helps.
BR,
Suhas -
Get spool number for delivery output.
Hi,
Is it possible to get the spool number for a print output type generated for a delivery? I use the Tcode VL02N to view the output types generated for a delivery. I want to use this spool number to generate a PDF file.Hi,
The below mentioned link shows how to get the Spool Request Number for the Output type and convert it to PDF and download. It uses mainly NAST and CMFP table.
Link: http://wiki.sdn.sap.com/wiki/display/ABAP/GettingSpoolRequestNumberfortheOutput+type -
Output message type External send - Suppress spool number in SOST title
Dear all,
Using an external send output type, we send order confirmation from by mail.
Depending of printer we use, we have different behaviors :
With a normal printer, the mail title we get in SOST is exactly the content of field <NAST-TDTITLE>.
This field can be changed in the print program, so we can set exactly the title we want.
With a PDF2MAIL printer (printer defined in SPAD with property host spool access method : M (Email to Receiver/Owner), the mail title we get in SOST is the following : <SystemID><Spool Number><NAST-TDCOVTITLE>.
Do you know whether it is possible to suppress standard information <SystemID><Spool Number>
and therefore have only <NAST-TDCOVTITLE>.
Setting both fields <NAST-TDCOVTITLE> and <NAST-TDTITLE> using print program, the goal is to have allways same title in SOST ...
Can you help me ?
J.C.Hi,
I am not got your reuirement clearly, but i feel your reuirement is close to this thread:
RLB_INVOICE program for sending mail to muliple mail's Id's
I have used the Cl_BCS class to send mail to muliplte vendor mail id's
If needed code will be send.
Hope this will help.
Maybe you are looking for
-
I need to update Firefox to the latest version, but check for updates is grayed out. I am already logged in as an admin for my computer (it's a Mac), but my computer is telling me that I don't have permission to update Firefox. How can I update Firef
-
Can't delete free books from iBooks
I tried to download a bunch of free books from iTunes. The download just won't work. Finally I decided to just try and delete them from my bookshelf. Nothing I tried worked; 1) Selected the undownloaded books in question and pressed "delete". Nothing
-
Maverick compatible with photoshop element 8
Does anyone know if Photoshop Element 8 is compatible with Maverick? Is there a list anywhere of software that would need to be upgraded? Would like to know before upgrading. Thank you!
-
Photo's won't open after upgrade to 9.6
Upgraded to iPhoto 9.6. Now only thumbnails appear. I can't click and open/expand to large view of photo's
-
Hello, i have a question and that is if i can use an Imac 21.5-inch: 2.7GHz Specifications 2.7GHz quad-core Intel Core i5 Turbo Boost up to 3.2GHz 8GB (two 4GB) memory 1TB hard drive1 Intel Iris Pro Graphics and use it as a monitor to one PC - Lenovo