Online Tutorials & Training Materials | STechies.com
Register Login

Error in ETM price list determination

|| || 0

Error in ETM price list determination
Stechies

User gets short dump in ETM price list determination in customizing transaction code 'J3G?'. Short dump details: RAISE_EXCEPTION (TABLE_NOT_FOUND). Due to transport error which is not known yet, ETM specific entry is missing form table T681V for usage J.

Please maintian the following entries in view V_T681V for usage type 'J'
Fields       Field Text                    Value
KVEWE        Usage                          J
DIKOM        Dialog communication           J_3GKOMJ
MUSTR        Sample table                   J_3GJ000
MUPRG        Sample program                 J_3GJ000
KMPOL        Module pool                    SAPMJ3GJ
DNPVN        Screen suffix from             1
DNPBS        Sample screen suffix to...     2
ZUPRG        Sample program for accessing   J_3GZMUS
ZUKON        Sample program for displaying  J_3GJAAA


If you are not able to maintain the view using transaction 'SM30' and you get the message that this view is display only then create the Z-report 'Z_fill_T681V'. The code for the report is as given below. Save and activate the report.
Run the report to create the required ETM specific entry.

    1. For 'P_Lang' give the desired language in which you want the description for the table entry.

    2. For 'P_text' give the translation for the text 'ETM pricelist' in the language that you mentioned in 'P_lang'.


In case of any issues please contact SAP for clarifications.

The code for the Z-report is as follows:
REPORT  Z_FILL_T681V       .

TABLES:  T681V, T681W.
DATA:    LV_T681V TYPE CHAR1,
          LV_T681W TYPE CHAR1.
PARAMETERS P_LANG LIKE T681W-SPRAS.
PARAMETERS P_TEXT LIKE T681W-VTEXT.

T681V-KVEWE = 'J'.
T681V-DIKOM = 'J_3GKOMJ'.
T681V-MUSTR = 'J_3GJ000'.
T681V-MUPRG = 'J_3GJ000'.
T681V-KMPOL = 'SAPMJ3GJ'.
T681V-DNPVN = 1.
T681V-DNPBS = 2.
T681V-ZUPRG = 'J_3GZMUS'.
T681V-ZUKON = 'J_3GJAAA'.

INSERT INTO T681V CLIENT SPECIFIED VALUES T681V.

IF SY-SUBRC EQ 0.
   LV_T681V = 0.
ELSE.
  UPDATE T681V CLIENT SPECIFIED FROM T681V.
  IF SY-SUBRC EQ 0.
    LV_T681V = 0.
  ELSE.
    LV_T681V = 1.
  ENDIF.
ENDIF.

T681W-KVEWE = 'J'.
T681W-SPRAS = P_LANG.
T681W-VTEXT = P_TEXT.

INSERT INTO T681W CLIENT SPECIFIED VALUES T681W.

IF SY-SUBRC EQ 0.
   LV_T681W = 0.
ELSE.
  UPDATE T681W CLIENT SPECIFIED FROM T681W.
  IF SY-SUBRC EQ 0.
    LV_T681W = 0.
  ELSE.
    LV_T681W = 1.
  ENDIF.
ENDIF.

IF LV_T681V EQ 0 AND LV_T681W EQ 0.

   COMMIT WORK.
   WRITE: / 'ENTRY SUCCESSFULLY ADDED OR UPDATED'.
ELSE.
   ROLLBACK WORK.
   WRITE: / 'ERROR OCCURRED WHILE INSERTING OR UPDATING ENTRY.'.
   WRITE: / 'PLEASE CONTACT SAP FOR THIS ISSUE AND GET IT CLARIFIED.'.
ENDIF.

 

You can also get more details about SAP Industry Solutions IS


Related Articles

0.0141 seconds.