Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.