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

require ASAP

Former Member
0 Likes
628

Hi Team,

i am asking very basic qns .

my requirement is :--> in smartform program lines , one field batch number (charg)

comes with leading zero 00000105 but i require to remove leading zero.

i am using concatenate in program lines so i don't use (Z) so give me alternative solution please.don't give me FM for this ...i know Alpha routines..

Example :-->

input is 000000105.

but i want output with 105.

Thanks.

Cheers.

Puneet.

Hi Team,

i am asking very basic qns .

my requirement is :--> in smartform program lines , one field batch number (charg)

comes with leading zero 00000105 but i require to remove leading zero.

i am using concatenate in program lines so i don't use (Z) so give me alternative solution please.don't give me FM for this ...i know Alpha routines..

Example :-->

input is 000000105.

but i want output with 105.

Thanks.

Cheers.

Puneet.

4 REPLIES 4
Read only

former_member386202
Active Contributor
0 Likes
604

Hi,

Declare one variable with type character

paa the value to that variable and use shift statement

shift lv_var left deleting leading '0'.

Regards,

Prashant

Read only

0 Likes
604

Hello

try PACK Statement.

Regards

Saket Sharma

Read only

Former Member
0 Likes
604

Thank you .

resolve my problem..

great job ...excellent.

cheers.

puneet

Read only

Former Member
0 Likes
604

Hi puneet,

Try PACK the variable.

Regards,

Sachin Bhatnagar