cancel
Showing results for 
Search instead for 
Did you mean: 

Display/Process Initial values

as22
Employee
Employee
0 Kudos

Hi,

I have the following delemma: with data binding, BSP input fields that are blank on the screen will ultimately be assigned internally ABAP initial values. For instance, take fields of type time. The conversion from internal format to string gives 00:00:00 for initial values. BUT, 00:00:00 means also midnight. And in the same way, a blank value in a time field is interpreted as initial (00:00:00). So, if an application is trying to retrieve some objects and is indifferent to the time, it will not be possible to know whether the user didn't enter anything or whether he enterred midnight.

The same problem exists for some other data types...

Any idea how to solve this?

Cheers,

Armand

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Armand Sezikeye, was the name if a man who studied in Riga a long time ago, are you the same person? I would like to contact him, we have a common friend.

as22
Employee
Employee
0 Kudos

Hi Stephanie,

Could you, please, use private channels like my private e-mail (in my business card) for private inquiries since this is a public, professional oriented forum with very strict rules.

Thanks for your understanding.

Armand

Former Member
0 Kudos

and sorry...I don't have your private email.

Forget about it.

But if you want to reply please do it to venus1916@yahoo.co.uk

as22
Employee
Employee
0 Kudos

Hi,

Thank you very much for your quick answer. However, my problem resides in the fact that I am developing a framework and I ultimately have to pass to the applications that use this framework a structure, over which I have no control. The interface parameters of method QUERY are like this:

 
...
IV_SCREEN_STRUCTURE_NAME Importing Type CRMT_BSP_SCRSTRUCNAME
<b>IS_SCREEN_STRUCTURE</b> Importing Type ANY
...

As you can see, my framework doesn't have control over the type/content of parameter <i>IS_SCREEN_STRUCTURE</i>. And the application that implement this method cannot know if a time component inside this parameter has been assigned a value (midnight) or if that value is an initial value resulting from the fact that the framework used the technique you suggested to avoid assigning any value (!?!?:-)...

Cheers,

Armand

Former Member
0 Kudos

Hi,

You can solved this by using 2 variables.

assign value from user to lv_user (type string)

then assign lv_user to lv_time (type time)

so, all you have todo is checking lv_user.


if lv_user is not initial.
   process lv_time
   ...
   ...
endif.

respect,

.adyt.