11-12-2007 10:47 AM
hi
i have one field i.e VBRP-KWMENG this displays the quantity ordered, my issue is it displays like 1,000 as ordered, where as internally it has only like 1 (i.e order), so i want to display like 1, no need to display like 1,000. so i have to surpress that.
pls resolve as early as possible
thanks,
Pallavi.M
11-12-2007 11:05 AM
Hi pallavi,
quantity fields in ABAP are connected to a unit field which will determine the output format.
If the output is done as ALV then you should establish the link setting field QFIELDNAME in field LVC_T_FCAT catalog or qfieldname and qtabname in slis_t_fieldcat_alv typed field catalog.
If you still use WRITE, use addition UNIT.
Regards,
Clemens
11-12-2007 11:13 AM
hi
this is smartform issue,
i have already standard driver program, i developed only smartform and i linked with this driver program, so no need to write or modify the program
i am getting the data through that VBRK-KWMENG
i.e drag and drop through the field list, in that it displays like that,
so I '(Z)' used this to surpress the zeros,
even though its not working
let me the know the solution
thanks
pallavi
11-12-2007 11:15 AM
11-12-2007 11:16 AM
if im gettin u right then u mean that u have 1 order which is havin 1000 quantities,right,and u want the number of orders and not the quantity involved
11-12-2007 11:19 AM
hi
its exactly right, i want to display only order, not quantities
thanks
pallavi
11-12-2007 11:11 AM
Hi ,
Use like this ,
&VBRP-KWMENG(T)&
it will remove that thousand indicator or
Regards
Meikandan
11-12-2007 11:17 AM
hi
(T) its not working,
let me know is there any options,
thanks for immediate reply
pallavi
11-12-2007 11:21 AM
these are the available o/p options
check these
&field+<offset>&
Skips <offset> places of the field value (character fields only). If the offset is greater than the length of the value, nothing is displayed.
&field(<length>)&
Sets the output length to <length>.
&field(*)&
If the field is defined by a Data Dictionary type, Smart Forms set the output length to the value specified there.
&field(S)&
Suppresses the sign
&field(<)&
Displays the sign to the left of the number
&field(.<nat.number>)&
Limits output of decimal places to <nat.number>
&field(E<nat.number>)&
Displays the field value with the fixed exponent <nat.number>. The mantissa is adapted to this exponent by shifting the decimal character and inserting zeros.
&field(T)&
Suppresses thousand indicators when displaying fields of types DEC , CURR , INT , and QUAN .
&field(Z)&
Suppresses leading zeros of numbers
&field(I)&
Suppresses display of initial values
&field(K)&
Deactivates a conversion routine specified in the Data Dictionary.
&field(R)&
Right-justified display. Use this option only when specifying an output length as well.
&field(F<filler>)&
Replaces left-justified blanks in the value by the fill character <filler>.
&field(L)&
Converts and a date field to a local date and displays it. The date is then formatted using edit mask JPDAT .
Since this representation uses Japanese characters, use it in the Japanese version of the SAP System only.
&field(C)&
The system takes the field value as a sequence of words separated by blanks. Option C shifts these words to the left and leaves only one blank inbetween as separator. Any leading blanks are suppressed. This effect corresponds to that of the ABAP statement CONDENSE.