RE: [sap-abap] Appending zeros to use in READ_TEXT
Posted by
Admin at
|
Share this post:
|
0 Comments
| | Posted by horacio zapettini on Aug 21 at 2:56 PM | |
Ravi
SAP 's been using these FM for a long time ( more than those 9 years and it works fine for them. (they use it in material numbers...and that's the core of MM). If I had different values, like you'r saying, I'd check what I'm doing wrong...
________________________________
De: Niceguy7376 via sap-abap [mailto:sap-abap@Groups.ITtoolbox.com]
Enviado el: Viernes, 21 de Agosto de 2009 03:56 p.m.
Para: Horacio Zapettini
Asunto: RE: [sap-abap] Appending zeros to use in READ_TEXT
[http://userimages.toolbox.com/user/b_1585645.jpg]
Posted by Niceguy7376 (SAP )
on Aug 21 at 2:44 PM
[http://images.ittoolbox.com/vt/icons/vote.png]Mark as helpful<http://it.toolbox.com/api/ContentVote/2946588/1/1/>
That is what I learnt.
We get different results if we test this FM in SE37 against testing in a program by giving an output value.
Ravi
From: sap-abap@Groups.ITtoolbox.com
To: peddu@hotmail.com
Date: Fri, 21 Aug 2009 15:50:18 -0300
Subject: RE: [sap-abap] Appending zeros to use in READ_TEXT
Posted by horacio zapettini
on Aug 21 at 2:40 PM
Mark as helpful
The FM works fine for sure.. It is used to convert material numbers (matnr).
IMO, the solution proposed by Ellie should work fine too.
BTW, whenever you test conversion_exit_... you can observe a long stream of 0's . That's because the FM is able to convert very large strings. If you move to the right in the result parameter, you'll get your value. (i.e.: 0000000000000000000000000000000000000000000000000453 when you apply the fm to 453. the leading zeroes are truncated deppending on the structure of the output variable - so if you specify a char(7) you'll get 0000453 in that variable).
HTH
Horacio
________________________________
De: Niceguy7376 via sap-abap [mailto:sap-abap@Groups.ITtoolbox.com]
Enviado el: Viernes, 21 de Agosto de 2009 03:35 p.m.
Para: Horacio Zapettini
Asunto: RE: [sap-abap] Appending zeros to use in READ_TEXT
[http://userimages.toolbox.com/user/b_1585645.jpg]
Posted by Niceguy7376 (SAP )
on Aug 21 at 2:25 PM
[http://images.ittoolbox.com/vt/icons/vote.png]Mark as helpful<http://it.toolbox.com/api/ContentVote/2946553/1/1/>
Horacio,
I got your 3 options and Neal's option. Initially I thought that conversion_exit should work. But i tried it independently in SE37 and it did not.
After seeing your first option and other options of yours and Neal's option I decided to test it in the program (because you and Neal mentioned the same FM that I mentioned) by giving field names with values in it.
I tested it now and it worked. I did not want to do the append zeros or move from one field to another, if FM works fine.
Now this issue is resolved.
Ravi
From: sap-abap@Groups.ITtoolbox.com
To: peddu@hotmail.com
Date: Fri, 21 Aug 2009 15:27:30 -0300
Subject: RE: [sap-abap] Appending zeros to use in READ_TEXT
Posted by horacio zapettini
on Aug 21 at 2:17 PM
Mark as helpful
Ravi
I gave you three different solutions that would work. Please be kind and at least evaluate them
________________________________
De: Niceguy7376 via sap-abap [mailto:sap-abap@Groups.ITtoolbox.com]
Enviado el: Viernes, 21 de Agosto de 2009 03:26 p.m.
Para: Horacio Zapettini
Asunto: RE: [sap-abap] Appending zeros to use in READ_TEXT
[http://userimages.toolbox.com/user/b_1585645.jpg]
Posted by Niceguy7376 (SAP )
on Aug 21 at 2:14 PM
[http://images.ittoolbox.com/vt/icons/vote.png]Mark as helpful<http://it.toolbox.com/api/ContentVote/2946537/1/1/>
I am trying the CONVERSION_EXIT_ALPHA_INPUT and OUTPUT in SE37 individually by giving values.
let me try by passing on a defined field that has a value.
Ravi K Peddu
847-858-3125(Cell)
To: peddu@hotmail.com
Subject: Re: [sap-abap] Appending zeros to use in READ_TEXT
Date: Fri, 21 Aug 2009 14:15:17 -0400
From: sap-abap@Groups.ITtoolbox.com
Posted by R. Neal Wilhite (Senior Project Manager)
on Aug 21 at 2:05 PM
Mark as helpful
I used a where used and came up with the following:
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUTÂ = H_RETURN_TAB-FIELDVAL
IMPORTING
OUTPUT = G_BVBPAKOM_WA-PARNR.
MOVE G_BVBPAKOM_WA-PARNR TO G_BVBPAKOM_WA-KUNNR.
IE the returned to a numc 10
and then copied it to a char 10.
Have you tried that?
Neal
-----Original Message-----
From: Niceguy7376 via sap-abap <sap-abap@Groups.ITtoolbox.com>
To: R. Neal Wilhite <wilhiten@aol.com>
Sent: Fri, Aug 21, 2009 1:57 pm
Subject: [sap-abap] Appending zeros to use in READ_TEXT
Posted by Niceguy7376 (SAP )
on Aug 21 at 1:47 PM
Hi,
I need to read texts from a quotation. I have quotation number of 7 digits and line item of 4 digits. Are there any FMs that I can use to pad them with the corresponding zeros so that i can use them in the READ_TEXT FM?
I thought that the CONVERSION_EXIT_ALPHA_INPUT would work but it is coming up with lot more zeroes than the designated length 0f 10 for VBELN.
Ravi
_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009=
__.____._ SAP 's been using these FM for a long time ( more than those 9 years and it works fine for them. (they use it in material numbers...and that's the core of MM). If I had different values, like you'r saying, I'd check what I'm doing wrong...
________________________________
De: Niceguy7376 via sap-abap [mailto:sap-abap@Groups.ITtoolbox.com]
Enviado el: Viernes, 21 de Agosto de 2009 03:56 p.m.
Para: Horacio Zapettini
Asunto: RE: [sap-abap] Appending zeros to use in READ_TEXT
[http://userimages.toolbox.com/user/b_1585645.jpg]
Posted by Niceguy7376 (SAP )
on Aug 21 at 2:44 PM
[http://images.ittoolbox.com/vt/icons/vote.png]Mark as helpful<http://it.toolbox.com/api/ContentVote/2946588/1/1/>
That is what I learnt.
We get different results if we test this FM in SE37 against testing in a program by giving an output value.
Ravi
From: sap-abap@Groups.ITtoolbox.com
To: peddu@hotmail.com
Date: Fri, 21 Aug 2009 15:50:18 -0300
Subject: RE: [sap-abap] Appending zeros to use in READ_TEXT
Posted by horacio zapettini
on Aug 21 at 2:40 PM
Mark as helpful
The FM works fine for sure.. It is used to convert material numbers (matnr).
IMO, the solution proposed by Ellie should work fine too.
BTW, whenever you test conversion_exit_... you can observe a long stream of 0's . That's because the FM is able to convert very large strings. If you move to the right in the result parameter, you'll get your value. (i.e.: 0000000000000000000000000000000000000000000000000453 when you apply the fm to 453. the leading zeroes are truncated deppending on the structure of the output variable - so if you specify a char(7) you'll get 0000453 in that variable).
HTH
Horacio
________________________________
De: Niceguy7376 via sap-abap [mailto:sap-abap@Groups.ITtoolbox.com]
Enviado el: Viernes, 21 de Agosto de 2009 03:35 p.m.
Para: Horacio Zapettini
Asunto: RE: [sap-abap] Appending zeros to use in READ_TEXT
[http://userimages.toolbox.com/user/b_1585645.jpg]
Posted by Niceguy7376 (SAP )
on Aug 21 at 2:25 PM
[http://images.ittoolbox.com/vt/icons/vote.png]Mark as helpful<http://it.toolbox.com/api/ContentVote/2946553/1/1/>
Horacio,
I got your 3 options and Neal's option. Initially I thought that conversion_exit should work. But i tried it independently in SE37 and it did not.
After seeing your first option and other options of yours and Neal's option I decided to test it in the program (because you and Neal mentioned the same FM that I mentioned) by giving field names with values in it.
I tested it now and it worked. I did not want to do the append zeros or move from one field to another, if FM works fine.
Now this issue is resolved.
Ravi
From: sap-abap@Groups.ITtoolbox.com
To: peddu@hotmail.com
Date: Fri, 21 Aug 2009 15:27:30 -0300
Subject: RE: [sap-abap] Appending zeros to use in READ_TEXT
Posted by horacio zapettini
on Aug 21 at 2:17 PM
Mark as helpful
Ravi
I gave you three different solutions that would work. Please be kind and at least evaluate them
________________________________
De: Niceguy7376 via sap-abap [mailto:sap-abap@Groups.ITtoolbox.com]
Enviado el: Viernes, 21 de Agosto de 2009 03:26 p.m.
Para: Horacio Zapettini
Asunto: RE: [sap-abap] Appending zeros to use in READ_TEXT
[http://userimages.toolbox.com/user/b_1585645.jpg]
Posted by Niceguy7376 (SAP )
on Aug 21 at 2:14 PM
[http://images.ittoolbox.com/vt/icons/vote.png]Mark as helpful<http://it.toolbox.com/api/ContentVote/2946537/1/1/>
I am trying the CONVERSION_EXIT_ALPHA_INPUT and OUTPUT in SE37 individually by giving values.
let me try by passing on a defined field that has a value.
Ravi K Peddu
847-858-3125(Cell)
To: peddu@hotmail.com
Subject: Re: [sap-abap] Appending zeros to use in READ_TEXT
Date: Fri, 21 Aug 2009 14:15:17 -0400
From: sap-abap@Groups.ITtoolbox.com
Posted by R. Neal Wilhite (Senior Project Manager)
on Aug 21 at 2:05 PM
Mark as helpful
I used a where used and came up with the following:
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUTÂ = H_RETURN_TAB-FIELDVAL
IMPORTING
OUTPUT = G_BVBPAKOM_WA-PARNR.
MOVE G_BVBPAKOM_WA-PARNR TO G_BVBPAKOM_WA-KUNNR.
IE the returned to a numc 10
and then copied it to a char 10.
Have you tried that?
Neal
-----Original Message-----
From: Niceguy7376 via sap-abap <sap-abap@Groups.ITtoolbox.com>
To: R. Neal Wilhite <wilhiten@aol.com>
Sent: Fri, Aug 21, 2009 1:57 pm
Subject: [sap-abap] Appending zeros to use in READ_TEXT
Posted by Niceguy7376 (SAP )
on Aug 21 at 1:47 PM
Hi,
I need to read texts from a quotation. I have quotation number of 7 digits and line item of 4 digits. Are there any FMs that I can use to pad them with the corresponding zeros so that i can use them in the READ_TEXT FM?
I thought that the CONVERSION_EXIT_ALPHA_INPUT would work but it is coming up with lot more zeroes than the designated length 0f 10 for VBELN.
Ravi
_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009=
Copyright © 2009 CEB Toolbox, Inc. and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Related Content
In the Spotlight
White Papers
In the Spotlight
SAP Enterprise Software: flexible, best-of-breed business apps View Vendor Profile
View this thread online
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion