cancel
Showing results for 
Search instead for 
Did you mean: 

Astrick in smartforum output.

Former Member
0 Kudos

i am tired fixing this:

astrick is coming in smartform output. the field type is p decimals2.

i tried almost all the scripting techniques and none of them work.

plz plz suggest some solution top rectify this:

here is the screenshot:

Accepted Solutions (1)

Accepted Solutions (1)

former_member213851
Active Contributor
0 Kudos

Hi Abhishek,

Please ensure that if this variable is getting assigned to another variable whose type is not " type  p decimals 2 " and then the assigned variable is getting used for printing on smartform.

In that case it might lead to * due to insufficient space in that Assigned variable.

Also try printing the variable by changing type assignment from  TYPE P DECIMALS 2 to some standard Tableame-Field name.

Regards,

Sachin

Former Member
0 Kudos

at the begning i tried printing directly from work area say &wa_tab-field1& .

but now i am printing with another variable with data type P DECIMALS 2.


former_member213851
Active Contributor
0 Kudos

Hi Abhishek,

What was the type of wa_tab-field1 ?

Former Member
0 Kudos

t001-waers

former_member213851
Active Contributor
0 Kudos

Hi Abhishek,

You are putting your Numeric value inside field of type t001-waers (Country currency) which is incorrect.

Please change type assignment of wa_tab-field1 from t001-waers to KONV-KBETR  and then print from wa_tab-field1.

Regards,

Sachin

Answers (8)

Answers (8)

Former Member
0 Kudos

sory all, and nevertheless thanks all.

thanks all for helping me.and sory becoz so simple it was,

i created the variable of type p decimals 2 and move the contents

of work area to that variable.

now working good.

former_member213851
Active Contributor
0 Kudos

Hi Abhishek,

The same was suggested to you in my first reply.

Sachin Adak wrote:

Hi Abhishek,

Please ensure that if this variable is getting assigned to another variable whose type is not " type  p decimals 2 " and then the assigned variable is getting used for printing on smartform.

In that case it might lead to * due to insufficient space in that Assigned variable.

Also try printing the variable by changing type assignment from  TYPE P DECIMALS 2 to some standard Tableame-Field name.

Regards,

Sachin

Former Member
0 Kudos

yeah i know,

i thought that my field's data  type was p decimals 2 (although it wasn't ).

i should have ensured before.

venkateswaran_k
Active Contributor
0 Kudos

Hi Abhishek

1. Change the type of  the field wa_tab-field1 to  dmbtr

 

2. While printing put the format specification as &field1(8.2)&

  

Please post back with your comments

Regards,

Venkat

Former Member
0 Kudos

change the definition  field(10) type p decimals 2!  You've not specified the length that you want to handle....I always do field(15) type p decimals 2, unless I need to limit the amount of space, left to right, then I drop the (nn) to a lower number.

venkateswaran_k
Active Contributor
0 Kudos

Hi Abhishek

Try with

&field(8.2)&

Else  Workaround

Convert it into Char field and display it..

Please post back with your comments

Regards,

Venkat

che_eky
Active Contributor
0 Kudos

Abhishek how is the field defined in the smart form? Is it defined manually or with reference to a data dictionary object? Show me how the field is defined.

You should not need any special formatting unless you want the sign on the left.

raymond_giuseppi
Active Contributor
0 Kudos

i tried almost all the scripting techniques

Is the value negative or very big, could you give use the formats you tried with the field ?

(e.g. aformat like &field(Z)& or &field(5)&)

Regards,

Raymond

Former Member
0 Kudos

yes ofcourse.

i have tried:

&field(4ZCR)&

&field(S)&

&field(T)&

&field(ZC)&

&field(Z5)&

&field(I)&

none of the above worked.

Former Member
0 Kudos

Is the value 5.24 itself?

Also try with (3CZ).

raymond_giuseppi
Active Contributor
0 Kudos

Does you screenshot correspond to &field(Z5)&, in this case the display is correct for fields greater than 99.99, what was the actual value of the field, and is the field area left adjusted to column (even if its content is right adjusted) ?

Regards,

Raymond

Former Member
0 Kudos

the actual value of the field is 315.24.

earlier they were left justified but i tried to solve the problem by making their indent right justified.

problem is still at the same position.

Former Member
0 Kudos

How is the amount coming into the form?

Does it have the value before it is displayed?

Use Replace ALL OCCURRENCE OF '*'.

Thanks,

Shambu

Former Member
0 Kudos

no i its not like that,

when i am displaying the same data int ALV

everything works fine,.

former_member209818
Active Contributor
0 Kudos

is it like that there is no sufficent space in the column to write complete value?

Try printing the same value in some other field where sufficient space is available

Former Member
0 Kudos

there is huge space. i have already checked printing these fields in some another field.

moreover i also tried expanding space of these fields i.e. width of cell.

but nothing works.