cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module J_1IG_IMP_INV_DET Field "XKOMV" is unknown.

kaichen27
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (7)

Answers (7)

BrianVanderwiel
Participant

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.

0 Kudos

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.

IITB
Explorer
0 Kudos

Hi, found any solution on this trail.

Lakshmipathi
Active Contributor
0 Kudos

Prof. Yogesh M Desai

Please avoid hijacking someone's thread and add your question. Create a new discussion and before posting a question, please make sure you have searched all existing content -- as the answers may already be available.

Try to use these search options, too:

https://cse.google.com/cse/home?cx=013447253335410278659:5di2969x5we

https://www.google.com/cse/home?cx=013447253335410278659:k8ob9ipscwg

SAP Search

You can find more important guidelines in the community rules of engagement and learn questions and answers best practices here.

0 Kudos

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 .

Former Member
0 Kudos

Please provide code for FM J_1IG_IMP_INV_DETERMINE

sanjaypetkar
Explorer
0 Kudos

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

brinda_r
Active Contributor
0 Kudos

Hi,

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

Reg,
Brinda

0 Kudos

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