How to link standard prog output to smartform?
I have to create Smartform for Credit Memo, there is no driver progrm. Standard prog for Credit memo is in FB75 tcode.
how to export data entered by user to the corresponding smartform?
shall i use NACE?
Hi,
VOFM is tcode, where you can set the form for the standard program... this is Functional configure...need to contact the SD
NACE is also tcode, where u can change the Rotuine & FORM name
Regards,
Aditya
Similar Messages
-
Pls explain how to add standard text in sapscript & smartforms
Dear friends,
pls explain how to implement standard text into sap script and smartforms.
in how many we can do.
and what is diff between include text & text modules in smartforms.
how we can translate into multiple languages.
Regards
Jagadeeshwar.Bhi,
for the include text goto tcode so10.
for changing the smartform and scripts use there methods..
1. goto se63>translation->abap objects->other long texts->FS Forms and Styles---> for scripts use Forms
for smartforsm use SAPSmart form
for styles use Styles
2. goto se71->utilities->original language.---> source lang
(for scripts) target lang
to include the include text created in the tcode so10 in the smartforms go to general attributes of the text element--text type> include text...
regards,
venkat.
Edited by: venkat appikonda on Mar 22, 2008 11:56 AM -
How to link newely created output type to newely created tcode
Hi ,
Actually i have created new output type ZONS for tcode ZMRKO
Now i want link this output type to tcode ZMRKO for my new company code.
Answer please......
Prashanth.v
Edited by: prashanth.venkategowda on Jul 26, 2010 1:14 PMfrom other source
-
How can i get belo output for smartform
i want output like this for servise tax
item at 50 servise tax 10.20%
but i m getting output like this
item at 50 servise tax 10.00%
if ( t_komv-kschl = 'JSRE' OR t_komv-kschl = 'JSRF' OR
t_komv-kschl = 'JSER' OR t_komv-kschl = 'JSVD' OR
t_komv-kschl = 'JSRC' OR t_komv-kschl = 'JSRD') .
IF t_komv-kschl = 'JSRE'.
g_percentage = t_komv-kbetr / 10.
ELSE.
g_percentage1 = t_komv-kbetr / 10.
ENDIF.
add t_komv-kwert to l_stax-amt.
l_stax-item_no = t_komv-kposn.
l_stax-amt = t_komv-kwert.
l_stax-per = t_komv-kbetr / 10.
append l_stax to it_stax.
ENDIF.
IF ( ( g_percentage IS NOT INITIAL AND
g_percentage1 IS NOT INITIAL ) AND
( t_komv-kschl = 'JSRE' OR t_komv-kschl = 'JSRF' OR
t_komv-kschl = 'JSER' OR t_komv-kschl = 'JSVD' OR
t_komv-kschl = 'JSRC' OR t_komv-kschl = 'JSRD') ).
g_mul = g_percentage * g_percentage1.
g_percentage3 = g_percentage + ( g_mul / 100 ).
l_stax-per = g_percentage3.
append l_stax to it_stax.
clear : g_percentage, g_percentage1.
ENDIF.
thanks in advanced.Hi,
You take Tax as
Data: Tax type P(c.2).
Then you will get as per your requirement.
Thannks,
Rani. -
Hi,
We want to see the subcontract stocks MBLB report to look for a particular vendor and material from SRM web browser.
Or how to link standard MM reports to SRM.
Any suggestions pl.
Reg,
Sridhar.Hi
<b>Please go through the following links -></b>
Re: SAP SRM /MM Reporting with SAP BW
Adding Report link in SRM web page
SRM custom reports on Web
Re: Link Contract in SRM to R/3
Establishing a connection between SAP SRM and MM
Regards
- Atul -
how to copy standard prog to zprog with existing enhancement and includes
i tried but enhancement and includes not copied...
please help me to give suitable example...
Moderator message : Duplicate post locked.
Edited by: Vinod Kumar on Sep 26, 2011 11:29 AMI would check in SE71 to make sure the correct SAPscript layout is there and active.
You can check transaction SPAD. Be sure the LETTER in LANDSCAPE mode is supported for the specific device type assigned to the target printer in the test system.
As a last resort, you can purge the buffer for loaded layout sets with program RSTXDELL. -
In PM or QM modules how to link the smartforms to standard transections.
Hi ABAP gurus,
i am facing the problem how to link the smartforms to Standard transections, like
QGA3 in this T-code i am give the Inspection lot no only, then this Lot number go to the smartforms
it will pick the total data relavent to lot no, my problem is how to link between the T-Code to smartforms,
thanks.
raj.hi,
you have to configure in NACE. first identify the application type in NACE.
thanks,
anupama. -
How to Convert spool which is for smartform output to PDF?
how to Convert spool which is for smartform output to PDF?
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' is not working for smartform output,
if i use this there will be error spool not contain list output?
than whats the function module or way to convert spool contain smartform output to pdg?
regards,<b>Procedure</b>
When we activate the Smartform the system generates a Function Module. The function module name we can get from Smartfrom screen from menubar
Environment => Function Module_Name . In a report we can get this Function module name by calling a Function Module standard SSF_FUNCTION_MODULE_NAME. This function module at runtime calls the FM generated by smartform, which in turn is then used to pass data from the report to Smartform. In the report given below the FM generated is /1BCDWB/SF00000152 . In this FM we can see CONTROL_PARAMETERS in import tab. This is of type SSFCTRLOP. We need to set the GETOTF of this to be X. Setting this field will activate the OTF field in smartform.
In export tab of the FM generated by smartform we can see a parameter JOB_OUTPUT_INFO which is of type SSFCRESCL. The SSFCRESCL is a structure of having one of fields as OTFDATA. OTFDATA in turn is a table of type ITCOO. ITCOO has two fields TDPRINTCOM and TDPRINTPAR. TDPRINTCOM represents command line of OTF format data and TDPRINTPAR contains command parameters of OTF format data.
In every Smartform output in OTF format, TDPRINTCOM begins and ends with //. EP represents the end-of-page value for TDPRINTCOM field.
In addition we need to set few fields at the place where we call this FM(generated by smartform) in our program. While calling this FM we should set control_parameters, output_options, user_settings and job_putput_info fields as shown in program.
Once these settings are done we can call Function Module CONVERT_OTF to convert the OTF data of smartfrom output to PDF data format. Once these are done we can call method cl_gui_fronted_services=>file_save_dialog to specify the directory path where we want to save the output PDF file. After this we can call Function Module GUI_DOWNLOAD to download the PDF file on our local system.
<b>Here is a sample code of program to perform the function.</b>
SAMPLE CODE
[code]*&---------------------------------------------------------------------*
*& Report ZAMIT_SMART_FORM_PDF *
REPORT ZAMIT_SMART_FORM_PDF .
data: carr_id type sbook-carrid,
cparam type ssfctrlop,
outop type ssfcompop,
fm_name type rs38l_fnam.
DATA: tab_otf_data TYPE ssfcrescl,
pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
file_size TYPE i,
bin_filesize TYPE i,
FILE_NAME type string,
File_path type string,
FULL_PATH type string.
parameter: p_custid type scustom-id default 1.
select-options: s_carrid for carr_id default 'LH' to 'LH'.
parameter: p_form type tdsfname default 'ZAMIT_SMART_FORM'.
data: customer type scustom,
bookings type ty_bookings,
connections type ty_connections.
start-of-selection.
***************** suppressing the dialog box for print preview****************************
outop-tddest = 'LP01'.
cparam-no_dialog = 'X'.
cparam-preview = SPACE.
cparam-getotf = 'X'.
select single * from scustom into customer where id = p_custid.
check sy-subrc = 0.
select * from sbook into table bookings
where customid = p_custid
and carrid in s_carrid
order by primary key.
select * from spfli into table connections
for all entries in bookings
where carrid = bookings-carrid
and connid = bookings-connid
order by primary key.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = p_form
* variant = ' '
* direct_call = ' '
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.
exit.
endif.
* calling the generated function module
call function fm_name
exporting
* archive_index =
* archive_parameters =
control_parameters = cparam
* mail_appl_obj =
* mail_recipient =
* mail_sender =
output_options = outop
user_settings = SPACE
bookings = bookings
customer = customer
connections = connections
importing
* document_output_info =
job_output_info = tab_otf_data
* job_output_options =
exceptions formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
if sy-subrc <> 0.
* error handling
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
tab_otf_final[] = tab_otf_data-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
* ARCHIVE_INDEX = ' '
* COPYNUMBER = 0
* ASCII_BIDI_VIS2LOG = ' '
IMPORTING
bin_filesize = bin_filesize
* BIN_FILE =
TABLES
otf = tab_otf_final
lines = pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 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.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
* EXPORTING
* WINDOW_TITLE =
* DEFAULT_EXTENSION =
* DEFAULT_FILE_NAME =
* FILE_FILTER =
* INITIAL_DIRECTORY =
* WITH_ENCODING =
* PROMPT_ON_OVERWRITE = 'X'
CHANGING
filename = FILE_NAME
path = FILE_PATH
fullpath = FULL_PATH
* USER_ACTION =
* FILE_ENCODING =
* EXCEPTIONS
* CNTL_ERROR = 1
* ERROR_NO_GUI = 2
* NOT_SUPPORTED_BY_GUI = 3
* others = 4
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*************downloading the converted PDF data to your local PC********
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = bin_filesize
filename = FULL_PATH
filetype = 'BIN'
* APPEND = ' '
* WRITE_FIELD_SEPARATOR = ' '
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
filelength = file_size
TABLES
data_tab = pdf_tab
* FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc <> 0.
ENDIF.
[/code]
Thanks and Regards,
Pavankumar -
How to call the XML Publisher Report thro Standard PO Output for Comm.
Hi
We need to call our custom report(XML Publisher Report) from the standard PO Output for Communication Report.
There is a parameter(Purchase Order Layout) in PO Output for Communication in which we can see no. of standard reports. We want to add our custom report in that list so that when we will run this standard report by selecting our custom report for Purchase Order Layout parameter, we should get the output as per our Custom report.
Since PO Output for Communication is a Java Concurrent Program, we are not able to place our custom report in the list of Purchase Order layout Parameter.
RamWelcome to the forums !
Pl see if MOS Doc 305307.1 (How To Modify Print PO Report POXPOPDF With Custom Template) can help
HTH
Srini -
How to add standard text in smartforms?
Hi friends,
How to add standard text in smartforms ?
points rewarded soon
Regards
RHCreating the Standard Text:
Go to SO10
1. Enter Text Name. For example, ZABC
2. Text ID ST
3. Language EN
Click on Create.
And enter the Required Information and save.
To include a Standard text in SmartForm.
Follow the steps below:
1. Create a text node in the window.
2. Under general attributes select "Include text" as Type.
3. Specify the fields under Text.
Text Name ZABC
Text Object TEXT
Text ID ST
Language EN.
Hope it helps.
Regards. -
How to use standard texts in smartforms
Hi Friends,
How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
thanks in advance,
regards,
sharma.For long text
method1
Create TEXT node- general attributes change text type to include text
then you can input text name/text object/text id/language
method2
create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
then use LOOP or TABLE node to display it
For TEXT module(For foreign language)
Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
then enter smartform Create TEXT node- general attributes change text type to text module
input the text module name which created by above
btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10 -
How to send output of smartform in pdf format as an attachment to email
how to send output of smartform in pdf format as an attachment to email
search before posting further and follow Forum rules
Edited by: Vijay Babu Dudla on Jan 15, 2009 4:50 AMDid u check on sdn?
i dont think so or else there are many posts on this topic and good wikis too.
look at one of these code tutorial wiki
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/mail%2bsend%2bthrough%2boutput%2bcontrols
So next time do use the search functionality.
кu03B1ятu03B9к
Edited by: kartik tarla on Jan 15, 2009 12:33 PM -
Hello Experts,
This is regarding the Output management on Truck load scenario.
I have maintained configuration which is related to output management in Freight order type (truck load).
Configuration is :
Output profile : " /SCMTMS/TOR" and
Add. Output Profile “ /SCMTMS/TOR_PRINT_ROAD”.
Results: I have created a Freight order based on the FU ( Sales order ) , go to output management tab in FO, I can see only one Action status that is “Shipping Instruction” .
Expectations: I am expecting couple of other FORMs like HBL and label and etc which is available in “/SCMTMS/TOR_PRINT_ROAD”.
/SCMTMS/PRINT_AIRPORT_TRANSFER Road Waybill (Europe)
/SCMTMS/PRINT_CMR Road Waybill (Europe)
/SCMTMS/PRINT_CMR_MAN Road Waybill (Europe)
/SCMTMS/PRINT_DELIVERY_ORDER Road Waybill (Europe)
/SCMTMS/PRINT_FFI Shipping Instruction
/SCMTMS/PRINT_FFI_MAN Shipping Instruction
/SCMTMS/PRINT_LAB Label for Packaging
/SCMTMS/PRINT_LAB_MAN Label for Packaging
/SCMTMS/PRINT_MAN Shipping Manifest
/SCMTMS/PRINT_MAN_MAN Shipping Manifest
/SCMTMS/PRINT_PICKUP_ORDER Road Waybill (Europe)
/SCMTMS/PRINT_TRUCK_MANIFEST Road Waybill (Europe)
/SCMTMS/PRINT_VICS Road Waybill (U.S.)
/SCMTMS/PRINT_VICS_MAN Road Waybill (U.S.)
Also, When I am executing “List of Actions” by manually I can see all of above actions in popup screen but by default “scheduled condition” check box is checked on “Shipping Instruction” not rest of them.
Would you please guide me what I am missing?
Thank you very much.
Regards,
Surender reddyDear Surender,
For PPF customizing you can follow SPRO path -> Cross application components ->Processes and Tools for Enterprise Applications->Reusable Objects and Functions for BOPF Environment ->PPF Adapter for Output Management->Maintain PPF Settings -> Select the application '/SCMTMS/TRANSPORTATION' -> Define action profiles and Actions.
Select the required action profile (Here in your case /SCMTMS/TOR or /SCMTMS/TOR_PRINT_ROAD)-> select the required action definitions -> Make sure 'Inactive' checkbox is deselected against the required action -> Choose processing types -> Here you can assign a new form. You can also create new action definitions and assign forms accordingly.
Then go back and go to 'Condition configuration' ->Choose the required action profile -> Check the Start condition and schedule condition. Make sure you have 'Schedule automatically' radio button selected under overview tab.
Print preview is also called as Document preview. To my knowledge this tab should be displayed default with standard under Output Management tab. Document preview will appear upon selecting the action in Output management tab. If not appearing just check the WD component customizing or personalization.
Let me know if you have any specific questions.
Link below to PPF and Output Management in SAP TM document would help you.
http://help.sap.com/SCENARIOS_BUS2013/helpdata/EN/82/717662E5D84908B8777042308B24FE/OUTPUT_MANAGEMENT_GUIDE_SP37_2.pdf
Best Regards,
Bharath.K -
Hi..how we enter standard text for smartform using include text
hi
guru
..how we enter standard text for smartform using include text..
i know only using so10 we write text..
in smartform it asking text-object
text-id,
so what values we should give to get textHi,
Do u want to print Standard Text or the Texts that are maintained at the Transaction level.
If it is standard text , then u use text id as ST or if it is Texts that are maintained at the Transaction level then u have to go to that specific transaction and check for that text , then go to text editor ,in the goto menu u have header data where u get the Text id , text name.... , use them in ur smartform in the INCLUDE text.
Further u have the option of text modules in smartforms which act as standard texts, so if u r going for creation of standard texts then its better to use text modules.
Regards,
Shafivullah Mohammad -
Hi Experts,
Pls. let me know that,
How to fetch the SAP Standard Prog. built internal table into my_z_prog.?
For more explannation, pls. see my other thread with name of yestrday,
SUBMIT RFGLBALANCE WITH selection criteria, then How to get resulted itab?
thanqHi
Suppose RFGLBALANCE is your standard program and you have an internal table named I_RFGLBALANCE.
And lets say your Z program name is Z_SRINIVAS.
First find out the type of the internal table you want in your Z-program in the standard program. And declare an internal table of similar type in your Z-program.
I hope you can do this much.
Later wherever you are putting the below mentioned code.
SUBMIT RFGLBALANCE WITH selection criteria
Write the code which i have written.Obviously modify it to suit your requirement.
Please show what is not working fine so that even anyone else can help you with the problem you are facing.
Regards,
Mayank
Maybe you are looking for
-
To add additonal rows(text) in ALV report
Hi there, I want to add additional ROWS at the bottom of each grouping. Right now I am getting customer wise total comission amount but the requirement is on commsion amt ,i need to calculate 10 % tax and 2% tax and these taxes should get genrated be
-
New iPod touch issues. not recognizing in iTunes
i just got a new ipod touch and installed everything and itunes will not recognize the ipod. I went on support and tried what it said by holding down the sleep button and the home button at the same time until the apple appeared and then closing out
-
Certificate problem / STRUST
Hi everybody I tired to setup a HTTPs connection. Therefore I maintain a HTTP destination (Type G) under SM59. Under STRUST I imported the certificate. I expected now to be able to assign the certificate under SM59 to my HTTP connection under SSL Cli
-
Jdeveloper with orion 1.0.2.2 containers
Hi, How can I configure the Jdeveloper debugger to use orion 1.0.2.2 containers rather than the 9.0.x containers? Thanks, Bill
-
0TCTHOURSLT in 0TCT_MC01 not like 0TCTHOURSLT in 0TCT_MC02
All, When I query 0TCT_MC02 and list the UTC Time Stamp, Hour Slot, and Query Start Time I get values that seem -- correctly -- tied together. Example: UTC Time Stamp -- 0TCTTIMSTMP: 11:06:22 Hour Slot -- 0TCTHOURSLT: 11 Time, Query