mercredi 17 janvier 2024

SAP - ABAP - STMS - change order description

Symptom

You have released a transport order. You have transported from DEV to QUAL.

But you want to change the transport order description.


Solution

Descriptions  are saved in at least the following tables : 

- E07T

- TMSBUFTXT


For the update of table E07T, you can use program RDDIT076 (in DEV and QUAL).

For table TMSBUFTXT,no program has been found (only in DEV).

MSC3N - CALL transaction - choose Default tab (navigating from ALV list)

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'.