Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

A business case regarding the data interface with incorrect VAT CODE (zvat_code)

jsu9210
Discoverer
0 Kudos
198

Hello,

we have a business case regarding the data interface as below;

Interface data sending party often sends VAT CODE (zvat_code) incorrectly.

Due to its technical difficulty, we are not capable of requesting the correction from the Interface data sending party.

Instead, Interface data receiving party which is our client wants to fix it with V1, except when it receive data with V8.

CLEAR zkxxfit0020.

MOVE: gv_bukrs TO zkxxfit0020-bukrs,
<fs_ap_header>-zinv_dat TO zkxxfit0020-zinv_dat,
<fs_ap_header>-ztrans_date TO zkxxfit0020-ztrans_date,
<fs_ap_header>-waers TO zkxxfit0020-waers,
<fs_ap_header>-zvat_code TO zkxxfit0020-zvat_code,
...

How can I meet out client's requirement with the appropriate ABAP coding?

Thank you for your reading & valuable insight in advance.

2 REPLIES 2

MateuszAdamus
Active Contributor
0 Kudos
148

Hello jsu9210

Something like this?

MOVE: 
  gv_bukrs TO zkxxfit0020-bukrs,
  <fs_ap_header>-zinv_dat TO zkxxfit0020-zinv_dat,
  <fs_ap_header>-ztrans_date TO zkxxfit0020-ztrans_date,
  <fs_ap_header>-waers TO zkxxfit0020-waers,
  <fs_ap_header>-zvat_code TO zkxxfit0020-zvat_code,...

" fixed V1 value if not V8
IF zkxxfit0020-zvat_code <> 'V8'.
  zkxxfit0020-zvat_code = 'V1'.
ENDIF.

Kind regards,

Mateusz

0 Kudos
148

Thank you Mateusz Adamus for your feedback.

I have followed above instructions. Now I am waiting for the integration test with EAI.