Skip to Content

ABAP Code

Hi,

please help me to understand following codes.

FORM compute_data_field

TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring

USING COMM_STRUCTURE LIKE /BIC/CS8SSDOGPF1

RECORD_NO LIKE SY-TABIX

RECORD_ALL LIKE SY-TABIX

SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS

CHANGING RESULT LIKE /BIC/ASSDOGPF200-SHIP_TO

RETURNCODE LIKE SY-SUBRC "Do not use!

ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update

*

$$ begin of routine - insert your code only below this line -

  • fill the internal table "MONITOR", to make monitor entries

  • result value of the routine

if g_count <> RECORD_NO.

g_count = RECORD_NO.

read table t_g_output into s_g_output index RECORD_NO.

if sy-subrc = 0.

RESULT = s_g_output-ship_to.

endif.

else.

RESULT = s_g_output-ship_to.

endif.

  • if abort is not equal zero, the update process will be canceled

ABORT = 0.

Please give me urgent reply,

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 02, 2008 at 05:17 AM

    Hi,

    FORM compute_data_field >>This the name of the form which will be called by a perform.

    TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring

    USING COMM_STRUCTURE LIKE /BIC/CS8SSDOGPF1

    RECORD_NO LIKE SY-TABIX

    RECORD_ALL LIKE SY-TABIX

    SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS

    CHANGING RESULT LIKE /BIC/ASSDOGPF200-SHIP_TO

    RETURNCODE LIKE SY-SUBRC "Do not use!

    ABORT LIKE SY-SUBRC. "set ABORT 0 to cancel update

    >>The section above represents the interface of the FORM - values can be passed into and out of the form

    *

    $$ begin of routine - insert your code only below this line -

    fill the internal table "MONITOR", to make monitor entries

    >>write code here to fill specific entries in the MONITOR

    result value of the routine

    if g_count RECORD_NO.

    g_count = RECORD_NO.

    read table t_g_output into s_g_output index RECORD_NO.

    if sy-subrc = 0.

    RESULT = s_g_output-ship_to.

    endif.

    else.

    RESULT = s_g_output-ship_to.

    endif.

    if abort is not equal zero, the update process will be canceled

    ABORT = 0.

    _____________________

    Mathew.

    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.