Problem in bapi for vl01n

Hi Experts,
I have Written this below code to upload Delivery with refrence to sales orders with batch split . when i execute this program it is retuning the message  that the transfered sales order table is empty.
If i change the document_catogy_sd = ' L '.
then its not retuning any message  but its not creating any deliveries. please find and fix the problem in this program.
FIELD_NAME = ' '
IMPORTING
FILE_NAME = L_FILE1
IF NOT L_FILE1 IS INITIAL.
P_FILE1 = L_FILE1.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE2.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
IMPORTING
FILE_NAME = L_FILE2
IF NOT L_FILE2 IS INITIAL.
P_FILE2 = L_FILE2.
ENDIF.
START-OF-SELECTION.
PERFORM F_UPLOAD TABLES ITAB USING P_FILE1.
PERFORM F_UPLOAD1 TABLES ITAB1 USING P_FILE2.
SORT ITAB1 BY VBELN.
ITAB1[] = ITAB[] .
LOOP AT ITAB.
ITABL-DOCUMENT_CATEGORY_SD = 'J'.
ITABL-DOCUMENT_NUMB = ITAB-VBELN.
ITABL-DOCUMENT_ITEM = ITAB-ITEMNO.
ITABL-RECEIVING_POINT = ITAB-VSTEL.
ITABL-DATE = ITAB-VSTEL.
ITABL-DELIVERY_DATE = ITAB-WADAT.
ITABL-GOODS_ISSUE_DATE = ITAB-WADAT_IST.
ITABL-LOADING_DATE = ITAB-LDDAT.
ITABL-MAT_AVAILABIL_DATE = ITAB-MBDAT.
ITABL-MATERIAL = ITAB-MATNR.
ITABL-QUANTITY_SALES_UOM = ITAB-SOQTY.
IT_FINAL-DOCUMENT_NUMB = ITAB-VBELN.
IT_FINAL-DOCUMENT_ITEM = ITAB-ITEMNO.
IT_FINAL-RECEIVING_POINT = ITAB-VSTEL.
IT_FINAL-DATE = ITAB-VSTEL.
IT_FINAL-DELIVERY_DATE = ITAB-WADAT.
IT_FINAL-GOODS_ISSUE_DATE = ITAB-WADAT_IST.
IT_FINAL-LOADING_DATE = ITAB-LDDAT.
IT_FINAL-MAT_AVAILABIL_DATE = ITAB-MBDAT.
IT_FINAL-MATERIAL = ITAB-MATNR.
IT_FINAL-QUANTITY_SALES_UOM = ITAB-SOQTY.
it_doc-DOCUMENT_CATEGORY_SD = 'J'.
append it_doc.
APPEND IT_FINAL.
LOOP AT ITAB1 WHERE VBELN = ITAB-VBELN AND ITEMNO = ITAB-ITEMNO.
ITABL-STGE_LOC = ITAB1-LGORT.
ITABL-BATCH = ITAB1-CHARG.
itabl-QUANTITY_BASE__UOM = itab1-lfimg.
itab1-MAT_AVAILABIL_DATE = itab1-mbdat.
IT_FINAL-STGE_LOC = ITAB1-LGORT.
IT_FINAL-BATCH = ITAB1-CHARG.
*it_final-lfimg = itab1-lfimg.
APPEND IT_FINAL.
ENDLOOP.
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
EXPORTING
DELIVERY_EXTEND =
TECHN_CONTROL =
TABLES
REQUEST = IT_FINAL
PARTNER =
PARTNER_ADDR =
TEXT_HEADER =
TEXT_LINES =
CREATEDITEMS = it_doc
RETURN = IT_RETUN .
EXTENSION1 =
EXTENSION2 =
CO_CHAR_VALUES =
BATCH_ATTRIBUTES =
BATCH_VALUES_CHAR =
BATCH_VALUES_CURR =
BATCH_VALUES_NUM =
TOKENREFERENCE =
WRITE: / ' ** S.T.O. HELD WITH DOCUMENT NO ** ', TEXT1.
WRITE: / SPACE.
*loop at iret.
*endloop.
LOOP AT IT_RETUN.
WHERE TYPE = 'A'
OR TYPE = 'E'.
WRITE:/ IT_RETUN-TYPE, ' ', IT_RETUN-MESSAGE.
EXIT.
ENDLOOP.
ENDLOOP.
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
commit work and WAIT.
ENDIF.
*& Form f_upload
text
-->P_ITAB text
-->P_P_FILE1 text
FORM F_UPLOAD TABLES P_ITAB STRUCTURE ITAB
USING P_P_FILE1.
DATA: V_FILE TYPE STRING.
V_FILE = P_P_FILE1.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = V_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = ITAB.
IF SY-SUBRC <> 0.
ENDIF.
ENDFORM. " f_upload
*& Form f_upload1
text
-->P_ITAB1 text
-->P_P_FILE2 text
FORM F_UPLOAD1 TABLES P_ITAB1 STRUCTURE ITAB1
USING P_P_FILE2.
DATA: V_FILE1 TYPE STRING.
V_FILE1 = P_P_FILE2.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = V_FILE1
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = ITAB1.
IF SY-SUBRC <> 0.
ENDIF.
ENDFORM. " f_upload1
  Thanks in Advance...
Points Rewarded.
Regards.
Ravi...
Message was edited by:
        Ravi reddy

Hi Naveen,
Thanks for the reply. Even after using FM QAVE_PROCESS_AUTO_UD,when i execute
BAPI_GOODSMVT_CREATE, the same thing is happening.I am unable to see the stock deducted in QA33.
Is there any input in the goods mvt bapi where we can provide inspection lot no since i believe that the goods mvt has to get connected with the inspection lot.

Similar Messages

  • Bapi for VL01N

    Hello Guru,
                    i am looking bapi for delivery process (VL01n) in SD module.
                    i searched in bapi transaction, i can't find any relevant bapi for delivery process.
    Regards,
    Arasukumar

    Hi,
    Kindly refer the below link.
    Re: BAPI for Delivery Creation
    May be useful for you. Else reply back.
    Regards,
    Vijay V

  • Problem in BAPI for stock posting from quality inspection  to unrestricted usage

    Hi all,
    I am using BAPI_GOODSMVT_CREATE for  stock posting from quality inspection  to unrestricted usage Stock against quality inspection lot(not by MB1B) using mvt type 321.The material doc gets created by the BAPI,but actual stock posting is not taking place ie.the stock doesn’t get reflected in QA33/32 and QA11 also .Can any one suggest what must be wrong?The inputs given are as follows:
    GOODSMVT_HEADER:
    PSTNG_DATE =30/07/2014, DOC_DATE = 30/07/2014, REF_DOC_NO = INSP LOT NO.
    GOODSMVT_CODE:
    GM_CODE:  ‘04’ .
    GOODSMVT_ITEM:
    MATERIAL = MATERIAL NO
    PLANT = PLANTCODE
    STGE_LOC = ‘WIP’
    BATCH = BATCHNO
    MOVE_TYPE   = ‘321’
    ENTRY_QNT = 100
    ENTRY_UOM =  ‘EA’
    ORDERID =  Prd ord no.
    After executing this I used BAPI_TRANSACTION_COMMIT also. I am able to see the posted qty in MMBE,but it is not reflecting in QA11/33/32.
    Kindly help me.

    Hi Naveen,
    Thanks for the reply. Even after using FM QAVE_PROCESS_AUTO_UD,when i execute
    BAPI_GOODSMVT_CREATE, the same thing is happening.I am unable to see the stock deducted in QA33.
    Is there any input in the goods mvt bapi where we can provide inspection lot no since i believe that the goods mvt has to get connected with the inspection lot.

  • Problem in BAPI for FB70

    Hi all,
    I have used the BAPI_ACC_DOCUMENT_POST to create the customer invoice.But, when i run the program it is giving the error as
       Error in document: BKPF $ DEVCLNT250
       Incorrect entry in field OBJ_TYPE: BKPF
    i am passing the entry as OBJ_TYPE = 'BKPF'.
    Can anyone let me know wat shoud i pass to this parameter.
    regards
    Mustafa

    2     0AA98     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR                    
    2     0AA98     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    2     0AA98     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    2     0AA98     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    2     0AA98     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    2     0AA98     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    3     0AA99     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR                    
    3     0AA99     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    3     0AA99     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    3     0AA99     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    3     0AA99     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    3     0AA99     1000     1234556     3.8.09     3.8.09     Bapi Test     1000     SAR     790100     1000     200     SAR
    i m using the above test template to create the customer invoice but it is giving the error as '-'cannot interpret as a number.i am concatenating the amount in doc. currency with '-'.but if i remove that variable and assign the values directly from excel file it is giving the error as GL Account is not assigned for line item 2.
    i m able to uplaod the data for one customer and the document is getting created.but for multiple header data and their line items it is giving the error.

  • Problem using BAPI for Final Invoice Tick

    Hi,
    I am using the BAPI BAPI_PO_CHANGE to set the Final invoice flag in a PO line item. But the call throws up various kinds of errors.
    Are there any mandatory parameters that I may have missed out for the updation of this particular field.
    Thanks in advance,
    Ashish

    Hi,
    As per my knowledge the following parameters are required.
    PURCHASEORDER
    POHEADER
    POHEADERX
    RETURN
    POITEM
    POITEMX
    There is very good function module documentation available for the BAPI.
    Open the function module in SE37 and click documentation.
    YOu will see example also.
    Thanks
    Ramakrishna

  • 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 delivery VL01N transaction

    Hi All,
           I am working on SAP ECC 5.0 version. My requirements are to create a delivery note against a purchase order. The purchase order is basically for Stock transfer between intra company (UB) and Inter Company (NB) . So am looking for BAPI that can create outbound delivery for Goods movement types 641 and 643.
    I tired searching some of the already asked questions on this forum, but nothing was substantial.
    If any of you know the BAPI/ worked on similar requirements, Please let me know the details with an example snippet if possible.
    Thanks,
    Kiran

    HI,
    check this link BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N
    Thanks
    Mahesh

  • Problem of BOM components uploading through BAPI,for  the Network(CN01)

    Hello,Friends,
    Iam PP consultant and facing a problem of BOM components uploading through BAPI,for creating of the Network (CN21)
    we have 300 components in the network activity and while uploading the BOM through BAPI , only 295 components has been uploaded.Others components has not uploaded.
    Please suggest me what will be the Problem? and
    What is the solution for the same?
    Regards,
    MYS

    in customizing availability checked has been applied ,for this reason one additional screen is appearing in BAPI for all these components
    How this screen could be by passed

  • BAPI for transaction VL01N

    Hello people!
    Anyone have an example of using BAPI for the transaction VL01N, Outbound delivery?
    Thanks in advance,
    Denis Nakamoto

    How about any of these?
    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 Syste
                                                                                  Create Delivery from Delivery Due List                               
    BAPI_DELIVERYPROCESSING_EXEC   Delivery Processing: Deliver Preceding Document, Expand Delivery
    Regards,
    Rich Heilman

  • BAPI for posting outbound delivery (VL01n)

    Hi,
    I need some help in finding correct function module or BAPI for posting outbound delivery (VL01n), the requirement is I need delivery created with reference to sales order and must take following input.
    1. Shipping Point
    2. Sales Order
    3. Selection Date
    4. Delivery type
    I tried some existing ones and some do not have delivery type input and some without Shipping Point input.
    Please let me know.
    Regards
    Ram.

    Hi
    Please avoid the duplicate post .It is not as per the Forum rules.
    You have posted the same question with this title in ABAP General Forum:
    Outbound Delivery BAPI/Function module
    Neha

  • Problem in creating a bapi for bom

    hai all,
    i am trying to create a bapi for bom using csap_mat_bom_create, but it am getting sy-subrc value as 1.
    and displaying error message as the function module name itself.
    is there any solution dor it.

    Hello,
    Try to use that bapi :
    BAPI_MATERIAL_BOM_GROUP_CREATE
    Thierry

  • FM/BAPI for delivery creation

    Hi,
         I need to create a delivery w/o order reference though VL01N0 ,but i am unable to find any BAPI / FM which could let me do so through the code w/o BDC.
               Can any one suggest a FM/BAPI for the same.
    Kunal

    Hi kunal,
    You can use BAPI BAPI_DELIVERYPROCESSING_EXEC to deliver preceding documents like a sales order.
    If this doesn't solve ur recquirement then write an BDC Program .
    I have done some BDC programs On VL01n before...u will not face any problem .
    ravinder.

  • BAPI for ABZU - Asset Write UP

    Hi
    I need to post asset write up documents through ABZU tcode. Can any one help me out with the appropriate BAPI for the same.
    BDC will not solve my problem as the set of screen changes as per the 'Transaction Type'.
    Regards,
    Sudip Kumar Das.

    Write up is allowed only to the extent of accumulated depreciation from previous years.  You can do write up "ABZU". however the accumulated depriciation balance has to carry forward from last fiscal year to current fiscal year and you can do writeup only upto the accumulated depr from the previous yr

  • BAPI FOR Deleting a Schedule Line Item from EKES and EKET tables

    Dear All,
    I would like to for deleting one of the line item from EKES (Po Confirmation ) and the respective line item from the EKET(PO Schedule Line Item Table).
    Assume that am allowing the user to select the lineitem from zprogram screen and collecting the PO and Its LIne Item details in an internal table.
    Can i Use
    <b>BAPI_PO_Change</b> , if so , can anybody tell me the steps to follow to use this bapi for deleting the PO lineItems, since i m going to try BAPI for First time.
    pls help me out
    Message was edited by: Raja K.P

    Hi raja ,
    loop at iekko1.
        w_index = sy-tabix.
        item-po_item   = itemx-po_item   = iekko1-ebelp.
        item-quantity  = iekko1-mng01.
        itemx-quantity = iekko1-mng01.
        if iekko1-wamng = iekko1-wemng.
        itemx-no_more_gr = item-no_more_gr = 'X'.
        else.
        itemx-no_more_gr = item-no_more_gr = ''.
        endif.
        append item.
        append itemx.
          clear return[].
          call function 'BAPI_PO_CHANGE'
               exporting
                    purchaseorder = iekko1-ebeln
               tables
                    return        = return
                    poitem        = item
                    poitemx       = itemx.
          if return[] is initial.
          commit work and wait.
          call function 'DEQUEUE_ALL'.
    search for deletion fields which u have to mark 'X'.
    before calling  this BAPi u have to lock the PO by using ENQUEUE.
    <b>
    FU BAPI_PO_CHANGE
    Text
    Change purchase order
    Functionality
    Function module BAPI_PO_CHANGE enables you to change purchase orders. The Change method uses the technology behind the online transaction ME22N.
    Alternatively, the IDoc type PORDCH1 is available. The data from this IDoc populates the interface parameters of the function module BAPI_PO_CHANGE.
    Functionality in Detail
    Authorization
    When you create (activity 02) an Enjoy purchase order, the following authorization objects are checked:
    M_BEST_BSA (document type in PO)
    M_BEST_EKG (purchasing group in PO)
    M_BEST_EKO (purchasing organization in PO)
    M_BEST_WRK (plant in PO)
    Controlling adoption of field values via X bar
    For most tables, you can use your own parameters in the associated X bar (e.g. PoItemX) to determine whether fields are to be set initial, values inserted via the interface, or default values adopted from Customizing or master records, etc. (for example, it is not mandatory to adopt the material group from an underlying requisition - you can change it with the BAPI).
    Transfer
    Purchase order number
    The PurchaseOrder field uniquely identifies a purchase order. This field must be populated in order to carry out the Change method.
    Header data
    The header data of the Enjoy purchase order is transferred in table PoHeader.
    Item data
    The item data of the Enjoy purchase order is stored in the tables PoItem (general item data). Changes regarding quantity and delivery date are to be made in the table PoSchedule.
    Use the table PoAccount to change the account assignment information.
    Services and limits
    Changes to existing items cannot be carried out with the Change method. It is only possible to create new items.
    Conditions
    Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. A new price determination process can be initiated via the parameter CALCTYPE in the table PoItem.
    Vendor and delivery address
    The vendor address in the table PoAddrVendor and the delivery address in the table PoAddrDelivery can only be replaced by another address number that already exists in the system (table ADRC). Changes to address details can only be made using the method BAPI_ADDRESSORG_CHANGE.
    Partner roles
    You can change all partners except the partner role "vendor" via the table PoPartner.
    Export/import data
    Export/import data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items. Changes to the export/import data of existing items are not possible.
    Texts
    Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText. Texts can only be replaced completely.
    Version Management
    You can make use of the Version Management facility via the table AllVersions.
    Return
    If the PO was changed successfully, the header and item tables are populated with the information from the PO.
    Return messages
    Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
    Restrictions
    With this function module, it is not possible to:
    Create subcontracting components (you can only use existing ones)
    Create configurations (you can only use existing ones)
    Change message records (table NAST) and additional message data (this data can only be determined via the message determination facility (Customizing))
    Attach documents to the purchase order
    Change foreign trade data
    Change service data
    Change or reexplode BOMs
    A firewall prevents the manipulation of data that is not changeable in Purchasing according to the business logic of the purchase order (e.g. PO number, vendor, etc.).
    PO items with an invoicing plan cannot be created or changed using the BAPIs
    In this connection, please refer to current information in Note 197958.
    To change addresses with numbers from Business Address Services (cantral address management), please use the function module BAPI_ADDRESSORG_CHANGE.
    To change variant configurations, please use the function module BAPI_UI_CHANGE. More information is available in the BAPI Explorer under the Logistics General node.
    In the case of changes that are to be made via the BAPI_PO_CHANGE, a firewall first checks whether the relevant fields are changeable. This approach follows that of the online transaction. Here it is not possible to change the vendor or the document type, for example.
    Example
    Example of changes made to a purchase order with:
    1. Change in header data
    2. Change in item
    3. Change in delivery schedule
    4. Change in account assignment
    5. Change in conditions
    6. Change in partners
    Parameter: PURCHASEORDER 4500049596
    Parameter: POHEADER
    PMNTTRMS = 0002
    PUR_GROUP = 002
    Parameter: POHEADERX
    PMNTTRMS = X
    PUR_GROUP = X
    Parameter: POITEM
    PO_ITEM = 00001
    CONF_CTRL = 0001
    Parameter: POITEMX
    PO_ITEM = 00001
    PO_ITEMX = X
    CONF_CTRL =  X
    Parameter: POSCHEDULE
    PO_ITEM = 00001
    SCHED_LINE = 0001
    QUANTITY = 10.000
    PO_ITEM = 00001
    SCHED_LINE = 0003
    DELETE_IND =  X
    Parameter: POSCHEDULEX
    PO_ITEM =  00001
    SCHED_LINE =  0001
    PO_ITEMX =  X
    SCHED_LINEX =  X
    QUANTITY =  X
    PO_ITEM =  00001
    SCHED_LINE =  0003
    PO_ITEMX =  X
    SCHED_LINEX =  X
    DELETE_IND = X
    Parameter: POACCOUNT
    PO_ITEM = 00001
    SERIAL_NO = 01
    GL_ACCOUNT = 0000400020
    Parameter: POACCOUNTX
    PO_ITEM = 00001
    SERIAL_NO = 01
    PO_ITEMX = X
    SERIAL_NOX = X
    GL_ACCOUNT = X
    Parameter: POCOND
    ITM_NUMBER = 000001
    COND_TYPE = RA02
    COND_VALUE = 2.110000000
    CURRENCY = %
    CHANGE_ID = U
    Parameter: POCONDX
    ITM_NUMBER = 000001
    COND_ST_NO = 001
    ITM_NUMBERX = X
    COND_ST_NOX = X
    COND_TYPE = X
    COND_VALUE = X
    CURRENCY = X
    CHANGE_ID = X
    Parameter: POPARTNER
    PARTNERDESC =  GS
    LANGU =  EN
    BUSPARTNO = 0000001000
    Help in the Case of Problems
    1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
    2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
    3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
    Customer Enhancements
    The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
    EXIT_SAPL2012_001 (at start of BAPI)
    EXIT_SAPL2012_003 (at end of BAPI)
    The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
    EXIT_SAPL2012_002 (at start of BAPI)
    EXIT_SAPL2012_004 (at end of BAPI)
    These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
    There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
    Further Information
    1. Note 197958 contains up-to-date information on the purchase order BAPIs.
    2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
    3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
    4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
    5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
    Parameters
    PURCHASEORDER
    POHEADER
    POHEADERX
    POADDRVENDOR
    TESTRUN
    MEMORY_UNCOMPLETE
    MEMORY_COMPLETE
    POEXPIMPHEADER
    POEXPIMPHEADERX
    VERSIONS
    NO_MESSAGING
    NO_MESSAGE_REQ
    NO_AUTHORITY
    NO_PRICE_FROM_PO
    EXPHEADER
    EXPPOEXPIMPHEADER
    RETURN
    POITEM
    POITEMX
    POADDRDELIVERY
    POSCHEDULE
    POSCHEDULEX
    POACCOUNT
    POACCOUNTPROFITSEGMENT
    POACCOUNTX
    POCONDHEADER
    POCONDHEADERX
    POCOND
    POCONDX
    POLIMITS
    POCONTRACTLIMITS
    POSERVICES
    POSRVACCESSVALUES
    POSERVICESTEXT
    EXTENSIONIN
    EXTENSIONOUT
    POEXPIMPITEM
    POEXPIMPITEMX
    POTEXTHEADER
    POTEXTITEM
    ALLVERSIONS
    POPARTNER
    Exceptions
    Function Group
    2012
    </b>
    regards
    prabhu
    Message was edited by: Prabhu Peram

  • 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

Maybe you are looking for