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: 

SAP/ABAP memory id is not working

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member206439
Contributor

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.

9 REPLIES 9

NeerajRao
Explorer
0 Kudos

Hi Imran,

Which standard component you are using for implicit enhancement??

Former Member
0 Kudos

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

mithun_shetty4
Contributor
0 Kudos

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.

0 Kudos

There is also export/Import to/from Database.

Neal

Former Member
0 Kudos

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

http://scn.sap.com/docs/DOC-10461

Former Member
0 Kudos

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.

0 Kudos

Dear Naresh,

                    thnx for your reply.

                     Export \ Import    to\From Database : is working for my scenario.

former_member206439
Contributor

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.

Former Member
0 Kudos

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.