Skip to Content

Function module to Change Purchase Requistion.

Hello all,

I need a to Change Purchase Requistion account assignment category from U to K.

It can be done manually with T-code ME51N. But this is a njoy transaction so its BDc is not recommended.

So i have to do it by using a Function Module.

Please suggest me a function module by which i can do it.

Thanks.

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 Dec 22, 2008 at 07:12 AM

    BAPI_REQUISITION_CHANGE

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 07:20 AM

    Hi Sonal,

    Try this Bapi:

    BAPI_REQUISITION_CHANGE to Change Purchase Requisition.

    Hope it helps.

    Regards,

    Rahul

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 09:58 AM

    CALL FUNCTION 'BAPI_REQUISITION_CHANGE'

    EXPORTING

    NUMBER = EC_MDUA-BANFN

    TABLES

    REQUISITION_ITEMS_OLD = EC_BAPI_OLD

    REQUISITION_ITEMS_NEW = EC_BAPI_NEW

    • REQUISITION_ACCOUNT_OLD = EC_BAPIEBKNO

    • REQUISITION_ACCOUNT_NEW = EC_BAPIEBKNN

    • REQUISITION_TEXT_OLD =

    • REQUISITION_TEXT_NEW =

    RETURN = EC_BAPIRETURN

    EXCEPTIONS

    OTHERS = 1.

    hope this will help u

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:22 AM

    goto ome9 t.code ...

    select the account assignment cat 'U' and choose details....

    there check weather account assignment is changeable r not (a checkbox is provided there see that)..

    if that is checked then it can be changed from U to K......

    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.