‎2007 Mar 16 7:24 AM
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
‎2007 Mar 16 7:35 AM
Hi, perhaps using
EXPORT ... to SHARED MEMORY ID ...
EXPORT ... TO SHARED BUFFER ID ...
is the solution for you.
Regards
Bernd
‎2007 Mar 16 9:12 AM
Hi Bernd,
Please give me a example to use the shared memory..its giving a error when i tried to use the same...