BAPI Simulate Sales order issue

When iam using the BAPI for sales order simulation, it is giving the netvalue of item as
NET_VALUE  field in the item out table( Description: Net value as num. field - 00000901 equals 9,01 ). How to change that value into actual currency amount ie into vbap-netwr.
In debugging the value is
I_BAPIITEMOUT[1]-NET_VALUE     NUMC 15                   000000000005000.
The actual value should be              P         12
                               value:                       50.0000.

Just we need to divide it by 100.
This is standard method that will be followed by SAP standard programs also.

Similar Messages

  • Serial numbers to generation at Sales Order Issue

    Hi someone knows about Serial Control
    Do use serial number at pick release is mandatory apply Installed Base?
    what´s different between serial numbers generation in reception and at Sales Orders Issue?
    thanks,

    Do use serial number at pick release is mandatory apply Installed Base?
    No it is not mandarory if you use this serial control (At Sales Order Issue). If you use serial number control at receipt then serial number is mandatory at the time of pick confirming.
    what´s different between serial numbers generation in reception and at Sales Orders Issue?
    At Receipt:
    You maintain serial numbers in inventory and transaction them in inventory for all transactions.
    At SO Issue:
    You enter the serial numbers only at the time of shipments.
    As IB knows the inventory controls it maintains the information accordignly. When in inventory serial numbers can be grouped into one instance as they do not have any serial number. Once shipped, the same instance will be split and is created as a different instance with the serial number.
    Thanks
    Nagamohan

  • RFC/BAPI For Sales Order Credit Block Release like vkm3 (very urgent )!!

    hi experts,
    I need the RFC/BAPI For Sales Order Credit Block Release like vkm3 function ,please help
    thanks
    Godspeed

    hi
    can get the list of all the bapis..
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    Reward if USeful
    Thanx & regards.
    Naren..

  • Regarding bapis for sales order creation and modification

    Hi,
    I am trying to create a syncbo for sales order creation, modification and display. The bapis that I am using are
    1.BAPI_SALESORDER_GETLIST
    2.BAPISDORDER_GETDETAILEDLIST
    3.BAPI_SALESORDER_CREATEFROMDATA1
    4. BAPI_SALESORDER_CHANGE
    Am I using the correct bapis. When I tried to create a syncbo it gave the following errors
    BAPISDORDER_GETDETAILEDLIST does not have RETURN parameter in export or tables parameter
    RETURN parameter in Create BAPI Wrapper should refer to structure BAPIRET2
    RETURN parameter in GetList BAPI Wrapper should refer to structure BAPIRET2
    GetDetail BAPI Wrapper does not have RETURN parameter in export or tables parameter
    No Export parameter referring to header structure exists in GetDetail BAPI Wrapper
    No Import parameter referring to header structure exists in Create BAPI Wrapper
    No Import parameter referring to header structure exists in Modify BAPI Wrapper
    No Import parameter referring to a field of header structure exists in GetDetail BAPI Wrapper
    No Export parameter referring to a field of header structure exists in Create BAPI Wrapper
    No Tables parameter referring to item structure exists in Create BAPI Wrapper
    No Tables parameter referring to item structure exists in Modify BAPI Wrapper
    I am informed that the above bapis are standard bapis.
    I am not sure as to why I am getting the errors.
    Does the syncbo require the  bapi's to be in a specific format.
    What would be the header and item structures for sales order bapis
    Regards
    Raja Sekhar

    Hi Raja,
      ya , for creating Sync BOs ,our BAPI wrappers must satisfy certain conditions..
    just go through this link.
    u can use the standard BAPIs of SALES Order in ur Custom BAPI Wrapper
      http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/appdev/smartsync/what_is_a_bapi_wrapper.html
    the RETURN must be of type BAPIRET2..
                    Regards
                    Kishor Gopinathan

  • Bapi for Sale order

    Hi Experts,
    I am using BAPI_SALESDOCU_CREATEFROMDATA to create sale orders.
    As of now i m giving the following inputs to the BAPI
    WA_HEADER-DOC_TYPE = T_UPLOAD-AUART.
        WA_HEADERX-DOC_TYPE = 'X'.
        WA_HEADER-PMNTTRMS = T_UPLOAD-ZTERM.
        WA_HEADERX-PMNTTRMS = 'X'.
    Sales organization
        WA_HEADER-SALES_ORG = T_UPLOAD-VKORG.
        WA_HEADERX-SALES_ORG = 'X'.
    Distribution channel
        WA_HEADER-DISTR_CHAN  = T_UPLOAD-VTWEG.
        WA_HEADERX-DISTR_CHAN = 'X'.
    Division
        WA_HEADER-DIVISION = T_UPLOAD-SPART.
        UNPACK WA_HEADER-DIVISION TO WA_HEADER-DIVISION.
        WA_HEADERX-DIVISION = 'X'.
        WA_HEADER-PURCH_NO_C = T_UPLOAD-BSTKD.
        WA_HEADERX-PURCH_NO_C = 'X'.
        WA_HEADERX-UPDATEFLAG = 'I'.
        UNPACK T_UPLOAD-KUNNR TO T_UPLOAD-KUNNR.
        T_PARTNER-PARTN_ROLE = 'AG'.
        T_PARTNER-PARTN_NUMB = T_UPLOAD-KUNNR.
        APPEND T_PARTNER.
        CLEAR T_PARTNER.
    T_ITEMS-ITM_NUMBER = CNT.
            T_ITEMS-MATERIAL = <MAT>.
            T_ITEMS-TARGET_QTY = <QTY>.
            T_ITEMSX-ITM_NUMBER = 'X'.
            T_ITEMSX-MATERIAL = 'X'.
            T_ITEMSX-TARGET_QTY = 'X'.
            T_SCHEDULES_IN-ITM_NUMBER = CNT.
            T_SCHEDULES_IN-SCHED_LINE = CNT1.
            T_SCHEDULES_IN-REQ_QTY    = <QTY>.
            T_SCHEDULES_INX-ITM_NUMBER  = CNT.
            T_SCHEDULES_INX-SCHED_LINE  = CNT1.
            T_SCHEDULES_INX-UPDATEFLAG  = 'X'.
            T_SCHEDULES_INX-REQ_QTY     = 'X'.
    ALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
          EXPORTING
            SALES_HEADER_IN     = WA_HEADER
            SALES_HEADER_INX    = WA_HEADERX
          IMPORTING
            SALESDOCUMENT_EX    = W_VBELN
          TABLES
            RETURN              = T_RETURN
            SALES_ITEMS_IN      = T_ITEMS
            SALES_ITEMS_INX     = T_ITEMSX
            SALES_PARTNERS      = T_PARTNER
            SALES_SCHEDULES_IN  = T_SCHEDULES_IN
            SALES_SCHEDULES_INX = T_SCHEDULES_INX.
    I am getting the following error
    No item category available (Table T184 ZORT NORM  TAPA)
    I understand Material Determination is not happening.
    Could you please help me in this issue ?
    Regards,
    Prem

    Hi,
    In SPRO-> Sales and distributuin-> Sales-> sales documents-> sales doc item -> assign item category.
    In your case, for ZORT document type , and NORM item category group, TAPA item category is not assigned. make an entry with this combination.
    Regards,

  • LSMW-BAPI Method sales order creation

    Hi,
    Please any one guide me to create sales order using bapi method.
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Jul 1, 2011 9:23 AM

    Hi
    USE AG German key word fro sold to part and check if there is any issue with leading zeros.Post if need more help . You can pass two record for one sales order in partner function. Please check that also.

  • BAPI Extension - Sales Order(VBAK, VBAP)

    Hi all,
              Please help me in the issue .  I have added user custom fields for sales order va01 in header and item . i am using bapi for creating sales order . I need do use Extensionin struture for updating table vbak and vbap. Can anyone brief the procedure for acheiving the same.
    Thanks in advance,

    Hi Eric,
    Extensions for VBAK, VBAP can be filled like this:
    CLEAR e_extension.
    e_extension-structure     = 'BAPE_VBAK'.   ---> For VBAK
    e_extension-valuepart1+10 = VAL1
    e_extension-valuepart1+46 = VAL2.
    e_extension-valuepart1+56 = VAL3.
    e_extension-valuepart1+59 = VAL4
    APPEND e_extension TO t_extension.
    The same for VBAP
    CLEAR e_extension.
    e_extension-structure     = 'BAPE_VBAP'.   ---> For VBAP
    e_extension-valuepart1+10 = VAL1
    e_extension-valuepart1+46 = VAL2.
    e_extension-valuepart1+56 = VAL3.
    e_extension-valuepart1+59 = VAL4
    APPEND e_extension TO t_extension.
    CALL FUNCTION 'BAPI_SALESORDER...."
        TABLES
          extensionin        = t_extension.
    Hope this helps.
    Ernesto
    Edited by: Ernesto Caballero on Feb 24, 2010 3:03 PM

  • Simulate Sales Order and partners function

    Hi,
    I am using the BAPI: BAPI_SALESORDER_SIMULATE to simulate the sales order creation. Everything is working fine, except the partners determination.
    Where should i get all the partners related to that sales order. I want to determine the same that we saw in Partners tab in VA01.
    Can you help please? i already tested with the ORDER_PARTNERS table, but i didn't get the point. Could you please explain?
    Thanks
    Best regards

    Ok,
    I went to transaction WE20, but i am not understanding what this will help to my requirement.
    Can you explain better please?
    What i need is to know if it is possible to know all the partners functions when you are simulating a sales order by using the BAPI simulate. I want to simulate the same that happens in VA01 when we are creating a sales order and we go to tab Partners.
    Thanks
    regards

  • Sale Order Issue

    Hi Experts !!!
    Below is the scenario where i am stuck up.
    Scenario:
    ==========
    1).I have created Sales order of 9 pieces of a particular item.
    Made delivery of 4 pieces.
    Balance left is 5 pieces.
    2).Again i made delivery of 4 pieces.
        Now balance left is 1 piece.
    3).Now i have made a Return of 4 pieces of second delivery through sales module.
    Problem :
    =============
    when i view my Sales Order again , then in " Quantity Coloumn " it is showing only 1 piece instead of 9 pieces.
    The problem is creating a havoc to my customer , to track the ordered pieces and how many are delivered.
    Because if ordered pieces were 9,then why it is showing only 1 piece.
    How can i solve this issue,
    Regards
    Krishna Vamsi .

    Hello Rahul Sir !!!
    I have checked it .
    its "Quantity Coloumn " and not "Open Quantity."
    How Ever " Open Quantity " is showing only 1 piece.
    But Even "Quantity " Coloumn is showing 1 piece
    Regards
    Krishna Vamsi

  • Settlement of Sale Order issue.

    Dear friends
    I am getting the following error while settling the Sale Order in VA88.
    Please guide me in this issue, how to handle?
    There are no accrued amounts; settlement is not possible.
    Message no. KD256
    Diagnosis
    The sender has a results analysis key, but no accrued values.
    Either the accrual was not yet started for the sender, or the values to be settled from the accrual equal zero.
    Note
    Actual costs are only settled once the sender is technically completed or finally delivered.
    This applies to
    Projects that cannot carry revenues
    In Service Management for sales order production to the indicator (Calculate WIP for orders in sales order production) set in the accrual version for
    Production orders
    Internal orders with no revenues
    Orders with no revenues
    In Service Management for engineer-to-order production to the indicator (Calculate WIP for orders in engineer-to-order production ) set in the accrual version for
    Internal orders with no revenues
    Orders with no revenues
    In Service Management to the indicator (Calculate WIP for internal and service orders with no revenues) set in the accrual version for
    Internal orders with no revenues
    Orders with no revenues
    To the indicator (Calculate WIP for production orders without settlement to material) set in the accrual version for
    Production orders without settlement to material
    Procedure
    1. If necessary, start the accrual calculation for the sender
    2. Restart settlement

    Now I am getting another error.
    Complete PA transfer structure ZR
    Message no. KD514
    Diagnosis
    There is no value field assignment for cost element 911400 / *_variance category COSR_* in PA transfer structure ZR, or
    PA transfer structure ZR has no assignments, or
    No "Origin" is maintained for the assignments in PA transfer structure ZR (cost element group and, if applicable, variance category)
    When I see the Variance Category I didnt find any Variance Category COSR?
    What could be the reason.
    Thanks in advance
    Kiran

  • LSMW BAPI Open Sales Order Load - How to update conditions?

    Hello gurus,
    I was using the BAPI SALESORDER_CREATEFROMDAT2 to upload open sales orders. Wanted to overwrite the default PR00 pricing condition that gets pulled from the customer-material info record, with the price that was existing in the original legacy system when the order was created there. Used the E1BPCOND structure in the Idoc, but since there is no such thing as a E1BPCONDX structure(corresponding to the structure BAPICONDX in the origial BAPI) where you could specify whether the condition should be updated, added or deleted, it adds a second PR00 condition with the legacy system price. The original PR00 condition with the customer-material record price still stays there. Eventhough the order seems to be taking into consideration only the second one I added, to determine the total pricing, I am worried the original sitting there, might cause problems down the document flow. Is there a way to update the existing PR00 condition(rather than adding a new one) on the order, through some flag in the Idoc structure that I am not aware of?
    Would greatly appreciate an answer ASAP.
    Thanks a lot in advance,
    Wayfarer

    Thanks and appreciate your taking your time to reply, Gerard, I guess my problem is, we are still on 46C, and the only message type available for this BAPI is SALESORDER_CREATEFROMDAT201. Just called a friend who is on ECC 60 who confirmed that the later version of this message type, SALESORDER_CREATEFROMDAT202 has the E1BPCONDX structure. I don't have that option since on LSMW it automatically defaults to the only message type(and method CREATEFROMDAT2) that is available, when you choose business object BUS2032. Guess I am out of luck, unless you have any other options to suggest.
    Thanks,
    Wayfarer

  • G/L account no missing in sales order-issue

    Hi Experts,
    I am getting error: G/L account missing while saving the sales order.
    It is available in incompletion log, when i choos that it is going to item conditions tab directly.
    It seems related to VPRS condition type, because that sales order related to free goods sales order.
    There is no pricing condition type, only VPRS condition type is thr.
    Please help us to solve this issue. What would be the reason, is there any costing assignment required?
    Regards
    Lakshmikanth

    Dear Lakshmikanth,
    To analyse the cause of the error:
    VA02 --> Key-in Sales Order No. and Hit "Enter" --> Double Click on to Sales Order Line-item --> Tab: Condition --> Sun-Tab: Analysis
    on to next screen, For your Condition Type, check what condition records are missing.
    This will help you to maintain Relevant Condition Record, to resolve error.
    For Example:
    In VKOA, G/L might not be maintained for Condition Type: KOFI/ KOFK.
    Best Regards,
    Amit
    Note: You may also post the Error-Analysis for our understanding.

  • To update conditiontype values using change BAPI of sales order

    Hi Gurus,
    i am using the standard bapi 'BAPI_SALESORDER_CHANGE' and i am passing the values for the conditiontypes as follows.......
    vbeln is my sales order number..
    wa_conditions_in-itm_number = '00010'.
    wa_conditions_in-cond_count = '01'.
    wa_conditions_in-cond_type = 'ZCUS'.
    wa_conditions_in-applicatio = 'V'.
    wa_conditions_in-cond_value =  '1000.00'.
    wa_conditions_in-currency = 'INR'.
    wa_conditions_in-cond_p_unt = '1'.
    wa_conditions_inx-itm_number = '00010'.
    wa_conditions_inx-cond_count = '01'.
    wa_conditions_inx-cond_type = 'ZCUS'.
    wa_conditions_inx-updateflag = 'U'.
    wa_conditions_inx-cond_value = 'X'.
    wa_conditions_inx-currency = 'X'.
    wa_conditions_inx-cond_p_unt = 'X'.
        APPEND wa_conditions_in TO conditions_in.
        APPEND wa_conditions_inx TO conditions_inx.
    CLEAR : order_header_in, order_header_inx.
    order_header_in1-purch_no_c = 'Order'.
    order_header_inx1-purch_no_c = 'X'.
    order_header_in1-purch_no_s = 'Order'.
    order_header_inx1-purch_no_s = 'X'.
    order_header_inx1-updateflag = 'U'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument               = vbeln
        order_header_in             = order_header_in1
        order_header_inx            = order_header_inx1
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      TABLES
        return                      = return
       conditions_in               = conditions_in
       conditions_inx              = conditions_inx
      EXTENSIONIN                 =
    while executing in the order it is not updating the value for the condition type 'ZCUS' and it is inserting as new record.
    Please help me in this regard.
    Thanks & Regards,
    R.P.Sastry

    HI,
    Take the below sample code. for example and try to use like that.
    REPORT ZTEST_BAPI .
    Data: salesd like BAPIVBELN-VBELN.
    data: it_BAPISDH1 type BAPISDH1.
    data: it_BAPISDH1X type BAPISDH1X.
    data: it_BAPIPARNR type BAPIPARNR occurs 0 with header line.
    data: it_BAPIRET2 type BAPIRET2 occurs 0 with header line.
    data: it_BAPIPARNRC type BAPIPARNRC occurs 0 with header line.
    data: it_BAPISDITMX type BAPISDITMX occurs 0 with header line.
    data: it_BAPISDITM type standard table of BAPISDITM with header line.
    constants: c_bp(2) type c value 'BP'.
    it_BAPISDH1X-UPDATEFLAG = 'U'.
    it_BAPISDH1X-SALES_ORG = 'X'.
    it_BAPISDH1X-DISTR_CHAN = 'X'.
    it_BAPISDH1X-DIVISION = 'X'.
    it_BAPISDH1X-PURCH_NO_C = 'X'.
    it_BAPISDH1X-CUST_GROUP = 'X'.
    it_BAPISDH1-SALES_ORG = '1000'.
    it_BAPISDH1-DISTR_CHAN = '01'.
    it_BAPISDH1-DIVISION = '00'.
    it_BAPISDH1-PURCH_NO_C = 'Test1'.
    it_BAPIPARNR-PARTN_ROLE = 'RE'.
    it_BAPIPARNR-PARTN_NUMB = '0000000171'.
    it_BAPIPARNR-ITM_NUMBER = '00000'.
    append it_BAPIPARNR.
    it_BAPIPARNR-PARTN_ROLE = 'RE'.
    it_BAPIPARNR-PARTN_NUMB = '0000000179'.
    it_BAPIPARNR-ITM_NUMBER = '000000'.
    append it_BAPIPARNR.
    it_BAPIPARNRC-DOCUMENT = '000000375'.
    it_BAPIPARNRC-ITM_NUMBER = '000000'.
    it_BAPIPARNRC-UPDATEFLAG = 'U'.
    it_BAPIPARNRC-PARTN_ROLE = 'WE'.
    it_BAPIPARNRC-P_NUMB_OLD = '0000000171'.
    it_BAPIPARNRC-P_NUMB_NEW = '0000000179'.
    it_BAPIPARNRC-ADDRESS = '26324'.
    it_BAPIPARNRC-ADDR_LINK = '0000000003'.
    it_BAPIPARNRC-REFOBJTYPE = 'BUS2032'.
    it_BAPIPARNRC-REFOBJKEY = '000000375'.
    append it_BAPIPARNRC.
    data PARTNERADDRESSES like BAPIADDR1 occurs 0 with header line.
    PARTNERADDRESSES-ADDR_NO = '0000000003'.
    PARTNERADDRESSES-NAME = 'Test Cust'.
    PARTNERADDRESSES-STREET = '222nd AVE'.
    PARTNERADDRESSES-NAME_2 = 'NEW Bldg A2'.
    PARTNERADDRESSES-CITY = 'MILPITAS'.
    PARTNERADDRESSES-REGION = 'CA'.
    PARTNERADDRESSES-POSTL_COD1 = '950351'.
    PARTNERADDRESSES-COUNTRY = 'IN'.
    PARTNERADDRESSES-LANGU = 'E'.
    APPEND PARTNERADDRESSES. CLEAR PARTNERADDRESSES.
    it_BAPISDITMX-ITM_NUMBER = '00010'.
    it_BAPISDITMX-UPDATEFLAG = 'U'.
    it_BAPISDITMX-MATERIAL = 'X'.
    it_BAPISDITMX-CUST_GROUP = 'X'.
    append it_BAPISDITMX.
    it_BAPISDITM-ITM_NUMBER = '00010'.
    it_BAPISDITM-MATERIAL = '946'.
    append it_BAPISDITM.
    break-point.
    salesd = '0000000375'.
    call function 'BAPI_SALESORDER_CHANGE'
    exporting
    salesdocument = salesd
    ORDER_HEADER_IN = it_BAPISDH1
    order_header_inx = it_BAPISDH1X
    SIMULATION =
    BEHAVE_WHEN_ERROR = ' '
    INT_NUMBER_ASSIGNMENT = ' '
    LOGIC_SWITCH =
    tables
    ORDER_ITEM_IN = it_BAPISDITM
    ORDER_ITEM_INX = it_BAPISDITMX
    PARTNERS = it_BAPIPARNR
    return = it_BAPIRET2
    PARTNERCHANGES = it_BAPIPARNRC
    PARTNERADDRESSES = PARTNERADDRESSES
    ORDER_CFGS_REF =
    ORDER_CFGS_INST =
    ORDER_CFGS_PART_OF =
    ORDER_CFGS_VALUE =
    ORDER_CFGS_BLOB =
    ORDER_CFGS_VK =
    ORDER_CFGS_REFINST =
    SCHEDULE_LINES =
    SCHEDULE_LINESX =
    ORDER_TEXT =
    ORDER_KEYS =
    CONDITIONS_IN =
    CONDITIONS_INX =
    EXTENSIONIN =
    If sy-subrc = 0. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT =
    IMPORTING
    RETURN =
    . endif.
    You need to sepaeately use the *Update* and *Change*  and *Insert* flags while filling the data
    Thanks!
    Edited by: Mr. M on Jan 9, 2009 6:23 PM

  • Pricing condition in sales order-issue

    Experts,
    i am facing a very strange issue, functional consultant
    did some configuration ,such that when header of
    sales order have condition type ,let say some 'ZXX',
    this pricing conditon should be applicable to all
    the schedule line with pricing condition as 'ZXX' where material in schedule line is let say 'ZPP',that mean
    these should only be applicable for material type
    'ZPP',we are facing strange issue , when scheule line no
    10 is having material 'ZPP' ,then pricing conditon is
    working fine('ZXX'),but if scheule line no 10 is having
    material other than 'ZPP' and if scheule line no 20
    is having material 'ZPP' ,then for scheule line no 20
    pricing condition is not getting copied from header

    goto  tcode - <b>vk13</b>
    note that [A]--sequence for plant /material
    note that <b>--sequence for plant /material/cafgroup
    enter ur pricing condition type and
    for the <b>plant/material</b> combination etc.. [A]-
    may be in the access sequence ur consultant ave given it to a new sequence say <b>plant/material/caf group</b> .. --<b>
    like this 
    suppose say item 10 is for option [A] so access sequence is for this only ..cause material is now in plant/material
    now say item 20 is for option <b> so
    material at line item 2 will fall under this sequence ..
    cumulatively u need to get the total ..
    now if the material is same in line 10 20 , u will have to fetch the values from both the tables in sequence and not one table will store the values ..
    cause sequence pass for the material is now [A] and <b>
    rememebr that per classification the values are stored in diff table like a906 ,, a90*..
    in order to fetch that  u need to get it from the tables of classification
    and then cumulate it ..
    this is important ..
    regards,
    VIjay.
    Message was edited by: Vijay

  • BAPI: Create Sales order with reference to Quotation

    Hi ...
    I am using bapi BAPI_SALESOREDER_CREATEFROMDATA2  and
    i want to create sales order with reference Quotation... All quotation data like Materials prices and conditions must be copied from reference quotaion which is allready created .....
    ..Thanks..
    ..Ashish

    Hello,
    nice to see that this has already been solved.
    But it actually doesnt work in my scenario. Do you have an example coding which will explain your solution.
    Mine looks like this:
    * Update Flag
      ls_header_inx-updateflag = 'I'.
    * Angebotskopf einlesen
      SELECT SINGLE * FROM vbak INTO ls_vbak
        WHERE vbeln = iv_vbeln
          AND vbtyp = lc_vbtyp.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
    * Auftragskopf setzen
      ls_header_in-doc_type      =  ls_vbak-auart.
      ls_header_in-sales_org     = ls_vbak-vkorg.
      ls_header_in-distr_chan    = ls_vbak-vtweg.
      ls_header_in-division         = ls_vbak-spart.
      ls_header_in-req_date_h   = ls_vbak-VDATU.
      ls_header_in-ref_doc        = ls_vbak-vbeln.
      ls_header_in-refdoc_cat   = 'B'.
    * Angebots-Partner einlesen (Nur AG und WE)
    * Auftrag anlegen
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
        EXPORTING
    *   SALESDOCUMENTIN               =
          order_header_in               =  ls_header_in
    *      order_header_inx              = ls_header_inx
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   testrun                       = 'X'
    *   CONVERT                       = ' '
       IMPORTING
          salesdocument                 = ev_vbeln
        TABLES
          return                        = et_return
    *      order_items_in                = lt_items_in
    *      order_items_inx               = lt_items_inx
          order_partners                = lt_partners
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
    *   ORDER_CFGS_VALUE              =
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =  .
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    Unfortunatly this just makes the reference to the quotation but does not takeover ALL data from header and pos level.
    Thanks and regards
    Markus Armbruster

Maybe you are looking for

  • Are 17" Non-Unibody MacBook Pro display assemblies interchangeable?

    Hi all, I have a 17" MacBook Pro (A1229) and the steel frame inside the display is bent, so it doesn't open and close reliably. However, I found a 17" display assembly for model A1151 on eBay. Can I use the older display with my newer model?

  • Can I connect a (scsi) Syquest EZ Drive(zip discs)?

    I have searched and read the threads available here but am still not sure about what I can do and can't do. I have a new Mac Pro and I have a Syquest EZ Drive (uses 100MG Zip Discs). Is there a way to connect this to the MacPro? It appears to be the

  • Restriction for PO release procedure

    Dear All, I have to restrict the PO release procedure. Suppose there are only 3 person can release the PO but i have to restrict that 3 person for that PO quantity. suppose, PO quantity 1000. Person 1 --> Can release up to 1000. Person 2 --> Can rele

  • Combining SPRY effects

    I'm using the grow/shrink effect twice on an object. Once onMouse Over to make it grow and once again onMouseOut to make it shrink. The problem I am having is that the object begins to grow and shrink spasticlly like it's having soome kind of seizure

  • Reg : Credit management upload

    Hi All,          Can we haev any BAPI related to the uploading of the credit mangement details? Could please let me know the transaction for credit management? Regards Abhilash.