cancel
Showing results for 
Search instead for 
Did you mean: 

one doubt in script

Former Member
0 Kudos

hi guru,

in my script

form GET_VALID_CONDTYPES tables in_tab structure itcsy

ex_tab structure itcsy.

data : lc_datbi(10),

lc_datbi_ext(10),

lc_date(10).

loop at in_tab.

case in_tab-name.

when 'DATBI'.

move in_tab-value to lc_datbi.

in form i wrote &EKOMD-DATBI&(VALUE IS FETCHING FROM ekomd STRUCRE)

the probleam is in_tab-value = 29.06.2009 (develovment system)

in_tab-value = 2009.06.29 (quality system)

why the deviation is coming in different clients.my user setting is same for bothe the clients.

please let me know

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

In Script all u do is after u get the value is use

/: Perform ........

/: Endperform

/: SET DATE MASK = 'DD.MM.YYYY'

P1 &lc_datbi& WHERE P1 is the Paragraph format

For more information Check the below link

http://it.toolbox.com/wiki/index.php/Sap_script#6.6.09Formatting_Date_Fields:_SET_DATE_MASK

surya

Edited by: suryareddy on Aug 11, 2009 10:54 AM

Former Member
0 Kudos

Hi

Check if before calling the routine there's a command like SET COUNTRY, if it's so check the table T005X

Max

Former Member
0 Kudos

Hi,

Instead of MOVE statment .... use WRITE ..........WITH EDIT MASK.

Regards

Milan

Former Member
0 Kudos

hi,

i tried with write...same results i got.

can u explain about edit mask syntax more briefly..

please help me

Former Member
0 Kudos

Hi

The problem is not MOVE statament or EDIT MASK option, the problem is the different behavior between the DEV and QAS system.

The FORM called by a sapscript returns a value in output format, so it seems there's a different setting in your two systems

The formatting options used by sapscript should depends on user setting, but it can use a different one by the command SET COUNTRY, in this case the setting is from table t005x.

Max