0% found this document useful (0 votes)
303 views2 pages

Note 2491302 Routine PDF

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
303 views2 pages

Note 2491302 Routine PDF

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Logic for Routine

Disclaimer: This document is a draft, and provided as a reference. This document is not to be considered
final, and all information contained herein is subject to change. As such, this document is not to be quoted,
cited in any reference, or used by anyone for any purpose other than as a draft document.

Kindly replace the logic of the routine delivered via Note: 2458404 with below code.

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

1|Page
If sy-subrc <> 0.
XKWERT = 0.
ENDIF.
ENDIF.
ENDIF.

Disclaimer: © 2016 SAP SE or an SAP affiliate company. All rights reserved.


No part of this publication may be reproduced or transmitted in any form or
for any purpose without the express permission of SAP SE or an SAP affiliate
company.
SAP and other SAP products and services mentioned herein as well as their
respective logos are trademarks or registered trademarks of SAP SE (or an SAP
affiliate company) in Germany and other countries. Please see
http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional
trademark information and notices.
Some software products marketed by SAP SE and its distributors contain
proprietary software components of other software vendors.

National product specifications may vary.


These materials are provided by SAP SE or an SAP affiliate company for
informational purposes only, without representation or warranty of any kind,
and SAP SE or its affiliated companies shall not be liable for errors or
omissions with respect to the materials. The only warranties for SAP SE or
SAP affiliate company products and services are those that are set forth in
the express warranty statements accompanying such products and services, if
any. Nothing herein should be construed as constituting an additional
warranty.
In particular, SAP SE or its affiliated companies have no obligation to
pursue any course of business outlined in this document or any related
presentation, or to develop or release any functionality mentioned therein.
This document, or any related presentation, and SAP SE’s or its affiliated
companies’ strategy and possible future developments, products, and/or
platform directions and functionality are all subject to change and may be
changed by SAP SE or its affiliated companies at any time for any reason
without notice. The information in this document is not a commitment,
promise, or legal obligation to deliver any material, code, or functionality.
All forward-looking statements are subject to various risks and uncertainties
that could cause actual results to differ materially from expectations.
Readers are cautioned not to place undue reliance on these forward-looking
statements, which speak only as of their dates, and they should not be relied
upon in making purchasing decisions.

2|Page

You might also like