BAPI for output Issue of Contract

Dear all,
Is there any BAPI availble to issue the Output of Contracts (VA42).
Thanks in Advance
//Suresh

There is a check with table: t158b
    SELECT SINGLE * FROM T158B WHERE TCODE = <tcode>
                               AND   BWART = <movement type>.
When this is failing the following error message is raised.

Similar Messages

  • BAPI for Goods Issue (MIGO) movement type 351 with reference to PO

    Hi,
    Is there an BAPI for Goods issue in MIGO with reference to PO movement type 351, i tried using "BAPI_GOODSMVT_CREATE", but there is no PO field in this, is there any other BAPI's available for the same?
    Thanks in Advance,
    Santosh

    for goods mvt type , the available is that itself . for 351 mvt type Po number is not required .
    if its a must , create a Z bapi with additional field  for PO and make it as reference .

  • Standard remote enabled bapi for creation of purchaser contract in srm

    Hello Friends
    Plz tell me is there any standard,remote enabled FM/BAPI in SRM system for creation of purchaser contract.
    I found BBP_PD_CTR_CREATE. But this is normal FM.
    I need BAPI like BAPI_CONTRACT_CREATE which there in ECC system.
    Plz help.
    Thanks & regards,

    One idea is to write a wrapper FM that is remote enabled and internally call BBP_PD_CTR_CREATE for your own use.

  • Bapi for creation of a contract against services.

    Hi.
    i just want to know the correct bapi for creation of contracts against services..here i was tried with BAPI_CONTRACT_CREATE but the documentation says that it is not supported for exxternal or internal services.
    so iam not sure if this bapi is the one for contract creation for services.
    any way i was tried to test this function module but i havent got  Contract created.
    wil be waiting for an excellent answer.
    bye.
    reegards.
    seetaram.

    Hi Ram,
    Try the function module
    BAPI_CONTRACT_CREATEFROMDATA.
    Once you create the contract, update the technical objects for the contracts
    using two function modules called one after another.
    IWOL_WV_ADD_OBJECTS
    IWOL_WV_POST_OBJECT_LIST
    Regards,
    Chandra Sekhar

  • FM or BAPI for Output Type Creation mannually

    Hi All,
    Is there any FM or BAPI to create output type after creation of Inbound Delivery for that delivery, Normally it is automatically assigned, but I will stop the same , and wanted to create Output type mannualy through  ABAP program. Therfore can any one help me on this.
    best regards
    tanmay

    Hi,
    Try using FM WS_LM_TRANSFER_ORDER_CREATE.
    I hope this is available in ur system
    Thanks

  • BAPI for entering MM Service Contracts

    Hi,
       I would like to know which is the best bapi to be used to enter the MM service contracts. I have got two bapis
    1)  BAPI_CONTRACT_CREATE
    2)  BAPI_AGREEMENT_MAINTAIN
    Which one is the Best bapi and whats the min. required fields to be used to create a consistant MM Service Contracts.
    Regards,

    Hi,
        Is it service provider ?
        If you are looking for Provider Category , Provider Code then pass them to the structure ADDINFO   (BAPITRADDI)  ..
        Look at table TA21P for Travel Service Providers
        Please take a look at the program : RPTTIZ_BAPI_TEST
    Regards,
    Srini.

  • BAPI for Goods Issue

    Hi gurus,
    I am working on an interface where I need to do <b>goods Issue</b> and for this I have written the following code, but my return statement is returning this error" <b>Goods movement not possible with mvmt type 201</b>"
    data: begin of it_input_file occurs 0,
            matnr(18),
            werks(4),
            uoe_qty(13), 
            amount(13),
            st_loc(4),
            batch(10),
            account(10),
            uoe_uom(3),  
         end of it_input_file.
      v_semfile = p_ifname.
      refresh it_input_file.
      call function 'WS_UPLOAD'
        EXPORTING
          filename                = v_semfile
          filetype                = 'DAT'
        TABLES
          data_tab                = it_input_file
        EXCEPTIONS
          conversion_error        = 1
          file_open_error         = 2
          file_read_error         = 3
          invalid_type            = 4
          no_batch                = 5
          unknown_error           = 6
          invalid_table_width     = 7
          gui_refuse_filetransfer = 8
          customer_error          = 9
          others                  = 10.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      move: syst-datum to v_doc_date,
            syst-datum to v_pos_date.
      loop at it_input_file.
        move: v_doc_date          to GOODSMVT_HEADER-DOC_DATE,
              v_pos_date          to GOODSMVT_HEADER-pstng_date,
              syst-uname          to GOODSMVT_HEADER-pr_uname.
        move: '05' to GOODSMVT_CODE-GM_CODE.
        move: it_input_file-matnr    to GOODSMVT_ITEM-material,
              it_input_file-werks    to GOODSMVT_ITEM-plant,
              it_input_file-st_loc   to GOODSMVT_ITEM-stge_loc,
              it_input_file-batch    to GOODSMVT_ITEM-batch,
              it_input_file-uoe_qty  to GOODSMVT_ITEM-entry_qnt,
              it_input_file-uoe_uom  to GOODSMVT_ITEM-entry_uom,
              it_input_file-amount    to GOODSMVT_ITEM-AMOUNT_LC,
              ' '                     to GOODSMVT_ITEM-MVT_IND,
              'X'                     to GOODSMVT_ITEM-NO_MORE_GR,    
          move: c_mov_type2             to GOODSMVT_ITEM-move_type,
        append goodsmvt_item.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            GOODSMVT_HEADER       = GOODSMVT_HEADER
            GOODSMVT_CODE         = GOODSMVT_CODE
          IMPORTING
            GOODSMVT_HEADRET      = GOODSMVT_HEADRET
            MATERIALDOCUMENT      = MATERIALDOCUMENT
            MATDOCUMENTYEAR       = MATDOCUMENTYEAR
          TABLES
            GOODSMVT_ITEM         = GOODSMVT_ITEM
            RETURN                = RETURN
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            IMPORTING
              RETURN = return2.
    Message was edited by:
            Rajeev  Gupta
    Message was edited by:
            Rajeev  Gupta

    There is a check with table: t158b
        SELECT SINGLE * FROM T158B WHERE TCODE = <tcode>
                                   AND   BWART = <movement type>.
    When this is failing the following error message is raised.

  • BAPI's for creation of sub Contract with reference to main contract

    Hi,
    Can any body tell me the available bapi for the creation zlsl contract with reference to main contract zgsl
    Regards
    Rajkumar

    1.Logistics--Materials Management--Purchasing ---Purchase Requisition --Follow-on functions --- Assign and Process
    2.ME57
    3.Select the Assigned Purchase Requisitions checkbox if you also want to see requisitions already assigned, and choose Execute.
    4.On the Assign and Process Purchase Requisitions screen, select the requisition lines for your material.
    5.Choose Assign Manually if the info record already exists.
    6.On the pop-up Assign Source of Supply Manually dialog box, make the following entries:
    Agreement     46XXXXX            Agmt item     10          
    7.Choose Assign Source of Supply.
    For assign the source of supply, you can also choose Assign Automatically (only if not already assigned by MRP due to existing source list). If more than one source exists, select the contract in the Source Overview for Purchase Requisition 100XXXXX window and confirm with Enter.
    When assigning a source, make sure to select the contract.
    8.Choose Save.
    9.Select the line item, and then choose Assignments Overview (SHIFT+F5).
    10.On the Assign and Process Requisitions: Overview of Assignments screen, select the line below Vendor (you can only select one at a time), then choose Process Assignment.
    11.On the Process Assignment: Create PO window, check and make sure the Order Type (NB), Purchasing Group and Purch. Organization fields then choose Continue (Enter) to confirm.
    12.On the Create Purchase Order screen, select the requisition in the Document Overview section and choose Adopt in the left part of the Document Overview screen.
    13.Choose Save.

  • 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 VA41

    i am doing bdc program using BAPI for transaction VA41 'create contract', the function module am using is BAPI_CONTRACT_CREATEFROMDATA,
    i have not  find field for billing percentage(FPLT-FPROZ), but i need billing percentage.
    is there any field available for FPROZ, or is there any other function module available for doing this.
    thanks in advance

    Hi Kishor,
    Here is the below function module for the VA41( contract create).
    BAPI_CONTRACT_CREATEFROMDATA
    &******************Reward Point if helpful**************&

  • BAPI for creating scheduling agreement with reference to Contract agreement

    Hi All ,
    Can anyone please suggest if there is any BAPI for creating scheduling agreement with reference to the contract agreement number.
    Thanks for your help.
    Vadivukkarasi

    Hi,
       Check this BAPI <b>BAPI_AGREEMENT_MAINTAIN.</b>
    check these
    BAPI_CUSTSCHEDULAGREE_CONFDELV Customer Sched. Agreement: Confirmation of Delivery; Document Flow Upd
    BAPI_SALES_DEL_SCHEDULE_CREATE BAPI for creation of releases in scheduling agreements
    Regards

  • BAPI for Picking and Post Goods Issue ?

    Hi All,
    Is there any BAPI for doing Picking and Post Goods Issue in VL02N ? I don't think we can use BAPI_OUTB_DELIVERY_CHANGE.
    Is it advisable to use BAPI or BDC ( if no BAPI exist ).  Thanks in Advance.

    BAPI for picking in VL02N
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    BAPI for posting Goods Issue
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    For reference: http://help.sap.com/printdocu/core/Print46c/EN/data/pdf/LEIDW/LEIDW.pdf

  • BAPI for Release Purchase Contracts

    Hi Experts,
    I have an ECC with a Workflow for approve Purchase Contracts, ok!!
    I have too an External Program for approve this contracts, but I don´t know a BAPI or FM for export this requisitions to the External Program.
    I know that for PO and PR exist BAPI's, but I did not found for the aprove Purchase Contracts.
    Could you help me?
    Regards,
    Ariel Prebianca
    Edited by: Rob Burbank on Sep 16, 2010 2:22 PM
    Edited by: Ariel Prebianca on Sep 16, 2010 10:38 PM

    Hi
    The BAPI which you found for purchase orders works for Purchasing contracts also.
    Please test.
    Regards
    Sachin

  • Functional specs for output of ship and debit contract

    Hi All,
    Does anyone have a doc on the functional specs for output of ship and debit contract? If so pls email me at [email protected]
    With Thanks & Warm Regards
    SK

    What is the exact info which you are looking for regarding ship and debit contract?. What do you mean by functional specs..?.

  • Standard BAPI for editing Contract in R/3

    I am new to SAP.I want to implement a BAPI to edit the contract details.Is there any Standard BAPI for doing this????
    Regards
    Achin

    Hi
    Refer
    BAPI_CONTRACT_CHANGE
    Regards
    N Ganesh
    assign points if useful***

Maybe you are looking for