cancel
Showing results for 
Search instead for 
Did you mean: 

HELP! date pass to script not display in date format

Former Member
0 Kudos

hi all,

i want to include final approver date into Puchase Order, and i call up a form, getting the date from CDHDR. however, when i return the date back to the script, the date display in PO are out of date format.

original : 16.07.2007

but it shows as : 20070716

how am i going to change it to the actual proper format in script?

very thanks for the help first.

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

Use this

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

  • &DATE&

Regards,

SaiRam

Former Member
0 Kudos

hi,

but i have other date ( such as create date) which are showing correctly. the create date gets directly from table.

i tried to use the SET DATE, but there is no charge on it. my actual code is as below:

/:	 	PERFORM GET_TEST IN PROGRAM Z_TESTING6
/:	 	USING &EKKO-EBELN&
/:	 	CHANGING &UDATE&
/:	 	ENDPERFORM
PO	 	 Release Date,,&UDATE&

can only one help me. thanks

former_member196280
Active Contributor
0 Kudos

Alternatively, Change the logic like this before returning UDATE to script.

in Z_TESTING6

Ex:

DATE1(10).

DATE = '20070925'.

DATE10(2) = DATE6(2).

DATE1+2(1) = '/'.

DATE13(2) = DATE4(2).

DATE1+5(1) = '/'.

DATE16(4) = DATE0(4).

Pass this value back to your script...

Close the thread if your question is answered.

Regards,

SaiRam

Answers (1)

Answers (1)

Former Member
0 Kudos

u need to change the settings of u r sap system............before changing that make sure that it wont affect other objects...........

in menu bar goto...system...>userprofile....>owndata...>inthe default tab u can change the date format

reward points if helpful..........