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

Need Urgent help for calling FM .

HI,

I used a user exit to create the adjustmen reason ( in table pa0378) with function:

HR_BEN_CREATE_ADJUST_REASON . when i debug , it ran well , the sy-subrc = 0. and there is no error in the return table .. But there is no update in PA3078 ....

When i write new report for calling this FM as :

CALL FUNCTION 'HR_BEN_CREATE_ADJUST_REASON'

EXPORTING

pernr = '633'

datum = sy-datum

adjust_reason = 'POS'

  • NOCOMMIT = ' '

  • LOCK_PERNR = 'X'

reaction = 'N'

  • IMPORTING

  • INFTY_KEY =

  • RETURN =

  • SUBRC =

tables

error_table = wt_err

.

*

  • write: sy-subrc.

The table(PA0378)..is updated with the value in the FM...

Although in the user exit i have called the BAPI_TRANSACTION_COMMIT to commit .

I can not understand why this occurs , please help me ?

Thanks and i am wanting for you

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 07:47 AM

    used finial statement.

    COMMIT WORK [AND WAIT].

    Message was edited by:

    Karthikeyan Pandurangan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you very much for your quick answer , but i have just tested with ' COMMIT WORK' , no update occurs the same as BAPI_TRANSACTION_COMMIT.

      This means that no update for the table PA0378 though the message 176 ( OK ) has been returned each time ...

      Please suggest me with some another ways ?

      Thanks

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.