Application Development 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: 

converion of NUMC to DEC

knitinkumarsethy
Explorer
0 Kudos

Hi everybody,

I need to convert T052-TAG1 (no of days from base line payment date) which is in NUMC to

DECIMAL or INTEGER so that i can use it to find the due date for customer credit.

Thank you.

1 ACCEPTED SOLUTION

former_member195698
Active Contributor
0 Kudos

just try the write statement.

write numcfield to integerfield

Try the move statement also. It convert the source to the target field.

http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm

http://help.sap.com/saphelp_webas620/helpdata/en/fc/eb3434358411d1829f0000e829fbfe/content.htm

4 REPLIES 4

former_member195698
Active Contributor
0 Kudos

just try the write statement.

write numcfield to integerfield

Try the move statement also. It convert the source to the target field.

http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm

http://help.sap.com/saphelp_webas620/helpdata/en/fc/eb3434358411d1829f0000e829fbfe/content.htm

former_member387317
Active Contributor
0 Kudos

Hi Nitin Kumar,

Check out this sample code... NUMC to Integer


l_sn type n length 10,
l_anz_int type i,
l_sn_int type i.
 
l_sn = '1231240000'.
l_anz_int = 1.
 
MOVE l_sn to l_sn_int.
l_sn_int = l_sn_int + l_anz_int.
MOVE l_sn_int TO l_sn.

Hope it will solve ur problem

<b>Reward points if useful..</b>

Thanks & Regards

ilesh 24x7

0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi Nitin,

Do like this

Data: Var type i.

Move t052-tag1 to var.

Write var.

Reward if this helps,

Satish