BAPi for PR create

Dear Experts ,
I am searching the BAPi for purchase requisition create for enjoy transaction ( ME51N ) . I have found the BAPi "BAPI_PR_CREATE" .
But I am using it at SAP ECC 4.6 so here it is giving error that BAPi doesn't exist .
Suggest me.........
Thanks
Alok

Hi Alok,
I do not think that there is any BAPI to support enjoy PR transactions. I checked SAP note and found one note for PR BAPIs (SAP note - 499627).
Please check link below:
https://service.sap.com/sap/support/notes/499627
1. Question:
Can I use BAPI_REQUISITION_CREATE to set the fixed indicator?
Answer:
You cannot use the BAPI BAPI_REQUISITION_CREATE to set the fixed indicator.
When the BAPI BAPI_REQUISITION_CHANGE is used to make changes, the system sets the fixed indicator automatically only if the purchase requisition originates from requirements planning.
For more information, refer to Note 330206.
1. Question:
Can the BAPIs of the purchase requisition with the "CreateFromData1" and "Change" methods cover all of the functions of the EnjoySAP purchase requisition (transactions ME51N and ME52N)?
Answer:
The function modules BAPI_REQUISITION_CREATE and BAPI_REQUISITION_CHANGE do not cover all of the functions of the EnjoySAP purchase requisition transactions. This is because the two asynchronous BAPIs have been developed based on ME51 and ME52 (program SAPMM06B). The user exits from the function group MEREQ (for example, MEREQ001) are therefore not available.
In SAP R/3 Release 4.70, two new API methods are developed that are based on the EnjoySAP technology of the purchase requisition transactions ME51N and ME52N. The function modules BAPI_PR_CREATE and BAPI_PR_CHANGE are released in Release 6.00 (ERP2005).
SAP does not provide support for this because these function modules have not been released for Releases lower than 6.00. If you use these BAPIs in customer-defined programs, you must bear in mind that you are responsible for any problems that might occur. In addition, you must read Notes 109533 and 415983.
A downport to a release lower than 4.70 is not provided because developing this would involve considerable time and effort.
1. Question:
Can BAPI_REQUISITION_CHANGE process the customer enhancements ExtensionIn?
Answer:
See Note 584902.
1. Question:
Can service items be created using BAPI_REQUISITION_CREATE or changed using BAPI_REQUISITION_CHANGE?
Answer:
No, this is only possible with the new API functions for the object BUS2105. See the following point.
Hope that helps!
Regards,
Saba
Edited by: Saba Sayed on Feb 17, 2011 5:40 PM

Similar Messages

  • BAPI for RFQ create

    Gents,
    We are in search for a BAPI for RFQ create like the one BAPI_PO_CREATE1 for PO. But we are not getting anyone like that. Please note that we are in ECC 6.0.
    We don;t want to go for a  BDC to do this.
    Any options?
    Regards
    Shibu

    Hi,
    I tried this module,  but it only works if DIMP is activated .   See also :  1666702 - Syntax Error occurs when using BS01_MM_QUOTATION_CREATE .  
    This contains the remark:  Please do not consider activating the Business Function Set DIMP because you only would like to use this specific function BAPI BS01_MM_QUOTATION_CREATE (for some custom development).
    So I think, unfortunately this will not work on many installations.
    I also tested BAPI_PO_CREATE1  :  there is no field to pass the DocumentCategory (to set EKKO-BSTYP ='A' ).
    EKKO-BSTYP is set internal  to 'F' and as result the passed document type for the RFQ is invalid, when it is checked with table T161.
    Does SAP plan to enable a workaround for this module or to develop and a new modul for RFQ-creation via BAPI?
    And   BAPI_PO_CREATE has an error in processing the passed currency-value. 

  • Bapi for invoice create

    hi ,
    i want to create invoice ..the reference number will be delivery...is there any bapi/fm to do this..i tried bapi_billingdocu_createmultiple..but its not working..if there isn't any bapi what isthe other way...its an urgent thing..thank you..
    Thanks,
    Challa

    Check this thread for more details. It gives different aspects of creating Invoice document using BAPI for various scenarios.
    Re: invoice creation through BAPI

  • BAPI for VL31N:Create Inbound Delivery

    Hi all,
    Please give the BAPI for VL 31N: Create Inbound delivery transaction
    thanks

    No bapi but you can use this function module GN_DELIVERY_CREATE
    Select the data required - see below
      select ebeln ebelp menge meins matnr werks lgort bstae loekz elikz
             lmein umrez umren insmk pstyp sobkz knttp kzfme kzvbr
             ematn mfrnr mfrpn emnfr cuobj uebto untto uebtk bwtar idnlf
             txz01 mfrgr gewei voleh ntgew brgew volum ean11 aktnr abeln
             abelp aurel matkl upvor uptyp uebpo wepos
              into corresponding fields of table xekpo_short
              from ekpo
               where ebeln = i_ebeln
                 and ebelp = i_ebelp.
      if sy-subrc ne 0.
        e_rc = 4.
      else.
        read table xekpo_short index 1.
        call function 'ME_EKKO_SINGLE_READ'
          exporting
            pi_ebeln         = xekpo_short-ebeln
          importing
            po_ekko          = ekko
          exceptions
            no_records_found = 1
            others           = 2.
        if sy-subrc ne 0.
          e_rc = 4.
        elseif ekko-bstyp ne 'F' and ekko-bstyp ne 'L'.
          e_rc = 4.
        endif.
      endif.
      clear xvbsk.
      xvbsk-mandt = sy-mandt.
      xvbsk-ernam = sy-uname.
      xvbsk-erdat = sy-datum.
      xvbsk-uzeit = sy-uzeit.
      xvbsk-smart = 'L'.
    *- Nummer VBSK vergeben -
      select single * from tvsa where smart = xvbsk-smart.
      if sy-subrc = 0.
        call function 'NUMBER_GET_NEXT'
          exporting
            nr_range_nr = tvsa-numki
            object      = 'RV_SAMMG'
          importing
            number      = xvbsk-sammg
          exceptions
            others      = 01.
        if sy-subrc ne 0.
          message e700(me) with tvsa-numki text-007.
        endif.
      else.
        message e700(me) with space text-007.
      endif.
      data: h_grkor like lips-grkor,         "Liefergruppe         "386409
           h_bsmng like ekpo-menge.         "Bestellmenge übergeordnete Pos.
      if not ekko-lifnr is initial.
        call function 'VENDOR_MASTER_DATA_SELECT_12'
          exporting
            pi_lifnr       = ekko-lifnr
            pi_ekorg       = ekko-ekorg
          importing
            pe_lfm1        = lfm1
          exceptions
            no_entry_found = 1
            others         = 2.
        xkomdlgn-vsbed = lfm1-vsbed.
      else.
        clear xkomdlgn-vsbed.
      endif.
      xkomdlgn-lifnr = ekko-lifnr.
      xkomdlgn-inco1 = ekko-inco1.                              "363954
      xkomdlgn-inco2 = ekko-inco2.                              "363954
      xkomdlgn-exnum = ekko-exnum.                              "363954
      xkomdlgn-bukrs_best = ekko-bukrs.                         "363954
      xkomdlgn-matnr = xekpo_short-matnr.
      xkomdlgn-werks = xekpo_short-werks.
      xkomdlgn-lgort = xekpo_short-lgort.
    xkomdlgn-charg = ?
      xkomdlgn-vrkme = xekpo_short-meins.
      xkomdlgn-meins = xekpo_short-lmein.
      xkomdlgn-umvkz = xekpo_short-umrez.
      xkomdlgn-umvkn = xekpo_short-umren.
      if xekpo_short-matnr eq space.                            "386409
        xkomdlgn-meins = xekpo_short-meins.
        xkomdlgn-umvkz = 1.
        xkomdlgn-umvkn = 1.
      endif.
      xkomdlgn-insmk = xekpo_short-insmk.
      xkomdlgn-kzfme = xekpo_short-kzfme.
      xkomdlgn-kzvbr = xekpo_short-kzvbr.           "note 384051
      xkomdlgn-lfimg = p_lfimg.
      xkomdlgn-lfdat = p_eindt.
      xkomdlgn-vgbel = xekpo_short-ebeln.
      xkomdlgn-vgpos = xekpo_short-ebelp.
      xkomdlgn-lfart = gf_dlv_type.
      xkomdlgn-vgtyp = 'V'.
      xkomdlgn-kzazu = 'X'.                "??? what's that for ????
      xkomdlgn-knttp = xekpo_short-knttp.
      xkomdlgn-sobkz = xekpo_short-sobkz.
      if xekpo_short-matnr is initial or xekpo_short-pstyp = '6'.
        xkomdlgn-posar = 'B'.
      endif.
      xkomdlgn-ematn = xekpo_short-ematn.
      xkomdlgn-mfrnr = xekpo_short-mfrnr.
      xkomdlgn-mfrpn = xekpo_short-mfrpn.
      xkomdlgn-emnfr = xekpo_short-emnfr.
      xkomdlgn-cuobj = xekpo_short-cuobj.
      xkomdlgn-uebto = xekpo_short-uebto.
      xkomdlgn-untto = xekpo_short-untto.
      xkomdlgn-uebtk = xekpo_short-uebtk.
      xkomdlgn-bwtar = xekpo_short-bwtar.
      xkomdlgn-kdmat = xekpo_short-idnlf.
      xkomdlgn-arktx = xekpo_short-txz01.
      xkomdlgn-mfrgr = xekpo_short-mfrgr.
      xkomdlgn-gewei = xekpo_short-gewei.
      xkomdlgn-voleh = xekpo_short-voleh.
      xkomdlgn-ntgew = xekpo_short-ntgew * xkomdlgn-lfimg.
      xkomdlgn-brgew = xekpo_short-brgew * xkomdlgn-lfimg.
      xkomdlgn-volum = xekpo_short-volum * xkomdlgn-lfimg.
      xkomdlgn-ean11 = xekpo_short-ean11.
      xkomdlgn-aktnr = xekpo_short-aktnr.
      xkomdlgn-abeln = xekpo_short-abeln.
      xkomdlgn-abelp = xekpo_short-abelp.
      xkomdlgn-aurel = xekpo_short-aurel.
      xkomdlgn-idnlf = xekpo_short-idnlf.
      xkomdlgn-matkl = xekpo_short-matkl.
    Leergut-Stückliste übernehmen
      clear xkomdlgn-grkor.
      clear xkomdlgn-kmpmg.
      clear xkomdlgn-uepos.
      if xekpo_short-upvor ca '3X'.
        h_grkor = h_grkor + 1.
        xkomdlgn-grkor = h_grkor.
        h_bsmng = xekpo_short-menge.
      endif.
      if not xekpo_short-uebpo is initial and
             xekpo_short-uptyp ca '3X'.
        xkomdlgn-uepos = xekpo_short-uebpo.
        xkomdlgn-grkor = h_grkor.
        if h_bsmng ne 0.
          xkomdlgn-kmpmg = xekpo_short-menge / h_bsmng.
        endif.
      endif.
    *- Konsignation - SOBKZ 'K' hart reinsetzen, da  von Pstyp abhäng......
      if xekpo_short-pstyp eq '2'.
        xkomdlgn-sobkz = 'K'.
      endif.
    Kontierungsfelder
      if xekpo_short-sobkz eq 'E' or xekpo_short-sobkz eq 'Q'.
        call function 'MMPUR_EKKN_READ_EBELN_EBELP'
          exporting
            pi_ebeln                   = xekpo_short-ebeln
            pi_ebelp                   = xekpo_short-ebelp
          PI_BYPASSING_BUFFER        =
          PI_REFRESH_BUFFER          =
          tables
            pto_ekkn_po                = xekkn
          exceptions
            no_records_requested       = 1
            others                     = 2.
        if sy-subrc eq 0.
          read table xekkn index 1.
          xkomdlgn-ps_psp_pnr = xekkn-ps_psp_pnr.
          xkomdlgn-vbelv      = xekkn-vbeln.
          xkomdlgn-posnv      = xekkn-vbelp.
        endif.
      endif.
      append xkomdlgn.

  • BAPI for Delivery Create

    hi,
    1.can i create delivery for particular customer using bapis?
    2.can i create invoice using bapis?
    if it is possilble pls tell me the bapi names??????????????
    regards
    Guru

    Hi Guruvulu,
    Take a look at the following ones :
    BAPI_INB_DELIVERY_CHANGE       Change inbound delivery                                            
    BAPI_INB_DELIVERY_CONFIRM_DEC  BAPI for inbound delivery verification from a decentralized system 
    BAPI_INB_DELIVERY_SAVEREPLICA  BAPI Function Module for Replication of Inbound Deliveries         
    BAPI_OUTB_DELIVERY_CHANGE      BAPI for Change to Outbound Delivery                               
    BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Verification from a Decentralized System
    BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries        
    BAPI_OUTB_DELIVERY_SPLIT_DEC   BAPI for Subsequent Outbound-Delivery Split from a Decentralized Sys
    <b>BAPI_OUTB_DELIVERY_SAVEREPLICA / BAPI_INB_DELIVERY_SAVEREPLICA should be ok for you for the delivery creation.
    and BAPI_INCOMINGINVOICE_CREATE for invoice.</b>
    Hope this helps,
    Erwan

  • BAPI for Inovice create

    We are using BAPI_IncomingInvoice_CREATE with calcuate tax.
    We are using one freight condition is PO which is to includued in ner price but taxes should not be calculated on freight amount.
    With Standard MIRO transaction this is working correctly but when we are using BAPI for the same the taxes are being calculated on the amount inclusive of freight.
    Kindly help in this regard.
    Thanks

    Any solutions?

  • Bapi for vl01no create outbound delivery without order reference

    Hi Guru's, i need help, I'm looking for BAPI VL01NO
    Any suggestions?
    Thanks for everything
    Edited by: GaBo_s Gabo on Sep 22, 2009 8:48 PM

    Hi,
    Following is the sample code for creation of outbound delivery Using BAPI 'BAPI_DELIVERYPROCESSING_EXEC'
    Which may be helpful.
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: BEGIN OF t_vbap OCCURS 0,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
    kwmeng LIKE vbap-kwmeng,
    matnr LIKE vbap-matnr,
    werks LIKE vbap-werks,
    END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
    WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
    WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr kwmeng matnr werks
    INTO TABLE t_vbap
    FROM vbap
    WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
    t_request-document_numb = t_vbap-vbeln.
    t_request-document_item = t_vbap-posnr.
    t_request-quantity_sales_uom = t_vbap-kwmeng.
    t_request-id = 1.
    t_request-document_type = 'A'.
    t_request-delivery_date = sy-datum.
    t_request-material = t_vbap-matnr.
    t_request-plant = t_vbap-werks.
    t_request-date = sy-datum.
    t_request-goods_issue_date = sy-datum.
    t_request-goods_issue_time = sy-uzeit.
    APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    TABLES
    request = t_request
    createditems = t_created
    return = t_return
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
    MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    READ TABLE t_created INDEX 1.
    WRITE: / 'Delivery ', t_created-document_numb, ' created'.
    Let me know if any issues.
    Thanks & Regards,
    Naveen

  • Need BAPI for COR1(Create process Order)

    Hi Gurus,
    I need a BAPI or Function module for create process order (Tcode - COR1)
    for which i am passing Plant, storage location,produced material number, quantity to produce,
    received material,quantity to recived.
    Regards,
    Vijay Mekala

    Hi,
    is there any other BAPI or function module for COR1...
    Regards,
    Mekala Vijay

  • BAPI for Customer Create

    Hi,
    I need to simulate XD01 as my web dynpro application. (My requiremtn).
    I have a requirement to create the customer. ( In WEB DYNPRO)
    I am looking for the BAPI.
    In my application I am giving the customer number from My Screen as Exporting Parameter.
    But, In BAPI, by default it is assigning the Customer number. It is not taking as Input.
    Can you please tell me any BAPI or any FM or which creates customer by taking KUNNR as input.
    Regards
    Sandeep.

    Hi Sandeep,
    first don't use SD_CUSTOMER_MAINTAIN_ALL.....
    SD_CUSTOMER_MAINTAIN_ALL is used in standard during the maintenance of a consumer using the standard customer master data transaction XD01 & XD02.
    It is not intended to be used out of the transaction and in no case it should be used out of its original context. Due to the specificity of the function module, out of the original context we may face limitations and data inconsistencies.
    For the maintenance of customers, there is NO BAPI and NO direct function module.
    There are some functions modules like the one above where the name is looking nice. But these should not be used.
    Below ECC 2005 (6.00), the only solution was batch input and DEBMAS idocs. See [note 384462|https://service.sap.com/sap/support/notes/384462]
    Starting with ECC 2005 (6.00) and above: a synchronisation tool has been introduce. See class CMD_EI_API and VMD_EI_API
    Then some other informations that can help too.
    Starting with ERP 2005 ehp2 or ehp3, a new initiative has been developped. It called the Lean Customer. This is a Web dynpro application to maintain customer master data.
    This development proposes an api that can be used directly if the limitation are ok for your development.
    Otherwise you have to go to the CMD_EI_API class to fullfil you goal
    Hope this helps
    BR
    Alain

  • While i send the delivery date to BAPI for PO create,it still going for ATP

    Hi Friends,
    while creating PO through BAPI I am sending delivery date to "BAPI_PO_CREATE1" in the schedule lines ,but still it is picking the delivery dates from the ATP.
    I want my delivery dates to be populated in the PO rather than the ATP.
    Please suggest.
    Do we have any new BAPI i am using R/3 version 4.7.
    Thanks Regards,
    Sandipan Jena

    There seems to be lot of threads in SDN and OSS Notes( 770120)
    bapi_po_create1 - enjoy purchase orders

  • BAPI for ROUTING create

    Hello All,
    I need to create Routing using BAPI ' BAPI_ROUTING_CREATE'. and i need to have object dependencies in operation view as well. but i am not able to find the field to pass that data related to object dependency. can anybody help me to solve this.
    Kumar.

    Hi check this out.
    Value assignment OPERATION
    Structure component          Value     Remarks
    TASK_LIST_GROUP                    1     
    SEQUENCE_NO                  0, 1, 2u2026     Sequence number:
                                                                    0 u2013 main sequence
                                                                   1,2,u2026 parallel sequence.
    ACTIVITY                                    9999     Operation number: 0010, 0020, etc.
    CONTROL_KEY                    KL01, KL21u2026     Control key
    WORK_CNTR                  757, 725,u2026            Work center
    PLANT                                     560     
    DESCRIPTION                                 Operation description
    OPERATION_MEASURE_UNIT_ISO     PCE     
    DENOMINATOR     1     
    NOMINATOR     1     
    BASE_QUANTITY     1     
    STD_VALUE_01     999,999     Operation time, maximum 3 decimals places
    STD_UNIT_02_ISO     UHR, MIN,u2026     Operation time unit

  • BAPI for PO Create/Change with use of EXTENSIONIN table

    Hello,
    We are using SRM extended classic scenario which copies PO's from SRM to ECC via function module BBP_PO_INBOUND.  This function module does mappings and then calls either BAPI_PO_CREATE1 or BAPI_PO_CHANGE.  I have added field YYVSBED (char2) to structure CI_EKKODB.  When BAPI's are called this field is present in ExtensionIn structure.  While debugging the processing, I can see that it being processed, however, it does not get posted in database.
    Any suggestions are very welcome.
    Thank you.
    Natasha

    Internally the BAPI uses the the MEPO...-Structures .  Your data is lost  at the move-corresponding from the BAPI-Structure to the related MEPO... structure . If your target-field is an EKPO-Field you have to check if there is a field in the MEPOITEM -structure . 
    If you use the CI_EKPODB  to extend the EKPO with your custom field, the BAPI would work, because this is included in EKPO and MEPOITEM   .
    Best regards Josef

  • BAPI  for create/change purchase info record

    Hi All,
    Could any one suggest me the BAPI for the create/change purchase info record(ME11/ME12).
    Earliest can be appriciable.
    Regards
    Anil

    Hi,
         I did not get any bapi related to create/change purchase info. But i can give u list of purchase info . if u got revert back to me
    Reward if it is usefull..
    Bye.
    BAPI_INFORECORD_GETLIST

  • Require bapi for create billing document

    Hi,
    Guru.....
    Please provide the Bapi for Backgournd create Billing document with refrence to Delivery.
    Thanks
    Arun

    HI
    Try with T-Code VF06 for automatic back- ground billing document creation based on delivery with PGI
    Check the Below link
    [Re: automatic delivery and billing|automatic delivery and billing;
    Regards,
    Prasanna
    Edited by: prasanna_sap on Feb 1, 2012 12:09 PM

  • Regarding BAPI for Creat Class Hierarchy

    Hi ,
    Urgently i need a BAPI for to create Class_Hierarchy and also need what are the parameters to pass for that BAPI .
    Please any body help out this is urgent.
    thanks in advance,
    krishna.

    Hi,
    The relavant BAPI is BAPI_OBJCL_CREATE.
    You can read the characteristics by using BAPI: BAPI_OBJCL_GETDETAIL
    Plz check other BAPIs in FuGr: CLBPA which might help you. You can find FM Documentation for most of the BAPIs in this FuGr.
    If this is a one time load, I suggest you to take up this task by LSMW:
    Object               0130   Classification
    Method               0001   Batch input  
    Program name         RCCLBI02            
    Program type         B   Batch input    
    Hope this helps.
    Best Regards, Murugesh AS

Maybe you are looking for

  • Unable to read the file in excel..

    Hi all, I created a report.for this report It was an excel template. when I click on view button I am getting an error Unable to read file. I checked my query in database it retrieving 43000 records. When I am going for rownum<1000 my report is givin

  • GOP / UEFI Vbios Request N660 TF 2GD5/OC

    Hello, I would like to request the updated VBios for the N660 TF 2GD5/OC S/N:602-V287-050B1301121706 I have a problem with a fan, which is away from the chip, at ignition computer spin, al al fit and only after the AB lift over 70%. Sorry for the bad

  • Ultra 2 (Solaris 8) keeps rebooting

    I'm really new to Solaris. Just installed Solaris 8 on an Ultra Enterprise 2 which has two SCSI hard drives. The first drive (1GB) holds the swap partition and the second drive (9GB) holds the Solaris 8 installation. After doing a Stop-A to get to th

  • How to track equipment warranty details

    Dear PM Guru's. for my one of the client requires tracking of the equipment warranties. how we track the equipment warranties? what is the possible scenario in standard sap? wht parameters has to be considered to map the equipment warranties in stand

  • How to fetch the configuration of a material !

    Hi Guys, I need to fetch configuration for some materials found in MARC like the characteristic "Size" or "Color". For this reason I call first the function CE_C_PROCESSING to the instance of the material and then call the function CE_I_GET_CONFIGURA