Skip to Content

BAPI for PR?

Hi Experts,

I have one requirement in ME51 i ll give document type and create a new PR as ref to existing PR of differnt document type so all the details are copied to given document type where i can edit purchase group, company code, document type and quantity...but Plant is in display mode....i am unable to change the plant so is there any bapi to do that?

Requiremet is copy PR details of one document type of a paticular plant to differnt document type of a differnt plant.

i.e copy PR details of Document type :SEZD Plant: 4000 TO Document type : SEZU Plant: 6000. it will generate the PR no of number range of document type ZSEU.

So Any body have idea regarding this.... Is there any BAPI to do this??

its an urgent....

<b>points will be rewarded for useful answers</b>

Regards,

sunil kairam.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 17, 2008 at 07:04 AM

    You may use the following BAPI in sequence to get information of the original PR and then create a new PR using the values just read

    BAPI_REQUISITION_GETDETAIL

    Adjust the data (change plant, type, etc.) and perform some MOVE-CORRESPONDING

    BAPI_REQUISITION_CREATE

    BAPI_TRANSACTION_COMMIT

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 07:08 AM

    Hi,

    BAPI_REQUISITION_CHANGE Change Purchase Requisition

    BAPI_REQUISITION_CREATE Create Purchase Requisition

    BAPI_REQUISITION_DELETE Delete/Close Purchase Requisition

    BAPI_REQUISITION_GETDETAIL Display Purchase Requisition Details

    BAPI_REQUISITION_GETITEMS Read Purchase Requisition Item

    BAPI_REQUISITION_GETITEMSREL List Purchase Requisitions Awaiting Release

    BAPI_REQUISITION_GETRELINFO Display Detailed Release (Approval) Information on Purchase Requisitio

    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.