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

Similar Messages

  • BAPI for Process order change

    Hi,
    Can any buddy tell me the Bapi used for Process order change
    with following scenarios:
    Quantity change
    Resource change
    Rescheduling
    Control key change
    RM Change
    Recipe change
    TECO
    REVOKE
    Material shortage check
    Best Regards,
    Sheetal.

    Hi,
    BAPI_PROCORD_CREATE for process order create
    BAPI_PROCORD_CHANGE - Change Process Order
    BAPI_PROCORD_CLOSE - Close Process Order
    BAPI_PROCORDCONF_CANCEL for Cancel Process Order
    Confirmation.
    BAPI_PROCORD_COMPLETE_TECH - Complete Technically
    BAPI_PROCORD_RELEASE - Release Process order
    BAPI_PROCORD_SET_DELETION_FLAG - Deletion Flag
    BAPI_PROCORD_REVOKEUSERSTATUS - Cancel User Status
    BAPI_PROCORD_SCHEDULE - Carry Out Scheduling
    pls refer below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    Regards,
    Sankaran

  • I am trying to find a function module or BAPI for internal order change. I

    I am trying to find a function module or BAPI for internal order change. I did come across a function module ALE_INTERNALORDER_DB_CHANGE which directly updates the internal order using insert statements. Can i use this for internal order change or this is any other Function module for updating the internal order.
    I dont want to use BDC as a option. Please suggest.

    This is possible using the Rotator Component Widget from Infosemantics.com.au but it is only compatible with  SWF output, not HTML5.
    Go to this page and scroll down to the video tutorials about the Rotator Component widget:
    http://www.infosemantics.com.au/adobe-captivate/youtube-video-tutorials

  • 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 Outbound Delivery Creation with reference to Sales Order

    Dear all,
    I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction.
    I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_DELIVERYPROCESSING_EXEC .
    However, in 4.6B, that function module doesn't exist. Appreciate any suggestion and or workaround.
    Thanks.
    Steven
    Edited by: Steven Khoo on Mar 25, 2010 7:13 AM
    Edited by: Steven Khoo on Mar 25, 2010 7:14 AM

    Not required anymore

  • BAPI For listing alternative  routing with sequence details.

    Dear all,
    I want to use BAPI For listing alternative  routing with sequence details.
    Pl' tell BAPI function Module for routing .
    Thanks.

    I am not sure ,but check with     BAPI_ROUTING_CREATE

  • What is the BAPI for Inspection lot change - QA02??

    Hi Guys,
    Can anyone tell me plese, What is the BAPI for Inspection lot change - QA02?
    Thanks

    Hello,
    This BAPI suppose to be able to do that for you:
    BAPI_INSPLOT_SETUSAGEDECISION
    Best regards,
    Marcin

  • Finding BAPI for  inbound Delivery change(VL32N)

    HI,
    Plz help me For finding BAPI for  inbound Delivery change(VL32N).
    I have to pass delivery no as input parameter and should able to change shipment heder information
    like Special processing indicator.
    REGARDS,
    Sunil Sahoo.

    hi ,
    there are three  BAPI  your requirment
    1) BAPI_INB_DELIVERY_CONFIRM_DEC
    2) BAPI_INB_DELIVERY_SAVEREPLICA
    3) BAPI_INB_DELIVERY_CHANGE
    but for requirment
    The third BAPI
    BAPI_INB_DELIVERY_CHANGE
    will Sound promising. try this out
    regards
    Prashant

  • BAPI for MC62 tcode - change planing hierarchy.

    Hi All,
    Can anybody tell me the BAPI for MC62 tcode - change planing hierarchy.
    It will be greatful if you send a sample code also.
    Thanks,
    Usha.P

    It is better if u can raise this issue in SCM-PP forum

  • 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

  • BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N

    Hi Everybody,
           We are in ECC 5.0 version.
           I want to create a enhancement for Outbound Delivery Creation with reference to a Sales Order.
           Is any BAPI available for this ?
           Any input on this will be very much helpfull.
           Please suggest any BAPI available for this, or should I go for BDC using VL01N or VL04 ?
           Thanks in advance.
    regards,
    Nagarajan.J

    Hi Nagarajan,
    The BAPI BAPI_DELIVERYPROCESSING_EXEC meets your requirement. You can create delivery with reference to sales order.
    The below is the sample code...
      data:lt_request      like bapideliciousrequest
                                    occurs 0 with header line,
           lt_createditems like bapideliciouscreateditems
                                    occurs 0 with header line,
           lt_return       like bapiret2
                                    occurs 0 with header line.
        lt_request-document_type      = 'A'.
        lt_request-document_numb      = vbeln.
        lt_request-document_item      = posnr.
      lt_request-material           = matnr.
      lt_request-plant              = werks.
      lt_request-stge_loc           = lgort.
      lt_request-quantity_base__uom = base_uom_qty.
      lt_request-delivery_date      = sy-datum.
      append lt_request.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
      EXPORTING
        DELIVERY_EXTEND       =
        TECHN_CONTROL         =
        tables
          request               = lt_request
          createditems          = lt_createditems
          return                = lt_return.
      loop at lt_return where type = 'A'
                          or  type = 'E'.
        exit.
      endloop.
      if sy-subrc <> 0.
    Use the BAPI for Commit
        call function 'BAPI_TRANSACTION_COMMIT'
             exporting
                  wait = 'H'.
      endif.
    Thanks
    Ramakrishna

  • 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

  • BAPI for Posting through FBS1 with reversal reason & reversal Date

    All Experts,
    Can I use BAPI_ACC_DOCUMENT_POST for posting in FBS1 with reversal reason & reversal date? I can't find such option in the BAPI. If not, can you suggest other BAPI that I can use to perform posting with reversal reason & reversal date?
    Thanks in advance.
    Regards,
    Azad.

    You need to use RFBIBL00, create a file to be consumed by it and it will create a session variable that can be run by SM35

  • Bapi for partial good issue with ref to reservation

    I have check the bapi for goods issue with ref to reservation. But how to take care scenario where good issue qty is less than reservation qty. How to map this in bapi.
    Please provide input its urgent
    Thanks
    JENA

    Hi Jena,
    Implement a check in your program calling  BAPI_GOODSMVT_CREATE.
    If you call BAPI_GOODSMVT_CREATE in your own program you have to fill the interface of it (GOODSMVT_HEADER, GOODSMVT_ITEM ...).
    So in the first step you have to select/colect all the required data for the interface. If you want to post a goods-issue with
    reference to a reservation you can implement a quantity-check in you own program similar to the checks in transaction MB1A or transaction MIGO which lead to message M7064. All the required informations are stored in the table "RESB - Items of reservation".
    This is the quantity-check implemented in transaction MIGO (... see note 409754):
    Take only reservation items with open quantity > 0 or
       or flag 'propose all items' is set (->default settings)
         l_open_quantity = ls_resitem-bdmng - ls_resitem-enmng.   >(1)
         CHECK l_open_quantity > 0 OR
                s_defaults-propose_all_items = abap_true.
    l_open_quantity  = open quantity -> is calulated here
    ls_resitem-bdmng = Requirement Quantity ->
                        table RESB / field BDMNG
    ls_resitem-enmng = Quantity withdrawn ->
                        table RESB / field ENMNG
    Furthermore you could check, whether the quantity you want to post now is larger than the (remaining) open quantity. If this
    not the case you could add this item to the interface-data. Otherwise you can ignore it and send a corresponding message or add the item to an error-log.
    After the check has been carried out and the interface has been filled with the valid items you can call BAPI_GOODSMVT_CREATE.
    In the customizing-transaction OMCQ you can maintain the category of messages. If you set the message M7 362 to the category "E - error message" the BAPI_GOODSMVT_CREATE will return with   this (error-)message as soon as the requirement quantity is exceeded by the goods-issue("Reserved quantity exceeded by ...").
    But: other processes/applications are using these settings too.
    This means: these processes/applications might have a different behaviour after your changes (error-message instead of a warning-  message ... for example).
    I hope this helps,
    Elaine.

  • BAPI for Order Confirmation along with measurement reading entry

    Hello Experts,
    I would like to know if there is any BAPI for PM Order completion Confirmation along with measurement reading entry?
    Thanks in advance.

    [BAPI for TECO|Function Module for TECO(technically complete) a maintenance work order;
    [BAPI to create Measurement document|BAPI or Function Module for creating measuring point;
    Based on the business transaction, by using user exit, you can accomplish these.

Maybe you are looking for