on 02-08-2016 4:30 PM
Hello,
I am new to Adobe forms.
I have a requirement to display preceding zeros.
My field is simple VBELN (Sales Order) field. When I bind the same in adobe forms, it drops the preceding zeros.
I have checked at the very end of code initialization in interface. Till the very last line, the preceding zeros exist for the field which is bound.
I tried giving fixed length, it did not work.
I tried treating the field as NUMC, it did not work.
I tried "Allow Zeros" part in pattern, it did not work.
I have also searched the forum. There are many threads about not showing it, but none about showing the preceding zeros.
Please do the following simple thing and let me know:
data: lv_vbeln type char10.
lv_vbeln = '0000000001'.
Bind this field in the adobe form.
-Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all.
As suggested by Chandra, I made a custom field without a routine and it is fixed.
So, what I wonder is -
Is there any option in Adobe forms to turn on/off conversion routine for a particular field?
What I did was making a change to a custom field, whereas there are other areas where I have directly referred to database table/structures where conversion routine is used by default.
Will I have to copy the standard tables to custom space and remove the conversion routine wherever required?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure of your requirement, the data-element VBELN has already ALPHA conversion, so in SAP leading zeroes are removed if only numeric characters? (At least "detach" the field from its SAP ddic definition if you want leading zeroes to be displayed.)
However, the problem may be in the Adobe form, so you may better post in one of its space as SAP Interactive Forms by Adobe (*). How did you define the field in the form: Alphabetic/Numeric with or without pattern..
Regards,
Raymond
(*) And look for documents as Adobe forms Most common requirements
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
the solution is done by Chandra.
To understand why, the VBELN is based on Domain VBELN
The VBELN domain has Conversion Routine
CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT
This *ALPHA_OUTPUT routine will apply automatically when displaying the Sales Order and the leading zeros will be remove.
Use Chandra solution and it will work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.