Application Development and Automation 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: 
Read only

swift MT940 with tcode FF.5

Former Member
0 Likes
1,004

Dear Experts,

  I am working on SWIFT MT940.

for this i had imported a ESA ECC-SE form SAP in to XI/PI.In PI i can see the structure and Service interface,but in ECC(SPROXY) i can  see

all  interfaces except this one.

Do i need to do any further configuration in ECC/PI for this.

And with PI we can approach in another approach.

PI will pick up file from SWIFT and a place a file in ECC.

When PI places a file in ECC a program should run such that,a file should come into FF.5 tcode with file name and all.

So plz suggest me either of the approach else both.

thanks & regards

RAJ

4 REPLIES 4
Read only

Former Member
0 Likes
819

Write an RFC FM with Filename as Input Parameter.

To process a SUBMIT with the program with this filename with fullpath.

and Call this FM on File Receipt from PI.

After Processing in the FM Archive the FILE

and Delete it from the Original Path.

BR.

Yakub Shah

Read only

0 Likes
819

This message was moderated.

Read only

Former Member
0 Likes
819

Hi Raj,

Do you need further help....

I have already done this and it works good....

Tell me if you want any further details.

BR

Read only

Former Member
0 Likes
819

Hi Raj,

The system is secure so i will not be able to give you all the code but here is what I have managed to arrange.

Use the Second approach and once the files are dumped on the APP server the the job starts, either trigger the FM from PI OR write a background job that runs every X minutes.

In the Program

Read all the files that are dumped using.

CALL FUNCTION 'RZL_READ_DIR_LOCAL'

EXPORTING

NAME = PA_AFILE " Directory Path

TABLES

FILE_TBL = T_AFILES " All files...

EXCEPTIONS

ARGUMENT_ERROR = 1

NOT_FOUND = 2

OTHERS = 3.

IF SY-SUBRC 0.

IF SY-BATCH EQ C_TRUE.

WRITE: /5 'Directory cannot be opened'(039).

EXIT.

ELSE.

MESSAGE S000(ZZ_PA) WITH 'Directory cannot be opened'(039).

EXIT.

ENDIF.

ENDIF.

Once you have the list of files loop endloop.

use the SUBMIT statement for program RFEBKA00 with the file path

Use function ARCHIVFILE_SERVER_TO_SERVER and ARchive the File.

Use a delete dataset with source file after moving it.

Let me know if you need anything else.

Cheers.