08-06-2013 10:04 AM
Hi,
On portal,User is pressing a button for displaying the PDF form. So control is going from Portal(webdynpro component) to SAP R/3
(std program : SAPLFPCALL) which contain call for FP_JOB_OPEN & FP_JOB_CLOSE.
My requirement is, I need to pass some data from portal to fun module : FP_JOB_OPEN (by using implicit enhancement).
I have tried by using ABAP memory(EXPORT / IMPORT) , Field Symbol & SAP memory(SET/GET) also, but data is not getting transferred to
fun module :FP_JOB_OPEN (i.e. from portal to R/3 side).
Please help.
Regards.
Imran
08-06-2013 2:42 PM
The EXPORT?IMPORT does not work in backgrounds sometimes.
we can use EXPORT/IMPORT with DATABSE.
Sample code
TABLES indx.
*Clear Memory ID
FREE MEMORY ID 'XXXXXX'.
DELETE FROM DATABASE indx(st) ID 'XXXXXX'.
*Send value to Memory ID
EXPORT Name TO DATABASE indx(st) ID 'XXXXXX'.'
If you want to use more specific key you can add below values also.
indx-usera = sy-uname.
indx-pgmid = sy-cprog.
indx-begdt = sy-datum.
08-06-2013 2:01 PM
Hi Imran,
Which standard component you are using for implicit enhancement??
08-06-2013 2:04 PM
Could you show us a snippet of the code you are using around this? Without it, I don't see how we can know what might be going wrong,,,
Neal
08-06-2013 2:25 PM
Depends on where / when you access the memory ID.The last option could be to saving the data to a custom table/ TVARV table and accessing it at a later stage when needed.
08-06-2013 2:28 PM
08-06-2013 2:38 PM
Hi Imran,
Try using the ABAP Shared memory concept for your scenario.
Though it may require initial few steps of setup it will be really easy to retrieve data across different sessions/users.
For more details look into the below link
08-06-2013 2:38 PM
Hi,
All these work by the concept of ABAP memory which means that is an internal memory.
Here from your point i could make out that you are trying to export in a system and import in a different system.
So for that have a RFC function module and transfer the data or through an idoc.
Any queries, kindly revert.
Thanks,
Dinesh.
08-07-2013 12:50 PM
Dear Naresh,
thnx for your reply.
Export \ Import to\From Database : is working for my scenario.
08-06-2013 2:42 PM
The EXPORT?IMPORT does not work in backgrounds sometimes.
we can use EXPORT/IMPORT with DATABSE.
Sample code
TABLES indx.
*Clear Memory ID
FREE MEMORY ID 'XXXXXX'.
DELETE FROM DATABASE indx(st) ID 'XXXXXX'.
*Send value to Memory ID
EXPORT Name TO DATABASE indx(st) ID 'XXXXXX'.'
If you want to use more specific key you can add below values also.
indx-usera = sy-uname.
indx-pgmid = sy-cprog.
indx-begdt = sy-datum.
08-07-2013 11:34 AM
Hi,
My requirement is, I have to disable the Print option from PDF form based on some condition when user will press the button.But user is pressing button on std portal application :FITV_POWL_TRIP_DETAIL (He I have done enhancement for passing the data to ABAP / SAP memory). And before displaying the PDF form I have to disable the print option by using the control parameter of std R/3 fun module : FP_JOB_OPRN (Here I have written Import statement).
Sample Code:
Webdynpro Appl : FITV_POWL_TRIP_DETAIL
FREE MEMORY ID 'ALL'. " 1st Tab Name
EXPORT s_print FROM s_print TO MEMORY ID 'ALL'.
R/3 Std prog: SAPLFPCALL
IMPORT S_PRINT TO F_PRINT FROM MEMORY ID 'ALL'.
IF SY-SUBRC = 0.
FREE MEMORY ID 'ALL'. " 2ND TAB NAME
ENDIF.
I have tried by sing SET / GET parameter, but this is also not working.
Please help.