Supply Chain Management Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
Rohit_Mahajan
Product and Topic Expert
Product and Topic Expert
2,229

Dear All,

Indian customers where we have implemented SAP TM has requested a feature for HSN/SAC code for GST compliance in TM Reference tab of MIRO, HSN code is mandatory as per India’s GST.

 To enable this field and autofill while MIRO, we have done following Steps, sharing for your reference with all code and Configuration changes.  

  1. Open transaction SE51
  2. Give Program SAPLMR1M and Screen 6330

 Rohit_Mahajan_0-1746177642450.png

  1. Click on Change and Open Layout
  2. Click DICT/Program field
  3. Select Table DRSEG and Search

Rohit_Mahajan_1-1746177642455.png 

  1. Select HSN_SAC field

Rohit_Mahajan_2-1746177642456.png 

  1. Save the changes and Exit. You will see the field in MIRO TM tab after these changes. 

Next requirement is to fill this field based on Inbound and Outbound Services.

  1. We have value of TAC Tariff code value in service Master 

Rohit_Mahajan_3-1746177642471.png

Rohit_Mahajan_4-1746177642478.png

Rohit_Mahajan_5-1746177642483.png

 

  1. Create an enhancement implementation of Program SAPLMRMD and include LMRMDF0H

    IF it_rbseltm[] IS NOT INITIAL.
      SELECT * FROM ekpo INTO TABLE @DATA(lt_ekpo) FOR ALL ENTRIES IN @IT_rbseltm WHERE ebeln = @IT_rbseltm-ebeln.
      IF sy-subrc = 0.
        SELECT * FROM esll INTO TABLE @DATA(lt_esll1) FOR ALL ENTRIES IN @LT_ekpo WHERE PACKNO = @LT_ekpo-PACKNO.
        IF sy-subrc = 0.
          SELECT * FROM esll INTO TABLE @DATA(lt_esll2) FOR ALL ENTRIES IN @LT_esll1 WHERE PACKNO = @LT_esll1-SUB_PACKNO.
        ENDIF.
      ENDIF.

      LOOP AT t_drseg ASSIGNING FIELD-SYMBOL(<fs_drseg>).
        READ TABLE it_rbseltm ASSIGNING FIELD-SYMBOL(<fs_rbseltm>) WITH KEY ebeln = <fs_drseg>-ebeln.
        IF sy-subrc = 0.
          READ TABLE lt_ekpo ASSIGNING FIELD-SYMBOL(<fs_ekpo>) WITH KEY ebeln = <fs_drseg>-ebeln.
          IF sy-subrc = 0.
            READ TABLE lt_esll1 ASSIGNING FIELD-SYMBOL(<fs_esll1>) WITH KEY packno = <fs_ekpo>-packno.
            IF sy-subrc = 0.
              READ TABLE lt_esll2 ASSIGNING FIELD-SYMBOL(<fs_esll2>) WITH KEY PACKNO = <fs_esll1>-SUB_PACKNO.
              IF sy-subrc = 0.
                <fs_drseg>-hsn_sac = <fs_esll2>-TAXTARIFFCODE.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDIF.
 

  1. Other way : we implement BADI /scmtms/badi_modify_po_data

 Rohit_Mahajan_16-1746178267533.png 

And filled this field.

Rohit_Mahajan_0-1746179106936.png

 

 

Rohit_Mahajan_17-1746178291169.png

Discover further insights into SAP Premium Engagement and explore how an international team of specialists can assist you in maximizing the value of your SAP solutions.

If you already are a Premium Engagement customer, contact your Technical Quality Manager (TQM) to discuss how Premium Engagement Service can help you with a custom-tailored and efficient service portfolio to make your project a success!

Best Regards,

Rohit 

@Indus, ##GST, ###MIRO,