Skip to Content

Initialization problem

Hello Everyone,

In my program, I have a this kind section.

*----------------------------------------------------------------------*

* I N I T I A L I Z A T I O N *

*----------------------------------------------------------------------*

INITIALIZATION.

break tlise.

fkdat-sign = 'I'.

fkdat-option = 'BT'.

fkdat-low = '20120101'.

fkdat-high = '20121231'.

APPEND fkdat.

REFRESH : s_mblnr.

CLEAR : s_mblnr.

LOOP AT SCREEN.

CHECK screen-group1 = 'KUN'.

screen-input = '0'.

MODIFY SCREEN.

ENDLOOP.

LOOP AT SCREEN.

CHECK screen-group1 = 'PRO'.

screen-input = '0'.

MODIFY SCREEN.

ENDLOOP.

In Selection Screen, I am giving mblnr value. And then I am starting the code.

When I turned back this initialization screen, I want to refresh s_mblnr.

In fact, When I check this section, s_mblnr is initial.

But in first section, there is mblnr value.

How can I refresh mblnr value ?

Best Regards

Tanju

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Nov 23, 2012 at 10:31 AM

    Hi,

    check this below code

    report ztemp.
    tables: vbrk.

    parameters: s_date like sy-datum .

    at selection-screen output.
    clear s_date.

    start-of-selection.
    select * from vbrk up to 10 rows.
    write:/ vbrk-vbeln,
    vbrk-fkdat,
    sy-lsind,
    sy-tabix.
    sy-tabix = sy-tabix + 1.
    endselect.

    Regards

    Madhumahesh.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 23, 2012 at 09:14 AM

    You mean to say after displaying the output when come back still u see the MBLNR value in the Selection screen? Can you please phrase the question clearly.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2012 at 09:17 AM

    Hi,

    Are you saying you want the s_mblnr value field be refreshed when you press back button on your report?

    Regards,

    Vidya.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 23, 2012 at 09:29 AM

    Hi Tanju,

    You can refresh in

    AT SELECTION-SCREEN OUTPUT event.

    Ex:

    AT SELECTION-SCREEN OUTPUT.

    REFRESH: s_mblnr.

    Add a comment
    10|10000 characters needed characters exceeded

    • Merhaba Tanju,

      Here is a small example:

      REPORT ztest.

      TABLES: mkpf.

      DATA: runfinished TYPE boolean.

      SELECT-OPTIONS: s_mblnr FOR mkpf-mblnr.

      AT SELECTION-SCREEN OUTPUT.

      IMPORT runfinished FROM MEMORY ID 'RNF'.

      IF runfinished = 'X'.

      CLEAR runfinished.

      EXPORT runfinished TO MEMORY ID 'RNF'.

      REFRESH: s_mblnr.

      ENDIF.

      START-OF-SELECTION.

      WRITE: 'Mblnr:', s_mblnr-low.

      runfinished = 'X'.

      EXPORT runfinished TO MEMORY ID 'RNF'.


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.