Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Agentry BarcodeScan lastscanvalue


how can i set the lastscanvalue to nil or a blank string.

If i go to a detailscreen where i have a scan filed and want to use the lastscanvalue in the update rule i get the lastscanvalue from a scan action before. But i want only use the lastscanvalue from the scanner if i am in the detail screen.

Short use case: Show mainscreen and then i scan a material with number 123. So the lastscanvalue is 123. Now i navigate initial in my detail screen and in the update rule it use the 123. But i expect that the lastscanvalue is nil or a blank. How can i do that.



Former Member
Former Member replied

Dear Jason,

thanx for your answer. Your hint was helpful to me. My solution is this: before I enter my detail screen with the scanfield i write the lastscanvalue in a new main object property called temp_lastscanvalue. In the update rule i check if the  temp_lastscanvalue is the same as the actual lastscanvalu. So I know if the lastscanvalue was make for my detail screen or is it from the screens befor. So i can capture the wrong value.

Thanx all,


0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question