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: 

Help with FM AVAILABILITY_CHECK

denis_nakamoto
Participant
0 Kudos

Hello there!

Anyone have an example how to use the FM AVAILABILITY_CHECK?

Thanks in advance!

Denis Nakamoto

2 REPLIES 2

Former Member
0 Kudos

DATA: l_atpcs LIKE atpcs OCCURS 0 WITH HEADER LINE,

l_atpcs_r3 LIKE atpcs OCCURS 0 WITH HEADER LINE,

l_t441v LIKE t441v OCCURS 0 WITH HEADER LINE,

l_atpmsgx LIKE atpmsg OCCURS 0 WITH HEADER LINE,

l_tmvf LIKE tmvf OCCURS 0 WITH HEADER LINE,

l_mdvex-mng02 LIKE mdvex-mng02,

l_egsbs LIKE p_atpca-egsbs,

l_maxflag,

l_check_flag_exists,

atpcsx_lines LIKE sy-tabix.

*--> call ATP server ***

CALL FUNCTION 'AVAILABILITY_CHECK'

TABLES

p_atpcsx = l_atpcs

p_atpassx = atpassx

p_atpcsx_r3 = l_atpcs_r3

p_atpdsx = atpdsx

p_atpmatx = atpmatd

p_atpfieldx = p_atpfieldx

p_mdvex = mdvex

p_t441vx = l_t441v

p_tmvfx = l_tmvf

p_atpdiax = atpdiax

CHANGING

p_atpca = p_atpca "ANWDG, AZERG, PLAUF RDMOD

p_atpcb = p_atpcb "MEINS

EXCEPTIONS

error = 1

OTHERS = 2.

Rgds,

Former Member