on 07-05-2005 8:10 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.