Skip to Content
avatar image
Former Member

Transfer table contents issues in email sent and attachment opened.

hello,

i am sending email(from program) with attachment (sapshortcut of a ztransaction) to external email address.

i am exporting internal table with data to memory id so that when user open that attachment(sapshortcut),

i'll be able to import that internal table and then allow user to process that data.

I am using statement:

free memory id 'it'.

Export itab to memory id 'it'.

And i email, when attachment(sapshortcut) is opened i am using:

import itab from memory id 'it'.

But this use case seems to be not working.Import statement sets SY-SUBRC = 4.and itab is not imported.

What else is the alternative option.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 09, 2015 at 12:22 PM
    I understand that FM SWN_CREATE_SHORTCUT has a parameter I_PARAMETER TYPE TEXT255

    for sending data (for the called transaction while opening sapshortcut,sent as an attachment), but how am i gonna fill fieldname,dynpro name,fieldvalue.

    Basically i am calling a BDC, when sap shortcut (sent as attachment) is opened in an email.

    BDC has a structure BDCDATA (which has 5 fields).

    How am i going to populate those 5 field name and their field values, also dynpro name and dynpro values.


    s1.jpg (49.9 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Tomas Buryanek

      Thanks Tomas, for your continuous help.

      You saved my night.(i might have spent whole night...thinking to fix this).

      DYNP_OKCODE=ONLI; "this was missing.

  • avatar image
    Former Member
    Jan 09, 2015 at 09:53 AM

    Hi Abhishek,

    I don't think memory IDs persist across the sort of process you describe.

    If I read the ABAP help it says "A data cluster in the ABAP memory is available to all programs within a call sequence".  And defines call sequence as "A call sequence is the set of programs whose internal sessions are loaded jointly in a main session by a sequence of calls.....".

    If you are generating an e-mail from SAP then the receiving user opening this and navigating to the link will not be operating within the same call sequence.

    Regards,

    Nick

    Add comment
    10|10000 characters needed characters exceeded

    • What is "huge records"? How many lines of itab each hour (approximately)?

      You can delete unwanted entries after user process them. You can also delete entries older than lets say week (if they are obsolete). Or maybe re-think about this process...

  • avatar image
    Former Member
    Jan 09, 2015 at 09:44 AM

    Hi Abhishek,

    TRY USING

    EXPORT p1 = itab1 to memory id 'M1'.

    IMPORT p1 = itab1 from memory id 'M1'.

    in case of tables, only the table body is exported/imported and not the header line

    Thanks & Regards,

    Seshadri

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      These all are the same thing seshari.

      Whether i use:

      EXPORT ITAB FROM ITAB[] to memory id 'mem'.

      or

      EXPORT ITAB  to memory id 'mem'.

      While importing ITAB is declared of same structure when exporting.

      Please read Nick's comments. This may be the reason of failure in import.