Symptom
A report is displaying an ALV list with batch related fields.
You double-click on a cell to navigate to transaction MSC3N.
SET PARAMETER ID 'MAT' FIELD fu_matnr.
SET PARAMETER ID 'CHA' FIELD fu_charg.
SET PARAMETER ID 'WRK' FIELD fu_werks.
SET PARAMETER ID 'LAG' FIELD l_empty_lgort.
CALL TRANSACTION 'MSC3N' WITH AUTHORITY-CHECK
AND SKIP FIRST SCREEN.
Default Tab displayed is the first one.
You want to arrive to a specific tab, not the default one (<=> 1st tab).
For example the "Classification" one.
Solution
Add ABAP instruction before CALL TRANSACTION
SET PARAMETER ID 'LAST_TAB_BATCH' FIELD '2300'."(+)
2300 is the screen number of tab "Classification" for example.
Screen possible values can be found there (include LCHRGF04 ;
FORM d2000_ok_code
)
CASE dynp_body.
WHEN 2200. ok_code = 'SNST' ."Donnée de base 2
WHEN 2300. ok_code = 'CLAS' ."Classification
WHEN 2400. ok_code = 'MATK' ."Donnée article
WHEN 2500. ok_code = 'CHANGE'."Modif.
WHEN 2600. ok_code = 'DOCU'.