Smartform name from spool number
Hi guys .İ have to learn the Smartform or Sapscript name of a alreasy printed document.So i use the transaction SP02 .There is not any information about the program or Smartform in spool transaction .How can i know SMARTFORM name from the spool number.
I have seen thiş thread but it doesnt seem a healthy solution .
smartform name from spool number
Hi,
1.Goto sp01 and give your spool request number.
2.Double click on the spool request number.
3.In the screen,click on the TemSe attributes tab.
4.In that tab you can find the object name field.Double click on the Objectname(spool number).It will take you to the TemSe:List of Objects Screen
5.Check the checkbox and press the CONTENTS tab in the application toolbar.
6.It will show the TemSe:Contents of Object screen.You can find the SMARTFORM Name in the Second line of the display.
7.If you need to find the Program name use table TNAPR.
Jshree
Similar Messages
-
How to get Shopping Cart Name from PO number in EBP ?
Hi,
If I have the PO number how I can get the shopping cart name related to this PO? I need technical fields and table relations.
Regards,
AchirangshuI'm not sure if this will work. I posted an answer to a similar question a while ago, but it didn't work well in the posters system. So maybe we can try this in steps. See if you get results from this:
REPORT ztest MESSAGE-ID 00 LINE-SIZE 80.
TABLES srrelroles.
PARAMETERS: po_no(10) DEFAULT '3000001977'.
DATA: xobjkey LIKE srrelroles-objkey,
roleid(22).
CONCATENATE po_no 'X' INTO xobjkey.
* use PO to obtain the role id
SELECT * FROM srrelroles
UP TO 1 ROWS
WHERE objtype EQ 'BUS2012'
AND roletype EQ 'BBP_TARGET'
AND ( objkey >= po_no
AND objkey <= xobjkey ).
roleid = srrelroles-roleid.
EXIT.
ENDSELECT.
You'll have to use a PO that you know exist in your system.
If you get no results, try removing the WHERE on objtype and/or roletype and see what values are returned for these fields.
Rob -
Geeting SMARTFORM name from SMARTSTYLE name
Hi All,
Can any one help me in finding the form name in which smarttsyle is used.
The smartstyle name is given to me and i have been asked to get the form name in which given smartstyle is used.
Thanks in advance,
Deepa KulkarniHi Deepa,
If we design any smartform we need smartstyle to attach so generally we will follow the naming conventiosn in description. so check the description of your smartstyle then you will get to know for what pupose its created.
If you know the output type and the module for which the smartform is designed for ex MM,PM or Engineering services etc then you can chek the customised forms in the Nace transaction and you have to manually check each and every form where your smartstyle is used.
And regarding the SPRO settings i cant tell you the flow as i dont remember where we can get the form details.Mostly developers will not have access you can ask any Functional or Basi to help you out.
unfortunately i have never got this situation apart from these options i dont have any other solution to find out smartform using smartstyle.
Regards,
Prathima Talari. -
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 -
Hi All,
Im trying to fetch spool number based on object name(program name).
The table TSP01 has the field RQ2NAME has the program name in it, with some additional characters.
For example, if the program name is ZQRR1234 , its showing it as ZQRR1234_ABC.
Is there any other way to fetch spool numbers other than this? Please let me know.
The other issue is, Spool created for ReportWriter reports, are having a different name in the RQ2NAME field(Totally different from the above case). For example if the report name is Z31L, its showing as GP3ITN115113. Im not sure whether this name will be same in Quality and production system.
Finally please let me know how to fetch spool numbers based on program name in either case.Hello Saravanan,
Please use FM RSPO_OUTPUT_SPOOL_REQUEST to display your spool.
Have a Nice Day,
Regards,
Sujeet -
Get Spool number for Smartform
Hi All,
I have created a smartform to print the POs created through ME21n. I have changed the config to use this smartform when a PO is changed/created. Everything is working fine. All I need is the spool number for each of the PO this is being printed. Can you please let me know how I can achieve this through the FM for smartform?
I AM USING 4.6C.
This is how I am using the function module
CALL FUNCTION FM_NAME
EXPORTING
CONTROL_PARAMETERS = CONTROL
OUTPUT_OPTIONS = OUTPUT
USER_SETTINGS = ' '
EKKO = L_DOC-XEKKO
PEKKO = L_DOC-XPEKKO
DRUVO = L_DRUVO
IMPORTING
JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS
TABLES
EKPO = L_DOC-XEKPO
PEKPO = L_DOC-XPEKPO
XAEND = IT_XAEND
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
All your inputs are greatly appreciated.
Thanks!
SandeepHi,
JOB_OUTPUT_OPTIONS is of type SSFCRESOP, which does not have a SPOOLIDS field/table.
I knwo that the function module SSF_CLOSE returns the spool id in a table. But, I am not sure how to use SSF_OPEN and SSF_CLOSE. Can you please throw some light on how I can use these to get the spool numbers?
This is what I have right now.
JOB_OUTPUT_OPTIONS-TDDEST = ITCPO-TDDEST.
JOB_OUTPUT_OPTIONS-TDNEWID = 'X'.
L_FORMNAME = TNAPR-FONAM.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = TNAPR-SFORM
FORMNAME = L_FORMNAME
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FM_NAME
EXPORTING
CONTROL_PARAMETERS = CONTROL
OUTPUT_OPTIONS = OUTPUT
USER_SETTINGS = ' '
EKKO = L_DOC-XEKKO
PEKKO = L_DOC-XPEKKO
DRUVO = L_DRUVO
IMPORTING
JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS
TABLES
EKPO = L_DOC-XEKPO
PEKPO = L_DOC-XPEKPO
XAEND = IT_XAEND
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
SELECT RQIDENT RQOWNER RQCRETIME FROM TSP01 INTO TABLE IT_TSP01
WHERE RQOWNER = SY-UNAME.
IF SY-SUBRC = 0.
SORT IT_TSP01 BY RQCRETIME DESCENDING.
READ TABLE IT_TSP01 INDEX 1.
SPOOLID = IT_TSP01-RQIDENT.
PERFORM PROTOCOL_UPDATE USING '320' SPOOLID SPACE SPACE SPACE.
ENDIF.
ENDIF.
The SELECT part is wrong, I need to replace this code to get the correct spool numbers.
Thanks in advance.
Sandeep -
How to get the forma name using the Spool number
Hi all,
Please tell me how to find the Script name or Smartform name using the SPOOL NUMBER
Regards
AjayHi Ajay,
you could use the FM 'SSF_FUNCTION_MODULE_NAME' inorder to get the Smart Form Function Module name by giving the name of the form.
Reward points if this helps,
Kiran -
How do I delete a contact name and phone number from my texting memory? I have deleted this contact from my regular contact information; however when I text and begin to text a contact beginning with the 1st letter of the name I had deleted, it brings up the old, deleted contact information in my texting history only.
You would have to restore as new.
-
how to hide the file name (the bizarre number assigned by the camera) when exporting an image version in aperture from an album. Pl understand I want to keep the file name in the project library version.
Within Aperture you have Images, which are constructed on-the-fly from two files (the Master and the Version). You get an image-format file _only_ when you export an Image. You select the file name (usually a scheme) when you create an image-format file (that is, when you export). Look under "Aperture→Presets→File Naming" for built-in Presets. You can, of course, create your own or customize any provided.
The Preset is applied to only the file newly created by your "export" command. It is not applied to the Image in Aperture (unless you rename your Versions or your Masters). -
How to find proc/func name from package name and line number?
Hi,
We are using the pl/sql call stack dump (dbms_utility.format_call_stack) for some debugging purposes. But in the case of a package body execution, the dump does not return the name of the procedure/function that is being executed, but only the name of the package and the line number being executed. So, we have a requirement wherein we need to extract the type and name of a package subunit from the package name and line number.
e.g.
From the information package 'A', line number 739
we should be able to deduce that line 739 is a part of *'function A.f'*
Does the oracle database provide any native mechanism (PL/SQL packages or otherwise) to support such functionality? If it does not, how can we achieve the desired result?
Thanks in advance,
ShashankThe approach we are currently planning to take up is this :
1. Write PL/SQL code to parse the entire source (user_source) and build a database table with a structure like this :
PACKAGE_NAME | UNIT_TYPE | UNIT_NAME | START_LINE | END_LINE
=============================================
A | PROCEDURE | P1 | 20 | 345
A | FUNCTION | F1 | 347 | 629
etc..
2. Start PL/SQL package execution.
3. Keep dumping call stack snapshots whenever a custom debug procedure is called.
4. Dump the package name and line number to a log file.
5. Using the package name and line number, query the table built in step 1 and build the final report which shows the control flow in a readable form.
What we want is to get rid of step 5 and by some means get the logic to extract the unit type and name in step 4 itself.
Keep them coming..
Thanks and regards,
Shashank -
How find print program and form name from the spool list
Hi,
I have a requirement to find print program and form name from the spool list.
I got the list of programs and forms from TNAPR table, I also want to find out any custom program sending the form directly to the spool.
Cheers
SamHi
Try TSP01-Suffix2
Regards
Raj -
Getting host name and port number from application
Does anyone know how I would be able to get the host name
and port number from an application launched by java webstart ?
This is the host and port of the URL that this application is launched from.A couple of suggestions:
-The note is about 6.40. Doesn't fit for your server
-Don't!
-Reinstall!
Regards,
Benny -
Getting host name and port number from an application
Does anyone know how I would be able to get the host name
and port number from an application launched by java webstart ?
This is the host and port of the URL that this application is launched from.A couple of suggestions:
-The note is about 6.40. Doesn't fit for your server
-Don't!
-Reinstall!
Regards,
Benny -
Hi all,
How to generate a spool number of a smartform.
Remember in the condition for that output type i have marked Print Immediately.
Regards,
Rajeswara Rao.JHi Rajeshwara,
Welcome to SDN.
Please check this link for sample code.
Re: PDF Output
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
Hope this will help.
Regards,
Ferry Lianto -
How to get customer number and name from the SD document
Hi All,
Can you please let me know how to get Customer Number and Name from the SD Document?
Thanks a lot....
AnilHi,
It will be displayed in the SD (BIlling document) itself, you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
regards,
radhika
Edited by: kolipara radhika on Jul 10, 2009 5:32 AM
Maybe you are looking for
-
How can i effectively detect for empty strings, i'va tried "if (someString.length()==0) ... " and the expression "(someString=="")". who can explain???? gr. Razorblade
-
Can't start macbook after a failed installation.
-
Creation of multiple Records in the file as per multiple segments in IDOC
Hi SapAll. i have got a requirement to create a multiple records in a file based on multiple segments at sending Idoc in a File To Idoc Interface. the Scenario is the reciever message type is mapped with fields of 3 segments in sending IDOC. SEG01
-
How to retrieve photos from the iCloud
How to retrieve photos from the iCloud
-
Finder window on Mac won't scroll horizontally in Muse
I noticed that anytime I open a finder window through Muse (i.e. replace image), the finder window's scroll bar only scrolls so far. I have to resize the window to view other columns. This appears to be a new bug, as it was working normally in th