Skip to Content
avatar image
Former Member

Function Module J_1IG_IMP_INV_DET Field "XKOMV" is unknown.

During implementation of the OSS note 2458404 for GST project I came to the point to implement the logic

Kindly implement the routine and paste the below mentioned logic after the correction instructions are applied.

DATA: ls_excdefn TYPE j_1iexcdefn. DATA: xxkomv LIKE LINE OF xkomv, ex_drseg TYPE drseg. CALL FUNCTION 'J_1IG_IMP_INV_DET' EXPORTING im_komk = KOMK IMPORTING EX_XKWERT = xkwert EX_EXCDEFN = ls_excdefn EX_DRSEG = ex_drseg . READ TABLE xkomv INTO xxkomv WITH KEY kschl = ls_excdefn-kschl. IF sy-subrc = 0. xkwert = xkwert + ex_drseg-customs_val. ENDIF.

First problem was that there is no description which function module is effected.

Second problem is that Field "XKOMV" is unknown.

Please help and correct the OSS.

Thx Kai

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Jun 30, 2017 at 05:36 PM

    The code goes in the tax procedure routine that needs to be configured/created. In 2458404 attachment "Import_Customizing steps.pdf" on page 9 it mentions "Kindly note that the Condition base formula (‘800’) which is entered in the below screen shot is for indicative purpose. Choose a number which is available in your namespace / landscape & implement the routine with the logic mentioned below."

    Also note there is new logic in 2491302 that replaces the original logic.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 02, 2017 at 08:16 AM

    Hi,

    The issue is not clear, there is no XKOMV call in FM- J_1IG_IMP_INV_DET

    Reg,
    Brinda

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      The note 2458404 has PDF attachment "Import_Customizing steps" in page no. 11 it mention to Kindly implement the routine and paste the below mentioned logic after the correction instructions are applied.

      But we are unclear where to apply this routine.

      Please helps to solve this issue

      Regard,

      Santosh Samant

  • avatar image
    Former Member
    May 29, 2017 at 06:06 AM

    Importing Parameters of the Function Module 'J_1IG_IMP_INV_DET' has been replaced with a new Function module 'J_1IG_IMP_INV_DETERMINE'.

    can anyone suggest me what is the source code for this function module 'J_1IG_IMP_INV_DET' with all import export variables..

    thanks in advance...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 31, 2017 at 11:10 AM

    Please provide code for FM J_1IG_IMP_INV_DETERMINE

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 01, 2017 at 07:05 AM

    where we have to implement routine mention in note 2458404 .

    logic is as :

    DATA lt_excdefn TYPE J_1IG_GST_EXCDEFN_TT. DATA: ls_excdefn TYPE j_1iexcdefn. DATA: XXKOMV LIKE line of XKOMV, ex_drseg type drseg. CALL FUNCTION 'J_1IG_IMP_INV_DETERMINE' EXPORTING IM_KOMK = komk IMPORTING EX_EXCDEFN = lt_excdefn EX_DRSEG = ex_drseg . LOOP AT lt_excdefn INTO ls_excdefn. READ TABLE XKOMV INTO XXKOMV WITH KEY KSCHL = ls_excdefn-kschl. IF SY-SUBRC = 0. XKWERT = Xkwert + ex_drseg-customs_val. ENDIF. CLEAR.

    Please suggest where we have to add this code .

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 12, 2017 at 08:23 AM

    Hi, found any solution on this trail.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 03, 2017 at 10:43 AM

    Hi, actually I think, that there is still in issue with routine 800. From my perspective the coding should be:

    DATA lt_excdefn TYPE J_1IG_GST_EXCDEFN_TT.
    DATA: ls_excdefn TYPE j_1iexcdefn.
    DATA: XXKOMV LIKE LINE OF XKOMV,
    ex_drseg TYPE drseg.

    IF xkomv-krech = 'A'.
    CALL FUNCTION 'J_1IG_PASS_DRSEG'
    IMPORTING ex_drseg = ex_drseg.

    SELECT *
    FROM j_1iexcdefn
    INTO TABLE lt_excdefn
    WHERE kschl = ex_drseg-kschl
    AND cond_name = 'IMPCUSTAP'.

    IF sy-subrc = 0.
    SELECT *
    FROM j_1iexcdefn
    INTO TABLE lt_excdefn
    WHERE kschl = xkomv-kschl
    AND ( cond_name EQ 'CCQIMPSEOF' OR
    cond_name EQ 'CCQIMPINV' ).

    IF sy-subrc <> 0.
    XKWERT = Xkwert + ex_drseg-customs_val.
    ENDIF.
    ENDIF.
    ELSE.
    IF sy-cprog = 'SAPLMR1M'.
    CALL FUNCTION 'J_1IG_PASS_DRSEG'
    IMPORTING ex_drseg = ex_drseg.

    SELECT *
    FROM j_1iexcdefn
    INTO TABLE lt_excdefn
    WHERE kschl = ex_drseg-kschl
    AND cond_name = 'IMPCUSTAP'.

    IF sy-subrc <> 0.
    XKWERT = 0.
    ENDIF.
    ENDIF.
    ENDIF.

    Add comment
    10|10000 characters needed characters exceeded