Application Development 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: 

field content is coming different in 'debugger' & 'screen i/p'

former_member270496
Participant
0 Kudos
88

hi experts,

here in my screen i am using directly the abap dictionary table's field 'zhrt068-gjahr'(fiscal year:which is having a 'conversion exit' & 'parameter id' assighned to it in dictionary level) & we desighned the programming logic in such a way that when you'll first come to screen ,this field will default to 'current year'(but we are not coding anything related to 'getting parameter id' to populate this field in the PAI).

here i am explaining a scenario to understand the case:when i am executing first time, then this particular field 'zhrt068-gjahr' by default is showing current year(2010),but when i am changing this content to some different value(say '2008'),then i am going again to debugger ,then also it displaying this field content as previous but not the changed one.(in this case showing '2010' not '2008').

can you please help me to find out what's the matter.

regards,

Rasmiraj Tripathy.

2 REPLIES 2

Former Member
0 Kudos
57

HI,

check in the PAI or PBO are you using and select single *of the Ztable.

Try to changes the ztable-GJAHR to another variable p_ztable-gjaht and try ot Initilize in PBO.

PBO.

IF p_ZTABLE-GJAHR is initial.

p_ztable-gjahr = '2008'.

ENDIF.

Prabhudas

MarcinPciak
Active Contributor
0 Kudos
57

Make sure you are setting default value in INITIALIZATION block, so it will set that value only once, when the selection screen is display for the very first time. After you do the change manually you don't need any coding, the screen value will reflect in the corresponding data object.

Also the parameter ID might cause a problem. Even though you are not using it yourself, there could be some data set in the memory for it. To ensure this is not happening, remove setting any default value and you shall see how the selection screen acts. If despite that the values is coming, then you know the parameter ID is the issue.

Regards

Marcin