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

Create PR through BAPI only .........?

Hi Expert's,

How can I want to create PR through Standard BAPI only.

Greeting's of the Day.

Ankit Singh Rathore .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

10 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2008 at 05:48 AM

    hi,

    Use BAPI_PR_CREATE.

    Regards

    Sumit Agarwal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2008 at 05:50 AM

    hiiii

    use FM BAPI_PR_CREATE

    regards

    twinkal

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2008 at 05:51 AM

    Hi Guy's,

    What Would be the necessary fields for creating PR. ?

    Thank's and Regard's,

    Ankit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2008 at 05:52 AM

    Hi

    Try to create PR with BAPI_PR_CREATE and also from ME53N.

    With Regards

    Nikunj Shah

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2008 at 05:53 AM

    Hi

    Try the BAPI:

    BAPI_REQUISITION_CREATE Create Purchase Requisition

    chk the link below:

    BAPI_PR_CREATE Error !

    With luck,

    Pritam.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2008 at 05:54 AM

    Hi

    [http://www.sapbapi.com/bapi-list/]

    Regards,

    Sravanthi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2008 at 06:00 AM

    Hi Ankit.

    I would like to suggest,

    1. Go To Transaction -


    > BAPI.

    2. Go To Purchase Requisition.

    3. Go To CreateFromData1 or CreateFromData.

    4. There is One major parameter - Number - Purchase Requisition Number.

    5. Rest all parameters can be checked there itself and in the documentation window.

    Hope that's usefull.

    Good Luck & Regards.

    Harsh Dave

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 29, 2008 at 06:01 AM

    You can use the BAPI

    BAPI_REQUISITION_CREATE

    Read the Documentation for the same how to use the BAPI.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 29, 2008 at 06:15 AM

    Hi Guy's,

    What would be the necessary field's for that ?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Amit Gujargoud

      I tried BAPI_PR_CREATE,

      Error :

      E

      Enter Document Type

      1

      E

      No instance of object type PurchaseRequisition has been created. External reference: # 1

      1

      W

      Error transferring ExtensionIn data for enhancement CI_EBANDB

      1

      W

      Requisition date is in the past

      1

      my trial code is :

      DATA : PRHEADER LIKE TABLE OF BAPIMEREQHEADER WITH HEADER LINE,

      PRHEADERX LIKE TABLE OF BAPIMEREQHEADERX WITH HEADER LINE,

      PRITEMEXP LIKE TABLE OF BAPIMEREQITEM WITH HEADER LINE,

      RETURN LIKE TABLE OF BAPIRET2 WITH HEADER LINE,

      PRITEM LIKE TABLE OF BAPIMEREQITEMIMP WITH HEADER LINE,

      PRITEMX LIKE TABLE OF BAPIMEREQITEMX WITH HEADER LINE,

      PRITEMTEXT LIKE TABLE OF BAPIMEREQITEMTEXT WITH HEADER LINE,

      N1 TYPE TABLE OF BAPIMEREQHEADER WITH HEADER LINE.

      PRHEADER-PR_TYPE = 'ZNB'.

      PRHEADER-CTRL_IND = ' '.

      PRHEADER-GENERAL_RELEASE = 'X'.

      APPEND PRHEADER.

      CLEAR PRHEADER.

      PRHEADERX-PR_TYPE = 'X'.

      PRHEADERX-CTRL_IND = 'X'.

      PRHEADERX-GENERAL_RELEASE = 'X'.

      APPEND PRHEADERX.

      CLEAR PRHEADERX.

      *PRITEM-PREQ_ITEM = 10.

      PRITEM-CTRL_IND = ' '.

      PRITEM-PUR_GROUP = 'P18'.

      PRITEM-PREQ_NAME = 'ANAND'.

      PRITEM-SHORT_TEXT = 'RUST REMOVER SPRAY, 400ML'.

      PRITEM-MATERIAL = '40000012'.

      PRITEM-PLANT = '3300'.

      PRITEM-STORE_LOC = '3301'.

      PRITEM-TRACKINGNO = 'SEZ'.

      PRITEM-MATL_GROUP = 'EL02'.

      *PRITEM-TRACKINGNO = 'SEZ'.

      PRITEM-QUANTITY = 35.

      PRITEM-UNIT = 'BT'.

      PRITEM-PREQ_DATE = '01.08.2011'.

      PRITEM-DEL_DATCAT_EXT = 'D'.

      PRITEM-DELIV_DATE = '29.09.2011'.

      PRITEM-REL_DATE = '02.09.2011'.

      PRITEM-GR_PR_TIME = 27.

      *PRITEM-PREQ_PRICE = 116.

      *PRITEM-PRICE_UNIT = 'INR'.

      PRITEM-MRP_CTRLER = 'MR1'.

      APPEND PRITEM.

      CLEAR PRITEM.

      *PRITEMX-PREQ_ITEM = 10.

      PRITEMX-CTRL_IND = 'X'.

      PRITEMX-PUR_GROUP = 'X'.

      PRITEMX-PREQ_NAME = 'X'.

      PRITEMX-SHORT_TEXT = 'X'.

      PRITEMX-MATERIAL = 'X'.

      PRITEMX-PLANT = 'X'.

      PRITEMX-STORE_LOC = 'X'.

      PRITEMX-TRACKINGNO = 'X'.

      PRITEMX-MATL_GROUP = 'X'.

      *PRITEM-TRACKINGNO = 'SEZ'.

      PRITEMX-QUANTITY = 'X'.

      PRITEMX-UNIT = 'X'.

      PRITEMX-PREQ_DATE = 'X'.

      PRITEMX-DEL_DATCAT_EXT = 'X'.

      PRITEMX-DELIV_DATE = 'X'.

      PRITEMX-REL_DATE = 'X'.

      PRITEMX-GR_PR_TIME = 'X'.

      APPEND PRITEMX.

      CLEAR PRITEMX.

      *PRITEMEXP-PREQ_ITEM = 10.

      PRITEMEXP-DOC_TYPE = 'ZNB'.

      PRITEMEXP-DOC_CAT = 'B'.

      PRITEMEXP-CTRL_IND = 'R'.

      PRITEMEXP-CREATE_IND = 'X'.

      PRITEMEXP-REL_IND = 'X'.

      PRITEMEXP-PUR_GROUP = 'P18'.

      PRITEMEXP-CREATED_BY = 'VALABAP'.

      PRITEMEXP-PREQ_NAME = 'MUNNA'.

      PRITEMEXP-SHORT_TEXT = 'RUST REMOVER SPRAY, 400ML'.

      PRITEMEXP-MATERIAL = '40000012'.

      PRITEMEXP-PLANT = '3300'.

      PRITEMEXP-STORE_LOC ='3301'.

      PRITEMEXP-TRACKINGNO = 'SEZ'.

      PRITEMEXP-MATL_GROUP = 'EL02'.

      PRITEMEXP-QUANTITY = 35.

      PRITEMEXP-UNIT = 'BT'.

      PRITEMEXP-DEL_DATCAT_EXT = 'D'.

      PRITEMEXP-DELIV_DATE = '01.08.2011'.

      PRITEMEXP-REL_DATE = '02.09.2011'.

      PRITEMEXP-GR_PR_TIME = 27.

      APPEND PRITEMEXP.

      CLEAR PRITEMEXP.

      *PRITEMTEXT-PREQ_ITEM = 10.

      PRITEMTEXT-TEXT_ID = 'B01'.

      • PRITEMTEXT-TEXT_LINE = 'DR'.

      APPEND PRITEMTEXT.

      CLEAR PRITEMTEXT.

      CALL FUNCTION 'BAPI_PR_CREATE'

      EXPORTING

      PRHEADER = PRHEADER

      PRHEADERX = PRHEADERX

      • TESTRUN =

      IMPORTING

      • NUMBER =

      PRHEADEREXP = N1

      TABLES

      RETURN = RETURN

      PRITEM = PRITEM

      PRITEMX = PRITEMX

      PRITEMEXP = PRITEMEXP

      • PRITEMSOURCE =

      • PRACCOUNT =

      • PRACCOUNTPROITSEGMENT =

      • PRACCOUNTX =

      • PRADDRDELIVERY =

      PRITEMTEXT = PRITEMTEXT

      • PRHEADERTEXT =

      • EXTENSIONIN =

      • EXTENSIONOUT =

      • PRVERSION =

      • PRVERSIONX =

      • ALLVERSIONS =

      .

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2011 at 09:51 AM

    Hi,

    As mentioned previously you can use the function modules to create them.

    By the way there are mandatory fields in header and items, which has to be consulted and confirmed with the functional consultant.

    Thus you can fill the required fields and go forwaqrd

    Good luck

    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.