Direct Print smartform to printer via JOB_OPEN function and using SUBMIT
Hello,
I can not able to printout from forms . I can able to get spool number but it is not printing directly to printer (printer Output should come automatic). I am getting error message in SP02 as Status ->Waiting when i check is showing as "Frontend unavailable".
please find sample code below to test same:
REPORT ZTEST_1 .
constants : wc_x type c value 'X'.
DATA: wv_val(1) TYPE c,
wv_pripar TYPE pri_params,
wv_arcpar TYPE arc_params,
wv_lay TYPE pri_params-paart value 'DINA4',
wv_lines TYPE pri_params-linct,
wv_rows TYPE pri_params-linsz.
data: wv_jobname like tbtcjob-jobname.
data: wv_jobcount like tbtcjob-jobcount,
wv_host like msxxlist-host.
data: begin of ws_starttime.
include structure tbtcstrt.
data: end of ws_starttime.
data: wv_starttimeimmediate like btch0000-char1 value 'X',
wv_flag(1),
WV_DO_PRINT type i.
concatenate sy-tcode+0(4) ' ' 'sample test - print'
into wv_jobname.
*Job open
call function 'JOB_OPEN'
exporting
delanfrep = 'X'
jobname = wv_jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
importing
jobcount = wv_jobcount
if sy-subrc eq 0.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = wv_arcpar
in_parameters = wv_pripar
LIST_NAME = 'JOB NAME'
LIST_TEXT = 'test_text'
RECEIVER = sy-uname
IMMEDIATELY = wc_x
RELEASE = wc_x
USER = sy-uname
layout = wv_lay
no_dialog = wc_x
IMPORTING
out_archive_parameters = wv_arcpar
out_parameters = wv_pripar
valid = wv_val
break-point.
wv_pripar-PRSAP = space.
wv_pripar-PRIOT = 1.
wv_pripar-prrec = sy-uname.
if not wv_val is initial.
*call external program and pass data
submit SF_EXAMPLE_01
USER sy-uname
via job wv_jobname
number wv_jobcount
TO SAP-SPOOL
SPOOL PARAMETERS wv_pripar
ARCHIVE PARAMETERS wv_arcpar
WITHOUT SPOOL DYNPRO
AND RETURN.
endif.
*Close job
ws_starttime-sdlstrtdt = sy-datum .
ws_starttime-sdlstrttm = sy-UZEIT.
ws_starttime-IMSTRTPOS = WC_X .
call function 'JOB_CLOSE'
exporting
event_id = ws_starttime-eventid
event_param = ws_starttime-eventparm
EVENT_PERIODIC = space
jobcount = wv_jobcount
jobname = wv_jobname
laststrtdt = ws_starttime-laststrtdt
laststrttm = ws_starttime-laststrttm
prddays = 0 "set to 0 not repeat
prdhours = 0
prdmins = 0
prdmonths = 0
prdweeks = 0
sdlstrtdt = ws_starttime-sdlstrtdt
sdlstrttm = ws_starttime-sdlstrttm
strtimmed = wv_starttimeimmediate
endif.
Hi,
As far as printing to devices not all devices support Bluetooth. Many devices support Bonjour protocal, IPP. The main print port is 9100. Additionally you can see what IO protocols are supported on a product by looking at the EWS (Embedded WebServer) there should be a networking page with that information. Port 9100 is your basic print port and different devices will support different formats (PDF, JPEG, PCL5, PCL6). If there is an API you can find (i am not familiar with J2ME availible calls, then you can use those and send the data to port 9100. Again that is the basic path most printers will accept. not all devices support bonjour not all device support bluetooth etc... Hope that helps and good luck.
I am an HP Employee.
Similar Messages
-
Can I disable the wireless functionality and use Ethernet only?
Can you completely disable the wireless functionality and use the Airport Extreme Base Station as a wired internet router with integrated print server?
Yes. I do that. I don't use a print server but I was using that port for an HD. My AExpress connected to it is wired also.
-
I transferred files and photos from MacBook to iMac via ethernet cable and using migration assistant. However every time I transferred, it created a separate user and it transferred all files and photos again and again. So now I have 3 users accounts with all files and photos saved 3 times on same iMac !! Any idea how to avoid this ?
Yes, you ran into a very understandable problem.
When you use Migration Assistant, it cannot over-write the account that you happen to be using at the time. Upon migrating accounts, it will tell you that it is going to create a new one, but that message is easy to miss.
If you have three identical accounts, log in to the account you want to keep, and delete the redundant ones in System Preferences > Users & Groups.
Now that you know, the easiest way to migrate accounts is to use Setup Assistant when you first get a new Mac. That eliminates any possibility for this to occur, but most people are so eager to use their new Mac that they elect to migrate later.
That's OK too, but in that case you would want to create a temporary account whose sole purpose is to run Migration Assistant so that you may migrate your old one with an identical name. Be sure to give the new account Administrator privileges. When that finishes you would log in to the newly migrated account, and delete the temporary account. -
Can I create a XSL function and use it in the Word Template
I have a complicated logic (complicated if i have to repeat it 400 to 500 times) for determining if I should show a null expression. If the value is null or equal to 0 show N/A else show the value.
If I have to repeat this over and over again and it turns out to need an update this would be a nightmare. But I don't have time to waste on a wild goose chase either. If I have to do something a couple thousand times i better get started basically.
Can I create a function in the word template then call it throughout the word template for each field I have to check?
Have a link to a tutorial that is doing this?If you really want to have a function, you have choice of using subtemplates (either RTF or XSL)
You can check for steps here
http://www.oracle.com/technetwork/middleware/bi-publisher/overview/bip-subtemplate-1-132933.pdf
But if you have functions or use the code directly you anyway need to modify your 400-500 fields.
i.e. either
<?xdoxslt:ifelse(COLUMN='','NA',COLUMN)?>
or <?call:template_name?> -
Printer owner want to reset code eprint and use with another account (the first is lost)
how reset serial to use eprint printer with a new account?
The old account is lost (not responding with registered mail)
ThanksYou can disable Web Services and then enable Web Services to get a new code to set up your printer's email address at ePrintCenter.com. For more information on getting started you can go to this link: http://h30495.www3.hp.com/help#getting_started.gs-support-apps-eprint
I am an HP employee -
Passing parameters to table valued functions and using parameters as column name on select
I am creating a function where I want to pass it parameters and then use those parameters in a select statement. When I do that it selects the variable name as a literal not a column. How do I switch that context.
Query:
ALTER FUNCTION [dbo].[ufn_Banner_Orion_Employee_Comparison_parser_v2]
@BANNER_COLUMN AS VARCHAR(MAX),
@ORION_COLUMN AS VARCHAR(MAX)
RETURNS @Banner_Orion_Employee_Comparison TABLE
LAST_NAME nvarchar(max),
EMPNO int,
BannerColumnName nvarchar(max),
BANNER nvarchar(max),
ORION nvarchar(max)
AS
BEGIN
INSERT INTO @Banner_Orion_Employee_Comparison
(LAST_NAME, BANNER, ORION)
SELECT
a.LAST_NAME, @BANNER_COLUMN, @ORION_COLUMN
FROM OPENQUERY(ORCLPROD_APDORACLE, 'select LAST_NAME, BANNER_RANK, BADGE, EMP_STATUS from XTRACT_VIEW') AS a
inner join IWM_Stage.dbo.ViewPersonnel AS b
on a.BADGE = b.badge
WHERE a.EMP_STATUS = 'A'
and a.BANNER_RANK <> b.[rank]
RETURN;
END;
GO
Output
I execute this:
select * from ufn_Banner_Orion_Employee_Comparison_parser_v2 ('a.BANNER_RANK' , 'b.[rank]')
and get:
Cerecerez NULL
NULL a.BANNER_RANK
b.[rank]
George,
You could go for using a CASE statement as earlier mentioned by Erland. This would look like below: (Downside is that you need to be mentioning all possible values in the CASE)
ALTER FUNCTION [dbo].[ufn_Banner_Orion_Employee_Comparison_parser_v2]
@BANNER_COLUMN AS VARCHAR(MAX),
@ORION_COLUMN AS VARCHAR(MAX)
RETURNS @Banner_Orion_Employee_Comparison TABLE
LAST_NAME nvarchar(max),
EMPNO int,
BannerColumnName nvarchar(max),
BANNER nvarchar(max),
ORION nvarchar(max)
AS
BEGIN
INSERT INTO @Banner_Orion_Employee_Comparison(LAST_NAME, BANNER, ORION)
SELECT
a.LAST_NAME
, CASE @BANNER_COLUMN WHEN 'a.BANNER_RANK' THEN a.BANNER_RANK WHEN 'a.BADGE' THEN a.BADGE END --put values as required
, CASE @ORION_COLUMN WHEN 'b.[rank]' THEN b.[rank] END --put values as required
FROM OPENQUERY(ORCLPROD_APDORACLE, 'select LAST_NAME, BANNER_RANK, BADGE, EMP_STATUS from XTRACT_VIEW') AS a
inner join IWM_Stage.dbo.ViewPersonnel AS b
on a.BADGE = b.badge
WHERE a.EMP_STATUS = 'A'
and a.BANNER_RANK <> b.[rank]
RETURN;
END;
GO
Another method that I would suggest is to get all values from the function, then build a dynamic query to obtain results from it .. Something like:
ALTER FUNCTION [dbo].[ufn_Banner_Orion_Employee_Comparison_parser_v2]()
RETURNS @Banner_Orion_Employee_Comparison TABLE
LAST_NAME nvarchar(max),
EMPNO int,
BannerColumnName nvarchar(max),
BANNER nvarchar(max),
ORION nvarchar(max)
AS
BEGIN
INSERT INTO @Banner_Orion_Employee_Comparison(LAST_NAME, BANNER, ORION)
SELECT
* --Returns all the columns
FROM OPENQUERY(ORCLPROD_APDORACLE, 'select LAST_NAME, BANNER_RANK, BADGE, EMP_STATUS from XTRACT_VIEW') AS a
inner join IWM_Stage.dbo.ViewPersonnel AS b
on a.BADGE = b.badge
WHERE a.EMP_STATUS = 'A'
and a.BANNER_RANK <> b.[rank]
RETURN;
END;
GO
--Execution
DECLARE @BANNER_COLUMN AS VARCHAR(MAX), @ORION_COLUMN AS VARCHAR(MAX),@SQL NVARCHAR(MAX)
SET @BANNER_COLUMN='BANNER_RANK'
SET @ORION_COLUMN='[rank]'
SET @SQL='
select LAST_NAME,'+@BANNER_COLUMN+','+@ORION_COLUMN+' from ufn_Banner_Orion_Employee_Comparison_parser_v2 ()'
PRINT @SQL
EXEC @SQL
You just need to make sure that the column names returned by the function are UNIQUE (Using proper alias names) so that you don't have a problem referring to them from the outside..
Thanks,
Jay
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
So you call up an account in email
Account Information is selecgted in the 3-choice menu-bar/button (what is that thing called, anyway? An "inspector"? (frown).
Then check "enable this account"--is selectable
Then Account type: iCloud IMAP or example--this is NOT selectable.
Then "Description field" What's it for, where does it show up, especially if it shows up in other "related" or "integrated" programs?
Alias popup: What's this for? How do you use it. What approaches, strategies, effects might one employ?
Email address is pretty straight forward--but see "user.name" in the "server sub-box/sub-pane" below.
Full Name: What full name? Where does it appear in use? I cannot access it from the pane/panel, so how do I set it, or who/what sets it?
Outgoing mail server (SMTP): OK, here's a popup that isn't congruent with "account type" in the first sub-pane. Or is IMAP only an extroverted function/setting, and (SMTP) is a introverted one (IMAP for outbound, SMTP for inbound)?
Now comes Confusion: Outgoing Mail Server popup menu, which leads you off to a wholenother pane that lets you create new/delete old incoming server names.
There's a Description (what's that for, what does it do? Ditto Server name--I get than's something like smtp.ISP.Com or IMAP.ISP.com). You can set those fields in the + menu Account Information Pane, with its blank text fields. And you can also "double-click to enter" that field in the list itself. Why is that?And then I can select Advanced, and get another batch of checkboxes, fields, and popups.
But I left the Account Information pane before asking, What is this Thread-Lock Stitching Certificate thing? (Or is that Transport Layer Secrecy Sertificate, what? None is displaying now, but if I popup what's beneath it a humongously long "ID" string, which I take to be, what, my Apple ID? A public key/ provate key encryption string/key? How do I use it if I'm trying to keep the National Surveillance Agency from eavesdropping, "in the clear," my every blessed keystroke, "phrase-stroke" (think VoIP), and if I use the thing, can the president just press a button and send a drone to blow me off the planet (and anyone near me at the time--always great fun for friends and family)?
And never mind router and FiOS, etc., modem settings. and the Network settings outside of email....
I guess my bottom line is, the user is presented with a rich smorgasbord of significant choices by all of the panes and panels, etc., on the mac, iMac, iPad-Phone-Watch real soon now, mac pro, macbook pro, etc. But the specific description of the proper use of these description/instruction on their use and function is impoverished. I think manuals used to handle some of these issues. But where are the manuals? Or am I just so overwhelmed by the complexity of what was once a simple user interface that I can't see pointers (in light grey type on lighter grey backgrounds--what the heck is wrong with black type, I'd like to know!) staring me in the phiz. Oh, help.Hi Cff7dxp,
I am glad to hear that your issue has been resolved from the provided troubleshooting steps. Please feel free to post in Lenovo Community Forums if you have any further queries!
Did someone help you today? Press the star on the left to thank them with a Kudo’s!
Cheers!
Hemanth Kumar
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
Follow @LenovoForums on Twitter! -
What is the functionality and use of MiniApps in PFCG tab?
Hi Experts,
In ECC 6.0 Version, while using the PFCG T-Code, we have the prescence of additional tabs
-MniApps
-Personalisation
These 2 tabs are not present in R/3 4.6B Version.
May I knw wat exactly there is the Functional advantage of these tabs inclusion, and why are they used for?
Thanks and Regards,
Kumar Arumugam.> -MniApps
For miniapps I've found some stuff in SAPhelp:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/55/76f4388818ac2be10000000a114084/frameset.htm
A MiniApp is an application, information or service that can be displayed in a Web Browser.
> -Personalisation
This tab also has it's 'own' SAP help page:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/23a03881201f6fe10000009b38f8cf/frameset.htm
On the Personalization tab page, you can make person-related settings using personalization objects.
That should give you some clues.
Jurjen
P.S. Search took about 10 secs. I only did it for you because I was curious myself. -
My iTunes music is on an old laptop which I cannot access. What options do I have to play my music on the apple devices including a new Nano that I have just bought?
The files that weren't inside the media folder on the original machine need to be copied over to exactly the same paths as they had on the source machine. See this thread for an ongoing discussion of a similar problem. See also this post on migrating the iTunes library.
tt2 -
I have an iPad mini, I am connected to my work wireless connection. My printer also is on the same wireless network, however I am not able to print to my airprint enabled printer through this wireless connection. Is there a way to direct connect to the printer via a cable ?
I am missing something here on the connection. I am thinking possibly a firewall here at work will not allow me to use the airprint function. Help ?There is no support for wired printing.
It is probably a firewall issue, possibly where all inbound communications are blocked. Since you're at work, I'd call your work IT department and find out from them what you can/can't do. -
Tried various troubleshooters on Hp and Apple websites to get this working consistently.
Installed new drivers for OSX Yosemite 10.10 - thought all would work fine as went through installing, printing test page etc. Then printer becomes unavailable - although it is on the list of printers.
Same thing has happened variuos times after re-installing it.
Will print directly via USB and wireless direct - but I want to print via the wireless network.
tried all the usual things - making sure on the right wireless network, restarting everything etc.
Using an airport router - are there some settings on this that may be causing an issue - odd though as will print once when initially connected to the wireless network.
Any ideas?Hi @iphonebore,
Welcome to the HP Forums!
I understand that your HP Laserjet 200 M267NW will not stay connected to your wireless network running Mac OS X 10.10. I am sorry to hear this, but happy to help!
Please see the following guides:
'Printer is offline' Message Displays on the Computer and the HP Printer Will Not Print. (Follow the steps for Mac OS X 10.7, and 10.8, as they will work on 10.10.)
Printer Does Not Maintain a Wireless Connection. (This will help you with maintaining the wireless connection.)
As well, please see this post, Incoming and Outgoing Printer Ports, by @VisionAiry, and verify that none of these ports are being blocked by your router.
One more place for some more wireless printing information is our HP Wireless Printing Center - Troubleshooting Issues website.
Hope this information is helpful, and thank you for posting!
RnRMusicMan
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" to say “Thanks” for helping! -
Printing Reports directly from to a printer via 10g forms (Linux)
Hi all,
I need to be able to print Reports directly from a form to a printer (bypassing the form output) on Linux (RHEL 5). The trick here is this is Linux, not windows so, wasn't sure how to deal with printers in this case.
I have the option working where I can run a report and set the options to "Cache" and PDF and it displays my outputted report directly in a new browser window w.
I use the SET_REPORT_OBJECT_PROPERTY, RUN_REPORT_OBJECT, and WEB.SHOW_DOCUMENT properly for the PDF in a window.
a.) I want to send them directly to a printer, preferably to a user's default printer on their PC, bypassing the output screen. How can I accomplish this?
b.) I also would like the ability to generate a PDF (bypassing the output on a browser window) and put the form in a specified directory on a client's PC (which is what I used in 6i Client/Server). I believe I need to utilitize the WebUtil to allow this to happen. Otherwise, I'm thinking I just build a queue for the user on the Linux server and build a screen that shows all the reports they've generated for the past X amount of days and let them open them up and print from there.
Any help (particulary for Part A) would be very beneficial.
Chris1)
if your app server is on a Linux server, for direct printing to work, the printer must be setup and accessible under Linux server using system-config-printer command, for PDF printout you probably want a postscript option checked
if you print to screen (PDF) and then use print option then your windows client machine must have access to the printer
2)
you must pass this printer name as part of the report parameters.
set_report_object_property(oRptObj, report_destype, Printer);
and
hidden_action := hidden_action ||'&report='|| cRptSrcFile; -- source of report program to call
hidden_action := hidden_action ||'&destype='|| cDesType;
hope this helps -
Adobe Form output cropped when sent directly from SAP to printer
I have created an Adobe Form (not interactive) that looks perfectly OK when previewed in Adobe Acrobat viewer but when printed blank margins of 4-5 millimeters are applied on all 4 paper edges. The form was designed with a coloured frame around it but the margins effectively remove most of the frame. The form content is being cropped instead of being compressed inside the margins.
The form has been created with LiveCycle Designer via SAP transaction SFP. I am generating the form from an ABAP program
When the form is printed from the Adobe Acrobat viewer I have the option to set Page Scaling to 'Fit to Printable Area'. This makes the form content being compressed inside the blank margins and the coloured frame remains intact. If I leave the Page Scaling setting as 'None' the output is being cropped as described above.
The real problem occurs when I want to print without previewing first. I need to do that since previewing enables the user to skip printing and the application must know if the form has been printed or not. I have so far found no way to make the printer print on the paper edges or fit the content to printable area. Is there some setting in the output parameters than handles this?
Also there is a need for duplex printing when sending form directly to printer. On help.sap.com there is information about duplex print for SAPscript and Smartforms but nothing for Adobe Forms.
Here is an excerpt of the ABAP code used for printing the Adobe Form:
DATA: zs_outparams TYPE sfpoutputparams,
z_fmname TYPE rs38l_fnam.
Set some print parameters
zs_outparams-nodialog = abap_true. "No user dialog
zs_outparams-device = 'PRINTER'. "Output device
zs_outparams-dest = z_pdest. "Printer name
zs_outparams-reqnew = abap_true. "New spool request
zs_outparams-reqimm = abap_true. "Print immediately
Open print job
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = zs_outparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
RAISE print_error.
ENDIF.
Get FM name for form
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'Z_TEST_FORM'
IMPORTING
e_funcname = z_fmname.
Call FM to print form
CALL FUNCTION z_fmname
EXPORTING
i_header = t_data_for_form
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
RAISE print_error.
ENDIF.
Close print job
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
"Ignore
ENDIF.
Please advise on how to
- avoid the content cropping
- enable duplex print
when sending Adobe forms directly to the printer
Thanks very much!
Bernt EvensenThanks for your answer, Ramachandra!
However I need some more specific information to solve this.
Which printer layout settings are relevant for the handling of margins and duplex printing for Adobe Forms?
I have not set up the printer myself but when talking to the printer guy which settings should I recommend him to look at?
I can see in transaction SPAD that there are settings specific to SmartForms but there is nothing said about Adobe Forms. Is there some way to make Adobe Forms related setting appear in SPAD for a device type?
Maybe my problem is not related to the printer device settings but rather to the way the printer is being called. When printing duplex we will have to override the default settings of the printer anyway.
Function module FP_JOB_OPEN has a parameter structure of the type SFPOUTPUTPARAMS. Which fields in this parameter structure are to be manipulated to get duplex print and output fitted to page size? -
When I connect the printer to the Airport via USB and run Bonjour, it recognizes that I have a Canon printer but does not have the mp560 as one of the choices.
I spoke with Apple support but they could not help...they said they thought it was a Windows issue and that it had something to do with one of the ports needing to get "unstuck" or something like that...this is really annoying because while the Airport is so much better than the Netgear it defeats the purpose of having the wireless printer, which worked so well previously.
Can anyone offer advice? Thanks.Unfortunately, not all USB printers are compatible with AirPort base stations. In addition, the AirPort's USB port does not support the "advanced" printer functions, like scanning, copying or faxing, of multi-function printers.
To see if your printer is compatible, take a look at thisiFelix Unofficial AirPort Printer Compatibility link. If your printer isn't listed, it doesn't necessarily mean it won't work, but simply that it has not been verified. iFelix also provides the following workaround for printers not on the list that would certainly be worth a try.
Also you can try this Apple Tech Support article to see if it will help: Printer troubleshooting for AirPort Base Stations and Time Capsule
Finally, check out this IBM support article to see if your printer is listed as having a Postscript or PCL3 interface. If it does, then it will most likely work with the AirPort's USB port. Printers that use the "HP LIDIL" interface must be connected to a computer directly and will not work. -
How to print smartform from a report
Im displaying a report, which contains several documents, whereby which ewch document is connected to a smartform.
The page displaying the report contains a button 'Print'
When clicking on the Print button, all the documents in the report should be printed.
But my program is creating a spool file of the report, which will be printed further - its not what I want
I want the program to print the smartforms of each documents on the report directly.
heres my code and I dont know what I should do to be able to print the smartforms directly
Get the function module name of the smartform.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = '/EU000/FI_PRINT_DEBIT_NOTE'
IMPORTING
fm_name = g_fm_name.
gw_options-tdnoprev = ' '.
gw_options-tddest = 'LOCL'.
gw_options-tdprinter = 'LOCL'.
gw_options-tdnewid = 'X'.
gw_options-tdimmed = 'X'.
gw_control-preview = ' '.
gw_control-no_dialog = 'X'.
write: text-006,' ', text-007, ' ', text-008.
write:/.
For all the documents
LOOP AT gi_all_data INTO gw_all_data.
write: gw_all_data-gjahr(4), ' ',gw_all_data-belnr,' ', gw_all_data-belnr.
write:/.
CASE SY-UCOMM.
WHEN 'PRINT'.
Call the smarform
CALL FUNCTION g_fm_name
EXPORTING
gw_all_data = gw_all_data
user_settings = ' '
output_options = gw_options
control_parameters = gw_control.
WHEN 'BACK'.
LEAVE SCREEN.
ENDCASE.DATA: x_control_parameters TYPE ssfctrlop,
x_output_options TYPE ssfcompop.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_prin LIKE usr01-spld.
SELECTION-SCREEN BEGIN OF LINE.
INITIALIZATION.
SELECT spld
FROM usr01
INTO p_prin UP TO 1 ROWS
WHERE bname = sy-uname.
ENDSELECT.
START-OF-SELECTION.
x_output_options-tdimmed = c_x.
x_output_options-tddest = p_prin.
x_output_options-tdnewid = c_x.
x_output_options-tdreceiver = sy-uname.
x_output_options-tdcopies = '001'.
x_control_parameters-device = 'PRINTER'.
x_control_parameters-no_dialog = c_x.
x_control_parameters-langu = sy-langu.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_SMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = f_name1
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.
IF P_PRI = 'X'.
CALL FUNCTION F_NAME1
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = X_CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = X_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
wa_header = wa_zmexh51
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
tab_item = TAB_ZMEXD51
tab_item1 = TAB_ZMEXS51
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.
ENDIF.
ELSEIF P_PRE = 'X'.
CALL FUNCTION F_NAME1
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = X_CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = X_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
wa_header = wa_zmexh51
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
tab_item = TAB_ZMEXD51
tab_item1 = TAB_ZMEXS51
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.
ENDIF.
ENDIF.
Check the above code its just similar requirement it may helpful to you.
Thanks,
Phani.
Maybe you are looking for
-
Gdm multihead xrandr workaround
I have found a post that work around the mirrored mode used by gdb if there is a multihead environment. I find it annoying and want to ask if this can be added to the official package so we all can get off that default behavior. The post is here http
-
Queue songs within a playlist???
I have a playlist of my favorite songs, and sometimes as I'm scanning through them I think to myself, "I want to hear that one next!" Who doesn't? So, I couldn't find any way to queue up the song to play as soon as the current one finishes and afterw
-
Authorization on operation level
Dear Gurus, I have a case that in my inspection lot...there are two operations: chemical and microbiology Each operation has a user responsible for it, is there a way to prevent a user from recording results in the other user's operation. Regards, Ma
-
Odate variable remains on creating date instead of cur.dat
I created an aggregate on Z(O)CCA_C11 Multicube with time nav. attr. i choosed 0date variable in my aggregate because the query used also 0date variable. The problem what the have is that 0date not changes and stays on creating date. When i run my qu
-
Dear all NI high speed digitizer experts: I post a question concerning the two-channel configuration using NI5154 digitizer (see Need help to configure a two-channel acquisition using NI5154 ). As we need to do some measurement using NI5154 very so