Skip to Content
author's profile photo Former Member
Former Member

Update routine

Hi SDN,

Please help me with understanding this code.

Points will be assigned. Thanks

DATA: doc_info_buffer type /BIC/AZPYF08O200.

DATA: tmp_subrc like sy-subrc.

INCLUDE RS_BCT_HR_PYPP_UPDATE_RULES.

$$ end of global - insert your declaration only before this line -

FORM compute_data_field

TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring

USING COMM_STRUCTURE LIKE /BIC/CS8ZPYF08O1

RECORD_NO LIKE SY-TABIX

RECORD_ALL LIKE SY-TABIX

SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS

CHANGING RESULT LIKE /BIC/AZPYF08O300-FUND

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

PERFORM READ_DOCINFO USING COMM_STRUCTURE-py_doc_num

COMM_STRUCTURE-py_doc_lin

CHANGING

doc_info_buffer

tmp_subrc

ABORT.

IF tmp_subrc eq 0.

RESULT = doc_info_buffer-FUND.

ELSE.

CLEAR RESULT.

ENDIF.

$$ end of routine - insert your code only before this line -

*

ENDFORM.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 09, 2008 at 06:23 PM

    Dear BI Boy,

    Here you are reading Doc Num whcih is coming into COMM_STRUCTURE-py_doc_num

    COMM_STRUCTURE-py_doc_lin

    If it is successful ( Sy-subrc = 0 ) ( tmp_subrc = 0)

    You are updating field FUND in the Table /BIC/AZPYF08O200.

    Regards,

    Ram.

    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.