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.
Next requirement is to fill this field based on Inbound and Outbound Services.
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.
And filled this field.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 180 | |
| 25 | |
| 18 | |
| 16 | |
| 13 | |
| 9 | |
| 9 | |
| 7 | |
| 7 | |
| 7 |