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

import statement:

Former Member
0 Likes
429

Hi Friends,

I created a program to download file. I attached this program to F110 transacation. file was downloaded when user clicks the Payment run and the printout button of the F110 transaction. My requirement is to restrict the file download the file when user only clicks on payment run button.

I used a BADI to set a flag using Export statement to a memory. This BADI will triggered only befor Payment run. Hence I thought of setting a flag in the BADI. If that flag is X then download the file...But when i Use Import statement to read the flag from memory the values in the memory is refreessed.

Psudo code:-

BADI: Triggerd before Payment run

export Lv_FLAG from LV_FLAG to memory Id 'TEST'.

Download program:

Import LV_FLAG to LV_FLAG from memory ID 'TEST'.

if lv_FLAG is 'X'.

download file

export lv_flag from lv_flag to memory id 'TEST'.

endif.

Why is the reason the value exported in the BADI is not available inthe start-of-selection of download program.

FYI---the value exported in the BADI is available in the at selection screen of download program.

Regards

Suresh Kumar

2 REPLIES 2
Read only

Former Member
0 Likes
391

Hi, perhaps using

EXPORT ... to SHARED MEMORY ID ...

EXPORT ... TO SHARED BUFFER ID ...

is the solution for you.

Regards

Bernd

Read only

0 Likes
391

Hi Bernd,

Please give me a example to use the shared memory..its giving a error when i tried to use the same...