Skip to Content
author's profile photo
Former Member

How to Read the Screen Fields after a Transaction ?

Hi all,

I am working on the Transaction 'O4K_LICENSE'. After the transaction is run, it generates an Internal License number which is displayed on the screen. I tried using 'GET PARAMETER', but as the CALL TRANSACTION is called within a loop, the SAP Global memory is not getting refreshed and iam getting the same value for every loop for the Internal License Number.

Is there any function Module other than DYNP_VALUES_READ to get the screen field values? I tried using the above function module, but in vain and it is not getting any values.

Warm Regards,

Vijay.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Oct 06, 2005 at 01:06 PM

    Hi,

    Use CALL TRANSACTION....MESSAGES IN TO T_MESSTAB.

    Declare T_MESSTAB as below -

    DATA T_MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 01:03 PM

    Hi

    I think you can't do it, because after calling transaction the program has just finished to work.

    You shoul try to get out this value from messages table:

    call transaction ..... MESSAGES INTO itab

    Max

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 01:04 PM

    Hi,

    Please try this.

    Use the Same FM "<b>DYNP_VALUES_READ</b>" before the call transaction. Export this to database index so that even after recursive calls the value in memory doesnlt get refreshed.

    DATA :w_indx_docov TYPE indx-usera.

    w_indx_docov = sy-uname.

    <b>EXPORT var1 TO DATABASE indx(c1) ID w_indx_docov.</b>

    Similarly you can IMPORT.

    Please reward points if this explanation is useful.

    Regards,

    Siva

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 01:10 PM

    hi,

    the particular transaction 'O4K_LICENSE' must export the data to memory (using export option) then only you can get it in your program and the function module also used to retrieve the current screen values.

    You find out after generation internal number where it it stored ( in dbtab tales) and retrieve using some creteria

    cheers,

    sasi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi sasikumar,

      Thanks for the reply :).

      Iam new to ABAP. Can u please let me know the usage of this export command in my case.

      Thanks and Regards,

      Vijay