Skip to Content
author's profile photo Former Member
Former Member

how to check consecutive run for an Interface

hi all,

i have an issue regarding an interface

if this Interface is a initial run for the file, you have to populate all the data of the people. That is , unlike other interfaces where we send only the latest record, in this interface we need to send all the records of the employees. in a employee has 10 records with different dates, we will pick up all the records greater than 1999 and pass it. whereas if there is a change in one field, then we will send all the record of that file. And If it is a consecutive run then you have to populate changes only. the following algorithm can help you in this

if intial_run EQ 'X'

transfer IT_FINALDATA to XI.

else

  • Declare a 2 more internal tables similar to IT_FINALDATA...for our below example let us assume that

DATA: IT_CLUSTERDATA type standard table of IT_FINALDATA.

DATA: IT_COMPAREDATA type standard table of IT_FINALDATA.

  • use the following statement to retrieve the data from cluster and comparing it

IMPORT IT_CLUSTERDATA TO IT_COMPAREDATA FROM DATABASE indx(zn) ID 'IN_8085'.

Compare IT_COMPAREDATA with IT_FINALDATA

If sy-subrc = 0.

Means there are no changes, and no output required

Else

Pass the data to XI interface, And store the internal table in the same INDX table, using the following statement

EXPORT IT_FINALDATA to IT_CLUSTERDATA FROM DATABASE indx(zn) ID 'IN_8077'.

Endif.

In this can we deliver the changed data at every single consecutive run.

Please let me know,

Thank Q

Rohini.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 10:18 PM

    This is something where HR Interface Toolbox (PU12) can be very helpful, it will take care of changes from one run to another and you can configure it to send changes only in next run. But, you will need some ABAP in its user exits to restrict the data after 1999, and any other restrictions that you might want.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.