cancel
Showing results for 
Search instead for 
Did you mean: 

Scanning Action in Agentry/Syclo

former_member199619
Participant
0 Kudos

Hi,

We are using SAP IM 3.2.

We have a scanning functionality in PI Items screen (Show_PhysicalInventoryDocumentItems_PPC). When user scans a QR label having material number, comparison happens with materials in Items list and if there is any match, user navigates to MaterialCount_Detail_PPC screen of the matched material.

If there is no match, a  message is coming like below

Is it possible to modify this message as it is not meaningful to user ?

--Shyam

Accepted Solutions (0)

Answers (2)

Answers (2)

mark_pe
Active Contributor
0 Kudos

Shyam,

Scanning Action in Agentry design is normally tied to a screen (with a field type Barcode scan) that is tied to an action.

From your ShowPhysicalInventoryDocumentItems_PPC List Screen picture, you have 2 items in there called:

  1. Single Match Action
  2. No Match Action

  • Single Match is the action that will fire if there is a match on the scanned value
  • No Match Action is the action that will fire if there is no match or your barcode scan did not scan a value that makes sense from your list screen (ShowPhysicalInventoryDocumentItems_PPC)

Action is a term used in Agentry to tie what you want to do to a button. Anytime you click on a button, there are corresponding action to it.  In any given action, you could have 1 or more steps.

Your No Match Action signify that _QRCodeMaterialCountParentAction is the one causing it.

This means that there has to be steps under that _QR....Action.

If you look at that Action Step, there are a few step (Transaction or SubAction).

Each Transaction or SubAction (with Transaction) can have a "Validation Rule" specified in it. This validation rule will have logic built by the developer on what to do or what "Error Message" to show if something is not done correctly by the user.

Your main question above was:

Is it possible to modify this message as it is not meaningful to user ?

The suggestion or answer to this is to find the Transaction (with Validation rule) under your Action Step (_QRCodeMaterialCountParentAction) and modify the message if an error occurs or a warning.

Check on ZTRSCN_EditMaterial or the Transactions of _QRCodeMaterialCount to see if you have Validation rule that tracks for both TransactionID or ScreenID cannot be 0. It should be obvious base on the name of the validation that it is tracking it. You can modify the message to something that the user needs.

Hopefully this solution works for you,

Mark Pe

SAP Senior Support Engineer (Mobility)

former_member199619
Participant
0 Kudos

Hi Mark,

Thanks for your reply.

As per my knowledge, "Single Match Action" gets trigger when we scan linear barcode labels. Here we are scanning QR (complex) barcode labels. We have added logic to navigate to further screen in "No Match Action" and we have added a execution rule inside it to navigate to further screen when there is any match found.

How we can use "Single Match Action" for complex barcode labels.

Shyam

mark_pe
Active Contributor
0 Kudos

Shyam,

Hi. What happens when you scan the QR code? What shows up on your screen or field? Does the number have a complex concatenation of alpha numeric characters that came from different components (that sometimes does not belong in the same Agentry table or sometimes have leading zeros)?

As far as I know other companies do this in a dual process mode.

First on scan, it will show the encoding in  some alpha numeric codes (QR code specific).

Most likely this is a No Match Action:

The scan action will fire an ActiveX (Could be from the No Match Action - because it will not match anything on your screen anyway - run the external ActiveX program or other program) that will do the mapping and processing or filtering (or stripping of values) then submit it back to the Agentry client for processing (with the correct values that maps to the correct values on the table) as part of the No Match Action Steps.

OR

Depending on the complication of the QR code when it is scanned use some navigation screen to display the scanned results in another screen:

1) In the new screen, have multiple fields with update rules on splitting up the values of the QR code to different fields may be used. All in the No Match Action step. This is not a trivial task. This depends on your mobile device and logic.  

I will defer this question to the community. Not sure if anybody in the community (or SAP consulting) can share their experience as the QR code could be quite complex depending on your encoding and where the values come from and how it maps to your business rules and the device being used by the customer.

Regards,

Mark Pe

SAP Senior Support Engineer (Mobility)

Former Member
0 Kudos

Please look at the action you have on the no action find value.  It looks like there is a transaction action step that had the transaction removed.

Stephen

former_member199619
Participant
0 Kudos

Hi Stephen,

Thanks for your reply.

Below is the action(action steps) is getting called when there is no matching.

Below is the ZTRSCN_EditMaterial Transaction details:

One question Stephen, from where we are getting the message "Both Transaction ID and Screen ID" cannot be 0.

--Shyam

Former Member
0 Kudos

Why are you trying to edit a material if there was no match found on the scan?

The Target object is pointing to the selected object, but if the scan didn't a object then there wouldn't be anything selected.


Stephen

former_member199619
Participant
0 Kudos

Hi Stephen,

Is it possible to display a message like "no matching found" when there in no matching in No Match Action.

--Shyam

Former Member
0 Kudos

If I remember right, if you have no action listed it will popup saying no matches found.  Else, you can create an Action with a Message step that will pop-up saying No Match Found.

former_member199619
Participant
0 Kudos

Hi Stephen,

My scanning action on PI Items screen is like below:

When I change No Match Action to "No Action" and do the scanning, I am getting no match action message even if the material is there in Item screen (Show_PhysicalInventoryDocumentItems_PPC).

Regards,

Shyam

Former Member
0 Kudos

On the Columns Tab did you go to the Clumn Definition and select "Scanner Filter" for the columns you wanted to be able to be scanned?