Quantcast
Channel: SCN : All Content - Scripting Languages
Viewing all articles
Browse latest Browse all 522

How to define filter and layout for MB56 result

$
0
0


Hi Gurus,

 

I just started to work with scripts, so please do not judge me.

Could you please help me to define filter for SAP T_code MB56 result in order to filter result for only specific materials, which are in  "component_list.txt" on C:drive. Also is there way to describe layout for MB56 result?

 

There is code, but it works in one SAP instance, and doesn't work in another.

 

session.findById("wnd[0]/usr/cntlCONTAINER/shellcont/shell").setCurrentCell -1,"MATNR"
session.findById("wnd[0]/usr/cntlCONTAINER/shellcont/shell").selectColumn "MATNR"
session.findById("wnd[0]/usr/cntlCONTAINER/shellcont/shell").pressToolbarContextButton "&MB_FILTER"
session.findById("wnd[0]/usr/cntlCONTAINER/shellcont/shell").selectContextMenuItem "&FILTER"
session.findById("wnd[1]/usr/ssub%_SUBSCREEN_FREESEL:SAPLSSEL:1105/btn%_%%DYN001_%_APP_%-VALU_PUSH").PRESS
session.findById("wnd[2]/tbar[0]/btn[23]").press


session.findById("wnd[3]/usr/ctxtDY_PATH").text = "C:/"
session.findById("wnd[3]/usr/ctxtDY_FILENAME").text = "component_LIST.txt"   --------------> sap stops here and wait for me to choose file name
session.findById("wnd[3]/usr/ctxtDY_FILENAME").caretPosition = 18
session.findById("wnd[3]/tbar[0]/btn[0]").press
session.findById("wnd[2]/tbar[0]/btn[8]").press
session.findById("wnd[1]/tbar[0]/btn[0]").press

 

THANK YOU!!!

Elena


Viewing all articles
Browse latest Browse all 522

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>