2011 Jun 23 5:30 AM
Hi
I have a Z program and we need to store the timestamp field in the Z table . I have created the table with the dataelement
TIMESTAMP . Is there any system field that can be used to store the timestamp field from your program
say for example we have declared a work area of the structure of the Z table and Appended through the Internal Table and Modified that Z table.
My intention is store the Timestamp field in the Z table.
Nadesh
2011 Jun 23 5:49 AM
Yes, it's documented in the ABAP help files. There's a short form and a long form. See the help files for GET TIME STAMP or CONVERT TIME STAMP.
ref the link:
http://www.sapnet.ru/abap_docu/ABENTIME-STAMP-GENERAL.htm
Regards,
Dhina..
Edited by: Dhina DMD on Jun 23, 2011 6:53 AM
2011 Jun 23 5:36 AM
2011 Jun 23 5:41 AM
Try GET TIME STAMP option in your program.
Use a small piece of code in your program like below,
TABLES: ztable " Database table
DATA: wa TYPE ztable,
dbtab TYPE TABLE OF ztable.
GET TIME STAMP FIELD wa-timestamp. " Move timestamp value to work area
INSERT dbtab FROM wa. " Insert an entry into database
2011 Jun 23 5:49 AM
Yes, it's documented in the ABAP help files. There's a short form and a long form. See the help files for GET TIME STAMP or CONVERT TIME STAMP.
ref the link:
http://www.sapnet.ru/abap_docu/ABENTIME-STAMP-GENERAL.htm
Regards,
Dhina..
Edited by: Dhina DMD on Jun 23, 2011 6:53 AM
2011 Jun 23 6:03 AM
hello sir i am new to sap .
i am using smartforms (driver program)
i need to transfer two fields to smartform .
fkimg1 & fkimg1.
i need these two fields in the wa_output (coz wa_output is already being passed to that smartfom.)
(like wa_output-fkimg1 & wa_output-fkimg2.)
so can you please suggest me how to add these two fields in my report so that they are transferred to smartform
i need to add that two fields in the below structure , so that both the values will be passed to smartform via wa_output.
so please tell me how to include the both fields.
types : begin of st_output.
include structure ztaxinvoice.
types : end of st_output.
data: it_output type standard table of st_output,
wa_output type st_output.
thanks in advance.
2011 Jun 23 7:01 AM
Hi,
you can add as below..
types : begin of st_output.
include structure ztaxinvoice.
FKIMG1 TYPE VBRP-FKIMG,
FKIMG2 TYPE VBRP-FKIMG,
types : end of st_output.
or you can add this field to your structure 'ztaxinvoice' as below
'FKIMG1 TYPE FKIMG'
'FKIMG2 TYPE FKIMG'
.
Then you can declare internal table and work area as mentioned below..
data: it_output type standard table of ztaxinvoice,
wa_output type ztaxinvoice.
here in this case no need of types declaration also you can pass the same type (wa_output type ztaxinvoice) in smartform.
hope this will help you,
Regards,
Renuka S.
2011 Jun 23 7:16 AM
2011 Jun 23 7:23 AM
Hi Nadesh,
Once your issue is solved mark as answered and close the thread.
Regards,
Dhina..
2011 Jun 23 7:22 AM
2011 Jun 23 7:35 AM