Skip to Content
0
Former Member
Jun 13, 2016 at 10:25 PM

Set sy-datum to standard parameter

516 Views

Hi Guru's,

I have a doubt, is it possible to set the system date (sy-datum) to an standard parameter with a push button (after i press it)

i already added a function code to my push button and pass the value (sy-datum) via screen-exit 301 in xm06 FM

but the value is not appearing in the dynpro field.
here's some sample code from ZXM06I01 (XM06 FM):

*&---------------------------------------------------------------------*

*& Module USER_COMMAND_0301 INPUT

*&---------------------------------------------------------------------*

* text

*----------------------------------------------------------------------*

MODULE USER_COMMAND_0301 INPUT.

CASE gv_ucomm.

WHEN 'ZDAT'.

data variable type string.

CONCATENATE sy-datum+6(2) '.' sy-datum+4(2) '.' sy-datum(4)

INTO variable.

DATA: FLD(30) VALUE '(SAPMM06E)EKKO-BWBDT'.

FIELD-SYMBOLS <F1> TYPE ANY.

ASSIGN FLD TO <F1>.

<F1> = variable.

*message 'NO funca esta wea' type 'I' DISPLAY LIKE 'A'.

ENDCASE.

ENDMODULE. " USER_COMMAND_0301 INPUT

the field on the dympro is not filling, it's a standart ME41 header data the field is (SAPMM06E)EKKO-BWBDT