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: 

Calling FF.5 through zprogram

Former Member
0 Kudos
530

Hi All,

I have a requirement, according to that I have to pick file from desktop change its format and pass it on to FF.5

I have used gui_upload to pick and converted the file in an itab. Now how do I pass this itab to FF.5 in my zprogram?

I  tried

  Submit RFEBKA00

    WITH

     SELECTION-TABLE iout

      and return

But this gives me a dump. PERFORM PARAMETER TOO SHORT.

Any help please.

Thanks!

10 REPLIES 10

Former Member
0 Kudos
196

Hi,

As far as I know, this t-code have a parameter to put the file path, I do not think that is necessary to pass any itab with the file content, just pass the file path

At the moment I do not have access, but I suggest you to check (if possible) with a FI consultant to know which parameters need to be filled..

Regards,

Paulo.

arindam_m
Active Contributor
0 Kudos
196

Hi,

The selection table contents should match what you want to pass into the report RFEBKA00 via its selection screen. Please check the screen parameters of RFEBKA00 report then try to match what you are passing via the SELECTION-TABLE option.

Also check on the technical names of the parameters that you are passing via SELECTION-TABLE option.

Cheers,

Arindam

Former Member
0 Kudos
196

Thanks for replying guys!

Right now I don't know how to pass those parameter values.

Can you tell me how can I do that? Any sample using one field from that transaction.

Former Member
0 Kudos
196

Can you paste what you are passing in IOUT

0 Kudos
196

Thanks Shah,

I think passing IOUT like that was wrong !

But let me try to explain my requirement one more time...

I get a text file on desktop. I pick this text file using gui_upload, then I convert this file to a different format.. after i convert this now i have this converted file in an internal table.

Now my next step is to pass this converted file to transaction FF.5 (Now here a question arises, as the converted file is in iout intrnal table right now can i directly pass it to FF.5 or do I need to download the converted file to desktop first and then pick from there? is so then how?)

Also user has set a variant named VAR1, (In this variant the file path is emply)  so if I use

submit RFEBKA00 USING SELECTION-SET 'VAR1' and RETURN.

is this correct ?

0 Kudos
196

hi,

If the requirement is to change the format, then i suppose you can use exit FEB00004 for that.. this exit is called soon after the file is uploaded from desktop, and contains the entire file in the internal table. You can change the format as per your requirement. By this way you dont have to copy the entire program to Z.

Thanks

Sam

0 Kudos
196

Hi J Singh

You can create a temporary folder in the APP Server

After upload of your file do the necessary changes and put the new file in this folder with timestamp for uniqueness.

You can pass this file name for processing.

Regards.

0 Kudos
196

Hi Shah thanks for taking time to reply back .

I can download file to app server or desktop and pick from there. But is it possible to directly pass internal table to FF.5 transaction?

or it can be done using file path name only?

Thanks!

0 Kudos
196

Hi Singh,

No you cannot pass ITAB for that you will need to copy the program then you can modify it as required but that ain't simple .....

Regards

Former Member
0 Kudos
196

hello,

    what i can suggest is to copy the standard program and do the changes as you want, like you are saying the itab you have already created. just you need to map your itab with the itab which standard SAP has created and by copying the standard you have the freedom to do additional validation also.

Regards

Animesh Sundriyal