Application Development and Automation 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: 
Read only

regarding Default value

Former Member
0 Likes
398

hai

I have one parameter P_XBLNR.

where i want to set DEFAULT value as Cancatenation of both SY-datum and questionmark(?).

how to do this.

Can i use Concatenation command in the data declaration part.

it does not seem to be working.

can you give me example

ambichan.

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
373

Hi,

-> event initialization

initialization.

concatenate sy-datum '?' into p_xblnr.

regards Andreas

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
374

Hi,

-> event initialization

initialization.

concatenate sy-datum '?' into p_xblnr.

regards Andreas

Read only

Former Member
0 Likes
373

Does the date need to be in the users date format? The INITIALIZATION event is the correct place to do this. I assume that P_XBLNR is a character field of length 11. To get the date in the users date format, do the following:

INITIALIZATION.

  WRITE SY-DATUM TO P_XBLNR MM/DD/YYYY.
  P_XBLNR+10(1) = '?'.

Even though the WRITE says MM/DD/YYYY, it will still produce the date in the users format.