‎2007 Jun 04 7:43 AM
Hi Experts ,
I have a problem where in the Value that comes in to the SAP Script is 1
and the value gets printed as 1.000
I need to write a command to avoid this .Can anybody let me know
whether there is any statement that can be written to perform the needful.
Regards,
Kevin Nick.
‎2007 Jun 04 7:45 AM
<b>Hi
Use User Profile settings.
Otherwise SET COUNTRY with appropriate country parameters.</b>
Regards,
Sree
‎2007 Jun 04 8:04 AM
Hi,
I dn't know if there is a command to avoid this in sapscript but if you can't find one
you can always write e perform for that in sapscript like :
/: DEFINE &New_variable&
/: PERFORM F_truncate IN PROGRAM <subroutine prog name>
/:USING &EXISTING_VARIABLE&
/:CHANGING &New_variable&
/:ENDPERFORM
Then create subroutine program in se38 and you have to write the code.
FORM F_truncate tables int_cond structure itcsy
outt_cond structure itcsy.
data : old_value type <b>type_of_var</b>,
new_value type i.
Read int_cond table index 1.
old_value = int_cond-value.
move old_value to new_value.
Read outt_cond table index 1.
outt_cond-value = new_value.
Modify outt_cond index 1.
ENDFORM.
then display the new variable instead of the old one
Regards,
Sooness.
‎2007 Jun 04 8:06 AM
hi kevin
refer to the links below
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25a3df90-0201-0010-10b6-9712397c22fd(<b>useful link</b>)
<b>SAPScripts</b>
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
<b>SAP SCRIPT FIELDS</b>
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
<b>scripts easy material</b>
http://www.allsaplinks.com/sap_script_made_easy.html
regards
swati
<b>plz reward points if helpful</b>
Message was edited by:
Swati Garg