Problem printing date on the form
Hello friends ,
I am doing form for the HR . Is there any special formatting needed to print the date on the form . I am doing this .
&t_payment-paydate& in the main window of the form .
t_payment is the table and paydate the date of payment . But instead of printing 1/22/2006 . It is printing 3//20/07/2 some junk value . Is it the format related problem ?
Any suggestions . You help would be greatly appreciated .
Regards & Thanks ,
Hari
HI,
You can do like this.
You make the following changes in the program
1. Define a character type field
data: v_payment_date(10) type c.
2. Assign the date value to the character field
write t_payment-paydate to v_payment_date.
You make the following changes in your sapscript text element.
instead of using field t_payment-paydate use v_payment_date.
Thanks
Ramakrishna
Similar Messages
-
How to print the data on the form (smartform)...
Hi,
i got a requirement that i have to create a selection screen and from that i process the data according to the inputs in the selection screen, and after i collect the entire data in an internal table, now i want that data to be displayed in the form ,
what is the process for this, can anybody explain me in detail.
Regards,
RamHi!
To create new smartform
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procedure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
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
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
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.
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Or an another one:
just check it step by step with lots of screen shots.
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
Reward all helpfull answers
Regards
Tamá -
How do you print data from a form?
From the interactive report, there's a built in function to print to variious formats (e.g., PDF, CSV, etc).
As long as the columns do not exceed the width of a page, it's okay.
But what I want to do is when a user clicks on 'edit' from the interactive report and displays the data entry screen, I want to be able to have a 'Print' button to print the data from a form.
Don't want to manually modify the URL to change a parameter to print.
Really appreciate any help I can get on this matter!!!I want to be able to have a 'Print' button to print the data from a form.Create a Print button in the form page with an <tt>onclick</tt> attribute that calls the method<tt>print()</tt> method:
onclick="window.print();"
Don't want to manually modify the URL to change a parameter to print. Sounds like you want to be able to control which page elements are printed and how they are formatted?
This is quite straightforward using a print media style sheet.
You'll need to identify CSS selectors (usually IDs and classes) from the page HTML for the components and regions that are not to be printed: a web inspector such as that found in Safari, or the Firefox+Firebug combo is useful for this. It's also a good idea to give all of your regions a unique static region ID to assist with this identification. Using this information, you can construct the style sheet to exclude all of the unwanted content using <tt>display: none</tt> rules.
In a simplified example, say you identify that there are 4 regions on the page, and you only want to print region 3. You would add the following style sheet to the page HTML Header:
<style type="text/css" media="print">
#region-1, #region-2, #region-4 {
display: none;
</style>+{message:id=2475831}+ is a solution to a similar problem, and see this article for more enhancements that can be included in your print style sheet.
Really appreciate any help I can get on this matter!!!You'll get effective help more quickly if you include the following information upfront when posting a question. This enables others to understand, replicate and determine the most appropriate fix without wasting time asking all kinds of supplementary questions:
- APEX version
- DB version and edition
- Web server architecture (EPG, OHS or APEX listener)
- Browser(s)/version(s) used
- Theme used
- Templates used
- Region/Report/Process type
And please update your forum profile with a better handle than "846623". -
How to execute the data in the form when the data is already avaliable
Hi,
I am working with forms 6i. I have a problem while executing the data in the form
Actually, the data is already present in the form. But when i run the form, the data is not displayed.
can anyone please help me how to execute the data. below is the code
Set_Alert_Property(alert_id,ALERT_MESSAGE_TEXT,'Do you want to refresh new Data for that Year and Field ? (it will take a time).') ;
SET_ALERT_BUTTON_PROPERTY(alert_id, ALERT_BUTTON1, LABEL, 'Yes');
SET_ALERT_BUTTON_PROPERTY(alert_id, ALERT_BUTTON2, LABEL, 'No');
SET_ALERT_BUTTON_PROPERTY(alert_id, ALERT_BUTTON3, LABEL, 'Cancel');
button_number :=Show_Alert(alert_id) ;
synchronize;
if button_number != ALERT_BUTTON3 then
if button_number = ALERT_BUTTON1 then
:param.field := :control.f_cd;
:param.year := :control.year;
build_tables;
fields;
-- areas(:param.field);
PUT_PARAM;
COMMIT_FORM;
go_block('wet_criterias');
end if;
if button_number = ALERT_BUTTON2 then
:exhibits.field_display := :control.f_name || ' - Exhibits';
go_block('RESERVOIR');
execute_query;
end if;
end if;
end if;
else
message('Fields must be entered...');
end if;
else
message('Fields must be entered...');
end if;It's hard to know what logic you are trying to implement.
However, by looking at your code, it seems that if the user select 'Yes' to the question "Do you want to refresh", nothing is done except the go_block('wet_criterias'). Should there be an 'Execute_Query' ?
No idea... -
"evdre encountered a problem retrieving data from the webserver"
Hi
We are using a big report which takes very long time to expand and sometimes we get the error message "evdre encountered a problem retrieving data from the webserver" when expanding the report, but not very often for most of our users. But we have one user who gets this error message almost every second time he expands the report. This user have a computer with same capacity as the rest of us, can there be some setting on the computer or in the client installtion the cause this problem?
We are using BPC 5.1 SP 5
/FredrikHi,
This error occurs usually if we have huge data in combination of our dimensions.
Even, if the selection of your memberset is not apt to the combination of the data present in the back end, you may encounter a data retrival error.
regards
sashank -
Error while saving the data in the form
Hi,
In forms 6i,after enteringthe data in the form,after pressing the save button it's giving error
An Error Prevented your changes from being commited
Anyone can help me out in this
Regards,
RRHi to all,
I have finished the form,now its saving.
Actually i ahce examined a form of same in other instance,in that form the data block which is using API in its trigger is first but the form which was not saving was second to other data block
When i changed the datablock order and compiled,now its saving the form.
Thanks for your support
Regards,
RR -
Pre-populating Server's Current Date in the form- How to??
The simplest way of doing this is writing one-line formcalc script.
This is not fair when the user changes his local system date/time.
I need to know how to pre-populate the server date in the form?
One way of doing this is writing a web service.
Any other simple solution to do this??
Thanks,
NithIf you are using LiveCycle Forms (7.x, ES, or ES2), with .pdf rendering on the server or the client, you can execute the script server side. Otherwise you have no other option but to access an external resource (REST, Web Service, JSP/servlet, etcetera) for the time, if you need to accurately capture form open time on the desktop.
Steve -
Problem loading data from the PSA to the InfoCube
Hello experts.
I'm having a problem loading data from the PSA to the InfoCube.
I'm using a DTP for this process but is happening the following error:
"Diagnosis
An error occurred while executing the transformation rule:
The exact error message is:
Overflow converting from''
The error was triggered at the point in the Following Program:
GP4KMDU7EAUOSBIZVE233WNLPIG 718
System Response
Processing the record date has Been terminated.
Procedure
The Following is additional information included in the higher-level
node of the monitor:
Transformation ID
Data record number of the source record
Number and the name of the rule Which produced the error
Procedure for System Administration
Have already created new DTP's deactivate and reactivate the InfoCube, the transformation, but solves nothing.
Does anyone have any idea what to do?
Thank you.HI,
Is it a flat file load or loading frm any data source?
try to execute the program GP4KMDU7EAUOSBIZVE233WNLPIG 718 in Se38 and check if its active and no syntax errors are there.
Check the mapping of the fileds in transformations weather
some data fileds are mapped to decimal or char 32 filed is mapped to Raw 16
or calweek, calmonth mapped to calday etc.
Check in St22 if there any short dumps ..
Regards
KP -
How can get difference between 2 dates in the form of days
how can get difference between 2 dates in the form of days
Hi,
Check the following program:
REPORT ZDATEDIFF.
DATA: EDAYS LIKE VTBBEWE-ATAGE,
EMONTHS LIKE VTBBEWE-ATAGE,
EYEARS LIKE VTBBEWE-ATAGE.
PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
exporting
i_date_from = FROMDATE
i_date_to = TODATE
I_FLG_SEPARATE = ' '
IMPORTING
E_DAYS = EDAYS
E_MONTHS = EMONTHS
E_YEARS = EYEARS.
WRITE:/ 'Difference in Days ', EDAYS.
WRITE:/ 'Difference in Months ', EMONTHS.
WRITE:/ 'Difference in Years ', EYEARS.
INITIALIZATION.
FROMDATE = SY-DATUM - 60.
Regards,
Bhaskar -
Hello,
i have a form( start.jsp) in which i can enter data about a person. The form data is bound to a person class which is saved in db. After submitting the form i inform the user ( in another page) that the submitting were successfull. But after coming back to the start.jsp to create a new person i still have the old person information data in the form. How can I have a form without my previous data.
My bean has to be in session scope and not in request scope.
thanksReinstantiate the Form DTO.
public void submitForm() {
myForm = new MyForm(); // Clears the form.
} -
Is there any other way to sort data in the form other than the order by block property? I have a form built off of a view. The view returns data quickly up until I add the order by clause. his happens in sqlplus as well as in the form.
Hello,
If possible, create an index on the column you want to sort on.
Francois -
Static data in the form of ListView in AppBuilder
Hi All,
I'm Trying to develop the application in AppBuilder If we want to display the Static data in the form of list view like labels and Text fields is it possible to do that in static form?Hi All,
I'm Trying to develop the application in AppBuilder If we want to display the Static data in the form of list view like labels and Text fields is it possible to do that in static form? -
Printing Response Data in the Form Layout?
I'd like to be able to select a response and print the data in the format of the form (so it looks the way it did when they entered it.) How can I do that?
Unfortunately you can't print a selected response and retain the format of the form. You can print out a response in more of a "record view". Try this - go to View menu -> Details View. A panel will open, at the bottom of the panel you can see buttons for save the detail view as PDF or print it.
This type of functionality is something we plan to provide in the coming months.
Hope this helps
Thanks,
Randy -
Problem with data in Adobe Forms - partially displayed(first pade only)
Hi all .
I only start work with Adobe Forms so I need your help .
My form includes table with lot of data .
My problems are:
1.only the first page with data is displayed and I don't see the rest of data .
What I need to define for get all my data printed ?
2. How can I print total at end of table ?
Regards Helena .select the subform where your table body present , there you choose the pallete object inside you need to set.
if you still have doubts see these blogs
Adobe Forms Using: Nested Table, Text Module & providing the functionality of Page Total & Grand Total
Displaying Internal Table in Adobe Form -
Printing date in the cheque date box column
Hello all,
I want to print the date in the cheque box column automatically.I used sy-datum.but its not coming in the proper field of day,month and year.can anyone please help me to do it .
Thank in advance.Check user master records for date format. Which tool did you use SapScript or Smartforms, you could alsop look for date formatting in those tools.
Smartforms : Smart Forms, Using SAP Smart Forms, Using Parameters in a Form, Using Fields in the Form, Output Options for Field Contents
Sapscript : BC Style and Form Maintenance, Formatting Options, Date Mask
NB: Better use sy-datlo if your systems have users worldwide.
Regards,
Raymond
Maybe you are looking for
-
When I receive an original meeting request from a LotusNotes user, I can select the .ics attachment and it gives me an option to "add to calendar" which will place it on my calendar. However, when I receive a rescheduled meeting notification, I get a
-
Sales order blocked for Delivery
Hi All, Kindly help me providing the T code to release the block. Regards, SK
-
Generate document classes when creating WebService from WSDL using JAXRPC
Can anybody tell me how i can generate request response document classes.Response is return type and request is its parameter of method (service provided by webservice). I had used cmd: wscompile -keep -gen:both -d src config.xml My config.xml is: <?
-
XSQL: how to specific contentType to return?
Hi I am trying to replace my JSP code with XSL/XSQL. I want to specify the content type in XSL like I did in the following working JSP. <?xml version="1.0" encoding="UTF-8"?> <%@ page contentType="application/output-format;charset=UTF-8" %> I have tr
-
Calling Standard screen from custom program
Hi all, My requirement is 1)Either to fix a link(say from a button) on my custom screen for material creation,to call mm01 basic data screen for image upload. 2) Or to upload material image directly to the corresponding table(using any fm or