Quotation line item creation

Hi,
I am trying to add new line item in quotation using BAPI_CUSTOMERQUOTATION_CHANGE in SE37 tcode.
i am passing quote number, line item update flag as I, item number 30, material number, quantity, and set the check boxes for these 3 fields as X in item check box table.
i did not get any error messages but it does not create any new line item.
i believe i am missing some key fields to insert in those tables.
can any one tell me which fields must pass to BAPI  to create quotation or change quotaion?
Giri

HI Giri,
check BAPISDORDER_GETDETAILEDLIST
in import parameters provide 'X' for desired details like header, item,.........
in tables provide sales document number.
Regards
Syed

Similar Messages

  • Purchase Order Line Item Creation DATE ?

    Hi All ,
    How can we fine the Line item creation date in PO ? I know EKPO-AEDAT but that is chaged date and its get updated if you chage the line Item after creating it . I need creation date for a perticular Line Item how can we get that ?. thanks in advance , I'll reward if useful.
    Thanks ,
    Lucky.

    Item creation is same as Order date of schedule line
    EKET-BEDAT
    Thanks
    Seshu

  • Deliver line item Creation thru Program

    Hi guys,
    please help me to create delivery creation for a ship-to party and line item creation thru any finction module when the ship-to party has different materials ordered.
    is there any standard Function module to just create a delivery line item when the delivery is not completely processed.
    Please help me in this issue.

    check
    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 Syste
    u have to CHANGE Delivery i.e in change mode u can ADD.
    otherwise check user exits
    *        FORM-Routinen für Userexits
             include mv50afzz.
             include mv50afz1.
             include mv50afz2.
             include mv50afz3.          "Userexit neu zu Release 3.0A
             include mv50afzk.          "Userexit 4.6A (KOMKG/KOMPG)
             include mv50afzl.          "Userexit 4.6A Liefergruppen
                                                                   "n_693000
             include mv50afzp.          "Userexit for pricing screen input
    Regards
    Prabhu

  • Automatic Service Order creation and OBD line item creation - Repair Order

    Hi ALL,
    I tried to run the Repair process based on the help document of SAP:
    Configs Followed:
    1) In Material master MRP3 view, strategy group is assigned as 84 (service orders). By default this str.grp is linked with Requirement type SERA and Requirement class 203.
    2 ) Requirement class is assigned with appropriate Service order type.
    SPRO>Sales and Distribution>Basic Functions>Availability Check and Transfer of Requirements>Transfer of Requirements-->Define Requirements Classes (OVZG)
    Actual Assignment:
    Reqt. Class Service Order Type
    039 SM01
    203 SM01
    3) Task list is assigned to your Service material - Service product - OISD
    Actual Assignment:
    Service Pdt Work Centre Plant B Area Gen TL Group Counter Task List Type
    R-1001 PC-SERV 1200 8000 62 1 A
    4) Check the Requirement class setting indicator for configuration (cnfg)
    Actual Assignment:
    = mandatory
    5) SPRO>Sales and Distribution>Basic Functions>Availability Check and Transfer of Requirements>Transfer of Requirements-->Define Requirements Classes --> Determination Of Requirement Types Using Transaction
    Actual Assignment:
    Item Category Reqt class Reqt. Type
    IRRS 039 SE
    IRRE 203 SERP
    IRRP 203 SERP
    IRAL 040 KE
    6) Sales and Distribution>Sales>Sales Document Item-->Assign Item Categories for determining the item category based on usage
    Actual Assignment:
    Sal. Doc. Type Item Cat. Group Item Usage H. L . Item Cat Item Category
    RAS NORM IRRS
    RAS NORM R101 IRRS IRRE
    RAS NORM R102 IRRS IRRP
    RAS NORM R103 IRRS IRAL
    Errors Faced:
    1. Service Order is not getting created automatically.
    Error in SAP - IDES :"A service order has not been found for action 'Repairs'"
    2. Also im not getting the automatic creation of the 4th line item(Item Category - IRAL) in the repair order, which in turn stops me from creating the Outbound delivery.
    Please HELP !
    Regards

    Hi PeteA,
    Sorry, here it is...
    Let me explain the process that has been followed:
    1) Initially to start with Service Notification was created with IW51 T-code.
        In that, Sold to party and material # were entered. Then from there directly i go for Create Repair Order from the Action Box.
        Order type for repair order - RAS, and when i save both Service Notification and the Repair gets saved.
        Now, in the repair order, two line items were getting created automatically and the requirement Types for those line items are:
        Line Item I : SE
        Line Item II: SERP
    2) After that i take the material in with the help of t-code VRRE.
    3) Then, i do the acceptance of the stock ( Technical Check) with t-code QA11.
        Once i do that, i get the Third line item in the Repair Order and the requirement Type for that line item is:
        Line Item III: SERP
    Now my query is, Once i do the QA11 transaction i need to get a Service Order automatically but thats not happening.
    Also if i create a Service Order manually, and do the repair and do the technically completion of the service order, then i need to get a third line item (IRAL) in the repair order automatically and thats also not happening.
    Regards

  • How to Reject Quotation line item and update New line item

    Hi all,
    I have a doubt in Quotation Rejection,Here it goes....
    For VC implementation,We are Creating a quotation with Dummy Material,and after Creating Material Masters we have to update the Newly created material back in Quotation for same quotation number and after this the dummy material i.e the previous line item should be rejected with reason as a duplicate(reason code 23)..
    So Pls help me in Rejecting the line item of quotation.how this is done.
    Reply soon.
    Thanks in Advance,
    Balaji Meda

    Hi,
    The requirement is also to Update the Quotation with the newly created material.
    So we need a Bapi or a function module which does 2 things:
    1. Reject the previous Line item with a reason code.
    2. Update the Quoation with the new material and insert a a new line item.
    Thanks,
    Balaji.

  • Deliver line item Creation

    I created Delivery using the function module  shp_vl10_delivery_create by passing sales order info.But how to create line item when there are different materials .This function module works (creates delivery) when there is one line item for SO and if we pass full ordered quantity only.is there any other fm for creation of delivery ?
    i want one more function module to create delivery line item also.please help me in this way, as i urgently need this functionality to incorporate dynamic delivery creation.

    Iam not able to get the solution to create line item for a delivery.evne though i can able to pass the data by appending table types ,if there are line items more than 1 then this Shp_vl10_delievry_create FM will not create any delivery.i didnt get the solution for how to create line item for a delivery based on the sales order informatin

  • Line item creation through user exit

    Hi
       I am creating a line item for a sales order when saving the sales order in transaction VA01 and VA02, using the userexit USEREXIT_SAVE_DOCUMENT_PREPARE. I am able to append the line item to the internal table XVBAP through my code in the user exit.
    But after appending to the internal table the line item is not getting created.I am not getting any error message also.
    Can anyone help me out in this regard.What could be the reason for this.

    Hi,
    It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
    Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
    Regards,
    RS

  • Line item creation in sales order

    Hi
    I am working on User Exit USER_EXIT_SAVE_DOCUMENT_PREPARE. On saving a sales order i need to do some validations and based on the validations i need to add a line item to the sales order in the user exit.
    What are the ways that i can create the line items through the user exit

    Hi,
    It is not a straight forward thing. Adding data to table XVBAP won't work. It will create inconsistency. There are so many other tables involve here too, like, VBPA, VBUP, VBKD, KONV. There can be other tables too based on how your sales order is configured.
    Also, modifying these tables (XTAB, YTAB ) in this user-exit may cause database inconsistency.
    Regards,
    RS

  • Dynamic line items creation Programatically.

    My requirement is to manually create Dynamic line items based on
    some values from the existing dynamic line item.
    During Dynamic Line Item processing; When the Last 3 chars of Z field
    ZWBSMOD is changing; then insert a DLI with Material is
    MODULE-<3 chars>.
    Which the exit for creating DLI programatically ??

    Hi Amruta,
    Your question is not clear, could you please explian where you want to add line item dynamically?
    Regards,
    Surender

  • Quotation line items

    Hi
    I have a scenerio in contract manufacuring where quotation has to be isssued to customer for a material which contain other sub componants(BOM),all these sub componants has to be mentioned in quotation.It is not certain that the client will win quotation or not.This may vary between customer to customer
    These componants may run from 50-100
    Is there any process to create quotation without material master and the same will be created once they win quotation
    regards

    hi
    u can create a quotation with out materials and can save.
    but what is the use by doing so.
    in sap u can crete a quotation with one item(will not explode at quotation level) when u refer this quotation to order system will automatically explode bom for order
    for this u need not do any special just do item catgory determiation with material item catagory gorup to order, and quotation also.
    ex:- qterla  --  --agn
           orerla --  --taq
           ornorm  taqtap
    so ur requiremetnt will satisfie
    thanks and regards
    kranthi

  • Unable to delete line item in Sales Quotation

    Dear Experts,
    We have a scenario, where in on creation of Sales Quote, system triggers Production Order. We process the order further, perform GI against Order for components and perform GR against the Prod Order.
    Now if business decides to drop this further, we need to reverse the GR made against the prod order and then perform the reversal of Goods Issue made against the Production Order.
    Finally, change the quantity in the quotation to either zero or delete the quotation line item. Now on doing this system throwing the error as "Prod Order xxx cannot be deleted"
    Message no V1342 & V1798 are triggering.
    Any inputs please
    Thank you,
    Regards,
    Ramakrishna Mangena

    Hi
    Guess, you couldn't delete the line item because of the existence of subsequent documents referring that line item. You cannot assign a reason for rejection also.
    Thanks,
    Ravi

  • Line item profitcenter not able to modifi in account assignment tab in ECC6

    Hi ALL,
    After upgardation to ECC6 in sales order va02 we are not able to change the profit center for line item in account assigement.
    i have comapred my old system and new system the program FV45PF0C_COBL_SEND_PBO_VBAP proftcenter modifiction code is differs in old system and new system(ECC6).
    The below code in ECC6                            
    Profitcenter
      int_coblf-fdnam = 'PRCTR'.
      IF t180-trtyp NE chara AND
         da_iaom    NE 0.
         if xvbup-lfsta NA 'BC' AND
    *{   REPLACE        SEPK900009                                        1
    *\        xvbup-fksaa NA 'BC'.
                   xvbup-fksaa NA 'C'.
    *}   REPLACE
            int_coblf-input = char1.
         endif.
         if int_coblf-input = char1.
            loop at xvbfa where
                 posnv = vbap-posnr and
                 stufe = char00     and
               ( vbtyp_n = charl or       "Lastschriftsanforderung
                 vbtyp_n = chark or       "Gutschriftsanforderung
                 vbtyp_n = charo or       "Gutschrift
                 vbtyp_n = charp ).       "Lastschrift
                 if vbak-vbeln = xvbfa-vbelv.
                    clear int_coblf-input.
                    exit.
                 endif.
            endloop.
         endif.
         if int_coblf-input = char1.
    this below code is for old system which i can chage the profit center after creation of debit and credit memo and billing
           I_KOKRS               =
            i_bukrs               = t001k-bukrs
            i_display_mode        = da_mode
          importing
            e_screen_active       = int_coblf-active
            e_screen_input        = int_coblf-input.
        if int_coblf-active eq char1.
          int_coblf-fdnam = 'FKBER'.
          int_coblf-output = char1.
          append int_coblf.
        endif.
        clear int_coblf.
      endif.
    Profitcenter
      int_coblf-fdnam = 'PRCTR'.
      if t180-trtyp ne chara and
         da_iaom    ne 0     and
         xvbup-lfsta na 'BC' and
    *{   REPLACE        FEDK904445                                        1
    *\     xvbup-fksaa NA 'BC'.
           xvbup-fksaa na 'C'.
    *}   REPLACE
        int_coblf-input = char1.
      endif.
      int_coblf-output = char1.
      int_coblf-active = char1.
      append int_coblf.
      clear int_coblf.
    Projekt
      int_coblf-fdnam = 'PS_PSP_PNR'.
      int_coblf-output  = char1.
      perform feldauswahl_status(sapmv45a) using 'VBAP-PS_PSP_PNR'
                                                 da_status.
    i have chcked in SAP Note 1062986. and 893699.
    Is there any alteranative solution to over come this problem.
    thanks in advance
    kumar.k

    Hi,
    In sales document profit center is come from material master, So when you creating sales document it will appear still you can change it.
    But if you are creating sales document with any reference document then what ever profit centre in reference document that can not be changed.
    Example - your quotation line item with profit centre XYZ, now you created sales order with reference to this quotation and you want to change profit centre is sales order as ABC instead of XYZ, then system will not allow you.
    Even if you tried to change it will reset old one.
    Even if you created sales order >> delivery >> invoice
    And now you want to change it in sales order it will not allowed because subsequent documents already created.
    Kapil

  • Too Many Line Items While Creating a PO

    Dear All,
    Here we have a scenario:
    We are creating a PO which is having around 10000(ten thousand) line items, and while saving system is showing error message "Too Many PO Line Items" Message No: FI899. and not able to save it.
    Kindly Let me know is there any limit for line item creation in a PO.
    Regards,
    Ravi B

    Limitations are limitations, you need a workaround or pay SAP for an extra developement. Probably worth, if you have such POs everyday.
    ( I cannot even imagine for what reason a PO should have more than 10000 items. Manual maintenance is impossible, the person would sit for a week and more to finish one PO. the CSR at your vendor is as well not able to put the items from your PO into their Sales order within a reasonable time frame - order entry should be ready before delivery date is arrived.
    This sounds like you want buy a company and want create just one purchase order to buy any single material they have on stock. But for that purpose the PO is certainly not designed.
    Can you give more background that makes my mind open ?   )

  • BDC For Line Items In Sales Order

    Hello,
    I have an internal table of line items which i need it to pass it to BDC for sales order line items creation. Can anybody tell me how to do this like the logic which is used to pass the field names. I just have the material number and Quantity to be passed ..
    Thanks
    Viky

    See below code for Purchase Order :
    report zpochange.
    data : i_error like bdcmsgcoll occurs 0 with header line.
    data : i_bdcdata like bdcdata occurs 0 with header line.
    tables : ekko, ekpo.
    data :c1(10) value 'ME22',
          c2(1) value ',',c3(10).
    data : var1(20). " LIKE EKKO-EBELN.
    data : var2 like ekko-ebeln.
    data : begin of i_ekko occurs 0,
              header(2),
              ebeln like ekko-ebeln,
              end of i_ekko.
    data : begin of i_ekpo occurs 0,
    item(2),
            ebeln like ekpo-ebeln,
            ebelp like ekpo-ebelp,
            menge(10), " LIKE EKPO-MENGE,
           end of i_ekpo.
    data : v like ekpo-ebelp.
    data: begin of itab occurs 0,
             text(300),
            end of itab.
    parameters: p_file like ibipparms-path.
    *PARAMETERS: PONUMBER LIKE EKPO-EBELN.
    at selection-screen on value-request for p_file.
    call function 'F4_FILENAME'
      exporting
        program_name        = syst-cprog
        dynpro_number       = syst-dynnr
       FIELD_NAME          = ' '
      importing
        file_name           = p_file
    start-of-selection.
    *SELECT EBELN FROM EKKO INTO TABLE I_EKKO WHERE EBELN = PONUMBER.
          SELECT EBELN EBELP MENGE FROM EKPO INTO TABLE I_EKPO WHERE EBELN
    *= PONUMBER.
    perform get_data.
    *LOOP AT ITAB.
    WRITE :/ ITAB.
    ENDLOOP.
    loop at itab.
    var1 = itab-text+0(1).
    if var1 = 'H'.
    *I_EKKO-EBELN = ITAB-TEXT.
    split itab at c2 into i_ekko-header
                           i_ekko-ebeln.
    SPLIT  ITAB AT ',' INTO I_EKKO-EBELN.
                        " I_EKPO-EBELP
                        " I_EKPO-MENGE
                        " var1.
    append i_ekko.
    else.
    split itab at c2 into i_ekpo-item
                            i_ekpo-ebeln
                            i_ekpo-ebelp
                            i_ekpo-menge.
    append i_ekpo.
    endif.
    *var2 = i_ekpo-ebeln.
      MOVE VAR1 TO I_EKPO-EBELN.
      MOVE VAR1 TO I_EKKO-EBELN.
    APPEND: I_EKPO.
    *if not var1 is initial.
        split var1 at ',' into i_ekpo-ebelp
                               i_ekpo-menge.
      i_ekpo-ebeln = var2.
    append i_ekpo.
    *endif.
    endloop.
    loop at i_ekpo.
    write :/ i_ekpo.
    endloop.
    loop at i_ekko.
    perform fill_data. " TABLES I_EKPO.
    endloop.
    LOOP AT I_EKPO.
    WRITE :/ I_EKPO.
    ENDLOOP.
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    *LOOP AT I_ERROR.
    WRITE :/ I_ERROR.
    ENDLOOP.
    form get_data.
    call function 'WS_UPLOAD'
    exporting
       codepage                      = ' '
       filename                      = p_file
       filetype                      = 'ASC'
       headlen                       = ' '
       line_exit                     = ' '
       trunclen                      = ' '
       user_form                     = ' '
       user_prog                     = ' '
       dat_d_format                  = ' '
    IMPORTING
      FILELENGTH                    =
      tables
        data_tab                      = itab
    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.
    endif.
    endform.                    " GET_DATA
    *&      Form  FILL_DATA
          text
         -->P_I_EKPO  text
    form fill_data. " tables   i_ekpo .
    perform bdcscreen using 'SAPMM06E' '0105'.
    perform bdcfield using 'RM06E-BSTNR' i_ekko-ebeln.
    perform bdcfield using 'BDC_OKCODE' '/00'.
    loop at i_ekpo where ebeln = i_ekko-ebeln.
      V = I_EKPO-EBELP.
    perform bdcscreen using 'SAPMM06E' 0120.
    perform bdcfield using 'BDC_CURSOR' 'RM06E-EBELP'.
    perform bdcfield using 'RM06E-EBELP' i_ekpo-ebelp.
    perform bdcfield using 'BDC_OKCODE' '/00'.
    perform bdcscreen using 'SAPMM06E' 0120.
    perform bdcfield using 'BDC_CURSOR' 'EKPO-MENGE(01)'.
    perform bdcfield using 'RM06E-EBELP' i_ekpo-ebelp.
    perform bdcfield using 'EKPO-MENGE(01)' i_ekpo-menge.
    perform bdcfield using 'BDC_OKCODE' '/00'.
    *PERFORM BDCSCREEN USING 'SAPMM06E' 0120.
    *PERFORM BDCFIELD USING 'BDC_CURSOR'  'RMO6E-EBELP'.
    *CLEAR V.
    endloop.
    perform bdcfield using 'BDC_OKCODE' '=BU'.
    call transaction  c1 using i_bdcdata mode 'A'
                                       messages into i_error.
    refresh i_bdcdata.
    endform.                    " FILL_DATA
    *&      Form  BDCSCREEN
          text
         -->P_0140   text
         -->P_0120   text
    form bdcscreen using    p_program p_screen.
    i_bdcdata-program = p_program.
    i_bdcdata-dynpro = p_screen.
    i_bdcdata-dynbegin = 'X'.
    append i_bdcdata.
    clear i_bdcdata.
    endform.                    " BDCSCREEN
    *&      Form  BDCFIELD
          text
         -->P_0145   text
         -->P_I_EKPO_EBELN  text
    form bdcfield using    fnam fval.
    i_bdcdata-fnam = fnam.
    i_bdcdata-fval = fval.
    append i_bdcdata.
    clear i_bdcdata.
    endform.                    " BDCFIELD
    I hope same thing for sales order ,i mean both has Table control
    Reward Points if it is helpful
    Thanks
    Seshu

  • Purchase requistion line item

    Hi,
    My client  has following business process *pr- pr release- rfq Created with ref to PR(Maintain and price compare),PO with ref to Rfq - Migo - Miro,
    My issue is that when i create PR for four line item and go for Release in ME54N , I release only 2 items out of four, then i continue to create RFQ with Ref to PR. The systeem ADOPTS all line items of Purchase Requisition,
    if i get approval of only two line items then the systeem should only take two items when i create rfq with ref to Pr.
    tell me gurus where am i going wrong.
    thanks
    Regards

    Hi,
    There is a message that you can change to error message that allow  SAP not to create PO with reference to deleted quotation line, you can implement a solution by maybe marking quotation line items for deletion.
    Thanks
    Silas

Maybe you are looking for