Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date Formating in smartforms

Former Member
0 Likes
509

Hi,

Guys i have a doubt in smartforms.i.e .i want to change the format of date within smartform not in print program.

I am getting dates trrough internal table in 9 character long .i want to change the date 16 character.i.e. 20 December 2005 like this.

In table structure 9 character only.so,i want to format date like this.

Inside smartforms where to write code for call FM and formatting and all?

If i call FM inside smartforms it'll work? .that means where i have to call and format? Please help me..

Regards,

Nandha..

4 REPLIES 4
Read only

Former Member
0 Likes
445

HI,

you can write the code as you want in the Smartform,

Just create <b>Program lines</b> then call the Function module, so you input will be 9 character field and the output will be 16 Character field.

In the Program lines window, just give Input Parameter is 9 character field and the output parameter is 16 Character field, so this 16 Character field will be available for you in the Smartform, so you can use this and Print this anywhere

Hope you got it..

Regards

Sudheer

Read only

0 Likes
445

If i write code in program coding in smartforms

it's raising error incorrect nesting Before the statement form the structure introduced function must be consluded with endform.

I don'w know what is the error.Please,help.me

Regards,

Nandha

Read only

Former Member
0 Likes
445

Hi,

i do not know why you are getting this error,

if you write the code in the Program lines, then you can call a Function module and pass that variable,

i think you are missing something somewhere, please check once again then variables... and check where you are getting the error? in which window you are getting? if you are getting the error in the Program lines then you are missing something, just test the FM individually then write that in the Smartform

Regards

Sudheer

Read only

0 Likes
445

code is ok in abap editor .working fine.but this error coming in form interface.

Nandha