Skip to Content
Technical Articles

SAP CAR: Adding custom filter criteria to POS Workbench selection

SAP CAR provides a standar monitor in which you can see POS Transactions details (tx: /POSDW/MON0).

 

This standar monitor has a selection screen in which you can filter transactions based on some core fields, but in some cases you could need to add other extra criterias. At the POS Workbench monitor there are two block of tabstrips:

 

  • GENERAL SETTINGS 
  • POS TRANSACTIONS

 

 

Inside each tabstrip you can set different search criterias that will be used in the transactions selection over /POSDW/TLOGF.

 

 

As I mentioned before, in some situations you could need to add some extra criterias based for example in a custom field that the POS Transaction has or even other standar fields that not appear in the current selection screen. At this point you have two options:

  • Add custom tabstrips with extra fields at GENERAL SETTINGS level
  • Add custom tabstrips with extra fields at POS TRANSACTIONS level

 

For each option, SAP CAR IMG (POS Data Management –> POS Inbound Processing –> Customer-Specific Enhancements and BAdI Implementations –> Control User Interface –> Adjustments and Enhancements of Visual Elements) provides these two badis :

 

 

The first one is the /POSDW/SCREEN_SEL_WB badi, and implementing this badi you can add new tabstrip at GENERAL SETTINGS level. To achieve that, you have to follow this steps:

 

1. Copy the example implementation of the BAdI as a template.

2. Copy and implement program /POSDW/EXAMPLE_SCREEN_EXIT_WB. Follow the comments entered there.

3. In the BAdI implementation, enter screen 0100 of the template report.



Enhacenment example:





 

The second one is the /POSDW/POSTR_SEL_WB badi, and implementing this badi you can add new tabstrip at POS TRANSACTION level. To achieve that, you have to follow this steps:

 


1. Create a copy of the provided example implementation of this BADI using the /POSDW/CL_EXM_IM_POSTR_SCR_WB interface class as a template.

2. Copy and implement program /POSDW/EX_SCREEN_EXIT_WB_POSTR. Follow the comments entered there.

3. In the BAdI implementation, enter screen 0100 of the template report.

4. In the IMG ( Path: POS Data Management –> POS Inbound Processing –> General Settings –> Define General Settings ) mark the flag “Use Enhanced Transaction Search” Option. This action will enable the custom tabstrip that you added and two additional standar tabstrips ( “ATTRIBUTES” and “ITEM”)

Enhacenment example:

Finally, we have just enhanced selection screen but it is necesary to enhance the standard selection over the /POSDW/TLOGF table to add custom filter criterias. For that you will have to implement /POSDW/WB_SEARCH_HANDLER badi ( IMG path: POS Data Management –> POS Inbound Processing –> Customer-Specific Enhancements and BAdI Implementations –> Control User Interface –> Adjustments and Enhancements of Visual Elements  ) and do the query as you need.

 

Be the first to leave a comment
You must be Logged on to comment or reply to a post.